re2_opcodes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
re2_opcodes [2024/08/04 04:18] – 3lric | re2_opcodes [2024/08/04 06:23] (current) – 3lric | ||
---|---|---|---|
Line 146: | Line 146: | ||
} Eswitch; | } Eswitch; | ||
This bytecode ends the switch-case block.++| | This bytecode ends the switch-case block.++| | ||
- | |{17} Goto | 06 |++17 ?? ?? 00 XX XX++|\\ | + | |{17} Goto | 06 |++17 ?? ?? ?? ?? ?? ??++|\\ |
typedef struct { | typedef struct { | ||
- | UCHAR Opcode; // 0x17 | + | UCHAR Opcode; |
- | UCHAR Ifel_ctr; // Always 0xFF (0x01 on r304-sub05, only) | + | UCHAR Ifel_ctr; |
- | UCHAR | + | UCHAR |
- | SHORT Offset; // Relative Pointer, always references same script | + | UCHAR zAlign; |
- | } Goto; | + | SHORT Offset; |
+ | } 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++|\\ | ||
Line 212: | Line 213: | ||
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 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; | ||
Line 220: | Line 221: | ||
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 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 ?? ?? VA LU++|\\ | + | |{23} Cmp | 06 |++23 00 ID ?? VA LU++|\\ |
typedef struct { | typedef struct { | ||
- | UCHAR Opcode; // 0x23 | + | UCHAR Opcode; |
- | UCHAR | + | UCHAR |
- | UCHAR Operator; // Comparison operator | + | UCHAR MemberId; |
- | 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 XX XX++|\\ | |{24} Save | 04 |++24 ID XX XX++|\\ | ||
Line 252: | Line 254: | ||
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 { | typedef struct { | ||
- | UCHAR Opcode; // 0x27 | + | UCHAR Opcode; |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Calc2; | + | } Calc2; |
This bytecode performs the specified arithmetic operation on the two operands and stores the result.++| | This bytecode performs the specified arithmetic operation on the two operands and stores the result.++| | ||
|{28} Sce_rnd | |{28} Sce_rnd | ||
Line 280: | Line 282: | ||
} 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 { | typedef struct { | ||
UCHAR Opcode; // 0x2B | UCHAR Opcode; // 0x2B | ||
- | UCHAR Type; // Message type | ||
- | UCHAR MessageId; | ||
UCHAR zAlign; // Always Zero (Alignment byte) | UCHAR zAlign; // Always Zero (Alignment byte) | ||
+ | UCHAR Type; // Message type | ||
+ | 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 { | typedef struct { | ||
UCHAR Opcode; // 0x2C | UCHAR Opcode; // 0x2C | ||
- | UCHAR | + | CHAR Aot; // Aot |
- | UCHAR | + | UCHAR SCE; // Id |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | SHORT X; // X position | + | UCHAR |
- | SHORT Z; // Z position | + | SHORT X; // Position |
- | USHORT | + | SHORT Z; // Position |
- | USHORT | + | USHORT |
- | UCHAR Data0; | + | USHORT |
- | UCHAR Data1; // Data 1 | + | USHORT |
- | USHORT | + | USHORT |
- | USHORT Data3; // Data 3 | + | USHORT |
- | USHORT | + | } Aot_set; |
- | } 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 { | typedef struct { | ||
UCHAR Opcode; // 0x2D | UCHAR Opcode; // 0x2D | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | USHORT Type; // Object type | + | UCHAR nFloor; // |
- | USHORT Flag; // Flag | + | UCHAR Super; // |
- | SHORT X; // X position | + | USHORT Type; // Global-> |
- | SHORT Y; // Y position | + | USHORT BeFlag; // Global-> |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT X; // |
- | SHORT DirY; // Y direction | + | SHORT |
- | SHORT DirZ; // Z direction | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT AtariOffsetY; // |
- | SHORT | + | SHORT AtariOffsetZ; // |
- | UCHAR Data0; // Data 0 | + | SHORT AtariSizeX; // |
- | UCHAR Data1; // Data 1 | + | SHORT AtariSizeY; // |
- | USHORT Data2; // Data 2 | + | SHORT AtariSizeZ; // |
- | USHORT Data3; // Data 3 | + | } Obj_model_set; |
- | USHORT Data4; // Data 4 | + | |
- | USHORT Data5; // Data 5 | + | |
- | USHORT Data6; // Data 6 | + | |
- | USHORT Data7; // Data 7 | + | |
- | USHORT Data8; // Data 8 | + | |
- | USHORT Data9; // Data 9 | + | |
- | } 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 { | typedef struct { | ||
UCHAR Opcode; // 0x2E | UCHAR Opcode; // 0x2E | ||
- | UCHAR Type; // Type of Work Set to Select | + | UCHAR Type; // Type of Work Set to Select |
UCHAR EntityId; | UCHAR EntityId; | ||
} Work_set; | } Work_set; | ||
Line 369: | Line 363: | ||
UCHAR Opcode; // 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.++| | ||
Line 378: | Line 372: | ||
UCHAR Opcode; // 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 { | typedef struct { | ||
UCHAR Opcode; // 0x34 | UCHAR Opcode; // 0x34 | ||
- | UCHAR | + | UCHAR |
- | USHORT Value; // Value to set | + | SHORT Source; // 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 { | typedef struct { | ||
UCHAR Opcode; // 0x35 | UCHAR Opcode; // 0x35 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } 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 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? | + | |{36} Se_on | 12 |++36 ?? ?? ?? ?? XX XX YY YY ZZ ZZ++|\\ |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x36 | UCHAR Opcode; // 0x36 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Volume; // Volume of the sound effect | + | SHORT EDT; // EDT Sample Id |
- | UCHAR Pan; // Pan of the sound effect | + | SHORT data0; // Sound Reverberation, |
- | UCHAR Param1; // Parameter 1 for the sound effect | + | SHORT X; // Position |
- | UCHAR Param2; // Parameter 2 for the sound effect | + | SHORT Y; |
- | UCHAR Param3; // Parameter 3 for the sound effect | + | SHORT Z; |
- | UCHAR Param4; // Parameter 4 for the sound effect | + | } Se_on; |
- | UCHAR Param5; // Parameter 5 for the sound effect | + | |
- | UCHAR Param6; // Parameter 6 for the sound effect | + | |
- | UCHAR Param7; // Parameter 7 for the sound effect | + | |
- | UCHAR Param8; // Parameter 8 for the sound effect | + | |
- | } Se_on; | + | |
This bytecode plays the specified sound effect with the given parameters.++| | This bytecode plays the specified sound effect with the given parameters.++| | ||
- | |{37} Sca_id_set | + | |{37} Sca_id_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x37 | UCHAR Opcode; // 0x37 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Value; // Value to set the scale to | + | USHORT Id; // New Collision ID |
- | UCHAR Type; // Type of scale variable | + | } Sca_id_set; |
- | } Sca_id_set; | + | |
This bytecode sets the specified scale ID to the given value.++| | This bytecode sets the specified scale ID to the given value.++| | ||
|{38} Flr_set | |{38} Flr_set | ||
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x38 | UCHAR Opcode; // 0x38 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Flr_set; | + | } Flr_set; |
This bytecode sets the specified floor ID to the given value.++| | This bytecode sets the specified floor ID to the given value.++| | ||
- | |{39} Dir_ck | + | |{39} Dir_ck |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x39 | UCHAR Opcode; // 0x39 | ||
- | UCHAR zAlign; | + | UCHAR zAlign; |
- | SHORT | + | SHORT X; |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | } Dir_ck; | + | } Dir_ck; |
This bytecode checks the specified direction coordinates.++| | This bytecode checks the specified direction coordinates.++| | ||
- | |{3A} Sce_espr_on | + | |{3A} Sce_espr_on |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x3A | UCHAR Opcode; // 0x3A | ||
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 | + | USHORT data0; |
- | UCHAR Param2; // Parameter 2 | + | USHORT data1; |
- | UCHAR Param3; // Parameter 3 | + | USHORT data2; |
- | UCHAR Param4; // Parameter 4 | + | SHORT X; |
- | UCHAR Param5; // Parameter 5 | + | SHORT Y; |
- | UCHAR Param6; // Parameter 6 | + | SHORT Z; |
- | UCHAR Param7; // Parameter 7 | + | SHORT DirY; |
- | UCHAR Param8; // Parameter 8 | + | } Sce_espr_on; |
- | UCHAR Param9; // Parameter 9 | + | |
- | UCHAR Param10; | + | |
- | UCHAR Param11; | + | |
- | UCHAR Param12; | + | |
- | UCHAR Param13; | + | |
- | UCHAR Param14; | + | |
- | UCHAR Param15; | + | |
- | } Sce_espr_on; | + | |
This bytecode turns on the specified espr with the given parameters.++| | This bytecode turns on the specified espr with the given parameters.++| | ||
- | |{3B} Door_aot_set | + | |{3B} Door_aot_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x3B | UCHAR Opcode; // 0x3B | ||
- | UCHAR | + | UCHAR |
- | UCHAR Id; // ID of the AOT to set | + | UCHAR |
- | UCHAR | + | UCHAR SAT; // Type |
- | UCHAR Super; // Super parameter | + | UCHAR |
- | UCHAR X; // X coordinate | + | UCHAR Super; // Super |
- | UCHAR Y; // Y coordinate | + | SHORT X; // Position |
- | UCHAR Z; // Z coordinate | + | SHORT Z; // Position |
- | UCHAR Width; // Width of the AOT | + | USHORT W; // Size |
- | UCHAR Depth; // Depth of the AOT | + | USHORT D; // Size */ tagSCE_AOT |
- | UCHAR Height; // Height of the AOT | + | SHORT Next_pos_x; // */ tagIN_DOOR_WORK |
- | UCHAR | + | SHORT Next_pos_y; |
- | UCHAR | + | SHORT Next_pos_z; // |
- | UCHAR | + | SHORT Next_cdir_y; |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Door_aot_set; | + | UCHAR |
+ | UCHAR | ||
+ | UCHAR | ||
+ | UCHAR Free; // */ tagIN_DOOR_WORK | ||
+ | } Door_aot_set; | ||
This bytecode sets the specified door AOT parameters.++| | This bytecode sets the specified door AOT parameters.++| | ||
- | |{3C} Cut_auto | + | |{3C} Cut_auto |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x3C | UCHAR Opcode; // 0x3C | ||
- | UCHAR | + | UCHAR |
- | } Cut_auto; | + | } Cut_auto; |
This bytecode sets the specified auto cutscene parameters.++| | This bytecode sets the specified auto cutscene parameters.++| | ||
- | |{3D} Member_copy | + | |{3D} Member_copy |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x3D | UCHAR Opcode; // 0x3D | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Member_copy; | + | } Member_copy; |
This bytecode copies the specified member parameters from the source to the destination.++| | This bytecode copies the specified member parameters from the source to the destination.++| | ||
|{3E} Member_cmp | |{3E} Member_cmp | ||
Line 499: | Line 483: | ||
UCHAR Opcode; // 0x3E | UCHAR Opcode; // 0x3E | ||
UCHAR zAlign; // Always Zero (Alignment byte) | UCHAR zAlign; // Always Zero (Alignment byte) | ||
- | UCHAR Flag; // Load_member_addr_branch() argv[1] | + | UCHAR Flag; // Load_member_addr_branch() argv[1] |
UCHAR Operator; | UCHAR Operator; | ||
SHORT Value; // Value to compare | SHORT Value; // Value to compare | ||
Line 507: | Line 491: | ||
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x3F | UCHAR Opcode; // 0x3F | ||
- | UCHAR MotionId; | + | UCHAR MotionId; |
- | UCHAR Mode; // Mode to set the motion to | + | UCHAR Mode; // Mode to set the motion to |
UCHAR Param; // Parameter for the motion | UCHAR Param; // Parameter for the motion | ||
} Plc_motion; | } Plc_motion; | ||
This bytecode sets the specified motion parameters.++| | This bytecode sets the specified motion parameters.++| | ||
- | |{40} Plc_dest | + | |{40} Plc_dest |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x40 | UCHAR Opcode; // 0x40 | ||
- | UCHAR zAlign; | + | UCHAR zAlign; |
- | UCHAR | + | UCHAR |
- | UCHAR Mode; // Mode to set the destination to | + | UCHAR |
- | UCHAR | + | SHORT X; // Destination |
- | UCHAR Param2; // Parameter 2 for the destination | + | SHORT Z; // Destination |
- | UCHAR Param3; // Parameter 3 for the destination | + | } Plc_dest; |
- | } Plc_dest; | + | |
This bytecode sets the specified destination parameters.++| | This bytecode sets the specified destination parameters.++| | ||
- | |{41} Plc_neck | + | |{41} Plc_neck |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x41 | UCHAR Opcode; // 0x41 | ||
- | UCHAR | + | UCHAR |
- | UCHAR NeckId; // ID of the neck to set | + | SHORT X; // |
- | UCHAR Param1; // Parameter 1 for the neck | + | SHORT Y; // |
- | UCHAR Param2; // Parameter 2 for the neck | + | SHORT Z; // |
- | UCHAR Param3; // Parameter 3 for the neck | + | UCHAR |
- | UCHAR Param4; // Parameter 4 for the neck | + | UCHAR |
- | UCHAR Param5; // Parameter 5 for the neck | + | } Plc_neck; |
- | UCHAR | + | |
- | UCHAR | + | |
- | } Plc_neck; | + | |
This bytecode sets the specified neck parameters.++| | This bytecode sets the specified neck parameters.++| | ||
|{42} Plc_ret | |{42} Plc_ret | ||
Line 542: | Line 522: | ||
} Plc_ret; | } Plc_ret; | ||
This bytecode returns from the specified plc function.++| | This bytecode returns from the specified plc function.++| | ||
- | |{43} Plc_flg | + | |{43} Plc_flg |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x43 | UCHAR Opcode; // 0x43 | ||
- | UCHAR | + | UCHAR |
- | USHORT Flag; // Flag value | + | UCHAR data0; // |
- | } Plc_flg; | + | UCHAR data1; // |
+ | } Plc_flg; | ||
This bytecode sets the specified flag parameters.++| | This bytecode sets the specified flag parameters.++| | ||
- | |{44} Sce_em_set | + | |{44} Sce_em_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x44 | UCHAR Opcode; // 0x44 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 | + | CHAR Em_no; // Em_no |
- | UCHAR Param2; // Parameter 2 | + | UCHAR |
- | UCHAR | + | USHORT Type; // Type |
- | UCHAR Param4; // Parameter 4 | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | SHORT Pos_x; // Position X |
- | UCHAR Param9; // Parameter 9 | + | SHORT Pos_y; // Position Y |
- | UCHAR Param10; // Parameter 10 | + | SHORT Pos_z; // Position Z |
- | UCHAR Param11; // Parameter 11 | + | SHORT Cdir_y; // Rotation Y |
- | UCHAR Param12; // Parameter 12 | + | SHORT Motion; // Motion |
- | UCHAR Param13; // Parameter 13 | + | SHORT Ctr_flg; // Ctr_flg |
- | UCHAR Param14; | + | } Sce_em_set; |
- | UCHAR Param15; | + | |
- | UCHAR Param16; | + | |
- | UCHAR Param17; | + | |
- | UCHAR Param18; | + | |
- | UCHAR Param19; | + | |
- | UCHAR Param20; | + | |
- | UCHAR Param21; // Parameter 21 | + | |
- | } Sce_em_set; | + | |
This bytecode sets the specified enemy parameters.++| | This bytecode sets the specified enemy parameters.++| | ||
- | |{45} Col_chg_set | + | |{45} Col_chg_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x45 | UCHAR Opcode; // 0x45 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Col_chg_set; | + | UCHAR Data3; // Data3 |
+ | } Col_chg_set; | ||
This bytecode sets the specified color parameters.++| | This bytecode sets the specified color parameters.++| | ||
- | |{46} Aot_reset | + | |{46} Aot_reset |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x46 | UCHAR Opcode; // 0x46 | ||
- | UCHAR AotType; // Type of AOT to reset | + | CHAR Aot; // Aot |
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 | + | UCHAR |
- | UCHAR | + | SHORT Data0; // Data0 |
- | UCHAR Param3; // Parameter 3 | + | SHORT Data1; // Data1 |
- | UCHAR Param4; // Parameter 4 | + | SHORT Data2; // Data2 |
- | UCHAR Param5; // Parameter 5 | + | } Aot_reset; |
- | UCHAR Param6; // Parameter 6 | + | |
- | UCHAR Param7; // Parameter 7 | + | |
- | } Aot_reset; | + | |
This bytecode resets the specified AOT parameters.++| | This bytecode resets the specified AOT parameters.++| | ||
- | |{47} Aot_on | + | |{47} Aot_on |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x47 | UCHAR Opcode; // 0x47 | ||
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | CHAR Aot; // Aot |
- | } Aot_on; | + | } Aot_on; |
This bytecode turns on the specified AOT.++| | This bytecode turns on the specified AOT.++| | ||
- | |{48} Super_set | + | |{48} Super_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x48 | UCHAR Opcode; // 0x48 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Param3; // Parameter 3 | + | SHORT pX; // Parent X |
- | UCHAR Param4; // Parameter 4 | + | SHORT pY; // Parent Y |
- | UCHAR Param5; // Parameter 5 | + | SHORT pZ; // Parent Z |
- | UCHAR Param6; // Parameter 6 | + | SHORT dX; // Destination X |
- | UCHAR Param7; // Parameter 7 | + | SHORT dY; // Destination Y |
- | UCHAR Param8; // Parameter 8 | + | SHORT dZ; // Destination Z |
- | UCHAR Param9; // Parameter 9 | + | } Super_set; |
- | UCHAR Param10; | + | |
- | UCHAR Param11; | + | |
- | UCHAR Param12; | + | |
- | UCHAR Param13; | + | |
- | UCHAR Param14; | + | |
- | UCHAR Param15; // Parameter 15 | + | |
- | } Super_set; | + | |
This bytecode sets the specified super parameters.++| | This bytecode sets the specified super parameters.++| | ||
- | |{49} Super_reset | + | |{49} Super_reset |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x49 | UCHAR Opcode; // 0x49 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 | + | SHORT dX; // Destination X |
- | UCHAR Param2; // Parameter 2 | + | SHORT dY; // Destination Y |
- | UCHAR Param3; // Parameter 3 | + | SHORT dZ; // Destination Z |
- | UCHAR Param4; // Parameter 4 | + | } Super_reset; |
- | UCHAR Param5; // Parameter 5 | + | |
- | } Super_reset; | + | |
This bytecode resets the specified super parameters.++| | This bytecode resets the specified super parameters.++| | ||
|{4A} Plc_gun | |{4A} Plc_gun | ||
Line 642: | Line 604: | ||
} Plc_gun; | } Plc_gun; | ||
This bytecode sets the specified gun parameters.++| | This bytecode sets the specified gun parameters.++| | ||
- | |{4B} Cut_replace | + | |{4B} Cut_replace |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x4B | UCHAR Opcode; // 0x4B | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Cut_replace; | + | } Cut_replace; |
This bytecode replaces the specified cutscene parameters.++| | This bytecode replaces the specified cutscene parameters.++| | ||
- | |{4C} Sce_espr_kill | + | |{4C} Sce_espr_kill |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x4C | UCHAR Opcode; // 0x4C | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 for the espr | + | CHAR WorkKind; // Get_matrix() argv[0] |
- | UCHAR Param2; // Parameter 2 for the espr | + | CHAR WorkNo; // Get_matrix() argv[1] |
- | } Sce_espr_kill; | + | } Sce_espr_kill; |
This bytecode kills the specified espr with the given parameters.++| | This bytecode kills the specified espr with the given parameters.++| | ||
- | |{4D} Door_model_set | + | |{4D} Door_model_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x4D | UCHAR Opcode; // 0x4D | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | UCHAR Id; // DOOR_WORK.Id |
- | SHORT PosY; // Y position | + | UCHAR OfsY; // DOOR_WORK.Atd[3] |
- | USHORT Param1; // Parameter 1 for the door model | + | UCHAR BeFlg; // DOOR_WORK.Be_flg |
- | USHORT Param2; // Parameter 2 for the door model | + | UCHAR data5; // data5 |
- | USHORT | + | USHORT |
- | USHORT Param4; // Parameter 4 for the door model | + | SHORT X; // DOOR_WORK.Atd[3] |
- | USHORT Param5; // Parameter 5 for the door model | + | SHORT Y; // DOOR_WORK.Atd[3] |
- | USHORT Param6; // Parameter 6 for the door model | + | SHORT Z; // DOOR_WORK.Atd[3] |
- | USHORT Param7; // Parameter 7 for the door model | + | SHORT DirY; // DOOR_WORK.Atd[3] |
- | USHORT | + | USHORT |
- | USHORT | + | USHORT |
- | USHORT | + | USHORT |
- | } Door_model_set; | + | } Door_model_set; |
This bytecode sets the specified door model parameters.++| | This bytecode sets the specified door model parameters.++| | ||
- | |{4E} Item_aot_set | + | |{4E} Item_aot_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x4E | UCHAR Opcode; // 0x4E | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Y; // Y coordinate | + | SHORT X; // X |
- | UCHAR Z; // Z coordinate | + | SHORT Z; // Z |
- | UCHAR Width; // Width of the AOT | + | USHORT W; // W |
- | UCHAR Depth; // Depth of the AOT | + | USHORT D; // D |
- | UCHAR Height; // Height of the AOT | + | USHORT iItem; // iItem |
- | UCHAR DirX; // X direction | + | USHORT nItem; // nItem |
- | UCHAR DirY; // Y direction | + | USHORT Flag; // Flag |
- | UCHAR DirZ; // Z direction | + | UCHAR |
- | UCHAR InitParam; | + | UCHAR |
- | UCHAR EventParam; | + | } Item_aot_set; |
- | UCHAR ConfigParam; | + | |
- | UCHAR Type; // Type of the AOT | + | |
- | UCHAR | + | |
- | UCHAR | + | |
- | } Item_aot_set; | + | |
This bytecode sets the specified item AOT parameters.++| | This bytecode sets the specified item AOT parameters.++| | ||
- | |{4F} Sce_key_ck | + | |{4F} Sce_key_ck |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x4F | UCHAR Opcode; // 0x4F | ||
- | UCHAR | + | UCHAR |
- | UCHAR Mode; // Mode to set the key to | + | USHORT Value; // Value |
- | UCHAR Param; // Parameter for the key | + | } Sce_key_ck; |
- | } Sce_key_ck; | + | |
This bytecode checks the specified key parameters.++| | This bytecode checks the specified key parameters.++| | ||
- | |{50} Sce_trg_ck | + | |{50} Sce_trg_ck |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x50 | UCHAR Opcode; // 0x50 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Mode; // Mode to set the trigger to | + | USHORT Value; // Value |
- | UCHAR Param; // Parameter for the trigger | + | } Sce_trg_ck; |
- | } Sce_trg_ck; | + | |
This bytecode checks the specified trigger parameters.++| | This bytecode checks the specified trigger parameters.++| | ||
- | |{51} Sce_bgm_control | + | |{51} Sce_bgm_control |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x51 | UCHAR Opcode; // 0x51 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Sce_bgm_control; | + | } Sce_bgm_control; |
This bytecode controls the specified BGM parameters.++| | This bytecode controls the specified BGM parameters.++| | ||
- | |{52} Sce_espr_control | + | |{52} Sce_espr_control |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x52 | UCHAR Opcode; // 0x52 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Param2; // Parameter 2 for the espr | + | CHAR WorkKind; // WorkKind |
- | UCHAR Param3; // Parameter 3 for the espr | + | CHAR WorkNo; // WorkNo |
- | } Sce_espr_control; | + | } Sce_espr_control; |
This bytecode controls the specified espr parameters.++| | This bytecode controls the specified espr parameters.++| | ||
- | |{53} Sce_fade_set | + | |{53} Sce_fade_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x53 | UCHAR Opcode; // 0x53 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 for the fade | + | UCHAR |
- | UCHAR | + | USHORT data3; // data3 |
- | UCHAR Param3; // Parameter 3 for the fade | + | } Sce_fade_set; |
- | } Sce_fade_set; | + | |
This bytecode sets the specified fade parameters.++| | This bytecode sets the specified fade parameters.++| | ||
- | |{54} Sce_espr3d_on | + | |{54} Sce_espr3d_on |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x54 | UCHAR Opcode; // 0x54 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 | + | USHORT data0; // data0 |
- | UCHAR Param2; // Parameter 2 | + | USHORT data1; // data1 |
- | UCHAR Param3; // Parameter 3 | + | USHORT data2; // data2 |
- | UCHAR Param4; // Parameter 4 | + | SHORT X; // X |
- | UCHAR Param5; // Parameter 5 | + | SHORT Y; // Y |
- | UCHAR Param6; // Parameter 6 | + | SHORT Z; // Z |
- | UCHAR Param7; // Parameter 7 | + | SHORT DirX; // DirX |
- | UCHAR Param8; // Parameter 8 | + | SHORT DirY; // DirY |
- | UCHAR Param9; // Parameter 9 | + | SHORT DirZ; // DirZ |
- | UCHAR Param10; // Parameter 10 | + | SHORT data3; // data3 |
- | UCHAR Param11; | + | } Sce_espr3d_on; |
- | UCHAR Param12; | + | |
- | UCHAR Param13; | + | |
- | UCHAR Param14; | + | |
- | UCHAR Param15; | + | |
- | UCHAR Param16; | + | |
- | UCHAR Param17; | + | |
- | UCHAR Param18; | + | |
- | UCHAR Param19; | + | |
- | UCHAR Param20; | + | |
- | UCHAR Param21; | + | |
- | } Sce_espr3d_on; | + | |
This bytecode turns on the specified 3D espr with the given parameters.++| | This bytecode turns on the specified 3D espr with the given parameters.++| | ||
- | |{55} Member_calc | + | |{55} Member_calc |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x55 | UCHAR Opcode; // 0x55 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Operator; // Arithmetic operation to perform | + | USHORT Flag; // Flag |
- | USHORT | + | SHORT Value; // Value |
- | } Member_calc; | + | } Member_calc; |
This bytecode performs the specified arithmetic operation on the member with the given value.++| | This bytecode performs the specified arithmetic operation on the member with the given value.++| | ||
- | |{56} Member_calc2 | + | |{56} Member_calc2 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x56 | UCHAR Opcode; // 0x56 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Value; // Value to use in the calculation | + | UCHAR Value; // Value |
- | } Member_calc2; | + | } Member_calc2; |
This bytecode performs the specified arithmetic operation on the member with the given value.++| | This bytecode performs the specified arithmetic operation on the member with the given value.++| | ||
- | |{57} Sce_bgmtbl_set | + | |{57} Sce_bgmtbl_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x57 | UCHAR Opcode; // 0x57 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR Param1; // Parameter 1 for the BGM table | + | UCHAR |
- | UCHAR | + | USHORT data1; // data1 |
- | UCHAR Param3; // Parameter 3 for the BGM table | + | USHORT data2; // data2 |
- | UCHAR Param4; // Parameter 4 for the BGM table | + | } Sce_bgmtbl_set; |
- | } Sce_bgmtbl_set; | + | |
This bytecode sets the specified BGM table parameters.++| | This bytecode sets the specified BGM table parameters.++| | ||
- | |{58} Plc_rot | + | |{58} Plc_rot |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x58 | UCHAR Opcode; // 0x58 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Speed; // Speed value | + | USHORT Sce_free0; // Sce_free0 |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | } Plc_rot; |
- | } Plc_rot; | + | |
This bytecode sets the specified rotation parameters.++| | This bytecode sets the specified rotation parameters.++| | ||
- | |{59} Xa_on | 04 |++59 ID ?? ??++|\\ | + | |{59} Xa_on | 04 |++59 ?? ?? ?? ++|\\ |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x59 | UCHAR Opcode; // 0x59 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Mode; // Mode to set the XA to | + | USHORT Number; // Number |
- | UCHAR Param; // Parameter for the XA | + | } Xa_on; |
- | } Xa_on; | + | |
This bytecode turns on the specified XA with the given parameters.++| | This bytecode turns on the specified XA with the given parameters.++| | ||
|{5A} Weapon_chg | |{5A} Weapon_chg | ||
Line 822: | Line 763: | ||
} Weapon_chg; | } Weapon_chg; | ||
This bytecode changes the specified weapon parameters.++| | This bytecode changes the specified weapon parameters.++| | ||
- | |{5B} Plc_cnt | + | |{5B} Plc_cnt |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x5B | UCHAR Opcode; // 0x5B | ||
- | UCHAR | + | UCHAR |
- | } Plc_cnt; | + | } Plc_cnt; |
This bytecode performs the specified arithmetic operation on the counter with the given value.++| | This bytecode performs the specified arithmetic operation on the counter with the given value.++| | ||
- | |{5C} Sce_shake_on | + | |{5C} Sce_shake_on |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x5C | UCHAR Opcode; // 0x5C | ||
- | UCHAR Intensity; // Shake intensity | + | CHAR Slide_ofs; // Slide_ofs |
- | UCHAR Duration; // Shake duration | + | CHAR Copy_ofs; // Copy_ofs |
- | } Sce_shake_on; | + | } Sce_shake_on; |
This bytecode turns on the specified shake effect with the given parameters.++| | This bytecode turns on the specified shake effect with the given parameters.++| | ||
- | |{5D} Mizu_div_set | + | |{5D} Mizu_div_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x5D | UCHAR Opcode; // 0x5D | ||
- | UCHAR | + | UCHAR |
- | } Mizu_div_set; | + | } Mizu_div_set; |
This bytecode sets the specified water division parameters.++| | This bytecode sets the specified water division parameters.++| | ||
|{5E} Keep_Item_ck | |{5E} Keep_Item_ck | ||
Line 853: | Line 794: | ||
} Xa_vol; | } Xa_vol; | ||
This bytecode sets the specified XA volume and pan parameters.++| | This bytecode sets the specified XA volume and pan parameters.++| | ||
- | |{60} Kage_set | + | |{60} Kage_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x60 | UCHAR Opcode; // 0x60 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Red; // Red color value | + | CHAR Id; // Id |
- | UCHAR Green; // Green color value | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | USHORT Data3; // Data3 |
- | SHORT PosX; // X position | + | USHORT Data4; // Data4 |
- | SHORT PosY; // Y position | + | USHORT Data5; // Data5 |
- | SHORT PosZ; // Z position | + | USHORT Data6; // Data6 |
- | SHORT Width; // Width | + | } Kage_set; |
- | SHORT Height; // Height | + | |
- | UCHAR zAlign; // Always Zero (Alignment byte) | + | |
- | } Kage_set; | + | |
This bytecode sets the specified shadow parameters.++| | This bytecode sets the specified shadow parameters.++| | ||
- | |{61} Cut_be_set | + | |{61} Cut_be_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x61 | UCHAR Opcode; // 0x61 | ||
- | UCHAR | + | UCHAR |
- | USHORT | + | UCHAR Value; // Value |
- | } Cut_be_set; | + | UCHAR OnOff; // OnOff |
+ | } Cut_be_set; | ||
This bytecode sets the specified cutscene parameters.++| | This bytecode sets the specified cutscene parameters.++| | ||
|{62} Sce_Item_lost | |{62} Sce_Item_lost | ||
Line 888: | Line 827: | ||
} Plc_gun_eff; | } Plc_gun_eff; | ||
This bytecode sets the specified gun effect parameters.++| | This bytecode sets the specified gun effect parameters.++| | ||
- | |{64} Sce_espr_on2 | + | |{64} Sce_espr_on2 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x64 | UCHAR Opcode; // 0x64 | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | USHORT data1; // data1 |
- | SHORT PosY; // Y position | + | UCHAR WorkKind; // WorkKind |
- | SHORT PosZ; // Z position | + | UCHAR WorkNo; // WorkNo |
- | SHORT DirX; // X direction | + | USHORT data3; // data3 |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | UCHAR Red; // Red color value | + | SHORT Z; // Z |
- | UCHAR Green; // Green color value | + | USHORT DirY; // DirY |
- | UCHAR Blue; // Blue color value | + | } Sce_espr_on2; |
- | UCHAR Alpha; // Alpha transparency value | + | |
- | } Sce_espr_on2; | + | |
This bytecode turns on the specified espr with the given parameters.++| | This bytecode turns on the specified espr with the given parameters.++| | ||
|{65} Sce_espr_kill2 | |{65} Sce_espr_kill2 | ||
Line 915: | Line 852: | ||
} Plc_stop; | } Plc_stop; | ||
This bytecode stops the specified plc function.++| | This bytecode stops the specified plc function.++| | ||
- | |{67} Aot_set_4p | + | |{67} Aot_set_4p |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x67 | UCHAR Opcode; // 0x67 | ||
- | UCHAR Aot; // AOT index | + | UCHAR Aot; // Aot |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
UCHAR Super; // Super | UCHAR Super; // Super | ||
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | } Aot_set_4p; | + | SHORT Z2; // Z2 |
+ | SHORT X3; // X3 | ||
+ | SHORT Z3; // Z3 | ||
+ | USHORT Data0; // Data0 | ||
+ | USHORT Data1; // Data1 | ||
+ | USHORT Data2; // Data2 | ||
+ | } Aot_set_4p; | ||
This bytecode sets the specified 4-point AOT parameters.++| | This bytecode sets the specified 4-point AOT parameters.++| | ||
- | |{68} Door_aot_set_4p | + | |{68} Door_aot_set_4p |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x68 | UCHAR Opcode; // 0x68 | ||
- | UCHAR Aot; // AOT index | + | UCHAR Aot; // Aot |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
UCHAR Super; // Super | UCHAR Super; // Super | ||
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | UCHAR | + | SHORT X2; // X2 |
- | UCHAR | + | SHORT Z2; // Z2 |
- | UCHAR | + | SHORT X3; // X3 |
- | UCHAR | + | SHORT Z3; // Z3 |
- | UCHAR | + | SHORT Next_pos_x; |
- | UCHAR | + | SHORT Next_pos_y; |
- | UCHAR | + | SHORT Next_pos_z; |
- | SHORT Unknown[12]; // Unknown data | + | SHORT Next_cdir_y; |
- | } Door_aot_set_4p; | + | UCHAR |
+ | UCHAR | ||
+ | UCHAR | ||
+ | UCHAR | ||
+ | UCHAR Dtex_type; // Dtex_type | ||
+ | UCHAR | ||
+ | UCHAR Knock_type; | ||
+ | UCHAR | ||
+ | UCHAR | ||
+ | UCHAR Free; // Free | ||
+ | } Door_aot_set_4p; | ||
This bytecode sets the specified 4-point door AOT parameters.++| | This bytecode sets the specified 4-point door AOT parameters.++| | ||
- | |{69} Item_aot_set_4p | + | |{69} Item_aot_set_4p |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x69 | UCHAR Opcode; // 0x69 | ||
- | UCHAR Aot; // AOT index | + | UCHAR Aot; // Aot |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
UCHAR Super; // Super | UCHAR Super; // Super | ||
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | } Item_aot_set_4p; | + | SHORT X3; // X3 |
+ | SHORT Z3; // Z3 | ||
+ | USHORT iItem; // iItem | ||
+ | USHORT nItem; // nItem | ||
+ | USHORT Flag; // Flag | ||
+ | UCHAR MD1; // MD1 | ||
+ | UCHAR Action; // Action | ||
+ | } Item_aot_set_4p; | ||
This bytecode sets the specified 4-point item AOT parameters.++| | This bytecode sets the specified 4-point item AOT parameters.++| | ||
- | |{6A} Light_pos_set | + | |{6A} Light_pos_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x6A | UCHAR Opcode; // 0x6A | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | UCHAR Index; // Index |
- | SHORT | + | UCHAR XYZ; // XYZ |
- | } Light_pos_set; | + | SHORT |
+ | } Light_pos_set; | ||
This bytecode sets the specified light position parameters.++| | This bytecode sets the specified light position parameters.++| | ||
- | |{6B} Light_kido_set | + | |{6B} Light_kido_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x6B | UCHAR Opcode; // 0x6B | ||
- | UCHAR | + | UCHAR |
- | UCHAR Brightness; // Brightness value | + | SHORT Luminosity; // Luminosity |
- | UCHAR Unknown; | + | } Light_kido_set; |
- | } Light_kido_set; | + | |
This bytecode sets the specified light intensity and color parameters.++| | This bytecode sets the specified light intensity and color parameters.++| | ||
|{6C} Rbj_reset | |{6C} Rbj_reset | ||
Line 989: | Line 949: | ||
} Rbj_reset; | } Rbj_reset; | ||
This bytecode resets the specified rbj parameters.++| | This bytecode resets the specified rbj parameters.++| | ||
- | |{6D} Sce_scr_move | + | |{6D} Sce_scr_move |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x6D | UCHAR Opcode; // 0x6D | ||
- | UCHAR | + | UCHAR |
- | UCHAR Direction; | + | SHORT Scrl_y; // Scrl_y |
- | UCHAR Speed; // Speed of movement | + | } Sce_scr_move; |
- | } Sce_scr_move; | + | |
This bytecode moves the specified screen with the given parameters.++| | This bytecode moves the specified screen with the given parameters.++| | ||
- | |{6E} Parts_set | + | |{6E} Parts_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x6E | UCHAR Opcode; // 0x6E | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | CHAR Id; // Id |
- | SHORT | + | CHAR Type; // Type |
- | } Parts_set; | + | SHORT |
+ | } Parts_set; | ||
This bytecode sets the specified parts parameters.++| | This bytecode sets the specified parts parameters.++| | ||
|{6F} Movie_on | |{6F} Movie_on | ||
Line 1021: | Line 981: | ||
} Splc_sce; | } Splc_sce; | ||
This bytecode sets the specified splc parameters.++| | This bytecode sets the specified splc parameters.++| | ||
- | |{72} Super_on | + | |{72} Super_on |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x72 | UCHAR Opcode; // 0x72 | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | UCHAR data0; // data0 |
- | SHORT PosY; // Y position | + | UCHAR data1; // data1 |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | UCHAR Color; // Color | + | SHORT data6; // data6 |
- | UCHAR Alpha; // Alpha transparency | + | SHORT data7; // data7 |
- | UCHAR Unknown; // Unknown data | + | } Super_on; |
- | } Super_on; | + | |
This bytecode turns on the specified super with the given parameters.++| | This bytecode turns on the specified super with the given parameters.++| | ||
- | |{73} Mirror_set | + | |{73} Mirror_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x73 | UCHAR Opcode; // 0x73 | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | USHORT Position; // Position |
- | SHORT PosY; // Y position | + | USHORT Min; // Min |
- | SHORT PosZ; // Z position | + | USHORT Max; // Max |
- | } Mirror_set; | + | } Mirror_set; |
This bytecode sets the specified mirror position parameters.++| | This bytecode sets the specified mirror position parameters.++| | ||
- | |{74} Sce_fade_adjust | + | |{74} Sce_fade_adjust |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x74 | UCHAR Opcode; // 0x74 | ||
- | UCHAR | + | UCHAR |
- | UCHAR Speed; // Fade speed | + | SHORT data1; // data1 |
- | UCHAR Color; // Fade color | + | } Sce_fade_adjust; |
- | } Sce_fade_adjust; | + | |
This bytecode adjusts the specified fade parameters.++| | This bytecode adjusts the specified fade parameters.++| | ||
- | |{75} Sce_espr3d_on2 | + | |{75} Sce_espr3d_on2 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x75 | UCHAR Opcode; // 0x75 | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | USHORT bit; // bit |
- | SHORT PosY; // Y position | + | USHORT data4; // data4 |
- | SHORT PosZ; // Z position | + | USHORT data6; // data6 |
- | SHORT DirX; // X direction | + | USHORT data8; // data8 |
- | SHORT DirY; // Y direction | + | USHORT dataA; // dataA |
- | SHORT DirZ; // Z direction | + | USHORT dataC; // dataC |
- | SHORT Scale; // Scale | + | USHORT dataE; // dataE |
- | SHORT Alpha; // Alpha transparency | + | USHORT data10; // data10 |
- | UCHAR R; // Red component | + | USHORT data12; // data12 |
- | UCHAR G; // Green component | + | USHORT data14; // data14 |
- | UCHAR B; // Blue component | + | } Sce_espr3d_on2; |
- | UCHAR Unknown[6]; | + | |
- | } Sce_espr3d_on2; | + | |
This bytecode turns on the specified 3D espr with the given parameters.++| | This bytecode turns on the specified 3D espr with the given parameters.++| | ||
- | |{76} Sce_Item_get | + | |{76} Sce_Item_get |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x76 | UCHAR Opcode; // 0x76 | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Sce_Item_get; | + | } Sce_Item_get; |
This bytecode gets the specified item with the given quantity.++| | This bytecode gets the specified item with the given quantity.++| | ||
- | |{77} Sce_line_start | + | |{77} Sce_line_start |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x77 | UCHAR Opcode; // 0x77 | ||
- | UCHAR | + | UCHAR |
- | UCHAR StartX; // Start X coordinate | + | USHORT Value; // Value |
- | UCHAR StartY; // Start Y coordinate | + | } Sce_line_start; |
- | } Sce_line_start; | + | |
This bytecode starts the specified line with the given parameters.++| | This bytecode starts the specified line with the given parameters.++| | ||
- | |{78} Sce_line_main | + | |{78} Sce_line_main |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x78 | UCHAR Opcode; // 0x78 | ||
- | UCHAR | + | UCHAR |
- | UCHAR StartX; // Start X coordinate | + | SHORT Data0; // Data0 |
- | UCHAR StartY; // Start Y coordinate | + | SHORT Data1; // Data1 |
- | UCHAR EndX; // End X coordinate | + | } Sce_line_main; |
- | UCHAR EndY; // End Y coordinate | + | |
- | } Sce_line_main; | + | |
This bytecode sets the specified line parameters.++| | This bytecode sets the specified line parameters.++| | ||
- | |{79} Sce_line_end | + | |{79} Sce_line_end |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x79 | UCHAR Opcode; // 0x79 | ||
- | } Sce_line_end; | + | } Sce_line_end; |
This bytecode ends the specified line.++| | This bytecode ends the specified line.++| | ||
- | |{7A} Sce_parts_bomb | + | |{7A} Sce_parts_bomb |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x7A | UCHAR Opcode; // 0x7A | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | UCHAR data2; // data2 |
- | SHORT PosY; // Y position | + | UCHAR data3; // data3 |
- | SHORT | + | UCHAR data4; // data4 |
- | SHORT | + | UCHAR data5; // data5 |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | UCHAR Unknown[2]; // Unknown data | + | SHORT |
- | } Sce_parts_bomb; | + | SHORT |
+ | SHORT dataE; // dataE | ||
+ | } Sce_parts_bomb; | ||
This bytecode bombs the specified parts with the given parameters.++| | This bytecode bombs the specified parts with the given parameters.++| | ||
- | |{7B} Sce_parts_down | + | |{7B} Sce_parts_down |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x7B | UCHAR Opcode; // 0x7B | ||
- | UCHAR | + | UCHAR |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | SHORT | + | SHORT |
- | UCHAR Unknown[2]; // Unknown data | + | SHORT DirZ; // DirZ |
- | } Sce_parts_down; | + | } Sce_parts_down; |
This bytecode moves down the specified parts with the given parameters.++| | This bytecode moves down the specified parts with the given parameters.++| | ||
- | |{7C} Light_color_set | + | |{7C} Light_color_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x7C | UCHAR Opcode; // 0x7C | ||
- | UCHAR | + | UCHAR |
- | SHORT ColorR; // Red color component of the light | + | UCHAR R; // R |
- | SHORT ColorG; // Green color component of the light | + | UCHAR G; // G |
- | SHORT ColorB; // Blue color component of the light | + | UCHAR B; // B |
- | } Light_color_set; | + | UCHAR zAlign; // zAlign |
+ | } Light_color_set; | ||
This bytecode sets the specified light color parameters.++| | This bytecode sets the specified light color parameters.++| | ||
- | |{7D} Light_pos_set2 | + | |{7D} Light_pos_set2 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x7D | UCHAR Opcode; // 0x7D | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | UCHAR Index; // Index |
- | SHORT | + | UCHAR XYZ; // XYZ |
- | } Light_pos_set2; | + | SHORT |
+ | } Light_pos_set2; | ||
This bytecode sets the specified light position parameters.++| | This bytecode sets the specified light position parameters.++| | ||
- | |{7E} Light_kido_set2 | + | |{7E} Light_kido_set2 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x7E | UCHAR Opcode; // 0x7E | ||
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | UCHAR | + | UCHAR |
- | } Light_kido_set2; | + | USHORT Luminosity; // Luminosity |
+ | } Light_kido_set2; | ||
This bytecode sets the specified light intensity and color parameters.++| | This bytecode sets the specified light intensity and color parameters.++| | ||
- | |{7F} Light_color_set2 | + | |{7F} Light_color_set2 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x7F | UCHAR Opcode; // 0x7F | ||
- | UCHAR | + | UCHAR |
- | SHORT ColorR; // Red color component of the light | + | UCHAR Index; // Index |
- | SHORT ColorG; // Green color component of the light | + | UCHAR R; // R |
- | SHORT ColorB; // Blue color component of the light | + | UCHAR G; // G |
- | } Light_color_set2; | + | UCHAR B; // B |
+ | } Light_color_set2; | ||
This bytecode sets the specified light color parameters.++| | This bytecode sets the specified light color parameters.++| | ||
|{80} Se_vol | |{80} Se_vol | ||
Line 1174: | Line 1133: | ||
} Keep_Item_ck2; | } Keep_Item_ck2; | ||
This bytecode checks the specified item parameters.++| | This bytecode checks the specified item parameters.++| | ||
- | |{82} Sce_espr_task | + | |{82} Sce_espr_task |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x82 | UCHAR Opcode; // 0x82 | ||
- | UCHAR TaskId; // ID of the espr task to set | + | CHAR WorkKind; // WorkKind |
- | UCHAR Mode; // Mode to set the espr task to | + | CHAR WorkNo; // WorkNo |
- | } Sce_espr_task; | + | } Sce_espr_task; |
This bytecode sets the specified espr task parameters.++| | This bytecode sets the specified espr task parameters.++| | ||
|{83} Plc_heal | |{83} Plc_heal | ||
Line 1186: | Line 1145: | ||
} Plc_heal; | } Plc_heal; | ||
This bytecode heals the specified plc function.++| | This bytecode heals the specified plc function.++| | ||
- | |{84} St_map_hint | + | |{84} St_map_hint |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x84 | UCHAR Opcode; // 0x84 | ||
- | UCHAR | + | UCHAR |
- | } St_map_hint; | + | } St_map_hint; |
This bytecode sets the specified map hint parameters.++| | This bytecode sets the specified map hint parameters.++| | ||
- | |{85} Sce_em_pos_ck | + | |{85} Sce_em_pos_ck |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x85 | UCHAR Opcode; // 0x85 | ||
- | UCHAR | + | UCHAR |
- | SHORT PosX; // X position | + | UCHAR data1; // data1 |
- | SHORT PosY; // Y position | + | UCHAR Att; // Att |
- | } Sce_em_pos_ck; | + | USHORT Flg; // Flg |
+ | } Sce_em_pos_ck; | ||
This bytecode checks the specified enemy position parameters.++| | This bytecode checks the specified enemy position parameters.++| | ||
|{86} Poison_ck | |{86} Poison_ck | ||
Line 1222: | Line 1182: | ||
} Evt_next2; | } Evt_next2; | ||
This bytecode moves to the next event in the sequence.++| | This bytecode moves to the next event in the sequence.++| | ||
- | |{8A} Vib_set0 | + | |{8A} Vib_set0 |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x8A | UCHAR Opcode; // 0x8A | ||
- | UCHAR | + | UCHAR |
- | USHORT | + | USHORT |
- | USHORT | + | USHORT |
- | } Vib_set0; | + | } Vib_set0; |
This bytecode sets the specified vibration parameters.++| | This bytecode sets the specified vibration parameters.++| | ||
|{8B} Vib_set1 | |{8B} Vib_set1 | ||
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x8B | UCHAR Opcode; // 0x8B | ||
- | UCHAR Id; // Vibration ID | + | UCHAR Id; // Vibration ID |
USHORT Value1; // Vibration Value 1 | USHORT Value1; // Vibration Value 1 | ||
USHORT Value2; // Vibration Value 2 | USHORT Value2; // Vibration Value 2 | ||
} Vib_set1; | } Vib_set1; | ||
This bytecode sets the specified vibration parameters.++| | This bytecode sets the specified vibration parameters.++| | ||
- | |{8C} Vib_fade_set | + | |{8C} Vib_fade_set |
typedef struct { | typedef struct { | ||
UCHAR Opcode; // 0x8C | UCHAR Opcode; // 0x8C | ||
- | UCHAR | + | UCHAR |
- | USHORT StartValue; // Starting Vibration Value | + | UCHAR data0; // data0 |
- | USHORT | + | UCHAR data1; // data1 |
- | USHORT | + | USHORT |
- | } Vib_fade_set; | + | USHORT |
+ | } Vib_fade_set; | ||
This bytecode sets the specified vibration fade parameters.++| | This bytecode sets the specified vibration fade parameters.++| | ||
|{8D} Item_aot_set2 | |{8D} Item_aot_set2 | ||
typedef struct { | typedef struct { | ||
- | UCHAR Opcode; // 0x8D | + | UCHAR Opcode; // 0x8D |
- | UCHAR Aot; // Id | + | UCHAR Aot; // Id |
- | UCHAR SCE; // Type (0x02) | + | UCHAR SCE; // Type (0x02) |
- | UCHAR SAT; // Atari | + | UCHAR SAT; // Atari |
- | UCHAR nFloor; // Height | + | UCHAR nFloor; // Height |
- | UCHAR Super; // Matrix | + | UCHAR Super; // Matrix |
- | SHORT X; // Position | + | SHORT X; // Position |
- | SHORT Z; // Position | + | SHORT Z; // Position |
- | USHORT W; // Size | + | USHORT W; // Size |
- | USHORT D; // Size | + | USHORT D; // Size |
- | USHORT iItem; // Item Id | + | USHORT iItem; // Item Id |
- | USHORT nItem; // Item Amount | + | USHORT nItem; // Item Amount |
- | USHORT Flag; // argv[1] for Flg_on() and Flg_ck() | + | USHORT Flag; // argv[1] for Flg_on() and Flg_ck() |
- | UCHAR MD1; // MD1 File Id - 0xFF if no MD1 | + | UCHAR MD1; // MD1 File Id - 0xFF if no MD1 |
- | UCHAR Action; // Predefined action taken to obtain | + | UCHAR Action; // Predefined action taken to obtain |
- | UCHAR data16; // | + | UCHAR data16; // |
- | UCHAR data17; // | + | UCHAR data17; // |
} Item_aot_set2; | } Item_aot_set2; | ||
This bytecode sets the specified item AOT parameters.++| | This bytecode sets the specified item AOT parameters.++| | ||
|{8E} Sce_em_set2 | |{8E} Sce_em_set2 | ||
typedef struct { | typedef struct { | ||
- | UCHAR Opcode; // 0x8E | + | UCHAR Opcode; // 0x8E |
- | UCHAR zAlign; // Alignment byte, always zero | + | UCHAR zAlign; // Alignment byte, always zero |
- | UCHAR Aot; // | + | UCHAR Aot; // |
- | UCHAR EMD; // | + | UCHAR EMD; // |
- | USHORT Type; // | + | USHORT Type; // |
- | UCHAR nFloor; // | + | UCHAR nFloor; // |
- | UCHAR SeType; // | + | UCHAR SeType; // |
- | UCHAR ModelType; // | + | UCHAR ModelType; |
- | UCHAR EmSetFlg; // | + | UCHAR EmSetFlg; // |
- | SHORT X; // | + | SHORT X; // |
- | SHORT Y; // | + | SHORT Y; // |
- | SHORT Z; // | + | SHORT Z; // |
- | SHORT DirY; // | + | SHORT DirY; // |
- | USHORT Timer0; // | + | USHORT Timer0; // |
- | USHORT Timer1; // | + | USHORT Timer1; // |
- | USHORT data16; // | + | USHORT data16; // |
} Sce_em_set2; | } Sce_em_set2; | ||
This bytecode sets the specified enemy parameters.++| | This bytecode sets the specified enemy parameters.++| | ||
re2_opcodes.txt · Last modified: 2024/08/04 06:23 by 3lric