• 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+ Every character created shows up as Vocation ID 0 all of a sudden?

archer32

Member
Joined
Feb 3, 2011
Messages
88
Solutions
1
Reaction score
9
Here is the config.php for Znote AAC 1.6
PHP:
// Available character vocation users can choose (specify vocation ID).
    $config['available_vocations'] = array(1, 2);

Here is my vocations.xml
XML:
<vocation id="1" clientid="3" name="Newb" description="a Newb Combatant" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="1" noPongKickTime="40">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.5" />
        <skill id="1" multiplier="2.0" />
        <skill id="2" multiplier="2.0" />
        <skill id="3" multiplier="2.0" />
        <skill id="4" multiplier="2.0" />
        <skill id="5" multiplier="1.5" />
        <skill id="6" multiplier="1.1" />
    </vocation>
    <vocation id="2" clientid="4" name="Newbie" description="a Newbie Combatant" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="2" noPongKickTime="40">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.5" />
        <skill id="1" multiplier="1.8" />
        <skill id="2" multiplier="1.8" />
        <skill id="3" multiplier="1.8" />
        <skill id="4" multiplier="1.8" />
        <skill id="5" multiplier="1.5" />
        <skill id="6" multiplier="1.1" />
    </vocation>

What is really weird is it was working fine yesterday, I didn't update anything vocation or config.php wise... today everytime I keep testing new characters it gives me id 0 in phpMyAdmin and lists as "No vocation"

I am driving myself mad...

I even deleted the 0 => array and all that stuff to see if I can fix it, but everything keeps forcing to voc id 0 for whatever reason

*Edit -- Even on the website, it says the correct vocation names, but again... still only creates as vocation id 0

Halp <3
Post automatically merged:

I must have done something accidently somewhere... because I just restored every htdoc file besides config.php and it works again...

I have no idea what I would have changed to affect that... still curious if anybody knows so I don't somehow do it again!!! Thank you
 
Last edited:
Here is the config.php for Znote AAC 1.6
PHP:
// Available character vocation users can choose (specify vocation ID).
    $config['available_vocations'] = array(1, 2);

Here is my vocations.xml
XML:
<vocation id="1" clientid="3" name="Newb" description="a Newb Combatant" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="1" noPongKickTime="40">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.5" />
        <skill id="1" multiplier="2.0" />
        <skill id="2" multiplier="2.0" />
        <skill id="3" multiplier="2.0" />
        <skill id="4" multiplier="2.0" />
        <skill id="5" multiplier="1.5" />
        <skill id="6" multiplier="1.1" />
    </vocation>
    <vocation id="2" clientid="4" name="Newbie" description="a Newbie Combatant" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="2" noPongKickTime="40">
        <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0" />
        <skill id="0" multiplier="1.5" />
        <skill id="1" multiplier="1.8" />
        <skill id="2" multiplier="1.8" />
        <skill id="3" multiplier="1.8" />
        <skill id="4" multiplier="1.8" />
        <skill id="5" multiplier="1.5" />
        <skill id="6" multiplier="1.1" />
    </vocation>

What is really weird is it was working fine yesterday, I didn't update anything vocation or config.php wise... today everytime I keep testing new characters it gives me id 0 in phpMyAdmin and lists as "No vocation"

I am driving myself mad...

I even deleted the 0 => array and all that stuff to see if I can fix it, but everything keeps forcing to voc id 0 for whatever reason

*Edit -- Even on the website, it says the correct vocation names, but again... still only creates as vocation id 0

Halp <3
Post automatically merged:

I must have done something accidently somewhere... because I just restored every htdoc file besides config.php and it works again...

I have no idea what I would have changed to affect that... still curious if anybody knows so I don't somehow do it again!!! Thank you
I believe you might have changed the sample names in some config file but not changed it in the database?
 
Back
Top