Thread: 317 Loading #159 data animation problem - Fixed

Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 58
  1. #21  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by durky View Post
    uhh im going to say no, because idk what that even means...
    This is a 317 look a like client, we don't have config files?
    Every cache has an sequence file, if you're trying to pack osrs data in a 317 client you have to update the file with correect readvalues.
    Reply With Quote  
     

  2. #22  
    Extreme Donator

    Join Date
    Apr 2015
    Posts
    369
    Thanks given
    215
    Thanks received
    79
    Rep Power
    74
    Quote Originally Posted by _Patrick_ View Post
    Every cache has an sequence file, if you're trying to pack osrs data in a 317 client you have to update the file with correect readvalues.
    Oh yes, i have the correct seq.dat packed. i do find it weird that i don't see any opcodes higher then 11... when the 156 deob has opcodes 12 && 13

    updated the main post, to bring people up to speed.
    Reply With Quote  
     

  3. #23  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by durky View Post
    Oh yes, i have the correct seq.dat packed. i do find it weird that i don't see any opcodes higher then 11... when the 156 deob has opcodes 12 && 13

    updated the main post, to bring people up to speed.
    You need to include every single opcode and byte when packing shit. You basically take a bunch of bytes from OSRS cache exactly the way they are and slap them in whatever cache you have, then update the values to match exactly those of OSRS and you had them perfectly functional.
    Attached image
    Reply With Quote  
     

  4. #24  
    Extreme Donator

    Join Date
    Apr 2015
    Posts
    369
    Thanks given
    215
    Thanks received
    79
    Rep Power
    74
    Quote Originally Posted by Kris View Post
    You need to include every single opcode and byte when packing shit. You basically take a bunch of bytes from OSRS cache exactly the way they are and slap them in whatever cache you have, then update the values to match exactly those of OSRS and you had them perfectly functional.
    well i'm officially stuck... I updated seq.dat to 159, compared the read values and still the same problem
    Reply With Quote  
     

  5. #25  
    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 durky View Post
    well i'm officially stuck... I updated seq.dat to 159, compared the read values and still the same problem
    Same here haha.. got exactly the same issue with a Vencillio base D:


    Reply With Quote  
     

  6. #26  
    Extreme Donator

    Join Date
    Apr 2015
    Posts
    369
    Thanks given
    215
    Thanks received
    79
    Rep Power
    74
    bump
    Reply With Quote  
     

  7. #27  
    Banned

    Join Date
    Apr 2013
    Posts
    1,614
    Thanks given
    410
    Thanks received
    475
    Rep Power
    0
    Quote Originally Posted by durky View Post
    bump
    You packed both seq and spot anim? Don't know why it would matter but i had this issue before what you also need to do is use what I include below and replace your readvalues, good luck.

    https://hastebin.com/mazenozeke.cs

    Read values from my client loading 160 data (contained inside the full class above this)
    Seq.dat
    Code:
     private void decode(Buffer stream) {
            int opcode;
            while ((opcode = stream.readUnsignedByte()) != 0) {
    
                if (opcode == 1) {
                    frameCount = stream.readUShort();
                    primaryFrames = new int[frameCount];
                    secondaryFrames = new int[frameCount];
                    durations = new int[frameCount];
                    for (int i = 0; i < frameCount; i++) {
                        primaryFrames[i] = stream.readInt();
                        secondaryFrames[i] = -1;
                    }
    
                    for (int i = 0; i < frameCount; i++) {
                        durations[i] = stream.readUnsignedByte();
                    }
    
                } else if (opcode == 2) {
                    loopOffset = stream.readUShort();
                } else if (opcode == 3) {
                    int length = stream.readUnsignedByte();
                    interleaveOrder = new int[length + 1];
                    for (int i = 0; i < length; i++) {
                        interleaveOrder[i] = stream.readUnsignedByte();
                    }
                    interleaveOrder[length] = 9999999;
                } else if (opcode == 4) {
                    stretches = true;
                } else if (opcode == 5) {
                    forcedPriority = stream.readUnsignedByte();
                } else if (opcode == 6) {
                    rightHand = stream.readUShort();
                } else if (opcode == 7) {
                    leftHand = stream.readUShort();
                } else if (opcode == 8) {
                    maximumLoops = stream.readUnsignedByte();
                } else if (opcode == 9) {
                    animatingPrecedence = stream.readUnsignedByte();
                } else if (opcode == 10) {
                    priority = stream.readUnsignedByte();
                } else if (opcode == 11) {
                    replayMode = stream.readUnsignedByte();
                } else if (opcode == 12) {
                    stream.readInt();
                } else {
                    System.out.println("Error unrecognised seq config code: " + opcode);
                }
    
            }
    spotanim.dat
    Code:
        public void decode(Buffer buffer) {
            while (true) {
                int opcode = buffer.readUnsignedByte();
    
                if (opcode == 0) {
                    return;
                } else if (opcode == 1) {
                    modelId = buffer.readUShort();
                } else if (opcode == 2) {
                    animationId = buffer.readUShort();
                    if (Animation.animations != null) {
                        animationSequence = Animation.animations[animationId];
                    }
                } else if (opcode == 4) {
                    resizeXY = buffer.readUShort();
                } else if (opcode == 5) {
                    resizeZ = buffer.readUShort();
                } else if (opcode == 6) {
                    rotation = buffer.readUShort();
                } else if (opcode == 7) {
                    modelBrightness = buffer.readUShort();
                } else if (opcode == 8) {
                    modelShadow = buffer.readUShort();
                } else if (opcode == 40) {
                    int length = buffer.readUnsignedByte();
                    for (int i = 0; i < length; i++) {
                        originalModelColours[i] = buffer.readUShort();
                        modifiedModelColours[i] = buffer.readUShort();
                    }
                } else {
                    System.out.println("Error unrecognised spotanim config code: "
                            + opcode);
                }
            }
        }
    Reply With Quote  
     

  8. #28  
    Extreme Donator

    Join Date
    Apr 2015
    Posts
    369
    Thanks given
    215
    Thanks received
    79
    Rep Power
    74
    Quote Originally Posted by trees View Post
    You packed both seq and spot anim? Don't know why it would matter but i had this issue before what you also need to do is use what I include below and replace your readvalues, good luck.

    https://hastebin.com/mazenozeke.cs

    Read values from my client loading 160 data (contained inside the full class above this)
    Seq.dat
    Code:
     private void decode(Buffer stream) {
            int opcode;
            while ((opcode = stream.readUnsignedByte()) != 0) {
    
                if (opcode == 1) {
                    frameCount = stream.readUShort();
                    primaryFrames = new int[frameCount];
                    secondaryFrames = new int[frameCount];
                    durations = new int[frameCount];
                    for (int i = 0; i < frameCount; i++) {
                        primaryFrames[i] = stream.readInt();
                        secondaryFrames[i] = -1;
                    }
    
                    for (int i = 0; i < frameCount; i++) {
                        durations[i] = stream.readUnsignedByte();
                    }
    
                } else if (opcode == 2) {
                    loopOffset = stream.readUShort();
                } else if (opcode == 3) {
                    int length = stream.readUnsignedByte();
                    interleaveOrder = new int[length + 1];
                    for (int i = 0; i < length; i++) {
                        interleaveOrder[i] = stream.readUnsignedByte();
                    }
                    interleaveOrder[length] = 9999999;
                } else if (opcode == 4) {
                    stretches = true;
                } else if (opcode == 5) {
                    forcedPriority = stream.readUnsignedByte();
                } else if (opcode == 6) {
                    rightHand = stream.readUShort();
                } else if (opcode == 7) {
                    leftHand = stream.readUShort();
                } else if (opcode == 8) {
                    maximumLoops = stream.readUnsignedByte();
                } else if (opcode == 9) {
                    animatingPrecedence = stream.readUnsignedByte();
                } else if (opcode == 10) {
                    priority = stream.readUnsignedByte();
                } else if (opcode == 11) {
                    replayMode = stream.readUnsignedByte();
                } else if (opcode == 12) {
                    stream.readInt();
                } else {
                    System.out.println("Error unrecognised seq config code: " + opcode);
                }
    
            }
    spotanim.dat
    Code:
        public void decode(Buffer buffer) {
            while (true) {
                int opcode = buffer.readUnsignedByte();
    
                if (opcode == 0) {
                    return;
                } else if (opcode == 1) {
                    modelId = buffer.readUShort();
                } else if (opcode == 2) {
                    animationId = buffer.readUShort();
                    if (Animation.animations != null) {
                        animationSequence = Animation.animations[animationId];
                    }
                } else if (opcode == 4) {
                    resizeXY = buffer.readUShort();
                } else if (opcode == 5) {
                    resizeZ = buffer.readUShort();
                } else if (opcode == 6) {
                    rotation = buffer.readUShort();
                } else if (opcode == 7) {
                    modelBrightness = buffer.readUShort();
                } else if (opcode == 8) {
                    modelShadow = buffer.readUShort();
                } else if (opcode == 40) {
                    int length = buffer.readUnsignedByte();
                    for (int i = 0; i < length; i++) {
                        originalModelColours[i] = buffer.readUShort();
                        modifiedModelColours[i] = buffer.readUShort();
                    }
                } else {
                    System.out.println("Error unrecognised spotanim config code: "
                            + opcode);
                }
            }
        }
    set mine to the exact same still happening, and yes i packed all 159 data.

    This is now fixed, who ever dumped and released the seq.dat + animations files needs to update their dumper to support OSRS changes.
    As soon as i got a new Seq.dat from someone else who dumped with an updated dumper. Instant fix.
    Reply With Quote  
     

  9. #29  
    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 durky View Post
    set mine to the exact same still happening, and yes i packed all 159 data.

    This is now fixed, who ever dumped and released the seq.dat + animations files needs to update their dumper to support OSRS changes.
    As soon as i got a new Seq.dat from someone else who dumped with an updated dumper. Instant fix.
    Could you share those with me please? Would be most appreciative!

    Reply With Quote  
     

  10. #30  
    Registered Member
    Join Date
    Aug 2015
    Posts
    8
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by durky View Post
    set mine to the exact same still happening, and yes i packed all 159 data.

    This is now fixed, who ever dumped and released the seq.dat + animations files needs to update their dumper to support OSRS changes.
    As soon as i got a new Seq.dat from someone else who dumped with an updated dumper. Instant fix.
    could you or someone else dump the new files? im having the same problem and its driving me crazy...
    Reply With Quote  
     

Page 3 of 6 FirstFirst 12345 ... 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. Morath 317 loading OSRS DATA.
    By MorathRSPS in forum Projects
    Replies: 17
    Last Post: 08-26-2017, 12:41 AM
  2. Replies: 17
    Last Post: 11-18-2013, 08:22 AM
  3. Replies: 11
    Last Post: 11-11-2012, 12:47 AM
  4. Replies: 24
    Last Post: 02-01-2011, 02:26 AM
  5. Loading 600+ Anims/GFX Problem
    By Aaron C. in forum Help
    Replies: 0
    Last Post: 11-21-2010, 11:06 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
  •