Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to dump textures from cache #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

woahscam
Copy link
Contributor

@woahscam woahscam commented May 7, 2021

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 and others added 3 commits May 7, 2021 02:37

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@Techdaan
Copy link
Owner

Techdaan commented May 9, 2021

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

@Tyluur
Copy link

Tyluur commented May 18, 2021

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

@Techdaan
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants