You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly, detecting when the xteas.json file is missing from the runestats cache is trivial. The problem is finding the cache decryption keys that work with this package.
https://archive.openrs2.org/ seems promising however, after trying their xteas.json file with the 2025-03-05 revision from archive.runestats.com a buffer underflow exception is thrown:
Exception in thread "AWT-EventQueue-0" java.nio.BufferUnderflowException
at java.base/java.nio.Buffer.nextGetIndex(Buffer.java:643)
at java.base/java.nio.HeapByteBuffer.get(HeapByteBuffer.java:165)
at cache.utils.ByteBufferExtKt.readUnsignedByte(ByteBufferExt.kt:29)
at cache.loaders.OverlayLoader.load(OverlayLoader.kt:47)
at cache.loaders.OverlayLoader.<init>(OverlayLoader.kt:73)
at controllers.main.MainController.<init>(MainController.kt:93)
at controllers.CacheChooserController.launch$lambda$16$lambda$15(CacheChooserController.kt:257)
Same issue when using both files (cache + xteas) from openrs2.org. I need to investigate more on how the cache is being loaded and I'm not super familiar with Kotlin but I'm great at Java so should be able to pick it up quick.
Edit: Upon further investigation there aren't problems loading xteas.json file(s) from openrs2. The issues I am encountering is that the OverlayLoader data size is always 0 on newer caches. Indexes like 8 for sprites and 5 for maps don't seem to be present in the cache at all oddly enough throwing errors while loading sprites etc...
Bug description
The cache fails to load because of a missing xteas.json file that should come pre-packaged with the cache from https://archive.runestats.com
This makes revisions newer than 2024-11-27-rev227 unloadable.
Steps to reproduce
Expected behavior
The cache loads as normal
The text was updated successfully, but these errors were encountered: