Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

weapon XML error L2J 

Status
Not open for further replies.
Initiate Mage
Joined
Jan 21, 2007
Messages
4
Reaction score
0
Hi,
I have a problem adding new weapons but I don't know how to solve it.

I have a 9000-9099.xml file with a weapon with ID 9000 and L2J works fine, but if I add a new weapon the L2J shows up this error:

Code:
Cleaned 0 elements from database.
IDFactory: 102912 id's avaliable.
[B]data error on item:
java.lang.NullPointerException
        at net.sf.l2j.gameserver.ItemTable.readWeapon(ItemTable.java:290)
        at net.sf.l2j.gameserver.ItemTable.<init>(ItemTable.java:224)
        at net.sf.l2j.gameserver.ItemTable.getInstance(ItemTable.java:177)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:246)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:555)[/B]
ItemTable: Loaded 905 Armors.
ItemTable: Loaded 6646 Items.
SkillTreeTable: Loaded 35188 skills.
FishingSkillTreeTable: Loaded 109 general skills.
FishingSkillTreeTable: Loaded 8 dwarven skills.
EnchantSkillTreeTable: Loaded 13200 enchant skills.
PledgeSkillTreeTable: Loaded 64 pledge skills
SkillsEngine: Loaded 14573 Skill templates from XML files.
[B]Error in file D:\Servers\L2j_C5_470\gameserver\data\stats\weapon\9000-9099.xml
java.lang.NullPointerException
        at net.sf.l2j.gameserver.skills.DocumentItem.parseItem(DocumentItem.java:119)
        at net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(DocumentItem.java:97)
        at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:85)[/B]
[B]        at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:159)
        at net.sf.l2j.gameserver.skills.SkillsEngine.loadWeapons(SkillsEngine.java:129)
        at net.sf.l2j.gameserver.ItemTable.<init>(ItemTable.java:248)
        at net.sf.l2j.gameserver.ItemTable.getInstance(ItemTable.java:177)
        at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:246)
        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:555)[/B]

The 9001 weapon code is the same as 9000 weapon code.

Could you help me?
 
Junior Spellweaver
Joined
Jan 25, 2007
Messages
162
Reaction score
0
first tell what server patch you use .. and try to download Ezeral with his team server patch !
there are fixed all !
 
Upvote 0
Initiate Mage
Joined
Jan 21, 2007
Messages
4
Reaction score
0
hmm.. sorry. I use L2j 470 and DataPack 2546, updated 2 days ago. I don't use custom packs, except my 9000-9099.xml
 
Upvote 0
Initiate Mage
Joined
Jan 21, 2007
Messages
4
Reaction score
0
I have already downloaded the Ezeral L2j but if I add a new weapon in 9000-9099.xml the L2J shows up the error.

The XML is this:
Code:
[SIZE=2]<?xml version='1.0' encoding='utf-8'?>
<list>
<item id='9000' name="duales_zariche">
<for>
<set val='300' order='0x08' stat='pAtk'/>
<set val='200' order='0x08' stat='mAtk'/>
<set val='8' order='0x08' stat='rCrit'/>
<add val='0' order='0x10' stat='accCombat'/>
<set val='600' order='0x08' stat='pAtkSpd'/>
<enchant val='0' order='0x0C' stat='pAtk'/>
<enchant val='0' order='0x0C' stat='mAtk'/>
</for>
</item>
<item id='9001' name="infinity_dragon_slayer">
<for>
<set val='390' order='0x08' stat='pAtk'/>
<set val='175' order='0x08' stat='mAtk'/>
<set val='8' order='0x08' stat='rCrit'/>
<add val='0' order='0x10' stat='accCombat'/>
<set val='325' order='0x08' stat='pAtkSpd'/>
<enchant val='0' order='0x0C' stat='pAtk'/>
<enchant val='0' order='0x0C' stat='mAtk'/>
</for>
</item>
</list>
[/SIZE]

9000 works fine, 9001 shows the error. The weapons has SQL info in database.
 
Upvote 0
Status
Not open for further replies.
Back
Top