• 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 Error in Movments xml any help? Rep++ I got screen shot

devran124

Banned User
Joined
Jan 16, 2010
Messages
61
Reaction score
4
Well i was just fixing shields in movments.xml , and i and i saved movments.xml. when i was opening my ot it said error in xml line 873 but how? i never touchhed that only shields i changend


einp1s.jpg
 
Make sure that you don't have any missing tags on first lines, it would be something like this:

XML:
<?xml version="1.0" encoding="UTF-8"?>
<movements>
 
If you make a mistake with tags, it gives an error about the second and last line, because if something is missing or it has an extra ending, it just looks at where the start tags end, as result it gives an error about last line which is connected with the second one.
In other words, you made a mistake while adding shields, and it just gives an error about the last line even tho the mistake is not on the last line. Look at the things you added if they look like this:
Code:
	<movevent type="Equip" itemid="8918" slot="shield" level="80" event="function" value="onEquipItem[COLOR="#FF0000"]">[/COLOR]
		<vocation id="1[COLOR="#FF0000"]"/>[/COLOR]
		<vocation id="5" showInDescription="0[COLOR="#FF0000"]"/>[/COLOR]
		<vocation id="2[COLOR="#FF0000"]"/>[/COLOR]
		<vocation id="6" showInDescription="0[COLOR="#FF0000"]"/>[/COLOR]
	[COLOR="#FF0000"]</movevent>[/COLOR]
	<movevent type="DeEquip" itemid="8918" slot="shield" event="function" value="onDeEquipItem[COLOR="#FF0000"]"/>[/COLOR]

	<movevent type="Equip" itemid="9956" slot="pickupable" event="function" value="onEquipItem[COLOR="#FF0000"]"/>[/COLOR]
	<movevent type="DeEquip" itemid="9956" slot="pickupable" event="function" value="onDeEquipItem[COLOR="#FF0000"]"/>[/COLOR]
Look at the red parts, the rest is just an example from other items.

If you can't find the problem, post your movements.xml
 
Last edited:
Look here my whole movments shield xml


<!-- Shields -->
<movevent type="DeEquip" itemid="8902" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8903" slot="shield" level="60" event="function" value="onEquipItem">
<movevent type="Equip" fromid="8905" toid="8909" slot="shield" level="100" event="function" value="onEquipItem">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" fromid="8905" toid="8909" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8900" slot="shield" level="30" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8900" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8901" slot="shield" level="40" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8901" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8902" slot="shield" level="50" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8902" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8903" slot="shield" level="60" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8903" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8904" slot="shield" level="70" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8904" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="8918" slot="shield" level="80" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8918" slot="shield" event="function" value="onDeEquipItem"/>

<!-- Other -->
<movevent type="Equip" itemid="9956" slot="pickupable" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="9956" slot="pickupable" event="function" value="onDeEquipItem"/>
</movements>
 
The first two lines are not correct, the others are. If you add an item, you have to add 2 lines, 1 for Equip, 1 for DeEquip. If you don't use a part with vocations, then it has to end also with the Equip line with this />
Example:
XML:
	<movevent type="Equip" itemid="8902" slot="shield" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="8902" slot="shield" event="function" value="onDeEquipItem"/>
	<movevent type="Equip" itemid="8903" slot="shield" level="60" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="8903" slot="shield" event="function" value="onDeEquipItem"/>
 
Last edited:
XML:
    <!-- Shields --> 
<movevent type="Equip" fromid="8905" toid="8909" slot="shield" level="100" event="function" value="onEquipItem">
        <vocation id="4"/>
        <vocation id="8" showInDescription="0"/>
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
        <vocation id="3"/>
        <vocation id="7" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" fromid="8905" toid="8909" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8900" slot="shield" level="30" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="8900" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8901" slot="shield" level="40" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="8901" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8902" slot="shield" level="50" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="8902" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8903" slot="shield" level="60" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="8903" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8904" slot="shield" level="70" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="8904" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8918" slot="shield" level="80" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="6" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="8918" slot="shield" event="function" value="onDeEquipItem"/>


<!-- Other -->
<movevent type="Equip" itemid="9956" slot="pickupable" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="9956" slot="pickupable" event="function" value="onDeEquipItem"/>
</movements>
 
Omg what now
[11/12/2012 17:18:16] Line: 795, Info: Couldn't find end of Start Tag movevent line 794

<movevent type="DeEquip" itemid="7894" slot="legs" event="function" value="onDeEquipItem
<movevent type="Equip" itemid="7895" slot="legs" level="40" event="function" value="onEquipItem"

- - - Updated - - -

Never mind i pasted another movments xml legs to mine now it works fine guys thanks for yours help rep ++ to all tried to help me and helped me <3
 
Last edited:
Do the same thing as the example I gave about the shields.

XML:
        <movevent type="Equip" itemid="7894" slot="legs" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="7894" slot="legs" event="function" value="onDeEquipItem"/>
	<movevent type="Equip" itemid="7895" slot="legs" level="40" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="7895" slot="legs" event="function" value="onDeEquipItem"/>
 
Back
Top