Jump to content
  • 0

L2jHellas: Couldn't load the NPC list?


Question

Posted (edited)
  1. Good afternoon everyone. I need your help for troubleshooting the following error:
ItemTable: Loaded 1014 Armors.
ItemTable: Loaded 6880 Items.
ItemTable: Loaded 1313 Weapons.
ItemTable: Highest item Id used: 9208
ArmorSetsData: Loaded 51 armor sets.
ArmorSetsData: Loaded 51 custom armor sets.
SummonItems Loaded: 14 items.
SoulCrystalsTable: Loaded 39 SC(s) data and 124 NPC(s) data.
=======================================================================-[ Npc ]
NpcData: Loaded 6533 npc templates.
NpcData: Loaded 6548 npc templates.
NpcData: Loaded 0 custom droplist.
NpcData: Players droplist was cached.
Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.l2jhellas.gameserver.datatables.sql.NpcData.getInstance(NpcData.java:740)
        at com.l2jhellas.gameserver.GameServer.<init>(GameServer.java:187)
        at com.l2jhellas.gameserver.GameServer.main(GameServer.java:468)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 119
        at com.l2jhellas.gameserver.datatables.sql.NpcData.restoreNpcData(NpcData.java:350)
        at com.l2jhellas.gameserver.datatables.sql.NpcData.<init>(NpcData.java:57)
        at com.l2jhellas.gameserver.datatables.sql.NpcData$SingletonHolder.<clinit>(NpcData.java:745)
        ... 3 more


I've tried to run a clear installation of the database, recompiled the pack, but without any changes, from the original work.
This happened suddenly and unexpectedly. I am running stock L2JHellas coding.

Looking forward for your help.

Edited by xFranky

6 answers to this question

Recommended Posts

  • 0
Posted
4 hours ago, DenArt Designs said:

@AbsolutePower

you can report such bugs here https://l2jhellas.com/ :)

I did. I just wanted to get it sorted soon before my hair becomes white from getting pissed off about it :p Thank you for advice :)

  • 0
Posted
21 minutes ago, Tryskell said:

What is that line ?

Thank you for your reply.

 

The line is the following:

Quote

npc.addTeachInfo(ClassId.values()[classId]);

 

The code is available at:

https://subversion.assembla.com/svn/l2hellas/trunk/L2JHellasC/java/com/l2jhellas/gameserver/datatables/sql/NpcData.java

 

 

  • 0
Posted
1 hour ago, Tryskell said:

What is that line ?

Sorry for the double post. This quote was actually really helpful because I found the route of my problem.

This error is involved with the skill_learn.xml or skill_learn in db. I added my old work, and since it was old, the class_id was going greater than 118, and that was causing that error.

Even though the problem is now solved, it would be nice to have a safety and working layer on loading.

 

 

This topic can be locked, since the problem is solved!

 

Thank you Tryskell

  • 0
Posted

That's cool you manage to find error logic by yourself. :)

 

Not sure about the usefulness of a safety, it's up to the static data to be valid - and thrown error is normally enough to debug.

  • Like 1
Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock