show code
|
Hey guys so I've been trying to add doors for hours now lol, seriously.. I'm using my doors.cfg file but everytime I try and add a door it compiles well but then when I run my server I get this,
Then once I delete the door I just added my server runs fine again.. I have just been copy and pasting another door and changing the coords etc. But what am I doing wrong if I'm getting this error?Code:[Console]: Control Panel disabled. Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.ArrayIndexOutOfBoundsException: 30 at server.world.ObjectHandler.loadDoorConfig(ObjectHandler.java:304) at server.world.ObjectHandler.<init>(ObjectHandler.java:26) at server.Server.<clinit>(Server.java:66) Press any key to continue . . .
Thanks in advance
show code
The one I'm trying to add is this one:Code://the door starts as closed // South 0 face = doorX -1 face = -3 // East -1 face = doorY -1 face = 0 // North -2 face = doorX +1 face = -1 // West -3 face = doorY +1 face = -2 // doorX doorY Height Face State //0 closed, 1 open door = 2855 3546 0 0 0 //duel arena gate door = 2854 3546 0 0 0 //duel arena gate door = 3253 3266 0 0 0 //cow gate door = 3268 3227 0 0 0 //al kharid gates door = 3268 3228 0 0 0 door = 3562 9694 0 -2 0 //barrows door door = 3563 9694 0 -1 1 //door = 2948 3379 0 -3 1 door = 3234 3426 0 -2 0 door = 3235 3426 0 -1 1 door = 3238 3210 0 0 0 door = 3237 3210 0 -3 1 door = 3234 3207 0 0 0 door = 3233 3207 0 -3 1 door = 3079 3497 0 -2 0 door = 3079 3497 0 -1 1 //the door starts as opened // South 0 face = doorY +1 face = -1 // East -1 face = doorX -1 face = -2 // North -2 face = doorY -1 face = -3 // West -3 face = doorX +1 face = 0 // doorX doorY Height Face State //0 closed, 1 open door = 3231 3433 0 -2 1 door = 3231 3432 0 -3 0 door = 2950 3385 0 -2 1 door = 2950 3384 0 -3 0 door = 3249 3435 0 -1 1 door = 3248 3435 0 -2 0 door = 3253 3431 0 -2 1 door = 3253 3430 0 -3 0 door = 3233 3427 0 0 1 door = 3103 9909 0 0 1 door = 3233 3428 0 -1 0 door = 3217 3219 0 0 0 door = 3216 3219 0 -3 1 door = 3101 3510 0 0 0 door = 3101 3509 0 0 0 door = 2816 3438 0 -3 0 //door = 3101 3509 0 1 0 //door = 3101 3510 0 -1 0 [ENDOFDOORLIST]Code:door = 3103 9909 0 0 1
Apparently door 30 is out of bounds.. Must be an array limiting the amount of doors..
Yeah monster is right, we would need to see the actual code to find out the problem.
You will have to find out if you have a maximum or 30 doors allowed, for some reason having 31 is throwing an outofbounds error.
Yeah, thats the only reasons for outofbounds, its self explanatory
One too many is out of bounds
Im sure you can change that array to allow more doors, I'll look around for you.
EDIT
What source are you using?
Can you find your ObjectManager class?
If so can you pop it on here so I can take a quick look at it?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |