Graham
6f30aebb22
Improve index table row switch order
...
Bit of a corner case, but if we ever encounter an index with a checksum
and version of 0 that resolves then this will ensure the statistics are
consistent between the overall cache and the index row.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
c85e8ed873
Remove unused import
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
2aaa19e05e
Format CacheExporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f5b9f269f6
Add per-archive stats to the cache pages
...
These replace the whirlpool, group count and total uncompressed length
columns, which were kind of useless - in particular:
* The group count is also represented with the new stats columns.
* The total uncompressed length overflows, as some indexes are now
larger than 2 gigabytes. One of the new stats columns contains the
compressed size of each archive, which isn't too different.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
ce9604a28d
Allow cross-origin requests to the archive
...
Everything is read-only and unauthenticated, so there is no security
risk. Hopefully this will allow some cool projects based on AJAX to be
developed.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
c94678c7c5
Add API for downloading individual groups
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
e5512cbdf6
Update number of loading requirements
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
c3383aed11
Fix index_stats rows for empty indexes
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
339f1d504b
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
ba573312dd
Add missing JOIN condition to index_stats view
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
d422934661
Add Jagex loc shape names to the glossary
...
Obtained from the iOS beta client. Credits to Polar.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
3eefa3df52
Fix downloading caches
...
A few pieces of code hadn't been correctly modified to deal with scopes.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
af918cf535
Add support for hiding broken caches
...
Deleting them is fairly tricky due to the append-only nature of the
database.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
80dda3f2dc
Add missing JOIN condition
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
d186f5aef4
Add initial support for separate scopes to the archiving service
...
This will allow us to import FunOrb caches without worrying about the
risk of collisions with the main set of RuneScape caches.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
2c31776c54
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
7abb995461
Update Kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
88ef8aec92
Fix reading timestamps with sign bit set
...
lo should've been masked rather than hi. I've switched the code to mask
both the low and high DWORDs for simplicity.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
ddecca5d0b
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
804ae70def
Format refreshViews() in CacheImporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
fe69594180
Add command for extracting caches found with Edward's cache finder
...
Useful for running directly on my server, which is headless Linux. (The
current extract tool is a GUI Windows app.)
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
03e6c3dd81
Annotate crypto methods with @Jvm{Overloads,Static}
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
26651618ef
Optimise uncompression of encrypted groups with invalid keys
...
Creating the InputStream first allows us to immediately fail if a key is
invalid, without having the chance of allocating a huge ByteBuf based on
an incorrect length.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
caaddad0ed
Flush underlying Store when a Cache is flushed
...
This ensures the buffered data in BufferedFileChannels is written to
disk even if close() is never called.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
b320348ec7
Fix bug where music data file was closed on flush
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
bcc2fdf48e
Add @JvmStatic and @JvmOverloads to more cache methods
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
bf12f41faf
Update run configurations
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
6f7350afa3
Fix JagArchive tests if libbzip2 is available
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
078b1f6197
Fix version trailers in RuneLiteStore
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
52ca09e4d0
Exclude JNR from minimization
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
b7be7950c6
Update GeneratedByteBufExtensions
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
7859b929ad
Fix buffer-generator mainClass name
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4e19879ee0
Fix use of deprecated method in ByteBufExtensionGenerator
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
712d874848
Fix Jackson version
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a885695fdf
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
3e60a82ca1
Add command for unpacking RuneLite flatcaches
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
ba75306169
Annotate cache methods with default parameters with @JvmOverloads
...
This allows them to be used from Java.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
aa2784a9e6
Add class for converting RuneLite flatcaches to other formats
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
8c415023af
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f7abf23dee
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
c21895f052
Add JNR-based bzip2 implementation compatible with Jagex's
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a6dbb29ea0
Fix dependency order
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
c9f397759e
Use advisory locks to prevent concurrent view refreshes
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
35f54fd753
Skip corrupt archives when importing legacy caches
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
29716379c3
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
1d76d90bcb
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
5c77ee4bd2
Format CacheExporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
1a78ef3c7d
Throw an exception if header is truncated
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
73eb30dbf9
Add game, environment, language, build and timestamp to file names
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
b99ae4bb09
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago