Thread: Update ReadValues

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Update ReadValues 
    Registered Member
    Join Date
    Apr 2016
    Posts
    41
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Hey, i posted 2 other post about packing data. Like i said before i am new to this stuff and the error i got is my readvalues are wrong. As i am new i don't know to to fix it or make it right. If anyone could help with with this it would be much appreciated.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jul 2018
    Posts
    152
    Thanks given
    37
    Thanks received
    15
    Rep Power
    0
    Could you provide more information please?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    41
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by EEAZY View Post
    Could you provide more information please?
    This is the Error i get when i try to run the client.

    Errjava.lang.ArrayIndexOutOfBoundsException: 1025068
    at com.client.Stream.readDWord(Stream.java:253)
    at com.client.definitions.AnimationDefinition.readVal ues(AnimationDefinition.java:566)
    at com.client.definitions.AnimationDefinition.unpackC onfig(AnimationDefinition.java:17)
    at com.client.Client.startUp(Client.java:10597)
    at com.client.RSApplet.run(RSApplet.java:218)
    at com.client.Client.run(Client.java:6129)
    at java.lang.Thread.run(Unknown Source)
    or unrecognised seq config code: 141
    Error: loaderror Unpacking config 83



    And i guess these are my readvalues.

    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;
    		}
    	}
    R-S Mod Response  spooky
    formatted code
    Last edited by Spooky; 02-13-2019 at 05:51 PM.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jul 2018
    Posts
    152
    Thanks given
    37
    Thanks received
    15
    Rep Power
    0
    Quote Originally Posted by Frikk View Post
    This is the Error i get when i try to run the client.

    Errjava.lang.ArrayIndexOutOfBoundsException: 1025068
    at com.client.Stream.readDWord(Stream.java:253)
    at com.client.definitions.AnimationDefinition.readVal ues(AnimationDefinition.java:566)
    at com.client.definitions.AnimationDefinition.unpackC onfig(AnimationDefinition.java:17)
    at com.client.Client.startUp(Client.java:10597)
    at com.client.RSApplet.run(RSApplet.java:218)
    at com.client.Client.run(Client.java:6129)
    at java.lang.Thread.run(Unknown Source)
    or unrecognised seq config code: 141
    Error: loaderror Unpacking config 83



    And i guess these are my readvalues.


    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;
    }
    }
    What base, rev?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2016
    Posts
    41
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by EEAZY View Post
    What base, rev?



    This is the Ascend base, i've done a few things to it, but here is the link to the Whole thing.

    [Only registered and activated users can see links. ]

    I know this is a shit base but i am just learning on atm. Thanks
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Registered Member
    Im Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    782
    Thanks given
    335
    Thanks received
    154
    Rep Power
    303
    I posted the updated readValues for AnimationDefintions directly from a 177 deob

    [Only registered and activated users can see links. ]

    Code:
    Errjava.lang.ArrayIndexOutOfBoundsException: 1025068
    One of your buffers is wrong perhaps.


    A creative man is motivated by the desire to achieve, not by the desire to beat others.


    ― Ayn Rand
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2016
    Posts
    41
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Im Melvin View Post
    I posted the updated readValues for AnimationDefintions directly from a 177 deob

    [Only registered and activated users can see links. ]

    Code:
    Errjava.lang.ArrayIndexOutOfBoundsException: 1025068
    One of your buffers is wrong perhaps.

    Could i just copy and past that into my AnimationDefinition.java?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Jul 2018
    Posts
    152
    Thanks given
    37
    Thanks received
    15
    Rep Power
    0
    Quote Originally Posted by Frikk View Post
    Could i just copy and past that into my AnimationDefinition.java?
    I don't think so.

    I may be wrong, just sucks having random names with no actual indication of what they mean for me. Its not the math, its just those random names.

    But, maybe someone here knows what it means exactly to be able to help. Not sure.

    Example

    anInt352
    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;
    Edit: Screw it, I'm gonna remove bits of code from my client just to see what it breaks.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member
    Join Date
    Apr 2016
    Posts
    41
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by EEAZY View Post
    I don't think so.

    I may be wrong, just sucks having random names with no actual indication of what they mean for me. Its not the math, its just those random names.

    But, maybe someone here knows what it means exactly to be able to help. Not sure.
    I hope someone could help me, as i have no clue what to do. Thanks for your help anyways.

    Quote Originally Posted by EEAZY View Post
    I don't think so.

    I may be wrong, just sucks having random names with no actual indication of what they mean for me. Its not the math, its just those random names.

    But, maybe someone here knows what it means exactly to be able to help. Not sure.

    Example



    Edit: Screw it, I'm gonna remove bits of code from my client just to see what it breaks.
    Mine is the exact same.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  11. Thankful user:


  12. #10  
    Registered Member
    Im Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    782
    Thanks given
    335
    Thanks received
    154
    Rep Power
    303
    Quote Originally Posted by EEAZY View Post
    I don't think so.

    I may be wrong, just sucks having random names with no actual indication of what they mean for me. Its not the math, its just those random names.

    But, maybe someone here knows what it means exactly to be able to help. Not sure.

    Example



    Edit: Screw it, I'm gonna remove bits of code from my client just to see what it breaks.


    Quote Originally Posted by Frikk View Post
    I hope someone could help me, as i have no clue what to do. Thanks for your help anyways.



    Mine is the exact same.

    Damn you guys are so clueless lmao. Compare the readValues i posted to yours and convert the buffers (stream.) to your servers naming, and you'll be fine. dont comment stuff out lol.


    A creative man is motivated by the desire to achieve, not by the desire to beat others.


    ― Ayn Rand
    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)

Similar Threads

  1. Buying updated readvalues for OSV/EXOTIC
    By Dead Nub in forum Buying
    Replies: 0
    Last Post: 07-04-2018, 10:07 PM
  2. packing data and updating readvalues.
    By vvaved in forum Buying
    Replies: 0
    Last Post: 05-11-2018, 02:09 AM
  3. Marius MegaPack v1.1 (Updated)
    By Chimeric in forum Tools
    Replies: 19
    Last Post: 08-01-2007, 02:34 AM
  4. SOTM III Update
    By Bullet in forum General
    Replies: 2
    Last Post: 03-28-2007, 06:20 PM
  5. Replies: 0
    Last Post: 12-26-2006, 06:36 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
  •