New OS-JR Impl.#16
Conversation
Update hooks to revision 160
Created a new Implementation model with a much much lower footprint. As you can see in RSClient, only about 4 lines of code was needed haha. This commit uses Netbeans! It conforms as it should have in the first place. Should be compatible with Devs pull request and others.
This is what a typical OS-JR framework update looks like, simply pulled from https://github.com/zeruth/OSJR/tree/master/export
OSJR has changed a lot, got rid of the single file json object, and un-necessary libraries.
|
Thanks for this. Currently doing some review of this in preparation for merge. Can you explain a bit in here how the hooks are updated? Also, JSYK the link in your post gives me a 404. |
|
For a third party client to OSJR, copy the Hooks.json to your project. The hooks are populated from rune-lite, whenever a gamepack revision change occurs. |
|
Been looking through this more, @zeruth. Would you be able to set things up so that OS-JR is instead compiled from source, rather than adding the jar file itself? I'd be fine just adding a directory to hold the OS-JR source in this repo to compile from. Mostly looking into this for security reasons. I think the community would be more open to trying a new client if anything like that was compiled by the user (or a trusted third party). |
|
The jar is provided really only for convenience. And all it's source code is packed into it. The intention is for people to fork my repo, The JAR itself is not necessary to use osjr, but anyone can build the JAR and I recommend they do so. OSJR is currently in the middle of a big patch at the moment. |
This uses netbeans! lol
So I have done a lot of work on OS-JR. I re-purposed it to be a library.
It has gone from ~300 hooks in the first pull request to 1344. It has every hook Runelite does.
The implementation is explained via comments in "New OS-JR Impl."
Accessed via getters in Hooks.selector after RSGame.run. ex:
int loginstate = Hooks.selector.client.getLoginState();
The full list of Hooks is dumped every update to:
https://github.com/zeruth/OSJR/blob/master/Hooks.txt
And YES! Everything in that list is accessible.