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

[Wii] Tenchu : tmp files and endianess

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

[Wii] Tenchu : tmp files and endianess

Post by JohnHudeski »

Hi guys
I am exploring Tenchu:Shadow warrior files on the Wii.
I managed to get into the main archive but my first problem was a container/compression file i found .tmp.

I am certain it is a container cos there are chunks of junk/padding followed by havok files ("WaaW" signature and every other thing in an havok file). My problem is i cant seem to find any form of file offset/size/pointer to help me effectively get past the chunks of unknown data.

Secondly I am predominantly a Pc programmer and i have never come up against Big Endians even when I came up against PS2 files.
I am wondering if I should take any extra precaustions. I am slightly confused cos the strings appear intact (I dont think they are ever affected by endian conversion).

The problems is that there were Havok files outside the tmp container that have turned out to be unreadable by every version of the havok sdk i tried. So even if i manually extract the files from the tmp files i cant check if I got things right.

I wonder is there a way to mass convert a file's endianness?
You do not have the required permissions to view the files attached to this post.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: [Wii] Tenchu : tmp files and endianess

Post by shakotay2 »

JohnHudeski wrote:I am slightly confused cos the strings appear intact (I dont think they are ever affected by endian conversion).
strings can be looked up as a sequence of bytes or a byte array. These are not affected by the endianness "by definition".
The problems is that there were Havok files outside the tmp container that have turned out to be unreadable by every version of the havok sdk i tried.
u did not try a Linux version I guess?
I wonder is there a way to mass convert a file's endianness?
Only if you knew the exact format of the file (where are WORDs, DWORDs, bytes?)
Easiest way imho would be to install Linux (or ubuntu?) on a VM and use Havok tools to save HKX as XML.
From wikipedia it reads:
Havok Version 2011.2, released in September 2011, is known to work on [...] Linux
(Maybe it's not related to Havok Standalone tools 'cause I couldn't find a free downloadable Linux version .)
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: [Wii] Tenchu : tmp files and endianess

Post by JohnHudeski »

Thanks a lot for the reply. It seems like its too much work. Considering it wasn't even my first choice game.

I dont know if i posted this in the wrong section also.
Post Reply