• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Super High Skill Level Crash

Joined
Apr 15, 2014
Messages
75
Reaction score
18
Hello, Im having a really odd issue with my server... For some unknown reason, some players are suddenly leveling to a skill level higher than 10.000, like sword fighting or magic level, and when they hit a monster or cast a spell, the server crashes.

I had to opportunity to talk to one of the players who got a super high magic level and he told me he was hunting then a few other players killed him and when he logged back in, his magic level was 1032121. Is there a solution for this? I'm really in the dark since I cant figure out what is causing this.

Thanks
 
So... Searching arround I figured it may be related to a vocation's bug since whenever it happens I see the error:
Warning: [Vocations::getVocation] Vocation 4294967295 not found.

I saw that I have to change the 'fromvoc' tag of my new vocations to 0 but Im not really sure this is the proper fix, Id appreciate if someone could tell me so
 
I have experienced this bug some time ago in my TFS 0.4, I don't know what causes this problem and I don't know how to fix it exactly, but I did some things and the bug disappeared.
First, use the default vocations.xml, if you have custom vocations and that stuff, create it again.
Execute this SQL Query in your phpMyAdmin:
Code:
SET GLOBAL max_allowed_packet = 16776192;

Also, I was using normal server save system, so I removed the automatic server save system and I added this system: https://otland.net/threads/server-save-optimized-less-lag-v1-8.170660/
This system only saves the PLAYER and the HOUSE, so obviously you will need to execute the /save command with your God, one time a day (to save depot items, kills, etc), but this keeps your server stable and also without save-freezes (don't do it if your server is unstable); after all this modifications, this bug never happened again. Hope you solve it.
 
Thank you @Loney
I executed this query... lets see if it helps. But I dont think this save system will have impact in this case because it only happens when the player logs off and then logs back in.

Here is my vocations.xml, I dont't see anything wrong in it... But a change that made today was setting 'fromvoc' of the vocations with id higher than 8 to '0'
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" clientId="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="150" gainmanaticks="6" gainmanaamount="400" manamultiplier="4.0" attackspeed="100" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="1" clientId="3" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="150" gainmanaticks="3" gainmanaamount="400" manamultiplier="1.1" attackspeed="300" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="2" clientId="4" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="150" gainmanaticks="3" gainmanaamount="400" manamultiplier="1.1" attackspeed="300" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="3" clientId="2" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="8" gainhpamount="150" gainmanaticks="4" gainmanaamount="400" manamultiplier="1.4" attackspeed="350" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="4" clientId="1" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="150" gainmanaticks="6" gainmanaamount="400" manamultiplier="3.0" attackspeed="450" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="5" clientId="3" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="150" gainmanaticks="2" gainmanaamount="400" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="6" clientId="4" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="150" gainmanaticks="2" gainmanaamount="400" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="7" clientId="2" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="6" gainhpamount="150" gainmanaticks="3" gainmanaamount="400" manamultiplier="1.4" attackspeed="170" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="8" clientId="1" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="150" gainmanaticks="6" gainmanaamount="400" manamultiplier="3.0" attackspeed="185" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
        <vocation id="9" clientId="3" name="Real Sorcerer" description="a real sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="195" gainmanaticks="2" gainmanaamount="520" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="0" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="10" clientId="4" name="Real Druid" description="a real druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="195" gainmanaticks="2" gainmanaamount="520" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="0" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="11" clientId="2" name="Real Paladin" description="a real paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="6" gainhpamount="195" gainmanaticks="3" gainmanaamount="520" manamultiplier="1.4" attackspeed="170" soulmax="200" gainsoulticks="15" fromvoc="0" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="12" clientId="1" name="Real Knight" description="a real knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="195" gainmanaticks="6" gainmanaamount="520" manamultiplier="3.0" attackspeed="185" soulmax="200" gainsoulticks="15" fromvoc="0" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
</vocations>
 
Unfortunately i've found this bug with me too, @Killua Real Did you solve it? if you tell me the solution of it

Well, as for now the only conclusion I made is that its related to new vocations (id higher than 8), so what I did was changinc the fromvoc variable of those vocations to 0. If you use new vocations you probably use an onLogin script to set theese vocations, so you should make sure it is not setting the wrong vocation id
 
You sure you didn't change rates they get skills in vocations.xml?

I got 5000 shielding once because of that on my server. You should check just to be sure :) hope it solves it
 

Similar threads

Back
Top