I tried to use a tool to download RuneScape's latest cache: revision 916. RuneScape made some small js5 protocol changes.
Original tool can be found here: [Only registered and activated users can see links. ].
Everything I fixed directly came from a C# cache tool made by [Only registered and activated users can see links. ] project: [Only registered and activated users can see links. ].
Disclaimer: I am unsure if this was all that needed to change in the original RSCD because I have no way of validating the cache at the moment. I will update this post as soon as I find out if more needs fixing.
1. Increase the loading requirements to 28. (Js5Worker.java)
Code:
public static final int LOADING_REQUIREMENTS = 28;
2. Increase the output buffer capacity to 10 bytes from the previous 6 bytes. (Js5Worker.java - constructor)
Code:
public Js5Worker() {
requests = new LinkedList<FileRequest>();
waiting = new HashMap<Long, FileRequest>();
state = State.DISCONNECTED;
outputBuffer = ByteBuffer.allocate(10);
inputBuffer = ByteBuffer.allocate(5);
}
3. Change the client connection info. (Js5Worker.java - sendConnectionInfo())
4. Change the file request output buffer to match the protocol changes made in the connection info method. (Js5Worker process())
You can find this code inside the final else block in the process() method, around line 172.
5. Change the URL where the key is extracted from. (CacheDownloader.java - connect())
If you decide to change the URL you can remove the "WORLD" constant because it's not used anywhere else.
This should fix the RSCD tool to support the more recent revisions of RuneScape.
If anyone spots anything I've missed or did wrong, let me know and I'll try to fix it.
Thanks to:
- Melvin for telling me the protocol changed.
- Villermen for making a really nice tool that is up to revision 915 (made my life really easy :])
- Method for this really well made cache downloader
I'm back.
ScapeEmulator #592 Convert [Only registered and activated users can see links. ]/[Only registered and activated users can see links. ] [Only registered and activated users can see links. ] [Only registered and activated users can see links. ] [Only registered and activated users can see links. ]