Add XScript definitions for Rebellion's Asura engine formats: - Archive chunks (fcsr, acsr, rcsr) - Texture chunks (tsxt, xbtx2d_chunk) - Resource chunks and headers Used by games like Sniper Elite V2 on Xbox 360. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
929 B
Plaintext
29 lines
929 B
Plaintext
// STSA - Asset List Chunk (reversed "ASTS")
|
|
// Contains asset/file listings
|
|
// Found in audio streaming archives (.asr files)
|
|
|
|
type stsa_chunk [display="STSA Asset List"] 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"];
|
|
|
|
// File/asset count
|
|
u32 file_count;
|
|
file_count = file_count [ui, readonly, display="File Count"];
|
|
|
|
// Sniper Elite III+ has an extra field indicating internal (0) or external (1) files
|
|
// Check version to determine format
|
|
if (version >= 3) {
|
|
u32 external_flag;
|
|
external_flag = external_flag [ui, readonly, display="External Flag"];
|
|
}
|
|
}
|