0xNeffarion / osrsreboxed-db

A complete and up-to-date database of Old School Runescape (OSRS) items, monsters and prayers
GNU General Public License v3.0
41 stars 15 forks source link

Running scripts for latest update (7/26) #1

Closed wkpatrick closed 1 year ago

wkpatrick commented 1 year ago

First of all, thanks for keeping this project alive!

I was attempting to run the scripts to update the json files myself, and ran into an issue in the 2_cache script where it would fail to dump the cache using the net.runelite.cache.Cache jar

Exception in thread "main" java.lang.RuntimeException: Invalid data
        at net.runelite.cache.fs.Container.decompress(Container.java:101)
        at net.runelite.cache.fs.jagex.DiskStorage.loadIndex(DiskStorage.java:134)
        at net.runelite.cache.fs.jagex.DiskStorage.load(DiskStorage.java:108)
        at net.runelite.cache.fs.Store.load(Store.java:121)
        at net.runelite.cache.Cache.loadStore(Cache.java:127)
        at net.runelite.cache.Cache.main(Cache.java:64)

I asked around in the Runelite discord and they mentioned that their cache dumps are created using the same packer tool we use to unpack the flatcache files. I tested the scripts using the files generated from that and it picked up the new/changed items and NPCs.

Would you like a PR to merge these changes up?