osrsbox / osrsbox-db

A complete and up-to-date database of Old School Runescape (OSRS) items, monsters and prayers
https://www.osrsbox.com/projects/osrsbox-db/
GNU General Public License v3.0
223 stars 80 forks source link

Maintained fork #236

Open AntonyGarand opened 2 years ago

AntonyGarand commented 2 years ago

For those looking at an updated repo, I'll be updating this fork every once in a while.

MathieuDR commented 2 years ago

Hey @AntonyGarand. Do you also have an API up around this up2date database fork? Perhaps you would like to turn on issues on your fork.

The discord seems to be deleted as well and I'm unsure where the community is turning towards to replace osrsbox.

jackglick commented 2 years ago

Hey @AntonyGarand. Do you also have an API up around this up2date database fork? Perhaps you would like to turn on issues on your fork.

The discord seems to be deleted as well and I'm unsure where the community is turning towards to replace osrsbox.

It's not quite as easy to use as this package but I've been accessing the OSRS Wiki API.

AntonyGarand commented 2 years ago

Hey! I don't have an api available, I mostly use the raw json myself. I haven't noticed the osrsbox discord being deleted, but I made the #osrsbox channel for osrsbox-related discussions on the flipping utilities discord: discord.gg/flipping There is also an active "fork" - Similar project but new codebase going on over at osrsquery - https://osrsquery.com You can look at their website and join the discord to see if it can meet your needs.

ashtongraves commented 2 years ago

@AntonyGarand how are you getting up to date data for your db? And is osrsquery on github at all? Is it open source?

BasketBandit commented 2 years ago

@AntonyGarand how are you getting up to date data for your db? And is osrsquery on github at all? Is it open source?

@ashtongraves I can't speak for Antony but you can update with the scripts included in the repo, namely in this directory https://github.com/osrsbox/osrsbox-db/tree/master/scripts/update its important when cloning that you update submodules with something like git submodule update --init --recursive since it uses runelite cache data to update. I don't personally need more than item/monster data so I stop once those json files have updated.

If you want up-to-date icons there's a plugin they made for runelite which grabs them from in-game found here: https://github.com/osrsbox/osrsbox-plugins/tree/master/plugins/icondumper Though it isn't perfect, since the icons are loaded async and saving them instantly like in their implementation often results in blanks - I wrote a custom implementation of that plugin that seems to work perfectly. You can change the BufferedImage to an AsyncBufferedImage like below:

AsyncBufferedImage iconImage = itemManager.getImage(itemId);
iconImage.onLoaded(() -> {
      try {
            ImageIO.write(iconImage, "png", outputFile);
      } catch(IOException e) {
            e.printStackTrace();
      }
});
0x5424 commented 2 years ago

@AntonyGarand Hey! Thank you for the work maintaining the fork 🙏

I was curious if you've had trouble dumping the cache using the RL cache tool since the Raids 3 update. After running the project locally, I can successfully build RL, but scripts/2_cache.sh fails to dump the raw cache:

  > Dumping cache using RuneLite cache tool...
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)

Not sure if this is an appropriate place to post this issue, but I felt it'd get more visibility here.

Environment

Runelite@HEAD (https://github.com/runelite/runelite/commit/59243b084989f26d2d3c9bca1f43bb38f01c7df2)

Submodules:

Submodule path 'data/cache/osrs-cache': checked out 'cbdc4ed7b618f093291cb32730179148f63c7b33'
Submodule path 'data/cache/osrs-flatcache': checked out 'a1519f3fb46af857c7ab27f3f66136abd7a0ceff'
Submodule path 'data/schemas': checked out '2af66acc487c89c3ce7ce67d2ef10ad372926e16'
AntonyGarand commented 1 year ago

Hey, sorry about the delay!
I'll run the scripts and see if I can update my fork easily following the last updates
Feel free to make a PR on my fork if anyone else has a working version or more up-to-date data