Difference between revisions of "Object Placement (.TAT/.TRE/.TSC) File Format"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Heinermann (talk | contribs)  (→Object Entry:  add tree bloom index)  | 
				Heinermann (talk | contribs)   (extra note)  | 
				||
| Line 3: | Line 3: | ||
Object placement format.  | Object placement format.  | ||
TSC has objects from category 0x09 (gt), contains various general objects.  | TSC has objects from category 0x09 (gt), contains various general objects. Contains bloomable trees.  | ||
TRE has objects from category 0x0B (vt), contains mainly vegetation like grass and trees.  | TRE has objects from category 0x0B (vt), contains mainly vegetation like grass and trees.  | ||
Revision as of 10:26, 31 July 2025
Note: This page pertains to Reverse Engineering of Okami File Formats.
Object placement format.
TSC has objects from category 0x09 (gt), contains various general objects. Contains bloomable trees.
TRE has objects from category 0x0B (vt), contains mainly vegetation like grass and trees.
File Format
Header
| Start (Byte) | Width (Bytes) | Type | Description | 
|---|---|---|---|
| 0 | 4 | uint32_t | 
Number of Entries | 
| 4 | 40 * numEntries | TObjEntry[numEntries] | 
Entries | 
| padding | Pad zeroes for 16 byte alignment | 
Object Entry
| Start (Byte) | Width (Bytes) | Type | Description | 
|---|---|---|---|
| 0 | 1 | uint8_t | 
Object Table Index | 
| 1 | 1 | uint8_t | 
Object category. 0x09 = gt/, 0x0B = vt/
 | 
| 2 | 1 | uint8_t | 
Unknown | 
| 3 | 1 | uint8_t | 
Unknown | 
| 4 | 3 | PackedTuple<uint8_t> | 
Size (width, height, depth). | 
| 7 | 3 | PackedTuple<uint8_t> | 
Rotation around axis (x, y, z). | 
| 10 | 6 | PackedTuple<uint16_t> | 
Location (x, y, z) | 
| 16 | 4 | uint8_t[4] | 
Unknown | 
| 20 | 1 | uint8_t | 
Unknown | 
| 21 | 4 | uint8_t[4] | 
Unknown | 
| 25 | 1 | uint8_t | 
Unknown. Usually 0xFF. | 
| 26 | 1 | uint8_t | 
Unknown | 
| 27 | 1 | uint8_t | 
Tree bloom index. | 
| 28 | 12 | uint8_t[12] | 
Unkown/padding |