Thread: SEQ.dat rewriter

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1 SEQ.dat rewriter 
    Member SEQ.dat rewriter Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    32
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    What this does:
    This class rewrites all the animations, including custom hardcoded animations, into the original RuneScape animation sequence file format. After you have used it you are left with a file called "seq.dat", pack that back into the cache using Tom's cache packer and your done. Compile and re-run your client.

    NOTE: I wrote this in a text file while writing this thread, i havn't checked it, there could be a simple error such as a miss spelling of an integer name or something, if there is a problem please post it and i will rectify it as soon as possible.

    Well, basically make a new class called;

    Animation_rewrite.java

    Inside;

    Animation_rewrite.java
    Code:
    import java.io.DataOutputStream;
    import java.io.FileOutputStream;
    
    public class Animation_rewrite {
    
    	public Animation_rewrite() throws java.io.IOException
    	{
    		DataOutputStream out = new DataOutputStream(new FileOutputStream("./seq.dat"));
    		out.writeWord(Animation.anims.length);
    		for (Animation animation : Animation.anims)
    		{
    			if(animation.anIntArray353 == null)
    			{
    				out.writeByte(0);
    				continue;
    			}
    			out.writeByte(1);
    			out.writeByte((animation.anInt352 == -1 ? 0 : animation.anInt352));
    			for (int index = 0; index < animation.anInt352; index++)
    			{
    				out.writeShort(animation.anIntArray353[index]);
    				out.writeShort((animation.anIntArray354[index] == -1 ? 65535 : animation.anIntArray354[index]));
    				out.writeShort(animation.anIntArray355[index]);
    			}
    			if(animation.anInt356 != -1)
    			{
    				out.writeByte(2);
    				out.writeShort(animation.anInt356);
    			}
    			if(animation.anIntArray357 != null)
    			{
    				out.writeByte(3);
    				out.writeByte((animation.anIntArray357.length - 1));
    				for (int index = 0; index < (animation.anIntArray357.length - 1); index++)
    					out.writeByte(animation.anIntArray357[index]);
    			}
    			if(animation.aBoolean358)
    				out.writeByte(4);
    			if(animation.anInt359 != -1)
    			{
    				out.writeByte(5);
    				out.writeByte(animation.anInt359);
    			}
    			if(animation.anInt360 != -1)
    			{
    				out.writeByte(6);
    				out.writeShort(animation.anInt360);
    			}
    			if(animation.anInt361 != -1)
    			{
    				out.writeByte(7);
    				out.writeShort(animation.anInt361);
    			}
    			if(animation.anInt362 != -1)
    			{
    				out.writeByte(8);
    				out.writeByte(animation.anInt362);
    			}
    			if(animation.anInt363 != -1)
    			{
    				out.writeByte(9);
    				out.writeByte(animation.anInt362);
    			}
    			if(animation.anInt364 != -1)
    			{
    				out.writeByte(10);
    				out.writeByte(animation.anInt362);
    			}
    			if(animation.anInt365 != -1)
    			{
    				out.writeByte(11);
    				out.writeByte(animation.anInt362);
    			}
    			out.writeByte(0);
    		}
                                    out.close();
    	}
    
    }
    Now, in your animation class go to;

    Code:
    unpackConfig(StreamLoader)
    Now, before the last closing bracket add this;

    Code:
    try {
    		new Animation_rewrite();
    	} catch(java.io.IOException io) {
    		io.printStackTrace();
    	}
    Now you should be left with a file called;

    "seq.dat" in your client directory, use Tom's cache suite to pack this into the cache, then remove all hardcoding from the Animation class and restart your client.


    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Member

    Join Date
    May 2008
    Posts
    1,288
    Thanks given
    50
    Thanks received
    92
    Rep Power
    0
    Thanks a lot
    Edit: Testing now.

    Typos:
    Code:
    anInt355[index]
    should be
    anIntArray355[index]
    --
    cache.writeByte(0);
    should be
    out.writeByte(0);
    Errors:
    Code:
    java.io.IOException: Write error
            at java.io.FileOutputStream.write(Native Method)
            at java.io.DataOutputStream.writeByte(Unknown Source)
            at Animation_rewrite.<init>(Animation_rewrite.java:16)
    Code:
    out.writeByte(1);
    Gave the error for some reason..
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    Registered Member

    Join Date
    Sep 2007
    Age
    30
    Posts
    523
    Thanks given
    0
    Thanks received
    2
    Rep Power
    89
    I was going to do this, but didn't have the time. It's really simple. Btw, shouldn't this go in config b/c this isn't really a tool (compared to the other tools here).
    Computer Specs:

    Operating System: Windows 7 Home Premium 64-bit
    Processor: AMD Athlon(tm) II X4 620 Processor, ~2.6GHz
    Memory: 6GB RAM
    HDD: 1Tb
    Mobo Chipset: NVIDIA GeForce 9100
    Graphics Card: Galaxy GeForce GTS 450
    Reply With Quote  
     

  6. Thankful user:


  7. #4  
    Community Veteran

    WH:II:DOW's Avatar
    Join Date
    Dec 2007
    Age
    34
    Posts
    2,017
    Thanks given
    145
    Thanks received
    872
    Rep Power
    4275
    Aww, I was trying to do this and it didn't work , I was doing writeByte() instead of writeShort() . Tyvm .

    EDIT: need to spread the Karma before giving it to you .
    Reply With Quote  
     

  8. Thankful user:


  9. #5  
    Registered Member
    Jammy780's Avatar
    Join Date
    May 2008
    Posts
    1,319
    Thanks given
    13
    Thanks received
    47
    Rep Power
    619
    Cool, i'll test it later. Thanks
    Reply With Quote  
     

  10. Thankful user:


  11. #6  
    Codex
    Rowan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    1,593
    Thanks given
    0
    Thanks received
    20
    Rep Power
    1092
    usefull zee, thanks for this.
    Reply With Quote  
     

  12. Thankful user:


  13. #7  
    Member SEQ.dat rewriter Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    32
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Class fixed, thanks badreligion for pointing out typo's.


    Reply With Quote  
     

  14. Thankful user:


  15. #8  
    Registered Member
    Pilldom's Avatar
    Join Date
    Sep 2007
    Posts
    1,298
    Thanks given
    24
    Thanks received
    221
    Rep Power
    164
    OOO very nice Zee Best.
    Reply With Quote  
     

  16. Thankful user:


  17. #9  
    SEQ.dat rewriter



    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    16,307
    Thanks given
    7,215
    Thanks received
    12,308
    Rep Power
    5000
    Very nice, and good its refactored. Now I will add it for my animations

    Attached image
    Reply With Quote  
     

  18. Thankful user:


  19. #10  
    Banned
    Join Date
    Sep 2006
    Posts
    375
    Thanks given
    0
    Thanks received
    3
    Rep Power
    0
    Other than this...
    Code:
    .\Java\Animation_rewrite.java:22: anIntArray355 has private access in Animation
                                    out.writeShort(animation.anIntArray355[index]);
                                                            ^
    1 error
    Everything worked well
    Reply With Quote  
     

  20. Thankful user:


Page 1 of 5 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •