Thread: buying 317 server item models.

Results 1 to 7 of 7
  1. #1 buying 317 server item models. 
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    665
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    i have a oldschool 317 source ,I want to add the models for more up to date items all the updated items in my item.cfg list. (up to the godwars era).


    I need all godwars gear, skill capes, Torso's deffenders, avas, dfs, Ect..

    my problem is when i add new models and ints my client doesnt run anymore because the raw folders are to high + it would take me to long to do each one in the itemdef so i need it done for all of them at once...

    I can pay 20m rsgp for this
    w/animations for godswords, c bows, dfs ect
    I can pay 30m


    i will only 50\50 if you prove you can add what i need and are trusted. otherwise you must do work first add me on skype Eddispro
    Reply With Quote  
     

  2. #2  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    665
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2012
    Posts
    269
    Thanks given
    155
    Thanks received
    78
    Rep Power
    50
    Here's a step-by-step guide on how to do what you requested.

    1. First you must make a backup of your cache.

    2. Open up client.java (Client sided)

    Inside add these methods:

    Code:
    public void AddModels() {
    		for (int ModelIndex = 0; ModelIndex < 70000; ModelIndex++) {
    			byte[] abyte0 = addModel(ModelIndex);
    			if (abyte0 != null && abyte0.length > 0) {
    				decompressors[1].method234(abyte0.length, abyte0, ModelIndex);
    				pushMessage("Model added successfully!", 0, "");
    			}
    		}
    	}
    
    	public byte[] addModel(int Index) {
    		try {
    			File Model = new File(signlink.findcachedir() + "/Raw/" + Index
    					+ ".gz");
    			byte[] aByte = new byte[(int) Model.length()];
    			FileInputStream fis = new FileInputStream(Model);
    			fis.read(aByte);
    			pushMessage("aByte = [" + aByte + "]!", 0, "");
    			fis.close();
    			return aByte;
    		} catch (Exception e) {
    			return null;
    		}
    	}
    Now search for:
    Code:
    void startUp()
    Scroll down a bit until you find:
    Code:
    } try {
    Under that add this:
    Code:
    AddModels();
    Save and compile. (Don't close client.java or run the client yet)

    2. Download the 667 item models by clicking the link below. Put all the .gz files inside your "Raw" folder.
    [Only registered and activated users can see links. ]

    3. You'll need download the obj.dat and obj.idx for the 667 items. Here's the link to it:
    [Only registered and activated users can see links. ]

    - Once downloaded, extract the obj.dat and obj.idx and put then in your documents folder.

    4. Now you'll need to download Toms cache suite from the link below:
    [Only registered and activated users can see links. ]

    4. Open Toms suite.jar and click on "File" and choose "Load cache..." Select your cache folder and click "Open". Once its loaded click "View/edit Jagex archives" -> Now choose "config.jag" -> When the next screen appears select "Obj.dat" from the list and click "Replace file" now choose the obj.dat you downloaded and it will replace it for you. Next find obj.idx and click "Replace file" and hoose the obj.idx which you downloaded and it will replace it. Now click "Repack archive" and it will tell you its been updated.

    5. Now run your client - > It will take 1-2 minutes to load, if you look on the command prompt, you'll see all the item models being added. Once its complete go back to client.java and find:
    (THIS IS WHAT YOU ADDED ABOVE)
    Code:
    AddModels();
    Replace it with:
    Code:
    //AddModels();
    Save and compile.

    6. Delete all .gz files from the "Raw" folder.

    7. Finally download the 732 item.cfg from here:
    [Only registered and activated users can see links. ]
    -Replace it with the one your currently loading in your server.

    You're done! If you still have problems post here, maybe someone can help.

    Credits:
    + Me for writing this and for the item.cfg.
    + Peanut for 667 obj.dat and obj.idx
    + Miner for 667 item models
    + K4range for Toms Suite (Any size)
    + Someone from Rune-Server for adding models code.
    Reply With Quote  
     

  4. Thankful users:


  5. #4  
    Registered Member
    Join Date
    Jan 2012
    Posts
    269
    Thanks given
    155
    Thanks received
    78
    Rep Power
    50
    ADDING NEW ANIMATIONS/GFXS - I'm NOT SURE IF THIS WILL WORK SO BACKUP YOUR CACHE AND FILES YOUR EDITING!

    Open up class36.java and this method:
    Code:
    
    	public static void loadSkins() {
    		Stream stream = new Stream(FileOperations.ReadFile(signlink.findcachedir() + "Data/ANIMS/Skins.dat"));
    		int numSkins = stream.g2();
    		skinData = new byte[numSkins][];
    
    		for(int i = 0; i < numSkins; i++)
    		{
    			int fileID = stream.g2();
    			int compressedSize = stream.g4();
    			byte[] compressedData = stream.getData(new byte[compressedSize]);
    			byte[] decompressedData = JavaUncompress.decompress(compressedData);
    			skinData[fileID] = decompressedData;
    		}
    	}
    
    	public static void loadFrames() {
    		Stream stream = new Stream(FileOperations.ReadFile(signlink.findcachedir() + "Data/ANIMS/Frames.dat"));
    		int numFrames = stream.g2();
    		frameData = new byte[numFrames][];
    
    		for(int i = 0; i < numFrames; i++)
    		{
    			int fileID = stream.g2();
    			int compressedSize = stream.g4();
    			byte[] compressedData = stream.getData(new byte[compressedSize]);
    			byte[] decompressedData = JavaUncompress.decompress(compressedData);
    			frameData[fileID] = decompressedData;
    		}
    
    	}
    Open up ModelDecompressor.java and add this:

    Code:
    public static void load602gfx() {
    		try {
    			DataInputStream indexFile = new DataInputStream(new FileInputStream(signlink.findcachedir()+ "Data/GFX/602gfx.idx"));
    			DataInputStream dataFile = new DataInputStream(new FileInputStream(signlink.findcachedir()+ "Data/GFX/602gfx.dat"));
    			int length = indexFile.readInt();
    			for(int i = 0; i < length; i++) {
    				int id = indexFile.readInt();
    				int invlength = indexFile.readInt();
    				byte[] data = new byte[invlength];
    				dataFile.readFully(data);
    				Model.method460(data, id);
    			}
    			indexFile.close();
    			dataFile.close();
    		} catch (Exception e) {
    			e.printStackTrace();
    		}
    	}
    Save.

    Next open up Animations.java and find:

    Code:
    public void readValues(Stream stream)
    Replace the entire void with this:
    Code:
    public void readValues(Stream stream)
    	{
    		do {
    			int i = stream.readUnsignedByte();
    			if(i == 0)
    				break;
    			if(i == 1) {
    				anInt352 = stream.readUnsignedWord();
    				anIntArray353 = new int[anInt352];
    				anIntArray354 = new int[anInt352];
    				anIntArray355 = new int[anInt352];
    				for(int i_ = 0; i_ < anInt352; i_++){
    					anIntArray353[i_] = stream.readDWord();
    					anIntArray354[i_] = -1;
    				}
    				for(int i_ = 0; i_ < anInt352; i_++)
    					anIntArray355[i_] = stream.readUnsignedByte();
    			}
    			else if(i == 2)
    				anInt356 = stream.readUnsignedWord();
    			else if(i == 3) {
    				int k = stream.readUnsignedByte();
    				anIntArray357 = new int[k + 1];
    				for(int l = 0; l < k; l++)
    					anIntArray357[l] = stream.readUnsignedByte();
    				anIntArray357[k] = 0x98967f;
    			}
    			else if(i == 4)
    				aBoolean358 = true;
    			else if(i == 5)
    				anInt359 = stream.readUnsignedByte();
    			else if(i == 6)
    				anInt360 = stream.readUnsignedWord();
    			else if(i == 7)
    				anInt361 = stream.readUnsignedWord();
    			else if(i == 8)
    				anInt362 = stream.readUnsignedByte();
    			else if(i == 9)
    				anInt363 = stream.readUnsignedByte();
    			else if(i == 10)
    				anInt364 = stream.readUnsignedByte();
    			else if(i == 11)
    				anInt365 = stream.readUnsignedByte();
    			else 
    				System.out.println("Unrecognized seq.dat config code: "+i);
    		} while(true);
    		if(anInt352 == 0)
    		{
    			anInt352 = 1;
    			anIntArray353 = new int[1];
    			anIntArray353[0] = -1;
    			anIntArray354 = new int[1];
    			anIntArray354[0] = -1;
    			anIntArray355 = new int[1];
    			anIntArray355[0] = -1;
    		}
    		if(anInt363 == -1)
    			if(anIntArray357 != null)
    				anInt363 = 2;
    			else
    				anInt363 = 0;
    		if(anInt364 == -1)
    		{
    			if(anIntArray357 != null)
    			{
    				anInt364 = 2;
    				return;
    			}
    			anInt364 = 0;
    		}
    	}
    Save.

    Download the pack below and open it:
    [Only registered and activated users can see links. ]
    This will contains the following files/folder
    +GFX (Folder)
    +ANIMS (Folder)
    +Class18 (File)
    +Seq.dat (File)
    +Spotanim.dat (File)

    - Now in your cache folder create another folder called "Data" and put the "GFX" and "ANIMS" folder
    inside there.
    - Now add class18 to your client java files.
    - Next you'll need to use Toms Cache Suite. Load your cache and click "View/Edit Jagex Archives" and now
    select "config.jag" and when the next screen appears click "seq.dat" then click "Replace file"
    choose the "seq.dat" you downloaded and it should replace the file. Next find "spotanim.dat" and
    click "Replace file" and choose the "spotanim.dat" you downloaded and then click "Repack Archive".



    Open up client.java and find:

    Code:
    Unpacking media
    Above it add:
    Code:
    ModelDecompressor.load602gfx();
    Class36.loadSkins();
    Class36.loadFrames();
    Next find:
    Code:
    if(onDemandData.dataType == 1 && onDemandData.buffer != null)
    Class36.method529(onDemandData.buffer);
    And delete it or replace it with:
    Code:
    //if(onDemandData.dataType == 1 && onDemandData.buffer != null)
    //Class36.method529(onDemandData.buffer);
    Save.

    Credits:
    Xaves - seq.dat and readvalue code.
    Psyche - Files & edit.
    Monster - Almost everything!
    Me - Posting this.
    Reply With Quote  
     

  6. Thankful users:


  7. #5  
    Registered Member
    Join Date
    May 2012
    Posts
    74
    Thanks given
    27
    Thanks received
    10
    Rep Power
    7
    Wow, you released everything for free
    Reply With Quote  
     

  8. #6  
    Registered Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks given
    1
    Thanks received
    0
    Rep Power
    60
    get a new model header
    Reply With Quote  
     

  9. #7  
    Registered Member
    Join Date
    Jun 2012
    Posts
    31
    Thanks given
    13
    Thanks received
    6
    Rep Power
    11
    Needed this too lmao . Thanks.
    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. 317 Delta server - item max
    By VERD in forum Help
    Replies: 3
    Last Post: 07-07-2012, 07:52 AM
  2. Need Help Adding Item Models-317-PI
    By ZanarisPk in forum Help
    Replies: 2
    Last Post: 05-02-2011, 07:56 AM
  3. Replies: 1
    Last Post: 05-21-2010, 01:17 AM
  4. Replies: 1
    Last Post: 10-15-2009, 05:07 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •