• 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!

TFS 1.X+ Problems on server restart

aalqaq2

Trying to help, but I'm not too good at it.
Joined
Apr 10, 2017
Messages
112
Solutions
3
Reaction score
8
Hello,

I took a break from the OT world but decided to restart my server. I saved a backup, but after restarting the server with the same hosting company, and the git pull method of @Don Daniello (Same as last time. Thanks for the ease of use btw!), my server is having a lot of functionality issues. Duplicate item ID's, items not working, Loot chance issues preventing loot from dropping at all, etc. I'll post screenshots a bit later when I'm not at work anymore, but would anyone have insight on possible reasons why this wouldn't be working now?
 
Solution
Just open all your monster files with Notepad++ and then press Ctrl+F then change Search mode to Regular Expression and write in Find What this
Code:
chance="[0-9]{6}"
and press Find all in all Opened Documents
it will find all chance values with 6 digits+ in all your monster files, You can raise the search value by changing the 6 with whatever you want.
I would suggest what @M0ustafa is suggesting, but use visual studio 20(17/19) and open the folder in visual studio and CTRL+F (make sure to select entire solution and have no files open, this will get you a complete list where all the "errors" are located).

Sincerely,
Ralumbi(Caleb)
[Warning - Monsters::loadMonster] Invalid "chance" 100320 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 9999999 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 812500 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 200000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 120000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 100320 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 9999999 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 812500 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 200000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 120000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
 
[Warning - Monsters::loadMonster] Invalid "chance" 100320 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 9999999 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 812500 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 200000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 120000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 100320 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 159200 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 9999999 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 812500 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 200000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 300000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 120000 used for loot, the max is 100000.
[Warning - Monsters::loadMonster] Invalid "chance" 1000000 used for loot, the max is 100000.
It clearly say that in monsters file lets say dragon.xml loot is 1000000 and the max is 100000 xD
 
Just open all your monster files with Notepad++ and then press Ctrl+F then change Search mode to Regular Expression and write in Find What this
Code:
chance="[0-9]{6}"
and press Find all in all Opened Documents
it will find all chance values with 6 digits+ in all your monster files, You can raise the search value by changing the 6 with whatever you want.
 
Last edited:
Just open all your monster files with Notepad++ and then press Ctrl+F then change Search mode to Regular Expression and write in Find What this
Code:
chance="[0-9]{6}"
and press Find all in all Opened Documents
it will find all chance values with 6 digits+ in all your monster files, You can raise the search value by changing the 6 with whatever you want.
I would suggest what @M0ustafa is suggesting, but use visual studio 20(17/19) and open the folder in visual studio and CTRL+F (make sure to select entire solution and have no files open, this will get you a complete list where all the "errors" are located).

Sincerely,
Ralumbi(Caleb)
 
Solution
Thanks guys. I fixed the error. I was looking for a recursive fix rather than a file-by-file correction.

I do have another issue though. Monsters do not drop any loot. Corpses open, they're just empty. No console errors. Nothing. I know its not much to go on...but any ideas would be helpful.
 
Thanks guys. I fixed the error. I was looking for a recursive fix rather than a file-by-file correction.

I do have another issue though. Monsters do not drop any loot. Corpses open, they're just empty. No console errors. Nothing. I know its not much to go on...but any ideas would be helpful.
No worries, we are here to help :)

Make sure your monster file has this <loot> </loot> at section in the file.
Also make sure there are no syntax errors.

This is a small part of the demon loot table.
XML:
<loot>
        <item name="purple tome" chance="1190" />
        <item name="gold coin" countmax="100" chance="60000" />
        <item name="gold coin" countmax="99" chance="60000" />
        <item name="small emerald" chance="10000" />
        <item name="talon" chance="3571" />
        <item name="platinum coin" countmax="6" chance="100000" />
        <item name="might ring" chance="170" />
        <item name="stealth ring" chance="1333" />
        <item name="platinum amulet" chance="813" />
   </loot>

I hope that it gave you a clue.

Sincerely,
Ralumbi(Caleb)
 
Nothing. I've tested on multiple monsters. None of them drop loot. Here's one of them.


XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster name="Cockroach" nameDescription="a cockroach" race="venom" experience="0" speed="180">
    <health now="1" max="1" />
    <look type="284" corpse="8593" />
    <targetchange interval="60000" chance="0" />
    <flags>
        <flag summonable="0" />
        <flag attackable="1" />
        <flag hostile="0" />
        <flag illusionable="0" />
        <flag convinceable="0" />
        <flag pushable="1" />
        <flag canpushitems="0" />
        <flag staticattack="50" />
        <flag lightlevel="0" />
        <flag lightcolor="0" />
        <flag targetdistance="5" />
        <flag runonhealth="1" />
        <flag canwalkonenergy="0" />
        <flag canwalkonfire="0" />
        <flag canwalkonpoison="0" />
    </flags>
    <loot>
        <item name="cockroach leg" chance="100000" />
    </loot>
</monster>
 
Back
Top