Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Help extracting Heavenly Sword Textures

Post questions about game models here, or help out others!
Post Reply
nightwolf1982
veteran
Posts: 158
Joined: Fri May 05, 2017 7:19 am
Has thanked: 7 times
Been thanked: 22 times

Help extracting Heavenly Sword Textures

Post by nightwolf1982 »

Working on extracting models from the game Heavenly Sword, but I have no idea how to get the textures from the game.
nightwolf1982
veteran
Posts: 158
Joined: Fri May 05, 2017 7:19 am
Has thanked: 7 times
Been thanked: 22 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 »

I read in an older forum post that the textures are in the .dat files extracted by quickbms, but I haven't been able to find a tool that can read or convert the files. Anyone have a suggestion?
nightwolf1982
veteran
Posts: 158
Joined: Fri May 05, 2017 7:19 am
Has thanked: 7 times
Been thanked: 22 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 »

Still needing help with this, does anyone have any ideas?
nightwolf1982
veteran
Posts: 158
Joined: Fri May 05, 2017 7:19 am
Has thanked: 7 times
Been thanked: 22 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 »

OK, This is what I've figured out so far:

Code: Select all

endian big

get DUMMY long # First four bytes, not a string, no indication of file type, always the same

get SIZE long # The total size of the file from OFFSET

get FILENUM long # Number of files (?)

get ZERO long # Zero value

get OFFSET long # File Offset

get IMAGESIZE long # Actual image size, from OFFSET

get HASH long # Unknown value, possibly file name or hash

get ZERO long # Zero value

get HEIGHT short # Height of Image

get WIDTH short # Width of Image

get COLORS long # Color depth of image (?)

get ZERO long # Zero value

get ZERO long # Zero value
The next 80 bytes are all P (0x50), which I'm assuming is padding. I'm attaching one of the dat files so people can take a look for themselves.
You do not have the required permissions to view the files attached to this post.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Help extracting Heavenly Sword Textures

Post by Acewell »

128 byte big-endian header
at 0x18 - 1byte - format ID (this sample is dxt5 format)
at 0x19 - 1byte - num mips
at 0x20 - 2bytes - width
at 0x22 - 2bytes - height

of course some of that is speculation until more than one sample is provided :D
someweirdeyelookingthing.png
You do not have the required permissions to view the files attached to this post.
nightwolf1982
veteran
Posts: 158
Joined: Fri May 05, 2017 7:19 am
Has thanked: 7 times
Been thanked: 22 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 »

Acewell, what did you use to convert that?

edit - nevermind, TextureFinder seems to be working now.
nightwolf1982
veteran
Posts: 158
Joined: Fri May 05, 2017 7:19 am
Has thanked: 7 times
Been thanked: 22 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 »

Big thank you to AceWell for giving me the clue to figuring this out!! Not everything is working, unfortunately, but I've got the files I was looking for.
Post Reply