Thread: [317 RUSE] Error when adding new objects

Results 1 to 7 of 7
  1. #1 [317 RUSE] Error when adding new objects 
    Registered Member
    Join Date
    Aug 2020
    Posts
    27
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hey guys, so I've created some new objects in metaseq and I'm having trouble getting the object to spawn in game.

    I've added the standard to both CustomObjects.java (client & server, as well as what I need in ObjectDef.java which I don't see the need in adding here).


    When I get in game, the floor tile is set to unwalkable as if the object is there but it is invisible and upon relogging a random crate spawns where it should instead.

    This is the error I receive;
    Code:
    java.lang.ArrayIndexOutOfBoundsException: 65534
    	at com.arlania.ObjectDef.forID(ObjectDef.java:181)
    	at com.arlania.ObjectManager.isObjectModelCached(ObjectManager.java:992)
    	at com.arlania.Client.updateSpawnedObjects(Client.java:14611)
    	at com.arlania.Client.mainGameProcessor(Client.java:6514)
    	at com.arlania.Client.processGameLoop(Client.java:5476)
    	at com.arlania.RSApplet.run(RSApplet.java:244)
    	at com.arlania.Client.run(Client.java:8940)
    	at java.lang.Thread.run(Unknown Source)
    65534 is obviously the object ID, before telling me that it's too high I've also repacked it as 150 and I still get the same error but 150 > 65534.

    ANY help would be greatly appreciated,

    Cheers.
    Reply With Quote  
     

  2. #2  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Try doing what this tutorial says: https://www.rune-server.ee/runescape...ile-limit.html
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2020
    Posts
    27
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Unfortunately my cache is already set up like this, so this wasn't it.

    Any other ideas though? :O
    Reply With Quote  
     

  4. #4  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    Quote Originally Posted by Jinxstalock View Post
    Unfortunately my cache is already set up like this, so this wasn't it.

    Any other ideas though? :O
    Try debugging it, for example:

    Go to ObjectManager.java and find isObjectModelCached(int i, int j) method

    At the beginning put

    Code:
    if(i > 65533) {
    	return false;
    }
    So it should look like this:

    Code:
        public static boolean isObjectModelCached(int i, int j)
        {
    	if(i > 65533) {
    		return false;
    	}
            ObjectDef class46 = ObjectDef.forID(i);
            if(j == 11)
                j = 10;
            if(j >= 5 && j <= 8)
                j = 4;
            return class46.allModelsFetched(j);
        }
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2020
    Posts
    27
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Armo View Post
    Try debugging it, for example:

    Go to ObjectManager.java and find isObjectModelCached(int i, int j) method

    At the beginning put

    Code:
    if(i > 65533) {
    	return false;
    }
    So it should look like this:

    Code:
        public static boolean isObjectModelCached(int i, int j)
        {
    	if(i > 65533) {
    		return false;
    	}
            ObjectDef class46 = ObjectDef.forID(i);
            if(j == 11)
                j = 10;
            if(j >= 5 && j <= 8)
                j = 4;
            return class46.allModelsFetched(j);
        }
    Yeah when doing this the object doesn't throw the error, when changed to true it does. What's the next step from here?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2021
    Posts
    14
    Thanks given
    2
    Thanks received
    9
    Rep Power
    61
    i had this issue before but packing the model with displees model editor seemed to do the trick
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2020
    Posts
    27
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Avalon View Post
    i had this issue before but packing the model with displees model editor seemed to do the trick
    Again unfortunately a no go

    Nothing seems to work at this stage :/

    I do appreciate all the effort so far though, any other ideas?
    Reply With Quote  
     


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. Error when adding new Interface
    By Lord Jonathan in forum Help
    Replies: 1
    Last Post: 02-14-2014, 03:11 AM
  2. Error when adding new slayer npcs
    By Tormented in forum Help
    Replies: 2
    Last Post: 06-09-2011, 11:19 AM
  3. Error when adding new Login Scroll.
    By Continue in forum Help
    Replies: 0
    Last Post: 01-29-2010, 01:17 AM
  4. Getting this error when adding new items...
    By Elithysia in forum Help
    Replies: 6
    Last Post: 07-31-2009, 05:57 PM
  5. Error when adding new item
    By brambelg in forum Help
    Replies: 1
    Last Post: 02-07-2009, 12:04 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
  •