So i'm trying to cook up a quickbms / or (some other type of script) that could take my textures header ".XETU" and spit out the file 100% unmodified except i need the header replaced with ".XETV"
i'm working on a simple bms script but i need to see a sample to know exactly what the header is in binary
i got the XETU to XETV working, i just need to know what that dot is
the double zero is a place holder until i can see a sample
idstring "\x00XETU" #".XETU"
get NAME filename
set MEMORY_FILE binary "\x00\x58\x45\x54\x56" #".XETV"
log NAME 0 0x5 MEMORY_FILE
get SIZE asize
math OFFSET = 0x5
math SIZE - OFFSET
log NAME OFFSET SIZE
Thank you for the help so far!! It works perfectly as is, because the header in HEX is written "00 58 45 54 55" so the first '.' is actually just 00
The "U" at the end of the header is a version number, and doesn't impact the file whatsoever, the reason it needs to be set to "V" is because noesis and other texture viewers are only setup to read ".XETV"
I replaced idstring "\x00XETU"
with get NAME basename
because i have multiple texture headers i need spat out in .XETV, but everything else is perfectoo.
Also the only issue is if i do replace, the resulting file is data-less, only header :p quickbms rename is the only way to go about it currently (not really a big issue, just an inconvenience to spit out doubles of each texture with _00000001 lol)
What game? what platform?
These textures are from the Beta of Dead Rising.