- Enhanced chunk parsing - Improved structure definitions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
// STUC - Structure/Cutscene Chunk (reversed "CUTS")
|
|
// Contains cutscene structure and scene data
|
|
// Found in .cut files
|
|
|
|
type stuc_chunk [display="STUC Cutscene Structure"] byteorder BE
|
|
{
|
|
// Standard 16-byte Asura chunk header
|
|
chunk_id = ascii(read(4));
|
|
u32 chunk_size;
|
|
u32 version;
|
|
u32 flags;
|
|
|
|
chunk_id = chunk_id [ui, readonly, display="Chunk ID"];
|
|
chunk_size = chunk_size [ui, readonly, display="Chunk Size"];
|
|
version = version [ui, readonly, display="Version"];
|
|
flags = flags [ui, readonly, display="Flags"];
|
|
|
|
// Scene entry count
|
|
u32 entry_count;
|
|
entry_count = entry_count [ui, readonly, display="Entry Count"];
|
|
|
|
// Unknown fields
|
|
u32 unknown1;
|
|
u32 unknown2;
|
|
|
|
// Scene name (null-terminated)
|
|
scene_name = cstring();
|
|
scene_name = scene_name [ui, readonly, display="Scene Name"];
|
|
|
|
// Use scene name for display (clean removes non-printable chars)
|
|
_name = clean(scene_name);
|
|
|
|
// Position data (3 floats for X, Y, Z)
|
|
f32 pos_x;
|
|
f32 pos_y;
|
|
f32 pos_z;
|
|
|
|
pos_x = pos_x [ui, readonly, display="Position X"];
|
|
pos_y = pos_y [ui, readonly, display="Position Y"];
|
|
pos_z = pos_z [ui, readonly, display="Position Z"];
|
|
}
|