Displee / rs-cache-library

A library written in Kotlin used to read and write to all cache formats of RuneScape.
MIT License
66 stars 34 forks source link

Ability to generate and pack version list and crcs ? #32

Closed Graviton1647 closed 4 years ago

Graviton1647 commented 4 years ago

Ability to run a function that generates and packs crcs and version lists

Displee commented 4 years ago

Hmm. I'm assuming you're talking about files with a custom name?

The default ones are already being supported: https://github.com/Displee/rs-cache-library/blob/master/src/main/kotlin/com/displee/cache/index/Index317.kt#L159

Graviton1647 commented 4 years ago

Yes files with custom names :)

Displee commented 4 years ago

Alright. So there are normally 3 custom files. I assume you only need 2 custom files right (crc and version).

Graviton1647 commented 4 years ago

Yes

Displee commented 4 years ago

I've created a function where you should be able to add version and crc files in version 6.2 using the following code:

Index317.addMetaFiles("version_file", "crc_file")

This method needs to be executed before you create the cache library object.

Note: keep in mind the first 4 indices (1 until 4) are already defined and thus reserved. So when you add your own meta files you start at index 5.

35