bump
|
|
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
bump
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:
Now search for: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; } }
Scroll down a bit until you find:Code:void startUp()
Under that add this:Code:} try {
Save and compile. (Don't close client.java or run the client yet)Code:AddModels();
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)
Replace it with:Code:AddModels();
Save and compile.Code://AddModels();
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.
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:
Open up ModelDecompressor.java and add this: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; } }
Save.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(); } }
Next open up Animations.java and find:
Replace the entire void with this:Code:public void readValues(Stream stream)
Save.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; } }
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:
Above it add:Code:Unpacking media
Next find:Code:ModelDecompressor.load602gfx(); Class36.loadSkins(); Class36.loadFrames();
And delete it or replace it with:Code:if(onDemandData.dataType == 1 && onDemandData.buffer != null) Class36.method529(onDemandData.buffer);
Save.Code://if(onDemandData.dataType == 1 && onDemandData.buffer != null) //Class36.method529(onDemandData.buffer);
Credits:
Xaves - seq.dat and readvalue code.
Psyche - Files & edit.
Monster - Almost everything!
Me - Posting this.
Wow, you released everything for free![]()
get a new model header
Needed this too lmao. Thanks.
| « Paying for high-score fix | Paying $5 for webclient » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |