Thread: Ruse Model Adding

Results 1 to 5 of 5
  1. #1 Ruse Model Adding 
    Learning...

    Mathy's Avatar
    Join Date
    Jul 2013
    Posts
    224
    Thanks given
    28
    Thanks received
    11
    Rep Power
    82
    Hey,

    How would I go on to add an item to a Ruse based server, let's say a twisted bow. I have the models in .gz and I have the cache editor. What else would I need and how can I pack the cache, etc, etc..

    I checked Galkon's way to pack the cache without a cache packer, but I get a bunch of errors because of some missing classes.

    Please help me
    [Only registered and activated users can see links. ]

    Spoiler for Vouches:
    Quote Originally Posted by StrayDog View Post
    Thanks Mathy for helping me with my server
    Quote Originally Posted by triscool1987 View Post
    Great Help, thanks Mathy_!
    Reply With Quote  
     

  2. #2  
    Registered Gangster

    Gandalf's Avatar
    Join Date
    Nov 2011
    Age
    70
    Posts
    710
    Thanks given
    31
    Thanks received
    189
    Rep Power
    1666
    1) Create an index1 folder in your cache
    2) Place .gz files into an index1 folder.
    3) Open client.java, find and uncomment //repackCacheIndex(1); ( removing the // )
    4) Code the models in client-side itemdefinitions.java
    5) Start the client and spawn the item in-game
    6) Code them in server side item.txt & other places such as weaponanimations, weaponinterfaces, etc. (file names will differ from base to base)

    Spoiler for spoiler:


    All ruse base should have the Galkon index packing method as far as I'm aware. Good luck!
    Reply With Quote  
     

  3. #3  
    Learning...

    Mathy's Avatar
    Join Date
    Jul 2013
    Posts
    224
    Thanks given
    28
    Thanks received
    11
    Rep Power
    82
    Quote Originally Posted by Freshmeat View Post
    1) Create an index1 folder in your cache
    2) Place .gz files into an index1 folder.
    3) Open client.java, find and uncomment //repackCacheIndex(1); ( removing the // )
    4) Code the models in client-side itemdefinitions.java
    5) Start the client and spawn the item in-game
    6) Code them in server side item.txt & other places such as weaponanimations, weaponinterfaces, etc. (file names will differ from base to base)

    Spoiler for spoiler:


    All ruse base should have the Galkon index packing method as far as I'm aware. Good luck!
    I added all of Galkon's exact methods for repacking, of course changing some stuff so it fits, but now I get:
    Code:
    Started repacking index 1.
    Error packing cache index 1.
    Finished repacking 1.
    Since the console doesn't say much, I don't know what to do. Here's the method to repack, I'm using a Ruse source btw.
    Code:
    
    	public void repackCacheIndex(int cacheIndex) {
    		System.out.println("Started repacking index " + cacheIndex + ".");
    		int indexLength = new File(indexLocation(cacheIndex, -1)).listFiles().length;
    		File[] file = new File(indexLocation(cacheIndex, -1)).listFiles();
    		try {
    			for (int index = 0; index < indexLength; index++) {
    				int fileIndex = Integer.parseInt(getFileNameWithoutExtension(file[index].toString()));
    				byte[] data = fileToByteArray(cacheIndex, fileIndex);
    				if(data != null && data.length > 0) {
    					decompressors[cacheIndex].method234(data.length, data, fileIndex);
    					System.out.println("Repacked " + fileIndex + ".");
    				} else {
    					System.out.println("Unable to locate index " + fileIndex + ".");
    				}
    			}
    		} catch(Exception e) {
    			System.out.println("Error packing cache index " + cacheIndex + ".");
    		}
    		System.out.println("Finished repacking " + cacheIndex + ".");
    	}
    [Only registered and activated users can see links. ]

    Spoiler for Vouches:
    Quote Originally Posted by StrayDog View Post
    Thanks Mathy for helping me with my server
    Quote Originally Posted by triscool1987 View Post
    Great Help, thanks Mathy_!
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Mar 2018
    Posts
    17
    Thanks given
    11
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Mathy View Post
    I added all of Galkon's exact methods for repacking, of course changing some stuff so it fits, but now I get:
    Code:
    Started repacking index 1.
    Error packing cache index 1.
    Finished repacking 1.
    Since the console doesn't say much, I don't know what to do. Here's the method to repack, I'm using a Ruse source btw.
    Code:
    
    	public void repackCacheIndex(int cacheIndex) {
    		System.out.println("Started repacking index " + cacheIndex + ".");
    		int indexLength = new File(indexLocation(cacheIndex, -1)).listFiles().length;
    		File[] file = new File(indexLocation(cacheIndex, -1)).listFiles();
    		try {
    			for (int index = 0; index < indexLength; index++) {
    				int fileIndex = Integer.parseInt(getFileNameWithoutExtension(file[index].toString()));
    				byte[] data = fileToByteArray(cacheIndex, fileIndex);
    				if(data != null && data.length > 0) {
    					decompressors[cacheIndex].method234(data.length, data, fileIndex);
    					System.out.println("Repacked " + fileIndex + ".");
    				} else {
    					System.out.println("Unable to locate index " + fileIndex + ".");
    				}
    			}
    		} catch(Exception e) {
    			System.out.println("Error packing cache index " + cacheIndex + ".");
    		}
    		System.out.println("Finished repacking " + cacheIndex + ".");
    	}
    hit me your discord i could help you.
    Reply With Quote  
     

  5. #5  
    Learning...

    Mathy's Avatar
    Join Date
    Jul 2013
    Posts
    224
    Thanks given
    28
    Thanks received
    11
    Rep Power
    82
    Still need help!
    [Only registered and activated users can see links. ]

    Spoiler for Vouches:
    Quote Originally Posted by StrayDog View Post
    Thanks Mathy for helping me with my server
    Quote Originally Posted by triscool1987 View Post
    Great Help, thanks Mathy_!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Model Adding Help
    By tinosk in forum Help
    Replies: 0
    Last Post: 01-25-2009, 12:46 PM
  2. My own model adding bug..
    By Software in forum Help
    Replies: 8
    Last Post: 10-13-2008, 07:20 AM
  3. Replies: 7
    Last Post: 07-25-2008, 10:34 AM
  4. My Attempt at Model Adding - So far, So Good.
    By Zamorak Zxt in forum RS2 Client
    Replies: 20
    Last Post: 10-01-2007, 09:05 PM
  5. [TUT] Model adding to cache - Adv
    By Kevy in forum Tutorials
    Replies: 73
    Last Post: 08-31-2007, 04:13 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
  •