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

Handling cache on Mac #18

Open
twrightsman opened this issue Jul 25, 2016 · 5 comments
Open

Handling cache on Mac #18

twrightsman opened this issue Jul 25, 2016 · 5 comments

Comments

@twrightsman
Copy link

twrightsman commented Jul 25, 2016

I'm exploring the cache on Mac OSX, located in ~/Jagex/Runescape, and I believe the file format has changed. They have switched over to sqlite3 databases, is this the NXT format you refer to?

I found OGG files in "js5-14.jcache" and "js5-40.jcache"

@twrightsman
Copy link
Author

https://gist.github.com/twrightsman/7fa275bc738747282f4611e657be814a

$ python3 find_ogg_in_RS_cache.py 
Searching js5-40.jcache...
Found OGG file in js5-40.jcache in key 37292 at address 568
...
Found OGG file in js5-40.jcache in key 42043 at address 0
Searching js5-14.jcache...
Found OGG file in js5-14.jcache in key 307 at address 20
...
Found OGG file in js5-14.jcache in key 46091 at address 20

@villermen
Copy link
Owner

Yeah, they've changed around the format. However, the files they actually store are the same as the old cache (even the new models are in there). I started working on the NXT format (the older commits here: https://github.com/villermen/RuneScapeCacheTools/commits/feature/proper-cache-implementation), but I decided I'd rather get the old format working properly first. My full cache download tool (RSCD) doesn't download in the newer format anyway, so it's shelved for now. When I get everything working properly again I'll focus on NXT, and the small differences in the format.

@villermen
Copy link
Owner

The NXT format does store the raw files way more easy to obtain though (no compression, split up into different rows).

@twrightsman
Copy link
Author

Would you mind if I made a python-based no-gui library to try and replicate what you're doing here (I know at least your license permits it)? Mostly so that I can work with the cache on *NIX and only target the NXT cache format.

@villermen
Copy link
Owner

Yeah, go ahead. Be sure to use the code in the branch I'm working on as your reference, as that code is working as it should =). The base working of the NXT cache should be pretty much the same, but there seem to be some subtle changes here and there that made me want to implement the RuneTek5 cache before starting on it. If you could annotate your findings in your code, and send me it or your repository when you get started that might help me out too even =)

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

No branches or pull requests

2 participants