Help extracting Heavenly Sword Textures

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

Help extracting Heavenly Sword Textures

Post by nightwolf1982 » Mon Oct 30, 2017 3:29 am

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: 119
Joined: Fri May 05, 2017 7:19 am
Has thanked: 6 times
Been thanked: 9 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 » Tue Oct 31, 2017 3:24 pm

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: 119
Joined: Fri May 05, 2017 7:19 am
Has thanked: 6 times
Been thanked: 9 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 » Sat Nov 04, 2017 6:21 pm

Still needing help with this, does anyone have any ideas?

nightwolf1982
veteran
Posts: 119
Joined: Fri May 05, 2017 7:19 am
Has thanked: 6 times
Been thanked: 9 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 » Sun Nov 05, 2017 10:29 am

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.

User avatar
Acewell
VIP member
VIP member
Posts: 1329
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2683 times
Been thanked: 841 times

Re: Help extracting Heavenly Sword Textures

Post by Acewell » Sun Nov 05, 2017 9:33 pm

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: 119
Joined: Fri May 05, 2017 7:19 am
Has thanked: 6 times
Been thanked: 9 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 » Mon Nov 06, 2017 7:16 am

Acewell, what did you use to convert that?

edit - nevermind, TextureFinder seems to be working now.

nightwolf1982
veteran
Posts: 119
Joined: Fri May 05, 2017 7:19 am
Has thanked: 6 times
Been thanked: 9 times

Re: Help extracting Heavenly Sword Textures

Post by nightwolf1982 » Mon Nov 06, 2017 8:16 am

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