March 7th, 2013, 12:27 AM
Server issue code.
Hey guys I've been trying to crack this bug I'm not the best at java but i keep getting this error on my server I'm running.
Any help is greatly appreciated thanks again.
March 7th, 2013, 05:01 AM
Do you have access to the source code?
The program try to read objects number 9 in a array which does not exists. The array have less then 9 objects.
March 7th, 2013, 03:53 PM
I have the C_UseSkill file its messing up on..
March 7th, 2013, 05:23 PM
It fails in the function readH() from the extended class ClientBasePacket.
How does this function looks like?
March 7th, 2013, 08:58 PM
not sure exactly what you mean.
I get the error code while someone uses a spell in game.
Thats the only time it comes up.
Thats why im soo confused
March 8th, 2013, 03:39 AM
I am talking about the error you received as shown on the screen shot you linked to.
It tells that the error relates to the function readH().
What does readH() do?
March 8th, 2013, 08:27 PM
Thats why i am lost. If you wanna send me a private message i could look and find but its really killing the server i run it for free just trying to have some fun.
Wish i knew a bit more about java.
March 9th, 2013, 03:36 AM
I can see you are trying to fix a complete game project (https://java2s.com/Open-Source/Java/Game/l1j-tw-99nets/Catalogl1j-tw-99nets.htm).
Without any knowledge of what is doing what, it is hard to come with a fix.
It looks like it just increase the index number without resetting it.
Furthermore, the ClientBasePacket class is one big code with ZERO comments of how it works.
if you know Chinese, you can try ask here:
Last edited by MrFujin; March 9th, 2013 at 03:42 AM.
March 9th, 2013, 06:21 PM
github . com/l1j/en is the current server im working on and with before i had no issues its a change up for me new files new stuff.