AGSC (File Format): Difference between revisions

→‎Pool: Starting command table list that MrSinistar came up with. WIP
>Aruki
>Aruki
(→‎Pool: Starting command table list that MrSinistar came up with. WIP)
Line 75: Line 75:
Every 4 bytes were originally little endian, but have been swapped to big endian in the AGSC files (despite not being longs). To read the data as originally formatted, every four bytes needs to be byte-swapped.
Every 4 bytes were originally little endian, but have been swapped to big endian in the AGSC files (despite not being longs). To read the data as originally formatted, every four bytes needs to be byte-swapped.


{|class="wikitable"
{| class="wikitable"
! Offset
! Offset
! Size
! Size
Line 93: Line 93:


The SoundMacro terminates when the END command is read.  The command ID for END is 0 and has null command arguments; start the next SoundMacro after reading it.  The entire chunk terminates when 0xFFFF is read.
The SoundMacro terminates when the END command is read.  The command ID for END is 0 and has null command arguments; start the next SoundMacro after reading it.  The entire chunk terminates when 0xFFFF is read.
These are the possible commands:
{| class="wikitable"
! width="2%" | ID
! width="6%" | Name
! colspan="92%" | Arguments
|-
| 0x1
| STOP
| width="11.5%" | 1
| width="11.5%" {{unknown|}}
| width="11.5%" {{unknown|}}
| width="11.5%" {{unknown|}}
| width="11.5%" {{unknown|}}
| width="11.5%" {{unknown|}}
| width="11.5%" {{unknown|}}
| width="11.5%" {{unknown|}}
|-
| 0x2
| SPLITKEY
| 2
| Keynumber
| colspan="2" | SoundMacro ID
| colspan="2" | SoundMacro step
| colspan="2" {{unknown|}}
|}


=== Project ===
=== Project ===
Anonymous user