Actual tested on Monster High: NGS on PC/Wii , Barbie PC, Falling Skies PC, Scooby-Doo 1/2 PC
Can dispaly Texture
3D model Viewer in progress.....
Hunkfile Viewer (.hnk) Torus Games
| offset 0x5 | Support Games |
|---|---|
| \x01\x00\x01\x00\x01 | MH(PC), Barbie(PC), Falling Skies(PC) |
| \xE5\x0A\x01\x00\x01 | MH(PC), Barbie(PC), Falling Skies(PC) |
| \x01\x04\x01\x00\x01 | Scooby Doo(PC) |
| Another | Wii games |
-
Texture information is contained in the Texture Header [0x41150].
-
The first two bytes correspond to the texture format.
| Two First Bytes | Texture Format |
|---|---|
| 0xA1 0xBC | CMPR - Wii |
| 0xE9 0x78 | Unknown - Wii |
| 0xD3 0x3A | DXT5 - PC |
| 0xF9 0x3D | DXT1 - PC |
| 0x9F 0x5B | R8G8B8A8 - PC |
- Two bytes
| Game | Width | Height | Endian | Example bytes | Out |
|---|---|---|---|---|---|
| PC | 0x0C | 0x0E | Little Endian | 0x00 0x02 | 512 |
| Wii | 0x0C | 0x0E | Big Endian | 0x02 0x00 | 512 |
| Item | Value PC | Value Wii |
|---|---|---|
| File Name | 0x40071 | 0x40071 |
| ClankBodyTemplate main | 0x45100 | |
| ClankBodyTemplate secondary | 0x402100 | |
| ClankBodyTemplate name | 0x43100 | |
| ClankBodyTemplate data | 0x44100 | |
| ClankBodyTemplate data 2 | 0x404100 | |
| LiteScript main | 0x4300c | |
| LiteScript data | 0x4200c | |
| LiteScript data 2 | 0x4100c | |
| SqueakSample data | 0x204090 | |
| TSETexture header | 0x41150 | 0x41150 |
| TSETexture data | 0x40151 | 0x202151 |
| TSETexture data 2 | 0x801151 | |
| RenderModelTemplate header | 0x101050 | |
| RenderModelTemplate data | 0x40054 | |
| RenderModelTemplate data table | 0x20055 | |
| Animation data | 0x42005 | |
| Animation data 2 | 0x41005 | |
| RenderSprite data | 0x41007 | |
| EffectsParams data | 0x43112 | |
| TSEFontDescriptor data | 0x43087 | |
| TSEDataTable data 1 | 0x43083 | |
| TSEDataTable data 2 | 0x4008a | |
| StateFlowTemplate data | 0x43088 | |
| StateFlowTemplate data 2 | 0x42088 | |
| SqueakStream data | 0x204092 | |
| SqueakStream data 2 | 0x201092 | |
| EntityPlacement data | 0x42009 | |
| EntityPlacement data 2 | 0x103009 | |
| EntityPlacement BCC data | 0x101009 | |
| EntityPlacement level data | 0x102009 | |
| EntityTemplate data | 0x101008 |
- Texture information is contained in the Texture Header [0x41056].
| 0x34:0x40 | Texture Format |
|---|---|
| DXT5 | DXT5 - PC |
| DXT1 | DXT1 - PC |
| 0x15 | R8G8B8A8 - PC |
- Two bytes
| Game | Width | Height | Endian | Example bytes | Out |
|---|---|---|---|---|---|
| PC | 0x30 | 0x32 | Little Endian | 0x00 0x02 | 512 |
- File Name 40071
- texture Header 41056
- texture data 40057
- download repo
- run hunkfile_viewer.py
https://github.com/desuex/hunkfile - HNK Structure/Table