Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintained fork #236

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

AntonyGarand
Copy link

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

@AntonyGarand AntonyGarand changed the title Update 2022-01-28 Maintained fork Jan 30, 2022
@MathieuDR
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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

@BasketBandit
Copy link

BasketBandit commented Jun 29, 2022

@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
Copy link

0x5424 commented Aug 26, 2022

@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 (runelite/runelite@59243b0)

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants