LibT2FS 0.1
C API for accessing TEngine data in memory.
Loading...
Searching...
No Matches
ROM structs

structs as defined in file. More...

Data Structures

struct  s_t2fsDataCoordF32
struct  s_t2fsDataWorldCoordF32
struct  s_t2fsDataCoordS32
 yeah.. not kiddin More...
struct  s_t2fsDataCoordS16
struct  s_t2fsDataWorldCoordS16
struct  s_t2fsDataLevelInfo
struct  s_t2fsDataLevel_unk_1_0
struct  s_t2fsDataLevelMeshBuffer
struct  s_t2fsDataLevelMeshIndices
struct  s_t2fsDataLevel_unk_1_3
struct  s_t2fsDataLevel_unk_2_x_0
struct  s_t2fsDataLevel_unk_2_x_1
struct  s_t2fsDataLevelScriptedObject
struct  s_t2fsDataLevel_unk_4_0
struct  s_t2fsDataLevel_unk_4_1
struct  s_t2fsDataLevel_unk_4_2
struct  s_t2fsDataLevel_unk_4_3
struct  s_t2fsDataRegionBounds
struct  s_t2fsDataLevel_unk_5_x_0
struct  s_t2fsDataRegionObject
struct  s_t2fsDataRegionItem
struct  s_t2fsDataLevel_unk_5_x_3
struct  s_t2fsDataLevel_unk_6
struct  s_t2fsDataLevel_unk_7_0
struct  s_t2fsDataLevel_unk_7_1
struct  s_t2fsDataLevel_unk_7_2
struct  s_t2fsDataLevel_unk_7_3
struct  s_t2fsDataModelInfo
struct  s_t2fsDataBone
struct  s_t2fsDataBoneOrientation
struct  s_t2fsDataAnimationBoneIndices
struct  s_t2fsDataAnimationHeader
struct  s_t2fsDataHotpoint
struct  s_t2fsDataColorRGBA8
struct  s_t2fsDataMaterial
struct  s_t2fsDataVertex
struct  s_t2fsDataSceneHeader
struct  s_t2fsDataSceneHeader_0x48
struct  s_t2fsDataLevelSpawnPoint
struct  s_t2fsDataTextureHeader

Typedefs

typedef struct s_t2fsDataCoordF32 t2fsDataCoordF32
typedef struct s_t2fsDataWorldCoordF32 t2fsDataWorldCoordF32
typedef struct s_t2fsDataCoordS32 t2fsDataCoordS32
 yeah.. not kiddin
typedef struct s_t2fsDataCoordS16 t2fsDataCoordS16
typedef struct s_t2fsDataWorldCoordS16 t2fsDataWorldCoordS16
typedef struct s_t2fsDataLevelInfo t2fsDataLevelInfo
typedef struct s_t2fsDataLevel_unk_1_0 t2fsDataLevel_unk_1_0
typedef struct s_t2fsDataLevelMeshBuffer t2fsDataLevelMeshBuffer
typedef struct s_t2fsDataLevelMeshIndices t2fsDataLevelMeshIndices
typedef struct s_t2fsDataLevel_unk_1_3 t2fsDataLevel_unk_1_3
typedef struct s_t2fsDataLevel_unk_2_x_0 t2fsDataLevel_unk_2_x_0
typedef struct s_t2fsDataLevel_unk_2_x_1 t2fsDataLevel_unk_2_x_1
typedef struct s_t2fsDataLevelScriptedObject t2fsDataLevelScriptedObject
typedef struct s_t2fsDataLevel_unk_4_0 t2fsDataLevel_unk_4_0
typedef struct s_t2fsDataLevel_unk_4_1 t2fsDataLevel_unk_4_1
typedef struct s_t2fsDataLevel_unk_4_2 t2fsDataLevel_unk_4_2
typedef struct s_t2fsDataLevel_unk_4_3 t2fsDataLevel_unk_4_3
typedef struct s_t2fsDataRegionBounds t2fsDataRegionBounds
typedef struct s_t2fsDataLevel_unk_5_x_0 t2fsDataLevel_unk_5_x_0
typedef struct s_t2fsDataRegionObject t2fsDataRegionObject
typedef struct s_t2fsDataRegionItem t2fsDataRegionItem
typedef struct s_t2fsDataLevel_unk_5_x_3 t2fsDataLevel_unk_5_x_3
typedef struct s_t2fsDataLevel_unk_6 t2fsDataLevel_unk_6
typedef struct s_t2fsDataLevel_unk_7_0 t2fsDataLevel_unk_7_0
typedef struct s_t2fsDataLevel_unk_7_1 t2fsDataLevel_unk_7_1
typedef struct s_t2fsDataLevel_unk_7_2 t2fsDataLevel_unk_7_2
typedef struct s_t2fsDataLevel_unk_7_3 t2fsDataLevel_unk_7_3
typedef struct s_t2fsDataModelInfo t2fsDataModelInfo
typedef struct s_t2fsDataBone t2fsDataBone
typedef struct s_t2fsDataBoneOrientation t2fsDataBoneOrientation
typedef struct s_t2fsDataAnimationBoneIndices t2fsDataAnimationBoneIndices
typedef struct s_t2fsDataAnimationHeader t2fsDataAnimationHeader
typedef struct s_t2fsDataHotpoint t2fsDataHotpoint
typedef struct s_t2fsDataColorRGBA8 t2fsDataColorRGBA8
typedef struct s_t2fsDataMaterial t2fsDataMaterial
typedef struct s_t2fsDataVertex t2fsDataVertex
typedef struct s_t2fsDataSceneHeader t2fsDataSceneHeader
typedef struct s_t2fsDataSceneHeader_0x48 t2fsDataSceneHeader_0x48
typedef struct s_t2fsDataLevelSpawnPoint t2fsDataLevelSpawnPoint
typedef struct s_t2fsDataTextureHeader t2fsDataTextureHeader

