• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Adding custom monster

reebo

New Member
Joined
Nov 22, 2014
Messages
28
Reaction score
1
Hello, I've tried to add custom monster. I'm using TFS 1.1 server,
It seems pretty easy, but somehow it's not working for me. I've imported it into mapeditor, made its spawn, planted in but while it's loading server it comes with
Code:
[Error - Monsters::loadMonster] Failed to load data/monster/insects/expbug.xml: File was not found

Here's my monster code + monster.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<monster name="Expbug" namedescription="an expbug" race="venom" experience="1000" speed="350" manacost="0">
    <health now="1000" max="1000"/>
    <look type="45" corpse="5990"/>
    <targetchange interval="4000" chance="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="1"/>
        <flag convinceable="0"/>
        <flag pushable="1"/>
        <flag canpushitems="0"/>
        <flag canpushcreatures="0"/>
        <flag targetdistance="1"/>
        <flag staticattack="90"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="20" attack="15"/>
    </attacks>
    <defenses armor="5" defense="5"/>
    <elements>
        <element firePercent="-10"/>
    </elements>
    <loot>
        <item id="2160" countmax="1" chance="1000"/>
    </loot>
</monster>

Code:
<monster name="ExpBug" file="insects/expbug.xml"/>

Also when edit the map with new spawn and then I'm adding it to GIT, it writes this
warning: LFwill be replaced by CRLF in world/house.xml
The file will have its original line endings in your working directory.
warning: LFwill be replaced by CRLF in world/spawn.xml
The file will have its original line endings in your working directory.

But my custom NPCs are working well
 
Some things to look at for the monster..
Ensure that the filename is correct, and is in the correct place. (physically check that the file is there and is correctly spelled)
Try spawning the monster in-game using a god.
make sure that the code inside monsters.xml is not inside of greentext (I've seen this a couple times)

Beyond that, I'm not sure of the other error's.
 
That's all alright, seems I've some issue with adding it to repositary, on my local I've it, even I've pushed files on server, still this expbug.xml is not there for some reason.
 
Did you spawn it in-game using a god?

Nope, it's not possible, becouse the file is not existing on server. It's not script error, something went wrong with GIT, trying to fix it

Okey SOLVED, for some reason my git commands from win doesnt adding files in monster folders that already exists, so I had to make "Custom" new folder to push the files on server.
 
Last edited:
Back
Top