So I have a cache that I’m not happy about so I’ve tried to find how to replace it but I’ve had no luck. Can someone redirect me to a snippet or help me at all?
Re-place my cache?
There’s no in depth tutorial because it takes a lot of work to move one cache over to another client, unless they’re both parsing the cache values the exact same.
And speaking of that, that’s what you’ll have to do for it to work.
You’ll have to change all the “readValue” methods (At least, that’s what most are named) to that of the new cache.
You’ll have to change all the code that reads any data from the cache, unless it’s the same - to put it simply.
If your client is reading anInt1047 as a byte but the new client is reading it as a short, you’ll have to change it.
It’s typically easier to just dump the data you want from the cache and put it into your existing client.
This also doesn’t account for making sure your client and server are both using the same protocol and packet structure. Some clients set the NPC update bits to 10 some set it to 14, etc…
TL;DR: This isn’t for people new to the RSPS scene.