Detailed Description

structs as defined in file.

All defined structs that are as in file (possible after decompression and/or deinterleaving) are prefixed with t2fsData

Typedef Documentation

◆ t2fsDataCoordF32

◆ t2fsDataWorldCoordF32

◆ t2fsDataCoordS32

yeah.. not kiddin

◆ t2fsDataCoordS16

This is a test ..

◆ t2fsDataWorldCoordS16

This is a test ..

◆ t2fsDataLevelInfo

◆ t2fsDataLevel_unk_1_0

These have almost always the same values, not that interesting?

Entry from interleaved t2fsArray (after deinterleaving)

◆ t2fsDataLevelMeshBuffer

Entry from interleaved t2fsArray (after deinterleaving)

◆ t2fsDataLevelMeshIndices

Entry from interleaved t2fsArray (after deinterleaving)

◆ t2fsDataLevel_unk_1_3

Entry from interleaved t2fsArray (after deinterleaving)

◆ t2fsDataLevel_unk_2_x_0

◆ t2fsDataLevel_unk_2_x_1

◆ t2fsDataLevelScriptedObject

It looks like all the used models have at least one bone and one pose. So these are probably scripted objects.

Entry from interleaved t2fsArray (after deinterleaving)

Looks the same as t2fsDataRegionObject except that it's 12 bytes shorter (missing between scale and modelId).

◆ t2fsDataLevel_unk_4_0

◆ t2fsDataLevel_unk_4_1

◆ t2fsDataLevel_unk_4_2

◆ t2fsDataLevel_unk_4_3

◆ t2fsDataRegionBounds

These look like region coords min/max x,y

Entry from t2fsArray.

◆ t2fsDataLevel_unk_5_x_0

Ground objects? Model id's seem to match, but how to position them?

The scale value also looks good and like a scale value from other structs, so very likely.

Everything other then scale and modelId are a guess..

https://ultra64.ca/files/documentation/online-manuals/man/pro-man/pro24/index24.1.html

Entry from t2fsArray.

◆ t2fsDataRegionObject

Mountains, trees, buildings, cars and stuff

on Turok2Demo.lss it's 56 in size, that's 4 more..

Entry from interleaved t2fsArray (after deinterleaving)

◆ t2fsDataRegionItem

Level items (pickups)

Entry from t2fsArray.

◆ t2fsDataLevel_unk_5_x_3

Is this the groud mesh?

Entry from interleaved t2fsArray (after deinterleaving)

◆ t2fsDataLevel_unk_6

◆ t2fsDataLevel_unk_7_0

◆ t2fsDataLevel_unk_7_1

◆ t2fsDataLevel_unk_7_2

◆ t2fsDataLevel_unk_7_3

◆ t2fsDataModelInfo

◆ t2fsDataBone

typedef struct s_t2fsDataBone t2fsDataBone

◆ t2fsDataBoneOrientation

◆ t2fsDataAnimationBoneIndices

/root/0/ModelID/2/PoseID/1/data

This is hypothetical.. TODO

It is guessed that these indices might be useful with 0/x/2/x/5/1/data and 0/x/2/x/5/2/data

◆ t2fsDataAnimationHeader

/root/0/ModelID/2/PoseID/5/0/data

This struct is for Seeds of Evil. South Park is lacking the last 8 bytes.

This is hypothetical.. TODO

◆ t2fsDataHotpoint

◆ t2fsDataColorRGBA8

◆ t2fsDataMaterial

find dumps/seeds/0/ | grep -P "seeds/0/([0-9]+)/1/2/([0-9]+)/([0-9]+)/0/data" | xargs -n1 xxd -c24

◆ t2fsDataVertex

◆ t2fsDataSceneHeader

xxd -c76 -seek 8 dumps/seeds/18/0/data
xxd -c72 -seek 8 dumps/southpark/17/0/data
  • Seeds of Evil.lss - 76 bytes in size
  • win32.dat - 72 bytes in size

◆ t2fsDataSceneHeader_0x48

As in South Park (four bytes shorter then in Seeds of Evil).

See also
s_t2fsDataSceneHeader

◆ t2fsDataLevelSpawnPoint

◆ t2fsDataTextureHeader