Thread: [Vencillio] #160 data godsword animation problem

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [Vencillio] #160 data godsword animation problem 
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Hello i just packed the latest data but i still can't figure out how to fix the readvalues.. I did used Patricks readvalues & graphic values he released but it doesnt fix the issue...
    Will be amazing if someone help me out thanks!

    Late merry christmas to everyone!


    Animation.java readvalues...
    Code:
    private void readValues(Stream buffer) {
    		int opcode;
    		while ((opcode = buffer.readUnsignedByte()) != 0) {
    
    			if (opcode == 1) {
    				length = buffer.readSignedWord();
    				primary = new int[length];
    				secondary = new int[length];
    				duration = new int[length];
    				for (int i = 0; i < length; i++) {
    					primary[i] = buffer.readDWord();
    					secondary[i] = -1;
    				}
    				for (int i = 0; i < length; i++) {
    					duration[i] = buffer.readUnsignedByte();
    				}
    			} else if (opcode == 2) {
    				padding = buffer.readSignedWord();
    			} else if (opcode == 3) {
    				int length = buffer.readUnsignedByte();
    				interleaveOrder = new int[length + 1];
    				for (int i = 0; i < length; i++) {
    					interleaveOrder[i] = buffer.readUnsignedByte();
    				}
    				interleaveOrder[length] = 9999999;
    			} else if (opcode == 4) {
    				allowsRotation = true;
    			} else if (opcode == 5) {
    				priority = buffer.readUnsignedByte();
    			} else if (opcode == 6) {
    				shield = buffer.readSignedWord();
    			} else if (opcode == 7) {
    				weapon = buffer.readSignedWord();
    			} else if (opcode == 8) {
    				resetCycle = buffer.readUnsignedByte();
    			} else if (opcode == 9) {
    				runFlag = buffer.readUnsignedByte();
    			} else if (opcode == 10) {
    				priority = buffer.readUnsignedByte();
    			} else if (opcode == 11) {
    				type = buffer.readUnsignedByte();
    			} else if (opcode == 12) {
    				buffer.readDWord();
    			} else {
    				System.out.println("Error unrecognised seq config code: " + opcode);
    			}
    		}
    		if (length == 0) {
    			length = 1;
    			primary = new int[1];
    			primary[0] = -1;
    			secondary = new int[1];
    			secondary[0] = -1;
    			duration = new int[1];
    			duration[0] = -1;
    		}
    		if (runFlag == -1)
    			if (interleaveOrder != null)
    				runFlag = 2;
    			else
    				runFlag = 0;
    		if (priority == -1) {
    			if (interleaveOrder != null) {
    				priority = 2;
    				return;
    			}
    			priority = 0;
    		}
    	}
    SpotAnim.java readvalues...
    Code:
    public void readValues(Stream buffer) {
    		while (true) {
    			int opcode = buffer.readUnsignedByte();
    
    			if (opcode == 0) {
    				return;
    			} else if (opcode == 1) {
    				anInt405 = buffer.readUnsignedWord();
    			} else if (opcode == 2) {
    				anInt406 = buffer.readUnsignedWord();
    				if (Animation.anims != null) {
    					aAnimation_407 = Animation.anims[anInt406];
    				}
    			} else if (opcode == 4) {
    				anInt410 = buffer.readUnsignedWord();
    			} else if (opcode == 5) {
    				anInt411 = buffer.readUnsignedWord();
    			} else if (opcode == 6) {
    				anInt412 = buffer.readUnsignedWord();
    			} else if (opcode == 7) {
    				anInt413 = buffer.readUnsignedWord();
    			} else if (opcode == 8) {
    				anInt414 = buffer.readUnsignedWord();
    			} else if (opcode == 40) {
    				int length = buffer.readUnsignedByte();
    				for (int index = 0; index < length; index++) {
    					anIntArray408[index] = buffer.readUnsignedWord();
    					anIntArray409[index] = buffer.readUnsignedWord();
    				} 
    			} else if (opcode == 41) {
    				int length = buffer.readUnsignedByte();
    				for (int index = 0; index < length; ++index) {
    					retextureToFind[index] = buffer.readUnsignedWord();
    					retextureToReplace[index] = buffer.readUnsignedWord();
    				}
    			} else
    				System.out.println("Error graphics opcode: " + opcode);
    			}
    	}
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    You didn't add the config files then and the indexes.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by _Patrick_ View Post
    You didn't add the config files then and the indexes.
    I did...
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by replicant View Post
    I did...
    If done right it works works on several clients did for several people.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by _Patrick_ View Post
    If done right it works works on several clients did for several people.
    How much you charge for it? I gladly will pay for it as i need it urgently :///
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Oct 2011
    Posts
    2,084
    Thanks given
    0
    Thanks received
    1,043
    Rep Power
    3608
    Quote Originally Posted by replicant View Post
    How much you charge for it? I gladly will pay for it as i need it urgently :///
    these are my readvalues. idk if they're any diff but compare them to yours and use repack pat's data release. it should work fine, as they did for me.

    for seq.dat:
    Code:
    private void readValues(Stream stream) {
    		int i;
    		while ((i = stream.readUnsignedByte()) != 0) {
    
    			if (i == 1) {
    				anInt352 = stream.readUnsignedWord();
    				anIntArray353 = new int[anInt352];
    				anIntArray354 = new int[anInt352];
    				anIntArray355 = new int[anInt352];
    				for (int j = 0; j < anInt352; j++) {
    					anIntArray353[j] = stream.readDWord();
    					anIntArray354[j] = -1;
    				}
    
    				for (int j = 0; j < anInt352; j++)
    					anIntArray355[j] = 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] = 9999999;
    			} 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 if (i == 12)
    				stream.readDWord();
    			else
    				System.out.println("Error unrecognised seq config code: " + i);
    		}
    		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;
    		}
    	}
    for spotanim.dat:
    Code:
    private void readValues(Stream stream) {
    		while(true) {
    			int i = stream.readUnsignedByte();
    			if (i == 0) {
    				return;
    			}
    			if (i == 1) {
    				modelId = stream.readUnsignedWord();
    			} else if (i == 2) {
    				anInt406 = stream.readUnsignedWord();
    				if (AnimationDefinition.anims != null) {
    					aAnimation_407 = AnimationDefinition.anims[anInt406];
    				}
    			} else if (i == 4) {
    				anInt410 = stream.readUnsignedWord();
    			} else if (i == 5) {
    				anInt411 = stream.readUnsignedWord();
    			} else if (i == 6) {
    				anInt412 = stream.readUnsignedWord();
    			} else if (i == 7) {
    				anInt413 = stream.readUnsignedWord();
    			} else if (i == 8) {
    				anInt414 = stream.readUnsignedWord();
    			} else if (i == 40) {
    				int j = stream.readUnsignedByte();
    				for (int k = 0; k < j; k++) {
    					anIntArray408[k] = stream.readUnsignedWord();
    					anIntArray409[k] = stream.readUnsignedWord();
    				}
    			} else {
    				System.out.println("Error unrecognised spotanim config code: " + i);
    			}
    		}
    	}
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Omelete View Post
    these are my readvalues. idk if they're any diff but compare them to yours and use repack pat's data release. it should work fine, as they did for me.

    for seq.dat:
    Code:
    private void readValues(Stream stream) {
    		int i;
    		while ((i = stream.readUnsignedByte()) != 0) {
    
    			if (i == 1) {
    				anInt352 = stream.readUnsignedWord();
    				anIntArray353 = new int[anInt352];
    				anIntArray354 = new int[anInt352];
    				anIntArray355 = new int[anInt352];
    				for (int j = 0; j < anInt352; j++) {
    					anIntArray353[j] = stream.readDWord();
    					anIntArray354[j] = -1;
    				}
    
    				for (int j = 0; j < anInt352; j++)
    					anIntArray355[j] = 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] = 9999999;
    			} 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 if (i == 12)
    				stream.readDWord();
    			else
    				System.out.println("Error unrecognised seq config code: " + i);
    		}
    		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;
    		}
    	}
    for spotanim.dat:
    Code:
    private void readValues(Stream stream) {
    		while(true) {
    			int i = stream.readUnsignedByte();
    			if (i == 0) {
    				return;
    			}
    			if (i == 1) {
    				modelId = stream.readUnsignedWord();
    			} else if (i == 2) {
    				anInt406 = stream.readUnsignedWord();
    				if (AnimationDefinition.anims != null) {
    					aAnimation_407 = AnimationDefinition.anims[anInt406];
    				}
    			} else if (i == 4) {
    				anInt410 = stream.readUnsignedWord();
    			} else if (i == 5) {
    				anInt411 = stream.readUnsignedWord();
    			} else if (i == 6) {
    				anInt412 = stream.readUnsignedWord();
    			} else if (i == 7) {
    				anInt413 = stream.readUnsignedWord();
    			} else if (i == 8) {
    				anInt414 = stream.readUnsignedWord();
    			} else if (i == 40) {
    				int j = stream.readUnsignedByte();
    				for (int k = 0; k < j; k++) {
    					anIntArray408[k] = stream.readUnsignedWord();
    					anIntArray409[k] = stream.readUnsignedWord();
    				}
    			} else {
    				System.out.println("Error unrecognised spotanim config code: " + i);
    			}
    		}
    	}
    Thanks for the answer... Those fit well... But even when i repacked once again the seq.dat & spotanim.dat to cache.. It still does that i have no clue why omg..
    Reply With Quote  
     

  9. #8  
    Registered Member

    Join Date
    Oct 2011
    Posts
    2,084
    Thanks given
    0
    Thanks received
    1,043
    Rep Power
    3608
    Quote Originally Posted by replicant View Post
    Thanks for the answer... Those fit well... But even when i repacked once again the seq.dat & spotanim.dat to cache.. It still does that i have no clue why omg..
    you sure you're packing them correctly? if you're using tom's suite; load cache > edit jagex archieves > config.jag > locate seq and spotanim > replace > locate pat's files > ok > repack. then, you need to repack the .gz animation files using the repack method in your client.
    Reply With Quote  
     

  10. #9  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Omelete View Post
    you sure you're packing them correctly? if you're using tom's suite; load cache > edit jagex archieves > config.jag > locate seq and spotanim > replace > locate pat's files > ok > repack. then, you need to repack the .gz animation files using the repack method in your client.
    Always been packing all data by myself i know how to do it used this release but the anim is still fucked up if you will have time to take a look it will be awesome because im confused :// thanks for trying to help
    Reply With Quote  
     

  11. #10  
    Donator

    i dds you's Avatar
    Join Date
    Jun 2013
    Posts
    831
    Thanks given
    678
    Thanks received
    160
    Rep Power
    92
    Quote Originally Posted by Omelete View Post
    you sure you're packing them correctly? if you're using tom's suite; load cache > edit jagex archieves > config.jag > locate seq and spotanim > replace > locate pat's files > ok > repack. then, you need to repack the .gz animation files using the repack method in your client.
    This is so weird, How you explained is exactly how I pack any data.. All the other new animations work fine too, feel like an idiot lmao

    appreciate seeing replies on this thread, hopefully we'll get a breakthrough soon

    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 57
    Last Post: 05-21-2018, 04:06 AM
  2. Vencillio 160 Data (2H Animations Issue)
    By i dds you in forum Help
    Replies: 1
    Last Post: 02-02-2018, 11:46 PM
  3. 154 Data Godsword Animations
    By klaasvaakjes in forum Help
    Replies: 8
    Last Post: 10-22-2017, 10:18 AM
  4. Replies: 0
    Last Post: 06-18-2016, 06:32 PM
  5. Animation problem (godsword special)
    By pro banana in forum Help
    Replies: 1
    Last Post: 01-21-2010, 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
  •