Thread: Packing 143 cache error please help

Results 1 to 3 of 3
  1. #1 Packing 143 cache error please help 
    Registered Member
    Join Date
    Feb 2014
    Posts
    30
    Thanks given
    9
    Thanks received
    5
    Rep Power
    8
    Code:
    Error unrecognised seq config code: 109
    Error unrecognised seq config code: 197
    Error unrecognised seq config code: 25
    Error unrecognised seq config code: 81
    Error unrecognised seq config code: 46
    java.lang.ArrayIndexOutOfBoundsException: 760839
    Error: loaderror Unpacking config 86
    	at Stream.readUnsignedWord(Stream.java:137)
    	at Animation.readValues(Animation.java:56)
    	at Animation.unpackConfig(Animation.java:12)
    	at Client.startUp(Client.java:8717)
    	at RSApplet.run(RSApplet.java:113)
    	at Client.run(Client.java:5593)
    	at java.lang.Thread.run(Unknown Source)
    It keeps crashing everytime i load the client.

    Here is the code from stream
    Code:
    public int readUnsignedWord() {
    		currentOffset += 2;
    		return ((buffer[currentOffset - 2] & 0xff) << 8) + (buffer[currentOffset - 1] & 0xff);
    	}
    Here is the runValues from Animation.java
    Code:
    private void readValues(Stream stream) {
    		do {
    			int i = stream.readUnsignedByte();
    			if(i == 0)
    				break;
    			if (i == 1) {
    				frameCount = stream.readUnsignedWord();
    				frameIDs = new int[frameCount];
    				frameIDs2 = new int[frameCount];
    				delays = new int[frameCount];
    				for (int j = 0; j < frameCount; j++) {
    					frameIDs[j] = stream.readUnsignedWord();
    					frameIDs2[j] = -1;
    				}
    				for (int j = 0; j < frameCount; j++)
    					delays[j] = stream.readUnsignedByte();
    			} else if (i == 2)
    				loopDelay = stream.readUnsignedWord();
    			else if (i == 3) {
    				int k = stream.readUnsignedByte();
    				animationFlowControl = new int[k + 1];
    				for (int l = 0; l < k; l++)
    					animationFlowControl[l] = stream.readUnsignedByte();
    				animationFlowControl[k] = 9999999;
    			} else if (i == 4)
    				oneSquareAnimation = true;
    			else if (i == 5)
    				forcedPriority = stream.readUnsignedByte();
    			else if (i == 6)
    				leftHandItem = stream.readUnsignedWord();
    			else if (i == 7)
    				rightHandItem = stream.readUnsignedWord();
    			else if (i == 8)
    				frameStep = stream.readUnsignedByte();
    			else if (i == 9)
    				resetWhenWalk = stream.readUnsignedByte();
    			else if (i == 10)
    				priority = stream.readUnsignedByte();
    			else if (i == 11)
    				delayType = stream.readUnsignedByte();
    			else
    				System.out.println("Error unrecognised seq config code: " + i);
    		} while(true);
    		if (frameCount == 0) {
    			frameCount = 1;
    			frameIDs = new int[1];
    			frameIDs[0] = -1;
    			frameIDs2 = new int[1];
    			frameIDs2[0] = -1;
    			delays = new int[1];
    			delays[0] = -1;
    		}
    		if (resetWhenWalk == -1)
    			if (animationFlowControl != null)
    				resetWhenWalk = 2;
    			else
    				resetWhenWalk = 0;
    		if (priority == -1) {
    			if (animationFlowControl != null) {
    				priority = 2;
    				return;
    			}
    			priority = 0;
    		}
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2017
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I have the same exact error, anyone have any ideas?
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    This is from a client with 143 data but repack the seq or try another osrs seq version.

    Readvalue
    Code:
     
    
    	private void readValues(Buffer stream) {
    		int i;
    		while ((i = stream.readUnsignedByte()) != 0){
    
    
    			if (i == 1) {
    				frameCount = stream.readUShort();
    				primaryFrames = new int[frameCount];
    				secondaryFrames = new int[frameCount];
    				durations = new int[frameCount];
    				for (int j = 0; j < frameCount; j++) {
    					primaryFrames[j] = stream.readInt();
    					secondaryFrames[j] = -1;
    				}
    
    
    				for (int j = 0; j < frameCount; j++)
    					durations[j] = stream.readUnsignedByte();
    
    			} else if (i == 2)
    				loopOffset = stream.readUShort();
    			else if (i == 3) {
    				int k = stream.readUnsignedByte();
    				interleaveOrder = new int[k + 1];
    				for (int l = 0; l < k; l++)
    					interleaveOrder[l] = stream.readUnsignedByte();
    				interleaveOrder[k] = 9999999;
    			} else if (i == 4)
    				stretches = true;
    			else if (i == 5)
    				forcedPriority = stream.readUnsignedByte();
    			else if (i == 6)
    				playerOffhand = stream.readUShort();
    			else if (i == 7)
    				playerMainhand = stream.readUShort();
    			else if (i == 8)
    				maximumLoops = stream.readUnsignedByte();
    			else if (i == 9)
    				animatingPrecedence = stream.readUnsignedByte();
    			else if (i == 10)
    				priority = stream.readUnsignedByte();
    			else if (i == 11)
    				replayMode = stream.readUnsignedByte();
    			else if (i == 12)
    				stream.readInt();
    			else
    				System.out.println("Error unrecognised seq config code: " + i);
    		}
    		if (frameCount == 0) {
    			frameCount = 1;
    			primaryFrames = new int[1];
    			primaryFrames[0] = -1;
    			secondaryFrames = new int[1];
    			secondaryFrames[0] = -1;
    			durations = new int[1];
    			durations[0] = -1;
    		}
    		if (animatingPrecedence == -1)
    			if (interleaveOrder != null)
    				animatingPrecedence = 2;
    			else
    				animatingPrecedence = 0;
    		if (priority == -1) {
    			if (interleaveOrder != null) {
    				priority = 2;
    				return;
    			}
    			priority = 0;
    		}
    	}
    goodluck
    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. Cache Error! please help
    By ranqedrs in forum Help
    Replies: 4
    Last Post: 11-08-2013, 01:53 AM
  2. Replies: 9
    Last Post: 10-19-2013, 03:18 AM
  3. [667 Cache Editor Run Error]Please Help
    By popiko7 in forum Help
    Replies: 22
    Last Post: 08-07-2013, 12:43 AM
  4. Replies: 3
    Last Post: 01-14-2013, 01:36 AM
  5. Replies: 1
    Last Post: 07-15-2012, 08:15 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
  •