OpenNXT icon indicating copy to clipboard operation
OpenNXT copied to clipboard

Added ability to dump textures from cache

Open woahscam opened this issue 4 years ago • 3 comments

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

woahscam avatar May 07 '21 06:05 woahscam

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").

Techdaan avatar May 09 '21 19:05 Techdaan

This is valuable. Perhaps this can be used to make osrs maps look HD.

Tyluur avatar May 18 '21 13:05 Tyluur

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.

Techdaan avatar May 18 '21 14:05 Techdaan