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

Solved ERROR: Unable to load items (XML)!

harisfejza

New Member
Joined
Feb 28, 2013
Messages
11
Reaction score
0
Hey guys, have an idea what the problem could be?..I've looked at line 2134 in items, its a wand, but i dont see the problem....

[04/03/2013 13:21:41] >> Loading config (config.lua)
[04/03/2013 13:21:41] > Using SHA1 encryption
[04/03/2013 13:21:41] >> Checking software version... outdated, please consider updating!
[04/03/2013 13:21:42] > Current version information - version: 0.3.6 V7 - Edited By Cyko, patch: 1, build: 3429, timestamp: 1261647210.
[04/03/2013 13:21:42] > Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp: 1260652199.
[04/03/2013 13:21:42] >> Fetching blacklist
[04/03/2013 13:21:42] >> Loading RSA key
[04/03/2013 13:21:42] >> Starting SQL connection
[04/03/2013 13:21:42] >> Running Database Manager
[04/03/2013 13:21:42] > No tables were optimized.
[04/03/2013 13:21:42] >> Loading items
[04/03/2013 13:21:42] [Warning - Items::loadFromXml] Cannot load items file.
[04/03/2013 13:21:42] Line: 2134, Info: Extra content at the end of the document



[04/03/2013 13:21:52] > ERROR: Unable to load items (XML)!





Here you got 2134...Its the weight line. I haven't changed anything in this file...



</item>
<item id="2190" article="a" name="wand of vortex">
<attribute key="description" value="Surges of energy rush through the tip of this wand." />
<attribute key="weight" value="1900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="energy" />
<attribute key="range" value="3" />
</item>
 
Last edited:
Thanks for reply, i've replaced it with another items.xml but now it just crashes on "loading items".

EDIT: now it crashes on line 2709....

<item id="2095" article="a" name="bird cage">
<attribute key="description" value="You see a little bird inside."/>
</item>

- - - Updated - - -

It use to crashes on Wand of vortex...maybe it have to do with my firstitems.xml mod?...
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" enabled="yes">
<config name="firstitems_config"><![CDATA[
STORAGE = 30001
commonItems = {
{itemid=2152, count=25, inContainer = true}, -- 25 platinum coins
{itemid=2643}, -- leather boots
{itemid=2173} -- aol
}
firstItems = {
{ -- Sorcerer
{itemid=1988}, -- backpack
{itemid=2175}, -- spellbook
{itemid=2190}, -- wand of vortex
{itemid=8819}, -- magician's robe
{itemid=8820}, -- mage hat
{itemid=2648} -- chain legs
},
{ -- Druid
{itemid=1988}, -- backpack
{itemid=2175}, -- spellbook
{itemid=2182}, -- snakebite rod
{itemid=8819}, -- magician's robe
{itemid=8820}, -- mage hat
{itemid=2648} -- chain legs
},
{ -- Paladin
{itemid=1988}, -- backpack
{itemid=2525}, -- dwarven shield
{itemid=2389, count=3}, -- 3 spears
{itemid=2463}, -- plate armor
{itemid=2457}, -- steel helmet
{itemid=2647} -- plate legs
},
{ -- Knight
{itemid=1988}, -- backpack
{itemid=2525}, -- dwarven shield
{itemid=2383}, -- spike sword
{itemid=2463}, -- plate armor
{itemid=2457}, -- steel helmet
{itemid=2647} -- plate legs
}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')

for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end

function onLogin(cid)
if getPlayerGroupId(cid) < 4 and getPlayerStorageValue(cid, STORAGE) < 1 and firstItems[getPlayerVocation(cid)] then
for _, v in ipairs(firstItems[getPlayerVocation(cid)]) do
if isItemContainer(v.itemid) then
backpack = doPlayerAddItem(cid, v.itemid, 1)
elseif v.inContainer then
doAddContainerItem(backpack, v.itemid, v.count or 1)
else
doPlayerAddItem(cid, v.itemid, v.count or 1)
end
end
setPlayerStorageValue(cid, STORAGE, 1)
end
return true
end
]]></event>
</mod>
 
I'm really sorry for that :(

Here's the link for items.xml and randomization.xml
Code:
http://speedy*****malware.localhost/BxNnz/items.xml
Code:
http://speedy*****malware.localhost/3utkQ/randomization.xml
 
Are you sure you sent the right ones? I tested them on 0.3 and and it worked fine for me except from some diplicated registered id warnings, but it loaded for the rest.
 
Try downloading the new items.xml again, and download a properly text editor, I use NotePad++ and works perfectly, if you use Wordpad or the default notepad maybe you will get those errors, try that.
 
What kind of error are you getting now? Because if I add it to a 0.3.6 server it loads, it just gives alot diplicated registered id warnings.
 
Im using notepad++. It crashes when im trying to start the server. I'll upload 2 pictures...Sometimes it says "TFS have stopped working" and sometimes it says "Unable to load items"

84332857.png

28468113.png


I've changed the "connection ip" to 127.0.0.1....and suddenly it works :S

PROBLEM SOLVED :)

Thank you anyway for the replies :)
 
Last edited:
9pvmv4.png


<item id="2190" article="a" name="wand of vortex">
<attribute key="description" value="Surges of energy rush through the tip of this wand." />
-- THIS IS THE LINE 2139 <attribute key="weight" value="1900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="energy" />
<attribute key="range" value="3" />
</item>

everything was working fine, I think some1 used the wand of vortex and it crash, now it don't work.
I already tried to change it for others items.xml but without luck :/




ITEMS XML LINK

http://speedy*****malware.localhost/yzZK5/items.xml
 
Last edited:

Similar threads

Back
Top