Skip to content

db error

Featured Replies

http://prntscr.com/kuqlz6

 

someone can help ?

Edited by GhostOfSoul

Solved by SweeTs

Some newly? added skill misses some line, most likely skill type or so. As the line is missing its null and boom error. 

  • Author

and how can i fix it? i searched for the error with the ids but everything is correct :S

also restored last back up from eclipse still the same error 

It's skill xml, replace them with default ones. If you added custom skills, check em. You can even load only few files, working fine, add more files until you find broken file. Eventually check log folder, you may have there the file name that generates error. 

  • Author

replaced still the same error ( i didnt add custom skills) :S

Cause the error comes from items..any item you have added check the types

  • Author

i have tryed everything also restore to default from backup same error ....

What backup are you talking about. If your backup is crap, nothing will change. If it's l2jserver, take their data.

2 hours ago, Reborn12 said:

Cause the error comes from items..any item you have added check the types

At first I tho the same, but check the gs log before error, items were loaded successfully.

Again, check log folder the error file, there might be file name which causes the issue. 

Find the item that is broken and fix it..

	else if (_currentItem.type instanceof L2WeaponType)
	{
		_currentItem.item = new L2Weapon((L2WeaponType) _currentItem.type, _currentItem.set);
	}
	else if (_currentItem.type instanceof L2EtcItemType)
	{
		_currentItem.item = new L2EtcItem((L2EtcItemType) _currentItem.type, _currentItem.set);
	}
	else
-		throw new Error("Unknown item type " + _currentItem.type);
+		throw new Error(String.format("Unknown item type [%s] for Item [%s] - [%s]", _currentItem.type,_currentItem.name , _currentItem.id));

}

 

  • Author

i found the problem but i cant fix it 
gs error is from dusk shields when i delete it from xml game is running fine... 

maybe there is a syntax error ? 

thanks guys for your help! :)

 

<item id='11126' name="Dusk Shied">
  <for>
    <sub val='8' order='0x10' stat='rEvas'/>
    <set val='300' order='0x08' stat='sDef'/>
    <set val='50' order='0x08' stat='rShld'/>
    <enchant val='0' order='0x0C' stat='sDef'/>
  </for>
</item>
<item id='11127' name="Shield of Reflection">
  <for>
    <sub val='8' order='0x10' stat='rEvas'/>
    <set val='276' order='0x08' stat='sDef'/>
    <set val='20' order='0x08' stat='rShld'/>
    <enchant val='0' order='0x0C' stat='sDef'/>
     <add order="0x40" stat="reflectSkillPhysic" val="50"/>
    <add order="0x40" stat="reflectSkillMagic" val="50"/>
  </for>
</item>
<item id='11128' name="Shield of Evasion">
  <for>
    <add val='15' order='0x40' stat='runSpd'/>
    <set val='276' order='0x08' stat='sDef'/>
    <set val='20' order='0x08' stat='rShld'/>
    <enchant val='0' order='0x0C' stat='sDef'/>
  </for>
</item>


 

  • Solution

Compare it with another shield xml, you should be able to notice difference, what's missing. 

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.