RoomObject: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|SIGNEDNESS = Unsigned | |SIGNEDNESS = Unsigned | ||
|ENDIANNESS = [[wikipedia:Little Endian|Little-Endian]] | |ENDIANNESS = [[wikipedia:Little Endian|Little-Endian]] | ||
|STATUS = | |STATUS = 95% (Missing two variables) | ||
}} | }} | ||
Line 25: | Line 25: | ||
|4 Bytes | |4 Bytes | ||
|Int | |Int | ||
| | |Object Type | ||
| | | | ||
| | | | ||
Line 91: | Line 91: | ||
| | | | ||
|} | |} | ||
[[Category:Danganronpa: Trigger Happy Havoc]] [[Category:Danganronpa 2: Goodbye Despair]] [[Category: Technical]] [[Category: Data Structures]] |
Latest revision as of 02:35, 18 February 2020
Type | Data Structures |
---|---|
System | Steam (Likely Vita Too) |
Applicable Titles | Danganronpa: Trigger Happy Havoc and Danganronpa 2: Goodbye Despair |
Credit | SPIRAL Server |
Default Signedness | Unsigned |
Default Endianness | Little-Endian |
Implementation Status | 95% (Missing two variables) |
RoomObject files are used by the Steam releases of Danganronpa: Trigger Happy Havoc and Danganronpa 2: Goodbye Despair. This data structure is found within the third file of any map PAK file (also named bg_%03d_00_place.dat), which is itself a PAK structure.
Specification
Room Object | |||||
---|---|---|---|---|---|
Offset | Size | Data Type | Function | Example Value | Notes |
0x00 | 4 Bytes | Int | Object Type | ||
0x04 | 4 Bytes | Int | ID | 20 | This is the character or object ID used in scripts. |
0x08 | 4 Bytes | Int | Model ID | 24 | This is the ID of the model that's used for this object. This is used for determining whether to hide or show an object, but it does not affect the position of the model. |
0x0C | 4 Bytes | Float | x coord | 700 | The "origin" of 0 is in the middle, positive x values go to the left, and negative x values go to the right. |
0x10 | 4 Bytes | Float | y coord | 100 | |
0x14 | 4 Bytes | Float | z coord | 200 | |
0x18 | 4 Bytes | Float | width | 75 | |
0x1C | 4 Bytes | Float | height | 96 | |
0x20 | 4 Bytes | Float | Rotation | The rotation of the collision box. 0 faces away from the camera, operates clockwise. | |
0x24 | 4 Bytes | Int | Unknown |