Thread: Rain 718 assigning object ID's

Results 1 to 2 of 2
  1. #1 Rain 718 assigning object ID's 
    Registered Member
    Join Date
    Dec 2019
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hi guys i've made up some custom object models and packed them to cache with Frostys. What i can't figure out is how to assign an Object Id to it, i have the model id's and have verified they're in the cache. A friend sent me some code for objectDefinitions to overwrite another model but it doesn't seem to be working. Any help much appreciated here's what i've got so far in ObjectDefs client side, the haybales are still spawning and i've spent hours trying to figure it out. Thanks

    Code:
      void decode(RsByteBuffer stream, int i, int i_0_) {
    	try {
    	    if (1 == i) {
    		int i_1_ = stream.readUnsignedByte();
    		aByteArray5430 = new byte[i_1_];
    		modelIds = new int[i_1_][];
    		for (int i_2_ = 0; i_2_ < i_1_; i_2_++) {
    		    aByteArray5430[i_2_] = stream.readByte(-12558881);
    		    int i_3_ = stream.readUnsignedByte();
    		    modelIds[i_2_] = new int[i_3_];
    		    for (int i_4_ = 0; i_4_ < i_3_; i_4_++)
    			modelIds[i_2_][i_4_] = stream.readBigSmart(1235052657);
    		}
    	    //Wood Fence Prefab's x3
    	    if(anInt5365 == 36892) {  //Hay bale object id
    		        modelIds[0][0] = 71656; //Middle Fence Model ID
    		    }
    	    if(anInt5365 == 36893) { //another hay bale object id
    	        modelIds[0][0] = 71655; //Corner fence model id
    	    }
    	    if(anInt5365 == 36894) { //yet another hay bale object id
    	        modelIds[0][0] = 71657; // Diagonal fence model id
    	    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Ynneh's Avatar
    Join Date
    Mar 2010
    Posts
    2,204
    Thanks given
    146
    Thanks received
    254
    Discord
    View profile
    Rep Power
    241
    Looks like the wrong data stream. You need to pack custom models to your cache then override them by going to the object data stream, finding the ID when the definition is called for the object and overriding the model array that way. Or simply use an object editor.
    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. Grand Exchange Column Object Id? 718
    By Mephobia in forum Help
    Replies: 10
    Last Post: 02-11-2014, 01:15 AM
  2. [718] dwarf multicannon object id?
    By Bc1151 in forum Help
    Replies: 0
    Last Post: 07-18-2013, 02:17 PM
  3. Anyone know this object id? Reward tent 718
    By rockarocka in forum Help
    Replies: 2
    Last Post: 06-09-2013, 11:13 AM
  4. [718+]Object ids/Npc ids
    By Cya Forever in forum Help
    Replies: 1
    Last Post: 04-25-2013, 11:59 PM
  5. 718 Easter Fountain Object ID?
    By CamperScape in forum Help
    Replies: 2
    Last Post: 12-16-2012, 08:05 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
  •