Added ability to dump textures from cache
TextureDumper allows you to:
- Dump all textures from all 4 indices
- Dump all textures from a specified index
- Dump a specified texture from all 4 indices
- Dump a specified texture from a specific index
Technical information:
| Index | Name | Format | Texture Min | Texture Max |
|---|---|---|---|---|
| js5-52 | dxt | dds | 5442 | 23798 |
| js5-53 | png | png | 5442 | 23798 |
| js5-54 | mipmap | png | 5442 | 23798 |
| js5-55 | etc | ktx | 5442 | 23798 |
For consistency with the other dumpers, could you write it using Constants.RESOURCE_PATH, and please move these particular dumper constants from the constants to the dumper itself, as they're not global constants.
Here's an example of how the resource dumper picks the path: https://github.com/Techdaan/OpenNXT/blob/main/src/main/kotlin/com/opennxt/tools/impl/ResourceDumper.kt#L32
You could, for example, dump to Constants.RESOURCE_PATH.resolve("textures").resolve("dxt").
This is valuable. Perhaps this can be used to make osrs maps look HD.
You could use these textures in OSRS yeah. It also depends on the other features. I don't believe OSRS supports normal maps for example. You'd also have to look into materials (all files in index 26, archive 0). There's two formats for materials.
I believe they are planning some updates to materials and textures. So I am not sure for how long the information above is accurate.
Either way, we'll probably figure it out then.