re2_opcodes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
re2_opcodes [2024/08/03 00:52] – 3lric | re2_opcodes [2024/08/04 06:23] (current) – 3lric | ||
---|---|---|---|
Line 1: | Line 1: | ||
^ Instruction Name ^ Length | ^ Instruction Name ^ Length | ||
|{00} Nop | 01 |++00++|\\ | |{00} Nop | 01 |++00++|\\ | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x00 // 0x00 | + | UCHAR Opcode; // 0x00 |
} Nop; | } Nop; | ||
This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | ||
|{01} Evt_end | |{01} Evt_end | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x01 // 0x01 | + | UCHAR Opcode; // 0x01 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
} Evt_end; | } Evt_end; | ||
This bytecode ends the current Main/Sub script.++| | This bytecode ends the current Main/Sub script.++| | ||
|{02} Evt_next | |{02} Evt_next | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x02 // 0x02 | + | UCHAR Opcode; // 0x02 |
} Evt_next; | } Evt_next; | ||
This bytecode moves to the next event in the sequence.++| | This bytecode moves to the next event in the sequence.++| | ||
|{03} Evt_chain | |{03} Evt_chain | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x03 // 0x03 | + | UCHAR Opcode; // 0x03 |
- | UCHAR NextEventId; | + | UCHAR NextEventId; |
} Evt_chain; | } Evt_chain; | ||
This bytecode chains the current event to the specified next event ID, allowing the script to continue execution from the linked event.++| | This bytecode chains the current event to the specified next event ID, allowing the script to continue execution from the linked event.++| | ||
- | |{04} Evt_exec | + | |{04} Evt_exec |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x04 // 0x04 | + | UCHAR Opcode; // 0x04 |
UCHAR data1; // Typically FF | UCHAR data1; // Typically FF | ||
- | UCHAR GoSub; // Opcode for GoSub 0x18 | + | UCHAR GoSub; // Opcode for GoSub 0x18 |
- | UCHAR ScdId; // Sub Script ID to Jump to | + | UCHAR ScdId; // Sub Script ID to Jump to |
} Evt_exec; | } Evt_exec; | ||
This bytecode executes the specified event with given parameters.++| | This bytecode executes the specified event with given parameters.++| | ||
|{05} Evt_kill | |{05} Evt_kill | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x05 // 0x05 | + | UCHAR Opcode; // 0x05 |
- | UCHAR EventId; | + | UCHAR EventId; |
} Evt_kill; | } Evt_kill; | ||
This bytecode terminates the specified event.++| | This bytecode terminates the specified event.++| | ||
|{06} Ifel_ck | |{06} Ifel_ck | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x06 // 0x06 | + | UCHAR Opcode; // 0x06 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | USHORT Size; // Size of the block to check | + | USHORT Size; // Size of the block to check |
} Ifel_ck; | } Ifel_ck; | ||
This bytecode checks a condition and branches accordingly.++| | This bytecode checks a condition and branches accordingly.++| | ||
|{07} Else_ck | |{07} Else_ck | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x07 // 0x07 | + | UCHAR Opcode; // 0x07 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | USHORT Size; // Size of the block to check | + | USHORT Size; // Size of the block to check |
} Else_ck; | } Else_ck; | ||
This bytecode specifies the size of the block to check if the corresponding Ifel_ck condition is met.++| | This bytecode specifies the size of the block to check if the corresponding Ifel_ck condition is met.++| | ||
|{08} Endif | 02 |++08 00++|\\ | |{08} Endif | 02 |++08 00++|\\ | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x08 // 0x08 | + | UCHAR Opcode; // 0x08 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
} Endif; | } Endif; | ||
This bytecode marks the end of an If/ | This bytecode marks the end of an If/ | ||
- | |{09} Sleep | 04 |++09 ?? ?? 00++|\\ | + | |{09} Sleep | 04 |++09 ?? CO NT++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x09 // 0x09 | + | UCHAR Opcode; // 0x09 |
- | UCHAR Sleeping; | + | UCHAR Sleeping; |
- | USHORT Count; // Timer / Sleep Duration | + | USHORT Count; // Timer / Sleep Duration |
} Sleep; | } Sleep; | ||
This bytecode pauses script execution for the specified duration.++| | This bytecode pauses script execution for the specified duration.++| | ||
- | |{0A} Sleeping | + | |{0A} Sleeping |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x0A // 0x0A | + | UCHAR Opcode; // 0x0A |
- | USHORT Count; // Timer / Sleep Duration | + | USHORT Count; // Timer / Sleep Duration |
} Sleeping; | } Sleeping; | ||
This bytecode pauses script execution for the specified duration.++| | This bytecode pauses script execution for the specified duration.++| | ||
|{0B} Wsleep | |{0B} Wsleep | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x0B // 0x0B | + | UCHAR Opcode; // 0x0B |
} Wsleep; | } Wsleep; | ||
This bytecode used before 0C will wait until the current XA sound has finished playing before proceeding.++| | This bytecode used before 0C will wait until the current XA sound has finished playing before proceeding.++| | ||
|{0C} Wsleeping | |{0C} Wsleeping | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x0C // 0x0C | + | UCHAR Opcode; // 0x0C |
} Wsleeping; | } Wsleeping; | ||
This bytecode used after 0B will wait until the current XA sound has finished playing before proceeding.++| | This bytecode used after 0B will wait until the current XA sound has finished playing before proceeding.++| | ||
- | |{0D} For | 06 |++0D 00 ?? ?? ?? ??++|\\ | + | |{0D} For | 06 |++0D 00 SI ZE CO NT++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x0D // 0x0D | + | UCHAR Opcode; // 0x0D |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | USHORT Size; // Size of the block to check | + | USHORT Size; // Size of the block to check |
- | USHORT Count; // Amount of times block is looped | + | USHORT Count; // Amount of times block is looped |
} For; | } For; | ||
This bytecode begins a for-loop with the specified start and end values.++| | This bytecode begins a for-loop with the specified start and end values.++| | ||
|{0E} Next | 02 |++0E 00++|\\ | |{0E} Next | 02 |++0E 00++|\\ | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x0E // 0x0E | + | UCHAR Opcode; // 0x0E |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
} Next; | } Next; | ||
This bytecode marks the end of a for-loop.++| | This bytecode marks the end of a for-loop.++| | ||
- | |{0F} While | 04 |++0F 00 ?? ??++|\\ | + | |{0F} While | 04 |++0F 00 SI ZE++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x0F // 0x0F | + | UCHAR Opcode; // 0x0F |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | SHORT Size; // Size of the block to check | + | USHORT |
} While; | } While; | ||
This bytecode begins a while-loop that continues as long as the specified condition is true.++| | This bytecode begins a while-loop that continues as long as the specified condition is true.++| | ||
|{10} Ewhile | |{10} Ewhile | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x10 // 0x10 | + | UCHAR Opcode; // 0x10 |
- | UCHAR LoopId; // ID of the while-loop to end | + | UCHAR LoopId; // ID of the while-loop to end |
} Ewhile; | } Ewhile; | ||
This bytecode ends the specified while-loop.++| | This bytecode ends the specified while-loop.++| | ||
- | |{11} Do | 04 |++11 00 ?? ??++|\\ | + | |{11} Do | 04 |++11 00 SI ZE++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x11 // 0x11 | + | UCHAR Opcode; // 0x11 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | SHORT Size; // Size of the block to check | + | USHORT |
} Do; | } Do; | ||
This bytecode begins a do-while loop that executes the loop body once before checking the condition.++| | This bytecode begins a do-while loop that executes the loop body once before checking the condition.++| | ||
|{12} Edwhile | |{12} Edwhile | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x12 // 0x12 | + | UCHAR Opcode; // 0x12 |
- | UCHAR LoopId; // ID of the do-while loop to end | + | UCHAR LoopId; // ID of the do-while loop to end |
} Edwhile; | } Edwhile; | ||
This bytecode ends the specified do-while loop.++| | This bytecode ends the specified do-while loop.++| | ||
|{13} Switch | |{13} Switch | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x13 // 0x13 | + | UCHAR Opcode; // 0x13 |
- | UCHAR SwitchId; | + | UCHAR SwitchId; |
- | USHORT Size; // Size of the block to check | + | USHORT Size; // Size of the block to check |
} Switch; | } Switch; | ||
This bytecode begins a switch-case block with the specified switch variable and default size.++| | This bytecode begins a switch-case block with the specified switch variable and default size.++| | ||
- | |{14} Case | 06 |++14 ID ?? ?? ?? 00++|\\ | + | |{14} Case | 06 |++14 00 SI ZE VA LU++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x14 // 0x14 | + | UCHAR Opcode; // 0x14 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | USHORT Size; // Size of the block to check | + | USHORT Size; // Size of the block to check |
- | USHORT CaseValue; | + | USHORT CaseValue; |
} Case; | } Case; | ||
This bytecode defines a case within a switch-case block.++| | This bytecode defines a case within a switch-case block.++| | ||
|{15} Default | |{15} Default | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x15 // 0x15 | + | UCHAR Opcode; // 0x15 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
} Default; | } Default; | ||
This bytecode marks the default case in a switch-case block.++| | This bytecode marks the default case in a switch-case block.++| | ||
|{16} Eswitch | |{16} Eswitch | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x16 // 0x16 | + | UCHAR Opcode; // 0x16 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
} Eswitch; | } Eswitch; | ||
This bytecode ends the switch-case block.++| | This bytecode ends the switch-case block.++| | ||
- | |{17} Goto | | + | |{17} Goto | |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x17 // 0x17 | + | UCHAR Opcode; |
- | UCHAR Ifel_ctr; // Always 0xFF (0x01 on r304-sub05, only) | + | UCHAR Ifel_ctr; |
- | UCHAR Loop_ctr; // Always 0xFF (0x00 on r500-sub04 and sub07, only) | + | UCHAR Loop_ctr; |
- | UCHAR zAlign; // Always 0x00 | + | UCHAR zAlign; |
- | SHORT Offset; // Relative Pointer, always references same script | + | SHORT Offset; |
- | } Goto; | + | } Goto; |
This bytecode jumps to the specified offset within the script.++| | This bytecode jumps to the specified offset within the script.++| | ||
|{18} Gosub | 02 |++18 ID++|\\ | |{18} Gosub | 02 |++18 ID++|\\ | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x18 // 0x18 | + | UCHAR Opcode; // 0x18 |
- | UCHAR SubroutineId; | + | UCHAR SubroutineId; |
} Gosub; | } Gosub; | ||
This bytecode calls the specified subroutine.++| | This bytecode calls the specified subroutine.++| | ||
- | |{19} Return | + | |{19} Return |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x19 // 0x19 | + | UCHAR Opcode; // 0x19 |
- | UCHAR | + | UCHAR |
} Return; | } Return; | ||
This bytecode returns from the specified subroutine.++| | This bytecode returns from the specified subroutine.++| | ||
- | |{1A} Break | 02 |++1A ID++|\\ | + | |{1A} Break | 02 |++1A 00++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x1A // 0x1A | + | UCHAR Opcode; // 0x1A |
- | UCHAR | + | UCHAR |
} Break; | } Break; | ||
This bytecode breaks out of the specified loop.++| | This bytecode breaks out of the specified loop.++| | ||
- | |{1B} For2 | 06 |++1B 00 ?? ?? 00 ??++|\\ | + | |{1B} For2 | 06 |++1B 00 XX XX 00 XX XX++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x1B // 0x1B | + | UCHAR Opcode; // 0x1B |
- | UCHAR | + | UCHAR |
- | SHORT StartValue; | + | SHORT StartValue; |
- | UCHAR | + | UCHAR |
- | UCHAR EndValue; | + | SHORT EndValue; |
} For2; | } For2; | ||
This bytecode begins a for-loop with the specified start and end values.++| | This bytecode begins a for-loop with the specified start and end values.++| | ||
|{1C} Break_point | |{1C} Break_point | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x1C // 0x1C | + | UCHAR Opcode; // 0x1C |
} Break_point; | } Break_point; | ||
This bytecode sets a breakpoint for debugging purposes.++| | This bytecode sets a breakpoint for debugging purposes.++| | ||
- | |{1D} Work_copy | + | |{1D} Work_copy |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x1D // 0x1D | + | UCHAR Opcode; // 0x1D |
- | UCHAR Source; // Source index | + | UCHAR Source; // Source index |
- | UCHAR | + | UCHAR |
- | UCHAR Typecast; | + | UCHAR Typecast; |
} Work_copy; | } Work_copy; | ||
This bytecode copies a value from the source index to the destination index with an optional typecast.++| | This bytecode copies a value from the source index to the destination index with an optional typecast.++| | ||
- | |{1E} | + | |{1E} |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x1E // 0x1E | + | UCHAR Opcode; // 0x1E |
- | } Nop1E; | + | } Nop; |
This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | ||
- | |{1F} | + | |{1F} |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x1F // 0x1F | + | UCHAR Opcode; // 0x1F |
- | } Nop1F; | + | } Nop; |
This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | ||
|{20} Nop | 01 |++20++|\\ | |{20} Nop | 01 |++20++|\\ | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x20 // 0x20 | + | UCHAR Opcode; // 0x20 |
} Nop; | } Nop; | ||
This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | This bytecode is used for alignment of 1-byte opcodes and ending ElseIf blocks.++| | ||
- | |{21} Ck | 04 |++21 ?? ?? ?? | + | |{21} Ck | 04 |++21 ?? ID ?? |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x21 // 0x21 | + | UCHAR Opcode; // 0x21 |
- | UCHAR Flag; // System flag to check | + | UCHAR Flag; // System flag to check |
- | UCHAR Id; // Bit ID to check | + | UCHAR Id; // Bit ID to check |
- | UCHAR OnOff; // On/Off state to check | + | UCHAR OnOff; // On/Off state to check |
} Ck; | } Ck; | ||
This bytecode checks the specified system flag and bit ID for the given On/Off state.++| | This bytecode checks the specified system flag and bit ID for the given On/Off state.++| | ||
- | |{22} Set | 04 |++22 ?? ?? ?? | + | |{22} Set | 04 |++22 ?? ID ?? |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x22 // 0x22 | + | UCHAR Opcode; // 0x22 |
- | UCHAR Flag; // System flag to set | + | UCHAR Flag; // System flag to set |
- | UCHAR Id; // Bit ID to set | + | UCHAR Id; // Bit ID to set |
- | UCHAR OnOff; // On/Off state to set | + | UCHAR OnOff; // On/Off state to set |
} Set; | } Set; | ||
This bytecode sets the specified system flag and bit ID to the given On/Off state.++| | This bytecode sets the specified system flag and bit ID to the given On/Off state.++| | ||
- | |{23} Cmp | 06 |++23 ?? ?? ?? ?? ??++|\\ | + | |{23} Cmp | 06 |++23 00 ID ?? VA LU++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x23 // | + | UCHAR Opcode; |
- | UCHAR | + | UCHAR zAlign; |
- | UCHAR Operator; // Comparison operator | + | UCHAR |
- | USHORT | + | UCHAR Operator; |
- | } Cmp; | + | SHORT Value; |
+ | } Cmp; | ||
This bytecode compares the specified system flag with the given value using the provided comparison operator.++| | This bytecode compares the specified system flag with the given value using the provided comparison operator.++| | ||
- | |{24} Save | 04 |++24 ID ?? ??++|\\ | + | |{24} Save | 04 |++24 ID XX XX++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x24 // 0x24 | + | UCHAR Opcode; // 0x24 |
- | UCHAR Destination; | + | UCHAR Destination; |
- | SHORT Source; // Source value | + | SHORT Source; // Source value |
} Save; | } Save; | ||
This bytecode saves the specified source value to the destination index.++| | This bytecode saves the specified source value to the destination index.++| | ||
- | |{25} Copy | 03 |++25 ?? ?? | + | |{25} Copy | 03 |++25 ID ?? |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x25 // 0x25 | + | UCHAR Opcode; // 0x25 |
UCHAR Destination; | UCHAR Destination; | ||
- | UCHAR Source; // Source index | + | UCHAR Source; // Source index |
} Copy; | } Copy; | ||
This bytecode copies the value from the source index to the destination index.++| | This bytecode copies the value from the source index to the destination index.++| | ||
- | |{26} Calc | 06 |++26 ?? ?? ?? ?? ??++|\\ | + | |{26} Calc | 06 |++26 00 ?? ?? VA LU++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x26 // 0x26 | + | UCHAR Opcode; // 0x26 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | UCHAR Operator; | + | UCHAR Operator; |
- | UCHAR Flag; // Memory Location to apply math to | + | UCHAR Flag; // Memory Location to apply math to |
SHORT Value; // Amount used in operation | SHORT Value; // Amount used in operation | ||
} Calc; | } Calc; | ||
This bytecode performs the specified arithmetic operation on the operands and stores the result.++| | This bytecode performs the specified arithmetic operation on the operands and stores the result.++| | ||
- | |{27} Calc2 | 04 |++27 ?? ?? ??++|\\ | + | |{27} Calc2 | 04 |++27 ?? ?? ??++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x27 // 0x27 | + | UCHAR Opcode; |
- | UCHAR Operator; // Arithmetic | + | UCHAR Operator; |
- | UCHAR Flag; // Memory Location to apply math to | + | UCHAR Flag; |
- | UCHAR Value; // Amount used in operation | + | UCHAR Value; |
- | } Calc2; | + | } Calc2; |
- | This bytecode performs the specified arithmetic operation on the operand | + | This bytecode performs the specified arithmetic operation on the two operands |
|{28} Sce_rnd | |{28} Sce_rnd | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x28 // 0x28 | + | UCHAR Opcode; // 0x28 |
} Sce_rnd; | } Sce_rnd; | ||
- | This bytecode generates a random value.++| | + | This bytecode generates a random value.++| |
|{29} Cut_chg | |{29} Cut_chg | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x29 // 0x29 | + | UCHAR Opcode; // 0x29 |
- | UCHAR CutId; // ID of the camera to change to | + | UCHAR CutId; // ID of the cutscene |
} Cut_chg; | } Cut_chg; | ||
This bytecode changes the current camera to the specified camera ID.++| | This bytecode changes the current camera to the specified camera ID.++| | ||
|{2A} Cut_old | |{2A} Cut_old | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x2A // 0x2A | + | UCHAR Opcode; // 0x2A |
} Cut_old; | } Cut_old; | ||
This bytecode reverts to the previous camera.++| | This bytecode reverts to the previous camera.++| | ||
- | |{2B} Message_on | + | |{2B} Message_on |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x2B // | + | UCHAR Opcode; // 0x2B |
- | UCHAR Type; // Sub/Main? | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | UCHAR MessageId; | + | UCHAR Type; // Message type |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR MessageId; |
- | USHORT DisplayTime; | + | USHORT DisplayTime; |
} Message_on; | } Message_on; | ||
This bytecode displays the specified message.++| | This bytecode displays the specified message.++| | ||
- | |{2C} Aot_set | + | |{2C} Aot_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
UCHAR Opcode; // 0x2C | UCHAR Opcode; // 0x2C | ||
- | CHAR Aot; // Aot | + | CHAR Aot; // Aot |
- | UCHAR SCE; // Id /* tagSCE_AOT | + | UCHAR SCE; // Id |
- | UCHAR SAT; // Type | + | UCHAR SAT; // Type |
UCHAR nFloor; // nFloor | UCHAR nFloor; // nFloor | ||
UCHAR Super; // Super | UCHAR Super; // Super | ||
- | SHORT X; // Position | + | SHORT X; // Position |
- | SHORT Z; // Position | + | SHORT Z; // Position |
- | USHORT W; // Size | + | USHORT W; // Size |
- | USHORT D; // Size */ tagSCE_AOT | + | USHORT D; // Size |
- | USHORT Data0; // Sce_Message | + | USHORT Data0; // Sce_Message / Flag Type / Always 0x00FF |
- | // byte0 ??? | + | USHORT Data1; // Sce_Message / Flag Id / Script Id Init & Complete |
- | // byte1 MSG Id | + | USHORT Data2; // Always 0xFFFF |
- | // | + | } Aot_set; |
- | // Sce_Flg_chg | + | |
- | // Flag Type | + | |
- | // For example, if(Ck(ROOM, 0x01, OFF)) | + | |
- | // This variable would be 0x0005 | + | |
- | // | + | |
- | // Sce_Event | + | |
- | // Always 0x00FF | + | |
- | // | + | |
- | USHORT Data1; // Sce_Message | + | |
- | // byte0 ??? | + | |
- | // byte1 ??? | + | |
- | // | + | |
- | // Sce_Flg_chg | + | |
- | // Flag Id | + | |
- | // For example, if(Ck(ROOM, 0x01, OFF)) | + | |
- | // This variable would be 0x0001 | + | |
- | // | + | |
- | // Sce_Event | + | |
- | // byte0 Script Id Init | + | |
- | // byte1 Script Id Complete | + | |
- | // | + | |
- | USHORT Data2; // Sce_Message | + | |
- | // Always 0xFFFF | + | |
- | // | + | |
- | } Aot_set; // 0x2C // 0x00 bytes // Aot_set | + | |
This bytecode sets the properties of the specified AOT.++| | This bytecode sets the properties of the specified AOT.++| | ||
- | |{2D} Obj_model_set | + | |{2D} Obj_model_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x2D // 0x2D | + | UCHAR Opcode; // 0x2D |
- | UCHAR MD1; // MD1 File Id | + | UCHAR MD1; // MD1 File Id |
- | UCHAR | + | UCHAR |
UCHAR Ccol_old; | UCHAR Ccol_old; | ||
UCHAR Ccol_no; | UCHAR Ccol_no; | ||
UCHAR Ctex_old; | UCHAR Ctex_old; | ||
- | UCHAR nFloor; | + | UCHAR nFloor; |
UCHAR Super; | UCHAR Super; | ||
USHORT Type; // Global-> | USHORT Type; // Global-> | ||
USHORT BeFlag; // Global-> | USHORT BeFlag; // Global-> | ||
SHORT Attribute; | SHORT Attribute; | ||
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT DirX; // X direction (2 bytes) | + | SHORT DirX; // |
- | SHORT DirY; // Y direction (2 bytes) | + | SHORT DirY; // |
- | SHORT DirZ; // Z direction (2 bytes) | + | SHORT DirZ; // |
- | SHORT AtariOffsetX; | + | SHORT AtariOffsetX; |
- | SHORT AtariOffsetY; | + | SHORT AtariOffsetY; |
- | SHORT AtariOffsetZ; | + | SHORT AtariOffsetZ; |
- | SHORT AtariSizeX; | + | SHORT AtariSizeX; |
- | SHORT AtariSizeY; | + | SHORT AtariSizeY; |
- | SHORT AtariSizeZ; | + | SHORT AtariSizeZ; |
- | } Obj_model_set; | + | } Obj_model_set; |
This bytecode sets the properties of the specified object model.++| | This bytecode sets the properties of the specified object model.++| | ||
- | |{2E} Work_set | + | |{2E} Work_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x2E // 0x2E | + | UCHAR Opcode; // 0x2E |
- | UCHAR Type; // Type of Work Set to Select | + | UCHAR Type; // Type of Work Set to Select |
- | UCHAR | + | UCHAR |
} Work_set; | } Work_set; | ||
This bytecode sets the properties of the specified work (task).++| | This bytecode sets the properties of the specified work (task).++| | ||
|{2F} Speed_set | |{2F} Speed_set | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x2F // 0x2F | + | UCHAR Opcode; // 0x2F |
- | UCHAR SpeedId; | + | UCHAR SpeedId; |
- | USHORT SpeedValue; | + | USHORT SpeedValue; |
} Speed_set; | } Speed_set; | ||
This bytecode sets the specified speed setting.++| | This bytecode sets the specified speed setting.++| | ||
|{30} Add_speed | |{30} Add_speed | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x30 // 0x30 | + | UCHAR Opcode; // 0x30 |
} Add_speed; | } Add_speed; | ||
This bytecode increments the speed setting.++| | This bytecode increments the speed setting.++| | ||
|{31} Add_aspeed | |{31} Add_aspeed | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x31 // 0x31 | + | UCHAR Opcode; // 0x31 |
} Add_aspeed; | } Add_aspeed; | ||
This bytecode increments the angular speed setting.++| | This bytecode increments the angular speed setting.++| | ||
|{32} Pos_set | |{32} Pos_set | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x32 // 0x32 | + | UCHAR Opcode; // 0x32 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | SHORT PosX; // X position | + | SHORT PosX; // X position |
- | SHORT PosY; // Y position | + | SHORT PosY; // Y position |
- | SHORT PosZ; // Z position | + | SHORT PosZ; // Z position |
} Pos_set; | } Pos_set; | ||
This bytecode sets the position in 3D space.++| | This bytecode sets the position in 3D space.++| | ||
- | |{33} Dir_set | + | |{33} Dir_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x33 // 0x33 | + | UCHAR Opcode; // 0x33 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | SHORT DirX; // X direction | + | SHORT DirX; // X direction |
- | SHORT DirY; // Y direction | + | SHORT DirY; // Y direction |
- | SHORT DirZ; // Z direction | + | SHORT DirZ; // Z direction |
} Dir_set; | } Dir_set; | ||
This bytecode sets the direction in 3D space.++| | This bytecode sets the direction in 3D space.++| | ||
- | |{34} Member_set | + | |{34} Member_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x34 // 0x34 | + | UCHAR Opcode; // 0x34 |
- | UCHAR Destination; | + | UCHAR Destination; |
- | SHORT Source; | + | SHORT Source; |
- | } Member_set; | + | } Member_set; |
This bytecode sets the properties of the specified member.++| | This bytecode sets the properties of the specified member.++| | ||
- | |{35} Member_set2 | + | |{35} Member_set2 |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; | + | UCHAR Opcode; |
- | UCHAR Destination; | + | UCHAR Destination; |
- | UCHAR Source; | + | UCHAR Source; |
- | } Member_set2; | + | } Member_set2; |
This bytecode sets a single property of the specified member.++| | This bytecode sets a single property of the specified member.++| | ||
- | |{36} Se_on | 12 |++36 ID ?? ?? ?? ?? ?? XX XX YY YY ZZ ZZ++|\\ | + | |{36} Se_on | 12 |++36 ?? ?? ?? ?? XX XX YY YY ZZ ZZ++|\\ |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x36 // 0x36 | + | UCHAR Opcode; // 0x36 |
- | UCHAR | + | UCHAR |
- | UCHAR Volume; // Volume of the sound effect | + | SHORT EDT; // EDT Sample Id |
SHORT data0; // Sound Reverberation, | SHORT data0; // Sound Reverberation, | ||
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | } Se_on; | + | } Se_on; |
- | This bytecode plays the specified sound effect with the given properties.++| 08-02-2024 Newly Added | | + | This bytecode plays the specified sound effect with the given parameters.++| 08-02-2024 Newly Added | |
- | |{37} Sca_id_set | + | |{37} Sca_id_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x37 // 0x37 | + | UCHAR Opcode; // 0x37 |
- | UCHAR | + | UCHAR |
- | USHORT Id; // New Collision | + | USHORT Id; // New Collision |
- | } Sca_id_set; | + | } Sca_id_set; |
- | This bytecode | + | This bytecode |
|{38} Flr_set | |{38} Flr_set | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x38 // 0x38 | + | UCHAR Opcode; // 0x38 |
- | UCHAR | + | UCHAR |
- | UCHAR Flag; | + | UCHAR Flag; |
- | } Flr_set; | + | } Flr_set; |
- | This bytecode sets the height of the specified floor.++| | + | This bytecode sets the specified floor ID to the given value.++| 08-02-2024 Newly Added | |
- | |{39} Dir_ck | + | |{39} Dir_ck |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x39 // 0x39 | + | UCHAR Opcode; // 0x39 |
- | UCHAR zAlign; | + | UCHAR zAlign; |
- | USHORT DirX; // X direction to check (2 bytes) | + | SHORT X; |
- | USHORT DirY; // Y direction to check (2 bytes) | + | SHORT Z; |
- | USHORT DirZ; // Z direction to check (2 bytes) | + | SHORT Add; |
- | } Dir_ck; | + | } Dir_ck; |
- | This bytecode checks the direction | + | This bytecode checks the specified |
|{3A} Sce_espr_on | |{3A} Sce_espr_on | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
UCHAR Opcode; // 0x3A | UCHAR Opcode; // 0x3A | ||
- | UCHAR zAlign; | + | UCHAR zAlign; // 0x00 |
USHORT data0; | USHORT data0; | ||
USHORT data1; | USHORT data1; | ||
USHORT data2; | USHORT data2; | ||
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT DirY; // Y direction to check (2 bytes) | + | SHORT DirY; |
- | } Sce_espr_on; | + | } Sce_espr_on; |
- | This bytecode | + | This bytecode |
- | |{3B} Door_aot_set | + | |{3B} Door_aot_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x3B // 0x3B | + | UCHAR Opcode; // 0x3B |
- | UCHAR | + | UCHAR |
- | UCHAR SCE; // 0x02 // Dummy | + | UCHAR SCE; // Id /* tagSCE_AOT |
- | UCHAR SAT; // 0x03 // Dummy | + | UCHAR SAT; // Type |
- | UCHAR nFloor; // 0x04 // nFloor | + | UCHAR nFloor; // nFloor |
- | UCHAR Super; | + | UCHAR Super; |
- | SHORT X; // 0x06 // X Position | + | SHORT X; // Position |
- | SHORT Z; // 0x08 // Z Position | + | SHORT Z; // Position |
- | USHORT W; // 0x0A // X/Z Width | + | USHORT W; // Size |
- | USHORT D; // 0x0C // Y Width | + | USHORT D; // Size */ tagSCE_AOT |
- | SHORT Next_pos_x; | + | SHORT Next_pos_x; |
- | SHORT Next_pos_y; | + | SHORT Next_pos_y; |
- | SHORT Next_pos_z; | + | SHORT Next_pos_z; |
- | SHORT Next_cdir_y; | + | SHORT Next_cdir_y; |
- | UCHAR Next_stage; | + | UCHAR Next_stage; |
- | UCHAR Next_room; | + | UCHAR Next_room; |
- | UCHAR Next_cut; | + | UCHAR Next_cut; |
- | UCHAR Next_nfloor; | + | UCHAR Next_nfloor; |
- | UCHAR Dtex_type; | + | UCHAR Dtex_type; |
- | UCHAR Door_type; // 0x1B // DO2 Animation Set | + | UCHAR Door_type; |
- | UCHAR Knock_type; | + | UCHAR Knock_type; |
- | UCHAR Key_id; | + | UCHAR Key_id; // |
- | UCHAR Key_type; | + | UCHAR Key_type; |
- | UCHAR Free; // 0x1F // Dummy | + | UCHAR Free; // */ tagIN_DOOR_WORK |
- | } Door_aot_set; | + | } Door_aot_set; |
- | This bytecode sets the properties of the specified door, including position, rotation, and lock status.++| 08-02-2024 Newly Added | | + | This bytecode sets the specified door AOT parameters.++| 08-02-2024 Newly Added | |
- | |{3C} Cut_auto | + | |{3C} Cut_auto |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x3C // 0x3C | + | UCHAR Opcode; // 0x3C |
- | UCHAR OnOff; | + | UCHAR OnOff; |
- | } Cut_auto; | + | } Cut_auto; |
- | This bytecode | + | This bytecode |
- | |{3D} Member_copy | + | |{3D} Member_copy |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x3D // 0x3D | + | UCHAR Opcode; // 0x3D |
- | CHAR DestinationId; // ID of the destination member | + | UCHAR Destination; // Destination |
- | CHAR SourceMemberId; // ID of the source member | + | UCHAR Source; // Source |
- | } Member_copy; | + | } Member_copy; |
- | This bytecode copies the properties | + | This bytecode copies the specified member parameters |
- | |{3E} Member_cmp | + | |{3E} Member_cmp |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x3E // 0x3E | + | UCHAR Opcode; // 0x3E |
- | UCHAR zAlign; | + | UCHAR zAlign; // Always Zero (Alignment byte) |
- | UCHAR Flag; | + | UCHAR Flag; |
- | UCHAR Operator; | + | UCHAR Operator; |
- | SHORT Value; // Value to compare | + | SHORT Value; // Value to compare |
} Member_cmp; | } Member_cmp; | ||
- | This bytecode compares the specified | + | This bytecode compares the specified member |
- | |{3F} Plc_motion | + | |{3F} Plc_motion |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x3F // 0x3F | + | UCHAR Opcode; // 0x3F |
- | UCHAR MotionId; | + | UCHAR MotionId; |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | |
} Plc_motion; | } Plc_motion; | ||
- | This bytecode sets the specified motion | + | This bytecode sets the specified motion |
|{40} Plc_dest | |{40} Plc_dest | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x40 // 0x40 | + | UCHAR Opcode; // 0x40 |
- | UCHAR zAlign; | + | UCHAR zAlign; |
- | UCHAR Animation; // EDD/EMR Id | + | UCHAR Animation; |
- | UCHAR Bit; // Room_flg | + | UCHAR Bit; // Room_flg |
- | SHORT X; | + | SHORT X; // Destination |
- | SHORT Z; // Destination | + | SHORT Z; // Destination |
- | } Plc_dest; | + | } Plc_dest; |
- | This bytecode sets the destination | + | This bytecode sets the specified |
- | |{41} Plc_neck | + | |{41} Plc_neck |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x41 // 0x41 | + | UCHAR Opcode; // 0x41 |
- | UCHAR | + | UCHAR |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | UCHAR SpeedX; | + | UCHAR SpeedX; // |
- | UCHAR SpeedZ; | + | UCHAR SpeedZ; // |
- | } Plc_neck; | + | } Plc_neck; |
- | This bytecode sets the specified neck motion with the given position and rotation properties.++| 08-02-2024 Newly Added | | + | This bytecode sets the specified neck parameters.++| 08-02-2024 Newly Added | |
|{42} Plc_ret | |{42} Plc_ret | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x42 // 0x42 | + | UCHAR Opcode; // 0x42 |
- | } Plc_ret; | + | } Plc_ret; |
- | This bytecode returns | + | This bytecode returns from the specified plc function.++| 08-02-2024 Newly Added | |
- | |{43} Plc_flg | + | |{43} Plc_flg |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x43 // | + | UCHAR Opcode; // 0x43 |
- | UCHAR | + | UCHAR zAlign; // 0x00 |
- | USHORT Flag; // | + | UCHAR |
- | } Plc_flg; | + | UCHAR data1; // |
- | This bytecode sets the specified flag to the given value.++| 08-02-2024 Newly Added | | + | } Plc_flg; |
- | |{44} Sce_em_set | + | This bytecode sets the specified flag parameters.++| 08-02-2024 Newly Added | |
- | typedef struct { // Ptr // Description | + | |{44} Sce_em_set |
- | UCHAR Opcode; // 0x44 // 0x44 | + | typedef struct { |
- | UCHAR Nop; // 0x01 // 0x00 | + | UCHAR Opcode; // 0x44 |
- | CHAR | + | UCHAR Nop; // 0x00 |
- | UCHAR | + | CHAR |
- | UCHAR Animation // | + | UCHAR |
- | UCHAR AI Related // | + | USHORT Type; // Type |
- | UCHAR nFloor; // nFloor | + | UCHAR nFloor; // nFloor |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | USHORT PosX; // X position (2 bytes) | + | SHORT Pos_x; // Position |
- | USHORT PosY; // Y position (2 bytes) | + | SHORT Pos_y; // Position |
- | USHORT PosZ; // Z position (2 bytes) | + | SHORT Pos_z; // Position |
- | UCHAR RotationX; // X rotation | + | SHORT Cdir_y; // Rotation Y |
- | UCHAR Speed; // Movement speed | + | SHORT Motion; // Motion |
- | UCHAR Animation # // | + | SHORT Ctr_flg; // Ctr_flg |
- | UCHAR Anim Block // | + | } Sce_em_set; |
- | UCHAR Anim Execution// | + | This bytecode sets the specified enemy parameters.++| 08-02-2024 Newly Added | |
- | UCHAR zAlign; // Always Zero (Alignment bytes) | + | |{45} Col_chg_set |
- | } Sce_em_set; | + | typedef struct { |
- | This bytecode sets the specified enemy or entity with the given position, rotation, speed, and health properties.++| 08-02-2024 Newly Added | | + | UCHAR Opcode; // 0x45 |
- | |{45} Col_chg_set | + | UCHAR |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x45 // 0x45 | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | } Col_chg_set; |
- | UCHAR | + | This bytecode sets the specified color parameters.++| 08-02-2024 Newly Added | |
- | UCHAR | + | |{46} Aot_reset |
- | } Col_chg_set; | + | typedef struct { |
- | This bytecode sets the specified color change properties.++| 08-02-2024 Newly Added | | + | UCHAR Opcode; // 0x46 |
- | |{46} Aot_reset | + | CHAR Aot; // Aot |
- | typedef struct { // Ptr // Description | + | UCHAR SCE; // SCE |
- | UCHAR Opcode; // 0x46 // 0x46 | + | UCHAR SAT; // SAT |
- | UCHAR AotId; // ID of the AOT to reset | + | SHORT Data0; // Data0 |
- | UCHAR SCE; | + | SHORT Data1; // Data1 |
- | UCHAR SAT; // Scenario Atari | + | SHORT Data2; // Data2 |
- | SHORT Data0; | + | } Aot_reset; |
- | SHORT Data1; | + | This bytecode resets the specified AOT parameters.++| 08-02-2024 Newly Added | |
- | SHORT Data2; | + | |{47} Aot_on |
- | } Aot_reset; | + | typedef struct { |
- | This bytecode resets the specified AOT to its default state.++| 08-02-2024 Newly Added | | + | UCHAR Opcode; // 0x47 |
- | |{47} Aot_on | + | CHAR |
- | typedef struct { // Ptr // Description | + | } Aot_on; |
- | UCHAR Opcode; // 0x47 // 0x47 | + | This bytecode |
- | CHAR | + | |{48} Super_set |
- | } Aot_on; | + | typedef struct { |
- | This bytecode | + | UCHAR Opcode; // 0x48 |
- | |{48} Super_set | + | UCHAR |
- | typedef struct { // Ptr // Description | + | UCHAR Work; // Work Type |
- | UCHAR Opcode; // 0x48 // 0x48 | + | UCHAR Id; // Work Aot/Obj No |
- | UCHAR | + | SHORT pX; // Parent |
- | USHORT PosX; // X position | + | SHORT pY; // Parent |
- | USHORT PosY; // Y position (2 bytes) | + | SHORT pZ; // Parent Z |
- | USHORT PosZ; // Z position (2 bytes) | + | SHORT dX; // Destination X |
- | UCHAR ScaleX; // X scale | + | SHORT dY; // Destination Y |
- | UCHAR ScaleY; // Y scale | + | SHORT dZ; // Destination Z |
- | UCHAR Rotation; // Rotation value | + | } Super_set; |
- | UCHAR Alpha; // Alpha transparency value | + | This bytecode sets the specified super parameters.++| 08-02-2024 Newly Added | |
- | ULONG Duration; // Duration of the effect (4 bytes) | + | |{49} Super_reset |
- | UCHAR zAlign[2]; // Always Zero (Alignment bytes) | + | typedef struct { |
- | } Super_set; | + | UCHAR Opcode; // 0x49 |
- | This bytecode sets the specified super effect with the given properties.++| 08-02-2024 Newly Added | | + | UCHAR zAlign; // Alignment byte (always 0x00) |
- | |{49} Super_reset | + | SHORT dX; // Destination X |
- | typedef struct { // Ptr // Description | + | SHORT dY; // Destination Y |
- | UCHAR Opcode; // 0x49 // | + | SHORT dZ; // Destination Z |
- | UCHAR SuperId; // ID of the super effect to reset | + | } Super_reset; |
- | UCHAR zAlign[7]; // Always Zero (Alignment bytes) | + | This bytecode resets the specified super parameters.++| 08-02-2024 Newly Added | |
- | } Super_reset; | + | |
- | This bytecode resets the specified super effect to its default state.++| 08-02-2024 Newly Added | | + | |
|{4A} Plc_gun | |{4A} Plc_gun | ||
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x4A // 0x4A | + | UCHAR Opcode; // 0x4A |
- | UCHAR GunId; // ID of the gun to equip | + | UCHAR GunId; // ID of the gun to set |
} Plc_gun; | } Plc_gun; | ||
- | This bytecode | + | This bytecode |
- | |{4B} Cut_replace | + | |{4B} Cut_replace |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x4B // 0x4B | + | UCHAR Opcode; // 0x4B |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Cut_replace; | + | } Cut_replace; |
- | This bytecode replaces the specified cutscene | + | This bytecode replaces the specified cutscene |
- | |{4C} Sce_espr_kill | + | |{4C} Sce_espr_kill |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x4C // 0x4C | + | UCHAR Opcode; // 0x4C |
- | UCHAR | + | UCHAR |
- | USHORT PosX; // X position of the effect sprite | + | UCHAR tp; // Esp_kill() argv[1] |
- | USHORT PosY; // Y position of the effect sprite | + | CHAR WorkKind; // Get_matrix() argv[0] |
- | USHORT PosZ; // Z position of the effect sprite | + | CHAR WorkNo; // Get_matrix() argv[1] |
- | } Sce_espr_kill; | + | } Sce_espr_kill; |
- | This bytecode kills the specified | + | This bytecode kills the specified |
- | |{4D} Door_model_set | + | |{4D} Door_model_set |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; // 0x4D |
- | UCHAR | + | UCHAR data0; // data0 |
- | USHORT PosX; // X position of the door model (2 bytes) | + | UCHAR |
- | USHORT | + | UCHAR OfsY; // DOOR_WORK.Atd[3] |
- | USHORT PosZ; // Z position of the door model (2 bytes) | + | UCHAR |
- | UCHAR RotationX; // X rotation of the door model | + | UCHAR data5; // data5 |
- | UCHAR RotationY; // Y rotation of the door model | + | USHORT |
- | UCHAR RotationZ; // Z rotation of the door model | + | SHORT X; // DOOR_WORK.Atd[3] |
- | UCHAR Speed; // Movement speed | + | SHORT Y; // DOOR_WORK.Atd[3] |
- | UCHAR Health; // Health value | + | SHORT Z; // DOOR_WORK.Atd[3] |
- | UCHAR zAlign[8]; // Always Zero (Alignment bytes) | + | SHORT DirY; // DOOR_WORK.Atd[3] |
- | } Door_model_set; | + | USHORT data10; // DOOR_WORK.MATRIX |
- | This bytecode sets the specified door model with the given properties.++| 08-02-2024 Newly Added | | + | USHORT data11; // DOOR_WORK.MATRIX |
- | |{4E} | + | USHORT data12; // DOOR_WORK.MATRIX |
- | typedef struct { // Ptr // Description | + | } Door_model_set; |
- | UCHAR | + | This bytecode sets the specified door model parameters.++| 08-02-2024 Newly Added | |
- | UCHAR | + | |{4E} |
- | USHORT PosX; // X position of the target model (2 bytes) | + | typedef struct { |
- | USHORT | + | UCHAR Opcode; // 0x4E |
- | USHORT | + | UCHAR Aot; // Aot |
- | UCHAR Scale; // Scale value | + | UCHAR |
- | UCHAR | + | UCHAR SAT; // SAT |
- | UCHAR | + | UCHAR |
- | } Trg_model_set; | + | UCHAR Super; // Super |
- | This bytecode sets the specified | + | SHORT X; // X |
- | |{4F} | + | SHORT Z; // Z |
- | typedef struct { // Ptr // Description | + | USHORT |
- | UCHAR Opcode; // 0x4F // | + | USHORT |
- | UCHAR GunId; // ID of the gun to equip | + | USHORT iItem; // iItem |
- | } Plc_gun_equip; | + | USHORT nItem; // nItem |
- | This bytecode | + | USHORT Flag; // Flag |
- | |{50} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x50 // 0x50 | + | } Item_aot_set; |
- | USHORT PosX; // X position to reset to (2 bytes) | + | This bytecode sets the specified |
- | USHORT | + | |{4F} |
- | USHORT PosZ; // Z position to reset to (2 bytes) | + | typedef struct { |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR Opcode; // 0x4F |
- | } Pos_reset; | + | UCHAR Flag; // Flag |
- | This bytecode | + | USHORT Value; // Value |
- | |{51} | + | } Sce_key_ck; |
- | typedef struct { // Ptr // Description | + | This bytecode |
- | UCHAR | + | |{50} |
- | UCHAR | + | typedef struct { |
- | } Member_hide; | + | UCHAR Opcode; // 0x50 |
- | This bytecode | + | UCHAR Flag; // Flag |
- | |{52} | + | USHORT |
- | typedef struct { // Ptr // Description | + | } Sce_trg_ck; |
- | UCHAR | + | This bytecode |
- | UCHAR MemberId; // ID of the member to show | + | |{51} |
- | } Member_show; | + | typedef struct { |
- | This bytecode | + | UCHAR Opcode; // 0x51 |
- | |{53} | + | UCHAR Id; // Id |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x53 // 0x53 | + | UCHAR Type; // Type |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR VolR; // VolR |
- | UCHAR | + | } Sce_bgm_control; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | This bytecode |
- | } Sce_work_set; | + | |{52} |
- | This bytecode sets the specified | + | typedef struct { |
- | |{54} | + | UCHAR Opcode; // 0x52 |
- | typedef struct { // Ptr // Description | + | UCHAR Id; // Id |
- | UCHAR Opcode; // 0x54 // | + | UCHAR |
- | UCHAR TrgId; // ID of the target | + | UCHAR Return; // Return |
- | USHORT | + | CHAR WorkKind; // WorkKind |
- | USHORT | + | CHAR WorkNo; // WorkNo |
- | USHORT PosZ; // Z position of the target (2 bytes) | + | } Sce_espr_control; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | This bytecode |
- | } Sce_trg_chk; | + | |{53} |
- | This bytecode | + | typedef struct { |
- | |{55} | + | UCHAR Opcode; // 0x53 |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x55 // 0x55 | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR State; // State to set the target to | + | USHORT data3; // data3 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | } Sce_fade_set; |
- | } Sce_trg_on; | + | This bytecode sets the specified |
- | This bytecode | + | |{54} |
- | |{56} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; // 0x54 |
- | UCHAR Opcode; // 0x56 // | + | UCHAR zAlign; // zAlign |
- | UCHAR | + | USHORT data0; // data0 |
- | } Sce_trg_off; | + | USHORT |
- | This bytecode | + | USHORT |
- | |{57} | + | SHORT X; // X |
- | typedef struct { // Ptr // Description | + | SHORT Y; // Y |
- | UCHAR | + | SHORT Z; // Z |
- | UCHAR TrgId; // ID of the target | + | SHORT DirX; // DirX |
- | } Sce_trg_reset; | + | SHORT DirY; // DirY |
- | This bytecode | + | SHORT DirZ; // DirZ |
- | |{58} | + | SHORT data3; // data3 |
- | typedef struct { // Ptr // Description | + | } Sce_espr3d_on; |
- | UCHAR Opcode; // 0x58 // 0x58 | + | This bytecode |
- | UCHAR | + | |{55} |
- | } Sce_esp_off; | + | typedef struct { |
- | This bytecode | + | UCHAR Opcode; // 0x55 |
- | |{59} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | USHORT Flag; // Flag |
- | UCHAR Opcode; // 0x59 // 0x59 | + | SHORT Value; // Value |
- | UCHAR | + | } Member_calc; |
- | UCHAR Speed; // Speed to set | + | This bytecode |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | |{56} |
- | } Trg_speed_set; | + | typedef struct { |
- | This bytecode | + | UCHAR Opcode; // 0x56 |
- | |{5A} | + | UCHAR Operator; // Operator |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x5A // 0x5A | + | UCHAR Value; // Value |
- | UCHAR | + | } Member_calc2; |
- | USHORT PosX; // X position of the effect sprite (2 bytes) | + | This bytecode |
- | USHORT PosY; // Y position of the effect sprite (2 bytes) | + | |{57} |
- | USHORT PosZ; // Z position of the effect sprite (2 bytes) | + | typedef struct { |
- | } Sce_espr_copy; | + | UCHAR Opcode; // 0x57 |
- | This bytecode | + | UCHAR zAlign; // zAlign |
- | |{5B} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | UCHAR Room; // Room |
- | UCHAR Opcode; // 0x5B // 0x5B | + | USHORT data1; // data1 |
- | UCHAR | + | USHORT data2; // data2 |
- | USHORT PosX; // X position of the enemy or entity (2 bytes) | + | } Sce_bgmtbl_set; |
- | USHORT PosY; // Y position of the enemy or entity (2 bytes) | + | This bytecode |
- | USHORT PosZ; // Z position of the enemy or entity (2 bytes) | + | |{58} |
- | UCHAR RotationX; | + | typedef struct { |
- | UCHAR RotationY; | + | UCHAR Opcode; // 0x58 |
- | UCHAR RotationZ; | + | UCHAR |
- | UCHAR Speed; // Movement speed | + | USHORT Sce_free0; |
- | UCHAR Health; // Health value | + | } Plc_rot; |
- | UCHAR zAlign[10]; | + | |
- | } Em_door_set; | + | This bytecode |
- | This bytecode | + | |{59} |
- | |{5C} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; // 0x59 |
- | UCHAR Opcode; // 0x5C // 0x5C | + | UCHAR |
- | UCHAR ItemId; // ID of the item | + | USHORT Number; // Number |
- | UCHAR Quantity; // Quantity of the item | + | } Xa_on; |
- | UCHAR Property1; | + | This bytecode |
- | UCHAR Property2; | + | |{5A} |
- | UCHAR Property3; | + | typedef struct { |
- | UCHAR Property4; | + | UCHAR Opcode; // 0x5A |
- | UCHAR Property5; | + | UCHAR |
- | UCHAR Property6; | + | } Weapon_chg; |
- | UCHAR Property7; | + | This bytecode |
- | UCHAR Property8; | + | |{5B} |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | typedef struct { |
- | } Sce_item_set; | + | UCHAR Opcode; // 0x5B |
- | This bytecode | + | UCHAR |
- | |{5D} | + | } Plc_cnt; |
- | typedef struct { // Ptr // Description | + | This bytecode |
- | UCHAR Opcode; // 0x5D // 0x5D | + | |{5C} |
- | UCHAR | + | typedef struct { |
- | UCHAR Quantity; | + | UCHAR Opcode; // 0x5C |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | CHAR Slide_ofs; // Slide_ofs |
- | } Sce_item_reset; | + | CHAR Copy_ofs; // Copy_ofs |
- | This bytecode | + | } Sce_shake_on; |
- | |{5E} | + | This bytecode |
- | typedef struct { // Ptr // Description | + | |{5D} |
- | UCHAR Opcode; // 0x5E // 0x5E | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; // 0x5D |
- | UCHAR State; // State to check | + | UCHAR |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | } Mizu_div_set; |
- | } Sce_work_chk; | + | This bytecode |
- | This bytecode checks | + | |{5E} |
- | |{5F} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; // 0x5E |
- | UCHAR Opcode; // 0x5F // 0x5F | + | UCHAR |
- | UCHAR | + | } Keep_Item_ck; |
- | UCHAR State; // State to set the work to | + | This bytecode checks the specified |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | |{5F} |
- | } Sce_work_on; | + | typedef struct { |
- | This bytecode sets the state of the specified | + | UCHAR Opcode; // 0x5F |
- | |{60} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | } Xa_vol; |
- | UCHAR Opcode; // 0x60 // 0x60 | + | This bytecode sets the specified |
- | UCHAR | + | |{60} |
- | } Sce_work_off; | + | typedef struct { |
- | This bytecode turns off the specified work.++| | + | UCHAR Opcode; // 0x60 |
- | |{61} Sce_work_reset | + | UCHAR Work; // Work |
- | typedef struct { // Ptr // Description | + | CHAR Id; // Id |
- | UCHAR Opcode; // 0x61 // 0x61 | + | UCHAR Data0; // Data0 |
- | UCHAR WorkId; // ID of the work | + | UCHAR |
- | } Sce_work_reset; | + | UCHAR Data2; // Data2 |
- | This bytecode | + | USHORT Data3; // Data3 |
- | |{62} | + | USHORT Data4; // Data4 |
- | typedef struct { // Ptr // Description | + | USHORT Data5; // Data5 |
- | UCHAR | + | USHORT Data6; // Data6 |
- | UCHAR | + | } Kage_set; |
- | } Sce_item_off; | + | This bytecode |
- | This bytecode | + | |{61} |
- | |{63} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; // 0x61 |
- | UCHAR Opcode; | + | UCHAR Id; // Id |
- | UCHAR ItemId; // ID of the item | + | UCHAR |
- | UCHAR State; // State to set the item to | + | UCHAR |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | } Cut_be_set; |
- | } Sce_item_on; | + | This bytecode |
- | This bytecode | + | |{62} |
- | |{64} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; |
- | UCHAR Opcode; | + | UCHAR ItemId; // ID of the lost item |
- | UCHAR EsprId; // ID of the effect sprite | + | } Sce_Item_lost; |
- | } Sce_esp_reset; | + | This bytecode |
- | This bytecode | + | |{63} |
- | |{65} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; |
- | UCHAR Opcode; | + | } Plc_gun_eff; |
- | UCHAR | + | This bytecode |
- | USHORT | + | |{64} |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | typedef struct { |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | UCHAR Opcode; |
- | UCHAR RotationX; // X rotation of the effect | + | UCHAR |
- | UCHAR RotationY; // Y rotation of the effect | + | USHORT |
- | UCHAR RotationZ; // Z rotation of the effect | + | UCHAR WorkKind; // WorkKind |
- | UCHAR Scale; // Scale value | + | UCHAR WorkNo; // WorkNo |
- | UCHAR Alpha; // Alpha transparency value | + | USHORT data3; // data3 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | SHORT X; // X |
- | } Sce_eff_set; | + | SHORT Y; // Y |
- | This bytecode | + | SHORT Z; // Z |
- | |{66} | + | USHORT DirY; // DirY |
- | typedef struct { // Ptr // Description | + | } Sce_espr_on2; |
- | UCHAR Opcode; | + | This bytecode |
- | UCHAR | + | |{65} |
- | } Sce_eff_reset; | + | typedef struct { |
- | This bytecode | + | UCHAR Opcode; |
- | |{67} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | } Sce_espr_kill2; |
- | UCHAR Opcode; | + | This bytecode |
- | UCHAR TrgId; // ID of the target to copy | + | |{66} |
- | USHORT PosX; // X position of the target (2 bytes) | + | typedef struct { |
- | USHORT PosY; // Y position of the target (2 bytes) | + | UCHAR Opcode; |
- | USHORT PosZ; // Z position of the target (2 bytes) | + | } Plc_stop; |
- | } Sce_trg_copy; | + | This bytecode |
- | This bytecode | + | |{67} |
- | |{68} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; |
- | UCHAR Opcode; | + | UCHAR |
- | UCHAR | + | UCHAR SCE; // Id |
- | USHORT PosX; // X position of the door (2 bytes) | + | UCHAR SAT; // Type |
- | USHORT PosY; // Y position of the door (2 bytes) | + | UCHAR nFloor; // nFloor |
- | USHORT PosZ; // Z position of the door (2 bytes) | + | UCHAR |
- | UCHAR | + | SHORT X0; // X0 |
- | UCHAR RotationY; // Y rotation of the door | + | SHORT Z0; // Z0 |
- | UCHAR RotationZ; // Z rotation of the door | + | SHORT X1; // X1 |
- | UCHAR ScaleX; // X scale of the door | + | SHORT Z1; // Z1 |
- | UCHAR ScaleY; // Y scale of the door | + | SHORT X2; // X2 |
- | UCHAR zAlign[28]; // Always Zero (Alignment bytes) | + | SHORT Z2; // Z2 |
- | } Door_aot_set_4p; | + | SHORT X3; // X3 |
- | This bytecode sets the properties of the specified door with position, rotation, and scale values.++| | + | SHORT Z3; // Z3 |
- | |{69} Trg_init | + | USHORT |
- | typedef struct { // Ptr // Description | + | USHORT |
- | UCHAR Opcode; // 0x69 // 0x69 | + | USHORT |
- | UCHAR TrgId; // ID of the target to initialize | + | } Aot_set_4p; |
- | UCHAR State; // Initial state of the target | + | This bytecode sets the specified 4-point AOT parameters.++| 08-02-2024 Newly Added | |
- | } Trg_init; | + | |{68} |
- | This bytecode initializes the specified target with the given state.++| | + | typedef struct { |
- | |{6A} Dir_set2 | + | UCHAR Opcode; |
- | typedef struct { // Ptr // Description | + | UCHAR Aot; // Aot |
- | UCHAR Opcode; // 0x6A // 0x6A | + | UCHAR |
- | USHORT | + | UCHAR |
- | USHORT | + | UCHAR |
- | USHORT | + | UCHAR |
- | } Dir_set2; | + | SHORT X0; // X0 |
- | This bytecode sets the direction in 3D space.++| 08-02-2024 Newly Added | | + | SHORT Z0; // Z0 |
- | |{6B} | + | SHORT X1; // X1 |
- | typedef struct { // Ptr // Description | + | SHORT Z1; // Z1 |
- | UCHAR Opcode; | + | SHORT X2; // X2 |
- | UCHAR | + | SHORT Z2; // Z2 |
- | UCHAR | + | SHORT X3; // X3 |
- | UCHAR | + | SHORT Z3; // Z3 |
- | UCHAR | + | SHORT Next_pos_x; // Next_pos_x |
- | } Col_set2; | + | SHORT Next_pos_y; |
- | This bytecode sets the specified color values.++| | + | SHORT Next_pos_z; // Next_pos_z |
- | |{6C} Sce_eff_on | + | SHORT Next_cdir_y; |
- | typedef struct { // Ptr // Description | + | UCHAR Next_stage; // Next_stage |
- | UCHAR Opcode; // 0x6C // 0x6C | + | UCHAR Next_room; // Next_room |
- | UCHAR EffId; // ID of the effect | + | UCHAR |
- | USHORT PosX; // X position of the effect (2 bytes) | + | UCHAR |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | UCHAR |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | UCHAR |
- | UCHAR | + | UCHAR Knock_type; |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR Free; // Free |
- | UCHAR | + | } Door_aot_set_4p; |
- | UCHAR | + | This bytecode |
- | } Sce_eff_on; | + | |{69} |
- | This bytecode | + | typedef struct { |
- | |{6D} | + | UCHAR Opcode; // 0x69 |
- | typedef struct { // Ptr // Description | + | UCHAR Aot; // Aot |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR SAT; // Type |
- | USHORT PosX; // X position of the effect (2 bytes) | + | UCHAR |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | UCHAR Super; // Super |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | SHORT X0; // X0 |
- | UCHAR RotationX; // X rotation of the effect | + | SHORT Z0; // Z0 |
- | UCHAR RotationY; // Y rotation of the effect | + | SHORT X1; // X1 |
- | UCHAR RotationZ; // Z rotation of the effect | + | SHORT Z1; // Z1 |
- | UCHAR ScaleX; // X scale of the effect | + | SHORT X2; // X2 |
- | UCHAR | + | SHORT Z2; // Z2 |
- | UCHAR | + | SHORT X3; // X3 |
- | } Eff_aot_set; | + | SHORT Z3; // Z3 |
- | This bytecode sets the specified | + | USHORT iItem; // iItem |
- | |{6E} | + | USHORT nItem; // nItem |
- | typedef struct { // Ptr // Description | + | USHORT Flag; // Flag |
- | UCHAR Opcode; | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | } Item_aot_set_4p; |
- | UCHAR | + | This bytecode sets the specified |
- | UCHAR Alpha; // Alpha transparency value | + | |{6A} |
- | } Col_set3; | + | typedef struct { |
- | This bytecode sets the specified | + | UCHAR Opcode; |
- | |{6F} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; | + | UCHAR |
- | UCHAR | + | SHORT Position; // Position |
- | USHORT PosX; // X position of the item (2 bytes) | + | } Light_pos_set; |
- | USHORT PosY; // Y position of the item (2 bytes) | + | This bytecode sets the specified |
- | USHORT PosZ; // Z position of the item (2 bytes) | + | |{6B} |
- | UCHAR RotationX; | + | typedef struct { |
- | UCHAR RotationY; | + | UCHAR Opcode; |
- | UCHAR | + | UCHAR |
- | UCHAR ScaleX; // X scale of the item | + | SHORT Luminosity; // Luminosity |
- | UCHAR ScaleY; // Y scale of the item | + | } Light_kido_set; |
- | UCHAR zAlign[28]; | + | This bytecode sets the specified light intensity and color parameters.++| |
- | } Item_aot_set; | + | |{6C} Rbj_reset |
- | This bytecode | + | typedef struct { |
- | |{70} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | } Rbj_reset; |
- | UCHAR Opcode; | + | This bytecode |
- | UCHAR | + | |{6D} |
- | UCHAR Speed; // Speed to set | + | typedef struct { |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR Opcode; |
- | } Member_speed_set; | + | UCHAR |
- | This bytecode | + | SHORT Scrl_y; // Scrl_y |
- | |{71} | + | } Sce_scr_move; |
- | typedef struct { // Ptr // Description | + | This bytecode |
- | UCHAR Opcode; | + | |{6E} |
- | UCHAR ItemId; // ID of the item | + | typedef struct { |
- | UCHAR Quantity; // Quantity of the item | + | UCHAR Opcode; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR zAlign; // zAlign |
- | } Sce_item_reset2; | + | CHAR Id; // Id |
- | This bytecode | + | CHAR Type; // Type |
- | |{72} | + | SHORT Value; // Value |
- | typedef struct { // Ptr // Description | + | } Parts_set; |
- | UCHAR Opcode; | + | This bytecode |
- | UCHAR | + | |{6F} |
- | UCHAR Scale; // Scale to set | + | typedef struct { |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR Opcode; |
- | } Member_scale_set; | + | UCHAR |
- | This bytecode | + | } Movie_on; |
- | |{73} | + | This bytecode |
- | typedef struct { // Ptr // Description | + | |{70} |
- | UCHAR Opcode; | + | typedef struct { |
- | USHORT PosX; // X position to copy (2 bytes) | + | UCHAR Opcode; |
- | USHORT PosY; // Y position to copy (2 bytes) | + | } Splc_ret; |
- | USHORT PosZ; // Z position to copy (2 bytes) | + | This bytecode returns from the specified splc function.++| |
- | } Pos_copy; | + | |{71} Splc_sce |
- | This bytecode | + | typedef struct { |
- | |{74} | + | UCHAR Opcode; // 0x71 |
- | typedef struct { // Ptr // Description | + | } Splc_sce; |
- | UCHAR | + | This bytecode |
- | UCHAR ItemId; // ID of the item | + | |{72} |
- | UCHAR Quantity; // Quantity of the item | + | typedef struct { |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR Opcode; // 0x72 |
- | } Sce_item_copy; | + | UCHAR zAlign; // zAlign |
- | This bytecode | + | UCHAR |
- | |{75} | + | UCHAR data1; // data1 |
- | typedef struct { // Ptr // Description | + | SHORT data2; // data2 |
- | UCHAR Opcode; | + | SHORT data3; // data3 |
- | UCHAR | + | SHORT data4; // data4 |
- | UCHAR State; // State to check | + | SHORT data5; // data5 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | SHORT data6; // data6 |
- | } Item_ck; | + | SHORT data7; // data7 |
- | This bytecode | + | } Super_on; |
- | |{76} | + | This bytecode |
- | typedef struct { // Ptr // Description | + | |{73} |
- | UCHAR Opcode; | + | typedef struct { |
- | USHORT DirX; // X direction of the member (2 bytes) | + | UCHAR Opcode; |
- | USHORT DirY; // Y direction of the member (2 bytes) | + | UCHAR |
- | USHORT DirZ; // Z direction of the member (2 bytes) | + | USHORT Position; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | USHORT Min; // Min |
- | } Member_dir_set; | + | USHORT Max; // Max |
- | This bytecode | + | } Mirror_set; |
- | |{77} | + | This bytecode |
- | typedef struct { // Ptr // Description | + | |{74} |
- | UCHAR Opcode; | + | typedef struct { |
- | UCHAR AotId; // ID of the AOT | + | UCHAR Opcode; |
- | USHORT | + | UCHAR data0; // data0 |
- | USHORT | + | SHORT data1; // data1 |
- | USHORT | + | } Sce_fade_adjust; |
- | UCHAR RotationX; // X rotation of the AOT | + | This bytecode |
- | UCHAR RotationY; // Y rotation of the AOT | + | |{75} |
- | UCHAR RotationZ; // Z rotation of the AOT | + | typedef struct { |
- | UCHAR ScaleX; // X scale of the AOT | + | UCHAR Opcode; |
- | UCHAR ScaleY; // Y scale of the AOT | + | UCHAR dir_y_id2; // dir_y_id2 |
- | UCHAR zAlign[28]; // Always Zero (Alignment bytes) | + | USHORT bit; // bit |
- | } Aot_pos_set; | + | USHORT |
- | This bytecode | + | USHORT |
- | |{78} | + | USHORT |
- | typedef struct { // Ptr // Description | + | USHORT dataA; // dataA |
- | UCHAR Opcode; | + | USHORT dataC; // dataC |
- | USHORT PosX; // X position (2 bytes) | + | USHORT dataE; // dataE |
- | USHORT PosY; // Y position (2 bytes) | + | USHORT data10; // data10 |
- | USHORT PosZ; // Z position (2 bytes) | + | USHORT data12; // data12 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | USHORT data14; // data14 |
- | } Pos_set2; | + | } Sce_espr3d_on2; |
- | This bytecode | + | This bytecode |
- | |{79} | + | |{76} |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; | + | UCHAR Opcode; |
- | USHORT PosX; // X position to compare (2 bytes) | + | UCHAR Id; // Id |
- | USHORT PosY; // Y position to compare (2 bytes) | + | UCHAR Num; // Num |
- | USHORT PosZ; // Z position to compare (2 bytes) | + | } Sce_Item_get; |
- | } Pos_cmp; | + | This bytecode gets the specified item with the given quantity.++| |
- | This bytecode | + | |{77} Sce_line_start |
- | |{7A} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; // 0x77 |
- | UCHAR Opcode; | + | UCHAR Id; // Id |
- | UCHAR WorkId; // ID of the work | + | USHORT Value; // Value |
- | UCHAR State; // State to copy | + | } Sce_line_start; |
- | } Sce_work_copy; | + | This bytecode |
- | This bytecode | + | |{78} |
- | |{7B} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; |
- | UCHAR Opcode; | + | UCHAR Id; // Id |
- | UCHAR | + | SHORT Data0; // Data0 |
- | UCHAR | + | SHORT Data1; // Data1 |
- | UCHAR | + | } Sce_line_main; |
- | UCHAR | + | This bytecode |
- | UCHAR | + | |{79} |
- | UCHAR Property4; // Property 4 of the item | + | typedef struct { |
- | UCHAR Property5; // Property 5 of the item | + | UCHAR Opcode; |
- | UCHAR Property6; // Property 6 of the item | + | } Sce_line_end; |
- | UCHAR Property7; // Property 7 of the item | + | This bytecode |
- | UCHAR Property8; // Property 8 of the item | + | |{7A} |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | typedef struct { |
- | } Sce_item_set2; | + | UCHAR Opcode; |
- | This bytecode | + | UCHAR |
- | |{7C} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; | + | UCHAR |
- | UCHAR | + | UCHAR |
- | USHORT PosX; // X position of the effect (2 bytes) | + | SHORT data6; // data6 |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | SHORT data8; // data8 |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | SHORT dataA; // dataA |
- | UCHAR RotationX; // X rotation of the effect | + | SHORT dataC; // dataC |
- | UCHAR RotationY; // Y rotation of the effect | + | SHORT dataE; // dataE |
- | UCHAR RotationZ; | + | } Sce_parts_bomb; |
- | UCHAR Scale; // Scale value | + | This bytecode |
- | UCHAR Alpha; // Alpha transparency value | + | |{7B} |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | typedef struct { |
- | } Sce_eff_on2; | + | UCHAR Opcode; |
- | This bytecode | + | UCHAR |
- | |{7D} | + | SHORT X; // X |
- | typedef struct { // Ptr // Description | + | SHORT Y; // Y |
- | UCHAR | + | SHORT Z; // Z |
- | UCHAR | + | SHORT cDirZ; // cDirZ |
- | } Trg_speed_reset; | + | SHORT DirX; // DirX |
- | This bytecode | + | SHORT DirY; // DirY |
- | |{7E} | + | SHORT DirZ; // DirZ |
- | typedef struct { // Ptr // Description | + | } Sce_parts_down; |
- | UCHAR Opcode; | + | This bytecode |
- | UCHAR | + | |{7C} |
- | UCHAR | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; // 0x7C |
- | UCHAR B; // Blue color value | + | UCHAR Index; // Index |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR |
- | } Member_color_set; | + | UCHAR G; // G |
- | This bytecode sets the color values of the specified | + | UCHAR |
- | |{7F} | + | UCHAR zAlign; // zAlign |
- | typedef struct { // Ptr // Description | + | } Light_color_set; |
- | UCHAR Opcode; | + | This bytecode |
- | UCHAR | + | |{7D} |
- | UCHAR | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; |
- | UCHAR B; // Blue color value | + | UCHAR |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR |
- | } Sce_item_color_set; | + | UCHAR |
- | This bytecode sets the color values of the specified item.++| 08-02-2024 Newly Added | | + | SHORT Position; // Position |
- | |{80} | + | } Light_pos_set2; |
- | typedef struct { // Ptr // Description | + | This bytecode sets the specified |
- | UCHAR Opcode; | + | |{7E} |
- | UCHAR | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Sce_trg_color_set; | + | USHORT Luminosity; // Luminosity |
- | This bytecode sets the color values of the specified target.++| 08-02-2024 Newly Added | | + | } Light_kido_set2; |
- | |{81} | + | This bytecode sets the specified light intensity and color parameters.++| 08-02-2024 Newly Added | |
- | typedef struct { // Ptr // Description | + | |{7F} |
- | UCHAR Opcode; | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; |
- | UCHAR R; // Red color value | + | UCHAR |
- | UCHAR G; // Green color value | + | UCHAR |
- | UCHAR B; // Blue color value | + | UCHAR |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR |
- | } Sce_work_color_set; | + | UCHAR |
- | This bytecode sets the color values of the specified | + | } Light_color_set2; |
- | |{82} | + | This bytecode sets the specified light color parameters.++| 08-02-2024 Newly Added | |
- | typedef struct { // Ptr // Description | + | |{80} |
- | UCHAR Opcode; | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; |
- | USHORT PosX; // X position | + | UCHAR |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | } Se_vol; |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | This bytecode sets the specified |
- | UCHAR RotationX; | + | |{81} |
- | UCHAR RotationY; | + | typedef struct { |
- | UCHAR | + | UCHAR Opcode; |
- | UCHAR Scale; // Scale value | + | UCHAR |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR Quantity; // Quantity |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | } Keep_Item_ck2; |
- | } Eff_copy; | + | This bytecode checks |
- | This bytecode | + | |{82} Sce_espr_task |
- | |{83} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x83 // 0x83 | + | CHAR WorkKind; // WorkKind |
- | UCHAR WorkId; // ID of the work | + | CHAR WorkNo; // WorkNo |
- | } Sce_work_reset2; | + | } Sce_espr_task; |
- | This bytecode | + | This bytecode |
- | |{84} | + | |{83} |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x84 // 0x84 | + | UCHAR Opcode; // 0x83 |
- | UCHAR | + | } Plc_heal; |
- | USHORT PosX; // X position of the target (2 bytes) | + | This bytecode |
- | USHORT PosY; // Y position of the target (2 bytes) | + | |{84} |
- | USHORT PosZ; // Z position of the target (2 bytes) | + | typedef struct { |
- | UCHAR Scale; // Scale value | + | UCHAR Opcode; // 0x84 |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR |
- | UCHAR zAlign[2]; | + | } St_map_hint; |
- | } Sce_trg_set; | + | This bytecode sets the specified |
- | This bytecode sets the specified | + | |{85} |
- | |{85} | + | typedef struct { |
- | typedef struct { // Ptr // Description | + | UCHAR Opcode; // 0x85 |
- | UCHAR Opcode; // 0x85 // 0x85 | + | UCHAR |
- | UCHAR | + | UCHAR |
- | USHORT PosX; // X position of the effect (2 bytes) | + | UCHAR |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | USHORT Flg; // Flg |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | } Sce_em_pos_ck; |
- | UCHAR | + | This bytecode checks the specified |
- | UCHAR RotationY; // Y rotation of the effect | + | |{86} |
- | UCHAR | + | typedef struct { |
- | UCHAR Scale; // Scale value | + | UCHAR Opcode; // 0x86 |
- | UCHAR Alpha; // Alpha transparency value | + | } Poison_ck; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | This bytecode |
- | } Sce_eff_ck; | + | |{87} |
- | This bytecode checks the specified | + | typedef struct { |
- | |{86} | + | UCHAR Opcode; // 0x87 |
- | typedef struct { // Ptr // Description | + | } Poison_clr; |
- | UCHAR Opcode; // 0x86 // 0x86 | + | This bytecode |
- | UCHAR EffId; // ID of the effect to kill | + | |{88} |
- | USHORT PosX; // X position of the effect (2 bytes) | + | typedef struct { |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | UCHAR Opcode; // 0x88 |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | UCHAR |
- | } Sce_eff_kill; | + | UCHAR |
- | This bytecode | + | } Sce_Item_lost2; |
- | |{87} | + | This bytecode |
- | typedef struct { // Ptr // Description | + | |{89} |
- | UCHAR Opcode; // 0x87 // 0x87 | + | typedef struct { |
- | UCHAR EffId; // ID of the effect | + | UCHAR Opcode; // 0x89 |
- | } Sce_eff_reset; | + | } Evt_next2; |
- | This bytecode | + | This bytecode |
- | |{88} | + | |{8A} |
- | typedef struct { // Ptr // Description | + | typedef struct { |
- | UCHAR Opcode; // 0x88 // 0x88 | + | UCHAR Opcode; // 0x8A |
- | UCHAR | + | UCHAR |
- | UCHAR | + | USHORT |
- | UCHAR Parameter2; | + | USHORT |
- | UCHAR Parameter3; | + | } Vib_set0; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | This bytecode |
- | } Sce_work_set2; | + | |{8B} |
- | This bytecode | + | typedef struct { |
- | |{89} | + | UCHAR Opcode; // 0x8B |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x89 // 0x89 | + | USHORT Value1; // Vibration Value 1 |
- | UCHAR WorkId; // ID of the work | + | USHORT Value2; // Vibration Value 2 |
- | UCHAR State; // State to check | + | } Vib_set1; |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | This bytecode |
- | } Sce_work_ck2; | + | |{8C} |
- | This bytecode | + | typedef struct { |
- | |{8A} | + | UCHAR Opcode; // 0x8C |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR Opcode; // 0x8A // 0x8A | + | UCHAR |
- | UCHAR | + | UCHAR |
- | USHORT | + | USHORT data2; // data2 |
- | USHORT | + | USHORT data3; // data3 |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | } Vib_fade_set; |
- | UCHAR RotationX; | + | This bytecode sets the specified |
- | UCHAR RotationY; | + | |{8D} |
- | UCHAR RotationZ; | + | typedef struct { |
- | UCHAR Scale; // Scale value | + | UCHAR Opcode; // 0x8D |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR Aot; // Id |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR |
- | } Sce_eff_copy; | + | UCHAR SAT; // Atari |
- | This bytecode | + | UCHAR |
- | |{8B} | + | UCHAR |
- | typedef struct { // Ptr // Description | + | SHORT X; // Position |
- | UCHAR Opcode; // 0x8B // 0x8B | + | SHORT Z; // Position |
- | UCHAR | + | USHORT |
- | } Sce_work_reset3; | + | USHORT D; // Size |
- | This bytecode | + | USHORT iItem; // Item Id |
- | |{8C} | + | USHORT nItem; // Item Amount |
- | typedef struct { // Ptr // Description | + | USHORT Flag; // argv[1] for Flg_on() and Flg_ck() |
- | UCHAR Opcode; // 0x8C // 0x8C | + | UCHAR MD1; // MD1 File Id - 0xFF if no MD1 |
- | UCHAR | + | UCHAR Action; // Predefined action taken to obtain |
- | USHORT PosX; // X position of the effect (2 bytes) | + | UCHAR data16; // |
- | USHORT PosY; // Y position of the effect (2 bytes) | + | UCHAR data17; |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | } Item_aot_set2; |
- | UCHAR | + | This bytecode |
- | UCHAR RotationY; // Y rotation of the effect | + | |{8E} |
- | UCHAR | + | typedef struct { |
- | UCHAR Scale; // Scale value | + | UCHAR Opcode; // 0x8E |
- | UCHAR Alpha; // Alpha transparency value | + | UCHAR zAlign; // Alignment byte, always zero |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | UCHAR |
- | } Sce_eff_set2; | + | UCHAR EMD; // |
- | This bytecode sets the specified | + | USHORT |
- | |{8D} | + | UCHAR nFloor; // |
- | typedef struct { // Ptr // Description | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | SHORT X; // |
- | USHORT | + | SHORT Y; // |
- | UCHAR ComparisonType; // Type of comparison | + | SHORT |
- | } Sce_work_cmp; | + | SHORT DirY; // |
- | This bytecode | + | USHORT Timer0; // |
- | |{8E} | + | USHORT Timer1; // |
- | typedef struct { // Ptr // Description | + | USHORT data16; // |
- | UCHAR Opcode; // 0x8E // | + | } Sce_em_set2; |
- | UCHAR | + | This bytecode sets the specified |
- | USHORT PosX; // X position of the effect (2 bytes) | + | |
- | USHORT | + | |
- | USHORT PosZ; // Z position of the effect (2 bytes) | + | |
- | UCHAR | + | |
- | UCHAR | + | |
- | UCHAR | + | |
- | UCHAR Scale; // Scale value | + | |
- | UCHAR Alpha; // Alpha transparency value | + | |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | |
- | } Sce_eff_set3; | + | |
- | This bytecode sets the specified | + |
re2_opcodes.1722671546.txt.gz · Last modified: 2024/08/03 00:52 by 3lric