Thread: OpenRS2 Archive

Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 52
  1. #41  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,074
    Thanks given
    2,625
    Thanks received
    3,580
    Discord
    View profile
    Rep Power
    5000
    Updates:

    * Flenarn provided 40 additional XTEA keys for 503, an additional 155 OSRS cache and some 155 XTEA keys.
    * Flenarn provided a 742 cache.
    * I've imported a 157 OSRS cache provided by Displee in the R-S Discord, along with two new XTEA keys from the same rar file.
    * I've started importing the RS3 caches in Displee's archive.
    * The versions/checksums in the master index are now shown on the individual /caches/<id> pages. This will help to fill in build numbers if we're unsure, as the versions can be used to figure out if a cache is newer or older than another. The source information has also been split out into its own table, to make it a bit obvious where the build numbers/timestamps come from. (This also makes [Only registered and activated users can see links. ] a bit clearer, as it's simultaneously build 1 in OSRS and build 468 in mainline RS).
    * I've added support for downloading caches in flat file format (one filesystem file per group). This will become important when caches larger than ~8 GiB are imported, as those can't be represented with the .dat2/.idx format (due to overflow of the block number field).
    * Flenarn provided an extra XTEA key for 474 (Tutorial Island).
    * I've imported a 159 OSRS cache from Displee's site (thanks to Flenarn for pointing it out).
    * Deaded provided 72 new keys for OSRS and a large number of additional OSRS caches. Some of these keys are also valid for RS2 revisions around #468.
    * Kris provided a 156 OSRS cache (via Flenarn).
    * I've fixed a bug causing invalid coordinates to be plotted on the maps (reported by Polar).
    * shadowtea provided some additional XTEA keys and caches for OSRS.
    .
    Reply With Quote  
     

  2. Thankful users:


  3. #42  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,192
    Thanks given
    1,125
    Thanks received
    840
    Discord
    View profile
    Rep Power
    1525
    bump
    Reply With Quote  
     

  4. Thankful user:


  5. #43  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,422
    Thanks given
    694
    Thanks received
    1,426
    Rep Power
    1202
    Great contribution, I'm glad to see more people are creating archives.
    Reply With Quote  
     

  6. #44  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,192
    Thanks given
    1,125
    Thanks received
    840
    Discord
    View profile
    Rep Power
    1525
    playing around with a toml parser for the xtea keys, might post the code for anyone who doesn't like using json or text files but it is a little hacky atm (there's a little version thing at the top which is a hacky way of how i'm handling new lines lmao)

    json: 179kb
    toml: 95kb

    (stripped archive as always 5 and moved name to header)

    sample output as posting the whole thing would be absurd
    Code:
    [l40_55]
    group = 1
    name_hash = -1153472937
    mapsquare = 10295
    key = [-1920480496, -1423914110, 951774544, -1419269290]
    
    [l45_73]
    group = 3
    name_hash = -1153323922
    mapsquare = 11593
    key = [-68265860, -1902016861, 1905764787, 481497713]
    
    [l29_80]
    group = 5
    name_hash = -1155051772
    mapsquare = 7504
    key = [208584649, -1280165062, -708222078, -1674764149]
    
    [l36_52]
    group = 7
    name_hash = -1154217715
    mapsquare = 9268
    key = [-1065230305, 1961575849, 639553674, 1441466448]
    
    [l45_75]
    group = 9
    name_hash = -1153323920
    mapsquare = 11595
    key = [-665960015, -301831634, -1835153796, 1167428992]
    output is, if i may say so, much cleaner than json while still having the benefit of being a single file and having powerful mapping capabilities
    Reply With Quote  
     

  7. Thankful user:


  8. #45  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,074
    Thanks given
    2,625
    Thanks received
    3,580
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Fire Cape View Post
    playing around with a toml parser for the xtea keys, might post the code for anyone who doesn't like using json or text files but it is a little hacky atm (there's a little version thing at the top which is a hacky way of how i'm handling new lines lmao)

    json: 179kb
    toml: 95kb

    (stripped archive as always 5 and moved name to header)

    sample output as posting the whole thing would be absurd
    Code:
    [l40_55]
    group = 1
    name_hash = -1153472937
    mapsquare = 10295
    key = [-1920480496, -1423914110, 951774544, -1419269290]
    
    [l45_73]
    group = 3
    name_hash = -1153323922
    mapsquare = 11593
    key = [-68265860, -1902016861, 1905764787, 481497713]
    
    [l29_80]
    group = 5
    name_hash = -1155051772
    mapsquare = 7504
    key = [208584649, -1280165062, -708222078, -1674764149]
    
    [l36_52]
    group = 7
    name_hash = -1154217715
    mapsquare = 9268
    key = [-1065230305, 1961575849, 639553674, 1441466448]
    
    [l45_75]
    group = 9
    name_hash = -1153323920
    mapsquare = 11595
    key = [-665960015, -301831634, -1835153796, 1167428992]
    output is, if i may say so, much cleaner than json while still having the benefit of being a single file and having powerful mapping capabilities
    btw, one point about the JSON-based XTEA format is I made it so it works for more than just encrypted location files. The archive/group IDs allow it to represent the key for any encrypted file (e.g. newer versions of RS are capable of encrypting interfaces in theory, but as far as we know that has never been used).

    The name, name hash and mapsquare fields are just there to ensure backwards compatibility with Polar's JSON format, but they might not always be non-null if Jagex does start encrypting something other than location files.
    .
    Reply With Quote  
     

  9. Thankful users:


  10. #46  
    OS-Scape - coming soon...
    Raw Envy's Avatar
    Join Date
    Dec 2010
    Posts
    2,986
    Thanks given
    829
    Thanks received
    1,138
    Rep Power
    2891
    This is really cool, nice one Graham!
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    Join OSS Discord for weekly 100m OSRS GP giveaways until release.
    Reply With Quote  
     

  11. Thankful user:


  12. #47  
    Previously: Scary Kidz
    AceKingSuited's Avatar
    Join Date
    May 2010
    Posts
    498
    Thanks given
    113
    Thanks received
    72
    Discord
    View profile
    Rep Power
    67
    I think you just brought me back to RSPS.

    Thank you so much for this!
    My 592 PvP Project:

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  13. #48  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,192
    Thanks given
    1,125
    Thanks received
    840
    Discord
    View profile
    Rep Power
    1525
    bump

    and some basic code to generate a stripped yaml version of the keys.json file
    Code:
    import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
    import com.fasterxml.jackson.annotation.JsonProperty;
    import com.fasterxml.jackson.databind.ObjectMapper;
    import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
    
    import java.nio.file.Path;
    
    public final class Main {
    	
    	public static void main(String[] args) throws Exception {
    		Loc[] loc = new ObjectMapper().readValue(Path.of("keys.json").toFile(), Loc[].class);
    		new YAMLMapper().writeValue(Path.of("keys.yaml").toFile(), loc);
    	}
    	
    	private Main() { }
    	
              @[Only registered and activated users can see links. ]IgnoreProperties(ignoreUnknown=true)
    	static final class Loc {
    		
    	         @[Only registered and activated users can see links. ]Property("mapsquare")
               /* 64x64 tiles */
    	   private int square;
    		
    	         @[Only registered and activated users can see links. ]Property("key")
               /* xtea key (four 32 bit signed integers) */
    	   private int[] key;
    	}
    }
    gradle
    Code:
    implementation 'com.fasterxml.jackson.core:jackson-core:2.12.3'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
    implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.3'
    dunno why the formatting is fucked (looks like some bb bs with the annotation)
    Reply With Quote  
     

  14. Thankful user:


  15. #49  
    OS FATALITY Manager 10pages's Avatar
    Join Date
    Jun 2016
    Posts
    30
    Thanks given
    194
    Thanks received
    13
    Discord
    View profile
    Rep Power
    36
    Great contribution.
    Reply With Quote  
     

  16. #50  
    Registered Member
    Spyr0's Avatar
    Join Date
    Oct 2012
    Age
    28
    Posts
    1,987
    Thanks given
    398
    Thanks received
    280
    Discord
    View profile
    Rep Power
    305
    Great work thank yu so much
    Reply With Quote  
     

Page 5 of 6 FirstFirst ... 3456 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. My refactored Archive class
    By veer in forum Snippets
    Replies: 5
    Last Post: 07-17-2010, 06:23 AM
  2. GTA IV Archiving tool [PC]
    By Bobster in forum Application Development
    Replies: 4
    Last Post: 11-29-2008, 03:02 AM
  3. The HD client archive project
    By peterbjornx in forum Projects
    Replies: 10
    Last Post: 08-20-2008, 05:20 PM
  4. some file archiver reviews.
    By Unity in forum Downloads
    Replies: 1
    Last Post: 08-10-2008, 10:32 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
  •