Thread: My door opening (pi) Help please (:

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 My door opening (pi) Help please (: 
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    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,

    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 . . .
    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?
    Thanks in advance
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2010
    Posts
    1,309
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    show code
    Reply With Quote  
     

  3. #3  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    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]
    The one I'm trying to add is this one:
    Code:
    door = 3103	9909	0	0	1
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Feb 2008
    Age
    31
    Posts
    86
    Thanks given
    0
    Thanks received
    2
    Rep Power
    5
    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.
    Reply With Quote  
     

  5. #5  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    Posted it above
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Feb 2008
    Age
    31
    Posts
    86
    Thanks given
    0
    Thanks received
    2
    Rep Power
    5
    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.
    Reply With Quote  
     

  7. #7  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    Pasquill I think you're right lol, I just realised there's 31 doors added in there if I counted correctly and it says no more than 30, lol. I'm guessing that's why? Time to delete some doors then? :/
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  8. #8  
    Donator

    Join Date
    Feb 2008
    Age
    31
    Posts
    86
    Thanks given
    0
    Thanks received
    2
    Rep Power
    5
    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?
    Reply With Quote  
     

  9. #9  
    Registered Member Coruption's Avatar
    Join Date
    Aug 2010
    Posts
    440
    Thanks given
    115
    Thanks received
    49
    Rep Power
    8
    Project Warfare base
    Quote Originally Posted by maffia-rpg View Post
    I have read some were that apache said it wasn't a malicious. Its a command that shutdowns a computer < or something like that. Matrix didn't had added that. RuneScape did.
    Reply With Quote  
     

  10. #10  
    Donator

    Join Date
    Feb 2008
    Age
    31
    Posts
    86
    Thanks given
    0
    Thanks received
    2
    Rep Power
    5
    Can you find your ObjectManager class?

    If so can you pop it on here so I can take a quick look at it?
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 14
    Last Post: 11-22-2011, 11:54 AM
  2. [RS2HD] Door opening and closing
    By cj8998 in forum Snippets
    Replies: 14
    Last Post: 06-27-2011, 05:09 PM
  3. Opening Every Door Flawlessly
    By Mister Maggot in forum Help
    Replies: 6
    Last Post: 07-27-2009, 11:40 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •