User Tools

Site Tools


re2_opcodes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
re2_opcodes [2024/08/04 04:18] 3lricre2_opcodes [2024/08/04 06:23] (current) 3lric
Line 146: Line 146:
  } Eswitch;   } Eswitch;
 This bytecode ends the switch-case block.++|  08-02-2024 Newly Added  | This bytecode ends the switch-case block.++|  08-02-2024 Newly Added  |
-|{17}  Goto  |  06  |++17 ?? ?? 00 XX XX++|\\ +|{17}  Goto  |  06  |++17 ?? ?? ?? ?? ?? ??++|\\
  typedef struct {   typedef struct {
- UCHAR Opcode; // 0x17 + UCHAR Opcode;       // 0x17 
- UCHAR Ifel_ctr; // Always 0xFF (0x01 on r304-sub05, only+ UCHAR Ifel_ctr;     // Always 0xFF (or 0x01 on specific cases
- UCHAR zAlign; // Always Zero (Alignment byte+ UCHAR Loop_ctr    // Always 0xFF (or 0x00 on specific cases) 
- SHORT Offset; // Relative Pointer, always references same script + UCHAR zAlign;      // Always 0x00 
- } Goto; + SHORT Offset;       // Relative Pointer, always references the same script 
 + } Goto;
 This bytecode jumps to the specified offset within the script.++|  08-02-2024 Newly Added  | This bytecode jumps to the specified offset within the script.++|  08-02-2024 Newly Added  |
 |{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.++|  08-02-2024 Newly Added  | This bytecode sets the specified system flag and bit ID to the given On/Off state.++|  08-02-2024 Newly Added  |
-|{23}  Cmp  |  06  |++23 ?? ?? VA LU++|\\ +|{23}  Cmp  |  06  |++23 00 ID ?? VA LU++|\\
  typedef struct {   typedef struct {
- UCHAR Opcode; // 0x23 + UCHAR Opcode;       // 0x23 
- UCHAR Flag; // System flag to compare + UCHAR zAlign      // Always 0x00 
- UCHAR Operator; // Comparison operator + UCHAR MemberId;    // Id of the member to compare 
- USHORT Value; // Value to compare against + UCHAR Operator;     // Type of comparison 
- } Cmp; + SHORT Value;       // Value to compare the member to 
 + } Cmp;
 This bytecode compares the specified system flag with the given value using the provided comparison operator.++|  08-02-2024 Newly Added  | This bytecode compares the specified system flag with the given value using the provided comparison operator.++|  08-02-2024 Newly Added  |
 |{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; // Arithmetic operation to perform  UCHAR Operator; // Arithmetic operation to perform
- 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.++|  08-02-2024 Newly Added  | This bytecode performs the specified arithmetic operation on the operands and stores the result.++|  08-02-2024 Newly Added  |
-|{27}  Calc2  |  04  |++27 ?? ?? ??++|\\ +|{27}  Calc2  |  04  |++27 ?? ?? ??++|\\
  typedef struct {   typedef struct {
- UCHAR Opcode; // 0x27 + UCHAR Opcode;        // 0x27 
- UCHAR Operand1; // First operand + UCHAR Operator    // Type of operation 
- UCHAR Operator; // Arithmetic operation to perform + UCHAR Flag        // F_atari, etc 
- UCHAR Operand2; // Second operand + UCHAR Value        // Value to use in the operation 
- } Calc2; + } Calc2;
 This bytecode performs the specified arithmetic operation on the two operands and stores the result.++|  08-02-2024 Newly Added  | This bytecode performs the specified arithmetic operation on the two operands and stores the result.++|  08-02-2024 Newly Added  |
 |{28}  Sce_rnd  |  01  |++28++|\\  |{28}  Sce_rnd  |  01  |++28++|\\
Line 280: Line 282:
  } Cut_old;   } Cut_old;
 This bytecode reverts to the previous camera.++|  08-02-2024 Newly Added  | This bytecode reverts to the previous camera.++|  08-02-2024 Newly Added  |
-|{2B}  Message_on  |  06  |++2B ?? ID 00 SI ZE++|\\ +|{2B}  Message_on  |  06  |++2B 00 ?? ?? SI ZE++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x2B  UCHAR Opcode; // 0x2B
- UCHAR Type; // Message type 
- UCHAR MessageId; // ID of the message to display 
  UCHAR zAlign; // Always Zero (Alignment byte)  UCHAR zAlign; // Always Zero (Alignment byte)
 + UCHAR Type; // Message type
 + UCHAR MessageId; // ID of the message to display
  USHORT DisplayTime; // Time to display the message  USHORT DisplayTime; // Time to display the message
  } Message_on;   } Message_on;
 This bytecode displays the specified message.++|  08-02-2024 Newly Added  | This bytecode displays the specified message.++|  08-02-2024 Newly Added  |
-|{2C}  Aot_set  |  20  |++2C ID ?? ?? FL ?? XX XX ZZ ZZ WW WW DD DD ?? ?? ?? ?? ?? ??++|\\ +|{2C}  Aot_set  |  20  |++2C ID ?? ?? ?? ?? XX XX ZZ ZZ SI ZE SI ZE ?? ?? ?? ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x2C  UCHAR Opcode; // 0x2C
- UCHAR AotId; // AOT ID + CHAR Aot; // Aot 
- UCHAR zAlign0; // Always Zero (Alignment byte) + UCHAR SCE; // Id 
- UCHAR Floor; // Floor number + UCHAR SAT; // Type 
- UCHAR Flag; // Flag + UCHAR nFloor; // nFloor 
- SHORT X; // X position + UCHAR Super; // Super 
- SHORT Z; // Z position + SHORT X; // Position 
- USHORT Width; // Width + SHORT Z; // Position 
- USHORT Depth; // Depth + USHORT W; // Size 
- UCHAR Data0; // Data 0 + USHORT D; // Size 
- UCHAR Data1; // Data 1 + USHORT Data0; // Sce_Message Flag Type Always 0x00FF 
- USHORT Data2; // Data 2 + USHORT Data1; // Sce_Message Flag Id Script Id Init & Complete 
- USHORT Data3; // Data 3 + USHORT Data2; // Always 0xFFFF 
- USHORT Data4; // Data 4 + } Aot_set;
- } Aot_set; +
 This bytecode sets the properties of the specified AOT.++|  08-02-2024 Newly Added  | This bytecode sets the properties of the specified AOT.++|  08-02-2024 Newly Added  |
-|{2D}  Obj_model_set  |  38  |++2D ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{2D}  Obj_model_set  |  38  |++2D ?? ID ?? ?? ?? ?? ?? ?? TI PE BE FL XX XX YY YY ZZ ZZ DX DX DY DY DZ DZ XX XX YY YY ZZ ZZ XX XX YY YY ZZ ZZ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x2D  UCHAR Opcode; // 0x2D
- UCHAR ModelId; // Model ID + UCHAR MD1; // MD1 File Id 
- UCHAR zAlign0; // Always Zero (Alignment byte) + UCHAR Id; // Global->Ob_model[].Id 
- UCHAR Floor; // Floor number + UCHAR Ccol_old; // CC_WORK structure 
- UCHAR zAlign1; // Always Zero (Alignment byte) + UCHAR Ccol_no; // CC_WORK structure 
- UCHAR zAlign2; // Always Zero (Alignment byte) + UCHAR Ctex_old; // CC_WORK structure 
- USHORT Type; // Object type + UCHAR nFloor; //  
- USHORT Flag; // Flag + UCHAR Super; //  
- SHORT X; // X position + USHORT Type; // Global->Ob_model[].Type 
- SHORT Y; // Y position + USHORT BeFlag; // Global->Ob_model[].Be_flg 
- SHORT Z; // Z position + SHORT Attribute; // Global->Ob_model[].Attribute 
- SHORT DirX; // direction + SHORT X; //  
- SHORT DirY; // Y direction + SHORT Y; //  
- SHORT DirZ; // Z direction + SHORT Z; //  
- SHORT OffsetX; // Offset X + SHORT DirX; //  
- SHORT OffsetY; // Offset Y + SHORT DirY; //  
- SHORT OffsetZ; // Offset Z + SHORT DirZ; //  
- SHORT SizeX; // Size X + SHORT AtariOffsetX; //  
- SHORT SizeY; // Size Y + SHORT AtariOffsetY; //  
- SHORT SizeZ; // Size Z + 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.++|  08-02-2024 Newly Added  | This bytecode sets the properties of the specified object model.++|  08-02-2024 Newly Added  |
 |{2E}  Work_set  |  03  |++2E ?? ID++|\\  |{2E}  Work_set  |  03  |++2E ?? ID++|\\
  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; // ID of Entity to select  UCHAR EntityId; // ID of Entity to select
  } 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.++|  08-02-2024 Newly Added  | This bytecode sets the position in 3D space.++|  08-02-2024 Newly Added  |
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.++|  08-02-2024 Newly Added  | This bytecode sets the direction in 3D space.++|  08-02-2024 Newly Added  |
-|{34}  Member_set  |  04  |++34 ID ?? 00++|\\ +|{34}  Member_set  |  04  |++34 ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x34  UCHAR Opcode; // 0x34
- UCHAR MemberId; // ID of the member + UCHAR Destination; // Destination 
- USHORT Value; // Value to set + SHORT Source; // Source 
- } Member_set; + } Member_set;
 This bytecode sets the properties of the specified member.++|  08-02-2024 Newly Added  | This bytecode sets the properties of the specified member.++|  08-02-2024 Newly Added  |
-|{35}  Member_set2  |  03  |++35 ID ??++|\\ +|{35}  Member_set2  |  03  |++35 ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x35  UCHAR Opcode; // 0x35
- UCHAR MemberId; // ID of the member + UCHAR Destination; // Destination 
- UCHAR Value; // Value to set + UCHAR Source; // Source 
- } Member_set2; + } Member_set2;
 This bytecode sets a single property of the specified member.++|  08-02-2024 Newly Added  | This bytecode sets a single property of the specified member.++|  08-02-2024 Newly Added  |
-|{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 SeId; // ID of the sound effect to play + UCHAR VAB; // VAB Bank Id 
- UCHAR Volume; // Volume of the sound effect + SHORT EDT; // EDT Sample Id 
- UCHAR Pan; // Pan of the sound effect + SHORT data0; // Sound Reverberation, Work Aot/Obj No 
- 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.++|  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  |  04  |++37 ID ?? ??++|\\ +|{37}  Sca_id_set  |  04  |++37 ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x37  UCHAR Opcode; // 0x37
- UCHAR ScaId; // ID of the scale to set + UCHAR iEntry; // SCA Collision Entry 
- 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified scale ID to the given value.++|  08-02-2024 Newly Added  |
 |{38}  Flr_set  |  03  |++38 ID ??++|\\  |{38}  Flr_set  |  03  |++38 ID ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x38  UCHAR Opcode; // 0x38
- UCHAR FlrId; // ID of the floor to set + UCHAR Id
- UCHAR Value; // Value to set the floor to + UCHAR Flag
- } Flr_set; + } Flr_set;
 This bytecode sets the specified floor ID to the given value.++|  08-02-2024 Newly Added  | This bytecode sets the specified floor ID to the given value.++|  08-02-2024 Newly Added  |
-|{39}  Dir_ck  |  08  |++39 00 DX DX DY DY DZ DZ++|\\ +|{39}  Dir_ck  |  08  |++39 00 XX XX ZZ ZZ ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x39  UCHAR Opcode; // 0x39
- UCHAR zAlign; // Always Zero (Alignment byte) + UCHAR zAlign; // 0x00 
- SHORT DirX; // direction + SHORT X; 
- SHORT DirY; // Y direction + SHORT Z
- SHORT DirZ; // Z direction + SHORT Add
- } Dir_ck; + } Dir_ck;
 This bytecode checks the specified direction coordinates.++|  08-02-2024 Newly Added  | This bytecode checks the specified direction coordinates.++|  08-02-2024 Newly Added  |
-|{3A}  Sce_espr_on  |  16  |++3A ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{3A}  Sce_espr_on  |  16  |++3A 00 ?? ?? ?? ?? ?? ?? XX XX YY YY ZZ ZZ DY DY++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x3A  UCHAR Opcode; // 0x3A
- UCHAR EsprId; // ID of the espr to turn on + UCHAR zAlign; // 0x00 
- 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; // Parameter 10 +
- UCHAR Param11; // Parameter 11 +
- UCHAR Param12; // Parameter 12 +
- UCHAR Param13; // Parameter 13 +
- UCHAR Param14; // Parameter 14 +
- UCHAR Param15; // Parameter 15 +
- } Sce_espr_on; +
 This bytecode turns on the specified espr with the given parameters.++|  08-02-2024 Newly Added  | This bytecode turns on the specified espr with the given parameters.++|  08-02-2024 Newly Added  |
-|{3B}  Door_aot_set  |  32  |++3B ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{3B}  Door_aot_set  |  32  |++3B ID ?? ?? ?? ?? ?? XX XX ZZ ZZ SI ZE SI ZE XX XX YY YY ZZ ZZ 00 ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x3B  UCHAR Opcode; // 0x3B
- UCHAR AotType; // Type of AOT to set + UCHAR Aot; // Aot 
- UCHAR Id; // ID of the AOT to set + UCHAR SCE; // Id /* tagSCE_AOT 
- UCHAR Floor; // Floor number + UCHAR SAT; // Type 
- UCHAR Super; // Super parameter + UCHAR nFloor; // nFloor 
- 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 DirX; // X direction + SHORT Next_pos_y; // 
- UCHAR DirY; // Y direction + SHORT Next_pos_z; // 
- UCHAR DirZ; // Z direction + SHORT Next_cdir_y; // 
- UCHAR InitParam; // Initial parameter + UCHAR Next_stage; // 
- UCHAR EventParam; // Event parameter + UCHAR Next_room; // 
- UCHAR ConfigParam; // Configuration parameter + UCHAR Next_cut; // 
- UCHAR Type; // Type of the AOT + UCHAR Next_nfloor; // 
- UCHAR Flags; // Flags for the AOT + UCHAR Dtex_type; // DO2 File Id 
- UCHAR Reserved; // Reserved byte + UCHAR Door_type; // DO2 Animation Set 
- } Door_aot_set; + UCHAR Knock_type; // Sound 
 + UCHAR Key_id; //  
 + UCHAR Key_type; //  
 + UCHAR Free; // */ tagIN_DOOR_WORK 
 + } Door_aot_set;
 This bytecode sets the specified door AOT parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified door AOT parameters.++|  08-02-2024 Newly Added  |
-|{3C}  Cut_auto  |  02  |++3C ID++|\\ +|{3C}  Cut_auto  |  02  |++3C ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x3C  UCHAR Opcode; // 0x3C
- UCHAR AutoId; // ID of the auto cutscene to set + UCHAR OnOff; // 00 OFF, 01 ON 
- } Cut_auto; + } Cut_auto;
 This bytecode sets the specified auto cutscene parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified auto cutscene parameters.++|  08-02-2024 Newly Added  |
-|{3D}  Member_copy  |  03  |++3D ID ??++|\\ +|{3D}  Member_copy  |  03  |++3D ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x3D  UCHAR Opcode; // 0x3D
- UCHAR SourceId; // ID of the source member to copy from + UCHAR Destination; // Destination 
- UCHAR DestinationId; // ID of the destination member to copy to + UCHAR Source; // Source 
- } Member_copy; + } Member_copy;
 This bytecode copies the specified member parameters from the source to the destination.++|  08-02-2024 Newly Added  | This bytecode copies the specified member parameters from the source to the destination.++|  08-02-2024 Newly Added  |
 |{3E}  Member_cmp  |  06  |++3E 00 ?? ?? VA LU++|\\  |{3E}  Member_cmp  |  06  |++3E 00 ?? ?? VA LU++|\\
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; // Comparison operator  UCHAR Operator; // Comparison 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; // ID of the motion to set + UCHAR MotionId; // EDD/EMR Id 
- 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified motion parameters.++|  08-02-2024 Newly Added  |
-|{40}  Plc_dest  |  08  |++40 00 ?? ?? ?? ?? ?? ??++|\\ +|{40}  Plc_dest  |  08  |++40 00 ?? ?? XX XX ZZ ZZ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x40  UCHAR Opcode; // 0x40
- UCHAR zAlign; // Always Zero (Alignment byte) + UCHAR zAlign; // 0x00 
- UCHAR DestId; // ID of the destination to set + UCHAR Animation; // EDD/EMR Id 
- UCHAR Mode; // Mode to set the destination to + UCHAR Bit; // Room_flg 
- UCHAR Param1; // Parameter 1 for the destination + 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified destination parameters.++|  08-02-2024 Newly Added  |
-|{41}  Plc_neck  |  10  |++41 00 ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{41}  Plc_neck  |  10  |++41 ?? XX XX YY YY ZZ ZZ ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x41  UCHAR Opcode; // 0x41
- UCHAR zAlign; // Always Zero (Alignment byte) + UCHAR Op; // 
- 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 SpeedX; // 
- UCHAR Param4; // Parameter 4 for the neck + UCHAR SpeedZ; // 
- UCHAR Param5; // Parameter 5 for the neck + } Plc_neck;
- UCHAR Param6; // Parameter 6 for the neck +
- UCHAR Param7; // Parameter 7 for the neck +
- } Plc_neck; +
 This bytecode sets the specified neck parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified neck parameters.++|  08-02-2024 Newly Added  |
 |{42}  Plc_ret  |  01  |++42++|\\  |{42}  Plc_ret  |  01  |++42++|\\
Line 542: Line 522:
  } Plc_ret;   } Plc_ret;
 This bytecode returns from the specified plc function.++|  08-02-2024 Newly Added  | This bytecode returns from the specified plc function.++|  08-02-2024 Newly Added  |
-|{43}  Plc_flg  |  04  |++43 ?? ?? ??++|\\ +|{43}  Plc_flg  |  04  |++43 00 ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x43  UCHAR Opcode; // 0x43
- UCHAR Type; // Type of the flag + UCHAR zAlign; // 0x00 
- USHORT Flag; // Flag value + UCHAR data0; //  
- } Plc_flg; + UCHAR data1; //  
 + } Plc_flg;
 This bytecode sets the specified flag parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified flag parameters.++|  08-02-2024 Newly Added  |
-|{44}  Sce_em_set  |  22  |++44 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{44}  Sce_em_set  |  22  |++44 00 ?? ID ?? ?? ?? ?? ?? XX XX YY YY ZZ ZZ DY DY ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x44  UCHAR Opcode; // 0x44
- UCHAR EmId; // ID of the enemy to set + UCHAR Nop; // 0x00 
- UCHAR Param1; // Parameter 1 + CHAR Em_no; // Em_no 
- UCHAR Param2; // Parameter 2 + UCHAR Id; // EMD File Id for Em_bin_load() function 
- UCHAR Param3; // Parameter 3 + USHORT Type; // Type 
- UCHAR Param4; // Parameter 4 + UCHAR nFloor; // nFloor 
- UCHAR Param5; // Parameter 5 + UCHAR Sound_flg; // Sound_flg 
- UCHAR Param6; // Parameter 6 + UCHAR Model_type; // Model_type 
- UCHAR Param7; // Parameter 7 + UCHAR Em_set_flg; // Em_set_flg 
- UCHAR Param8; // Parameter 8 + 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; // Parameter 14 + } Sce_em_set;
- UCHAR Param15; // Parameter 15 +
- UCHAR Param16; // Parameter 16 +
- UCHAR Param17; // Parameter 17 +
- UCHAR Param18; // Parameter 18 +
- UCHAR Param19; // Parameter 19 +
- UCHAR Param20; // Parameter 20 +
- UCHAR Param21; // Parameter 21 +
- } Sce_em_set; +
 This bytecode sets the specified enemy parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified enemy parameters.++|  08-02-2024 Newly Added  |
-|{45}  Col_chg_set  |  05  |++45 ?? ?? ?? ??++|\\ +|{45}  Col_chg_set  |  05  |++45 ?? ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x45  UCHAR Opcode; // 0x45
- UCHAR ColId; // ID of the color to set + UCHAR Data0; // Data0 
- UCHAR Value; // Value to set the color to + UCHAR Data1; // Data1 
- UCHAR Type; // Type of color operation + UCHAR Data2; // Data2 
- } Col_chg_set; + UCHAR Data3; // Data3 
 + } Col_chg_set;
 This bytecode sets the specified color parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified color parameters.++|  08-02-2024 Newly Added  |
-|{46}  Aot_reset  |  10  |++46 ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{46}  Aot_reset  |  10  |++46 ID ?? ?? ?? XX XX XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x46  UCHAR Opcode; // 0x46
- UCHAR AotType; // Type of AOT to reset + CHAR Aot; // Aot 
- UCHAR Id; // ID of the AOT to reset + UCHAR SCE; // SCE 
- UCHAR Param1; // Parameter 1 + UCHAR SAT; // SAT 
- UCHAR Param2; // Parameter 2 + 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.++|  08-02-2024 Newly Added  | This bytecode resets the specified AOT parameters.++|  08-02-2024 Newly Added  |
-|{47}  Aot_on  |  02  |++47 00++|\\ +|{47}  Aot_on  |  02  |++47 ID++|\\
  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.++|  08-02-2024 Newly Added  | This bytecode turns on the specified AOT.++|  08-02-2024 Newly Added  |
-|{48}  Super_set  |  16  |++48 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{48}  Super_set  |  16  |++48 00 ?? ID XX XX YY YY ZZ ZZ DX DX DY DY DZ DZ ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x48  UCHAR Opcode; // 0x48
- UCHAR SuperId; // ID of the super parameter to set + UCHAR zAlign; // Alignment byte (always 0x00) 
- UCHAR Param1; // Parameter 1 + UCHAR Work; // Work Type 
- UCHAR Param2; // Parameter 2 + UCHAR Id; // Work Aot/Obj No 
- 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; // Parameter 10 +
- UCHAR Param11; // Parameter 11 +
- UCHAR Param12; // Parameter 12 +
- UCHAR Param13; // Parameter 13 +
- UCHAR Param14; // Parameter 14 +
- UCHAR Param15; // Parameter 15 +
- } Super_set; +
 This bytecode sets the specified super parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified super parameters.++|  08-02-2024 Newly Added  |
-|{49}  Super_reset  |  08  |++49 ?? ?? ?? ?? ?? ?? ??++|\\ +|{49}  Super_reset  |  08  |++49 00 DX DX DY DY DZ DZ ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x49  UCHAR Opcode; // 0x49
- UCHAR SuperId; // ID of the super parameter to reset + UCHAR zAlign; // Alignment byte (always 0x00) 
- 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.++|  08-02-2024 Newly Added  | This bytecode resets the specified super parameters.++|  08-02-2024 Newly Added  |
 |{4A}  Plc_gun  |  02  |++4A ID++|\\  |{4A}  Plc_gun  |  02  |++4A ID++|\\
Line 642: Line 604:
  } Plc_gun;   } Plc_gun;
 This bytecode sets the specified gun parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified gun parameters.++|  08-02-2024 Newly Added  |
-|{4B}  Cut_replace  |  03  |++4B ID ??++|\\ +|{4B}  Cut_replace  |  03  |++4B ID ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x4B  UCHAR Opcode; // 0x4B
- UCHAR CutId; // ID of the cutscene to replace + UCHAR Id; // Id 
- UCHAR Param; // Parameter for the cutscene + UCHAR Value; // Value 
- } Cut_replace; + } Cut_replace;
 This bytecode replaces the specified cutscene parameters.++|  08-02-2024 Newly Added  | This bytecode replaces the specified cutscene parameters.++|  08-02-2024 Newly Added  |
-|{4C}  Sce_espr_kill  |  05  |++4C ID ?? ?? ??++|\\ +|{4C}  Sce_espr_kill  |  05  |++4C ID ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x4C  UCHAR Opcode; // 0x4C
- UCHAR EsprId; // ID of the espr to kill + UCHAR id; // Esp_kill() argv[0] 
- UCHAR Mode; // Mode to set the espr to + UCHAR tp; // Esp_kill() argv[1] 
- 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.++|  08-02-2024 Newly Added  | This bytecode kills the specified espr with the given parameters.++|  08-02-2024 Newly Added  |
-|{4D}  Door_model_set  |  22  |++4D ID XX XX YY YY ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{4D}  Door_model_set  |  22  |++4D ?? ID ?? ?? ?? ?? XX XX YY YY ZZ ZZ DY DY ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x4D  UCHAR Opcode; // 0x4D
- UCHAR ModelId; // ID of the door model to set + UCHAR data0; // data0 
- 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 Param3; // Parameter 3 for the door model + USHORT data6; // data6 
- 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 Param8; // Parameter 8 for the door model + USHORT data10; // DOOR_WORK.MATRIX 
- USHORT Param9; // Parameter 9 for the door model + USHORT data11; // DOOR_WORK.MATRIX 
- USHORT Param10; // Parameter 10 for the door model + USHORT data12; // DOOR_WORK.MATRIX 
- } Door_model_set; + } Door_model_set;
 This bytecode sets the specified door model parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified door model parameters.++|  08-02-2024 Newly Added  |
-|{4E}  Item_aot_set  |  22  |++4E ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{4E}  Item_aot_set  |  22  |++4E ID ?? ?? ?? ?? ?? XX XX ZZ ZZ SI ZE SI ZE ?? ?? ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x4E  UCHAR Opcode; // 0x4E
- UCHAR AotType; // Type of AOT to set + UCHAR Aot; // Aot 
- UCHAR Id; // ID of the AOT to set + UCHAR SCE; // SCE 
- UCHAR Floor; // Floor number + UCHAR SAT; // SAT 
- UCHAR Super; // Super parameter + UCHAR nFloor; // nFloor 
- UCHAR X; // X coordinate + UCHAR Super; // Super 
- 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 MD1; // MD1 
- UCHAR InitParam; // Initial parameter + UCHAR Action; // Action 
- UCHAR EventParam; // Event parameter + } Item_aot_set;
- UCHAR ConfigParam; // Configuration parameter +
- UCHAR Type; // Type of the AOT +
- UCHAR Flags; // Flags for the AOT +
- UCHAR Reserved; // Reserved byte +
- } Item_aot_set; +
 This bytecode sets the specified item AOT parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified item AOT parameters.++|  08-02-2024 Newly Added  |
-|{4F}  Sce_key_ck  |  04  |++4F ID ?? ??++|\\ +|{4F}  Sce_key_ck  |  04  |++4F ?? VA LU ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x4F  UCHAR Opcode; // 0x4F
- UCHAR KeyId; // ID of the key to check + UCHAR Flag; // Flag 
- 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.++|  08-02-2024 Newly Added  | This bytecode checks the specified key parameters.++|  08-02-2024 Newly Added  |
-|{50}  Sce_trg_ck  |  04  |++50 ID ?? ??++|\\ +|{50}  Sce_trg_ck  |  04  |++50 ?? VA LU ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x50  UCHAR Opcode; // 0x50
- UCHAR TrgId; // ID of the trigger to check + UCHAR Flag; // Flag 
- 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.++|  08-02-2024 Newly Added  | This bytecode checks the specified trigger parameters.++|  08-02-2024 Newly Added  |
-|{51}  Sce_bgm_control  |  06  |++51 ID ?? ?? ?? ??++|\\ +|{51}  Sce_bgm_control  |  06  |++51 ID ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x51  UCHAR Opcode; // 0x51
- UCHAR BgmId; // ID of the BGM to control + UCHAR Id; // Id 
- UCHAR Mode; // Mode to set the BGM to + UCHAR Op; // Op 
- UCHAR Param1; // Parameter 1 for the BGM + UCHAR Type; // Type 
- UCHAR Param2; // Parameter 2 for the BGM + UCHAR VolL; // VolL 
- UCHAR Param3; // Parameter 3 for the BGM + UCHAR VolR; // VolR 
- } Sce_bgm_control; + } Sce_bgm_control;
 This bytecode controls the specified BGM parameters.++|  08-02-2024 Newly Added  | This bytecode controls the specified BGM parameters.++|  08-02-2024 Newly Added  |
-|{52}  Sce_espr_control  |  06  |++52 ID ?? ?? ?? ??++|\\ +|{52}  Sce_espr_control  |  06  |++52 ID ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x52  UCHAR Opcode; // 0x52
- UCHAR EsprId; // ID of the espr to control + UCHAR Id; // Id 
- UCHAR Mode; // Mode to set the espr to + UCHAR Type; // Type 
- UCHAR Param1; // Parameter 1 for the espr + UCHAR Return; // Return 
- 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.++|  08-02-2024 Newly Added  | This bytecode controls the specified espr parameters.++|  08-02-2024 Newly Added  |
-|{53}  Sce_fade_set  |  06  |++53 ID ?? ?? ?? ??++|\\ +|{53}  Sce_fade_set  |  06  |++53 ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x53  UCHAR Opcode; // 0x53
- UCHAR FadeId; // ID of the fade to set + UCHAR data0; // data0 
- UCHAR Mode; // Mode to set the fade to + UCHAR data1; // data1 
- UCHAR Param1; // Parameter 1 for the fade + UCHAR data2; // data2 
- UCHAR Param2; // Parameter 2 for the fade + USHORT data3; // data3 
- UCHAR Param3; // Parameter 3 for the fade + } Sce_fade_set;
- } Sce_fade_set; +
 This bytecode sets the specified fade parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified fade parameters.++|  08-02-2024 Newly Added  |
-|{54}  Sce_espr3d_on  |  22  |++54 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{54}  Sce_espr3d_on  |  22  |++54 00 ?? ?? ?? ?? XX XX YY YY ZZ ZZ DX DX DY DY DZ DZ ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x54  UCHAR Opcode; // 0x54
- UCHAR Espr3dId; // ID of the 3D espr to turn on + UCHAR zAlign; // zAlign 
- 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; // Parameter 11 + } Sce_espr3d_on;
- UCHAR Param12; // Parameter 12 +
- UCHAR Param13; // Parameter 13 +
- UCHAR Param14; // Parameter 14 +
- UCHAR Param15; // Parameter 15 +
- UCHAR Param16; // Parameter 16 +
- UCHAR Param17; // Parameter 17 +
- UCHAR Param18; // Parameter 18 +
- UCHAR Param19; // Parameter 19 +
- UCHAR Param20; // Parameter 20 +
- UCHAR Param21; // Parameter 21 +
- } Sce_espr3d_on; +
 This bytecode turns on the specified 3D espr with the given parameters.++|  08-02-2024 Newly Added  | This bytecode turns on the specified 3D espr with the given parameters.++|  08-02-2024 Newly Added  |
-|{55}  Member_calc  |  06  |++55 ID ?? ?? VA LU++|\\ +|{55}  Member_calc  |  06  |++55 ?? ?? ?? ?? VA LU ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x55  UCHAR Opcode; // 0x55
- UCHAR MemberId; // ID of the member to calculate + UCHAR Operator; // Operator 
- UCHAR Operator; // Arithmetic operation to perform + USHORT Flag; // Flag 
- USHORT Value; // Value to use in the calculation + SHORT Value; // Value 
- } Member_calc; + } Member_calc;
 This bytecode performs the specified arithmetic operation on the member with the given value.++|  08-02-2024 Newly Added  | This bytecode performs the specified arithmetic operation on the member with the given value.++|  08-02-2024 Newly Added  |
-|{56}  Member_calc2  |  04  |++56 ID ?? ??++|\\ +|{56}  Member_calc2  |  04  |++56 ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x56  UCHAR Opcode; // 0x56
- UCHAR MemberId; // ID of the member to calculate + UCHAR Operator; // Operator 
- UCHAR Operator; // Arithmetic operation to perform + UCHAR Flag; // Flag 
- 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.++|  08-02-2024 Newly Added  | This bytecode performs the specified arithmetic operation on the member with the given value.++|  08-02-2024 Newly Added  |
-|{57}  Sce_bgmtbl_set  |  08  |++57 ID ?? ?? ?? ?? ?? ??++|\\ +|{57}  Sce_bgmtbl_set  |  08  |++57 00 ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x57  UCHAR Opcode; // 0x57
- UCHAR BgmTblId; // ID of the BGM table to set + UCHAR zAlign; // zAlign 
- UCHAR Mode; // Mode to set the BGM table to + UCHAR Stage; // Stage 
- UCHAR Param1; // Parameter 1 for the BGM table + UCHAR Room; // Room 
- UCHAR Param2; // Parameter 2 for the BGM table + 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified BGM table parameters.++|  08-02-2024 Newly Added  |
-|{58}  Plc_rot  |  04  |++58 ?? ?? 00++|\\ +|{58}  Plc_rot  |  04  |++58 ID ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x58  UCHAR Opcode; // 0x58
- UCHAR Rotation; // Rotation value + UCHAR Id; // Id 
- 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified rotation parameters.++|  08-02-2024 Newly Added  |
-|{59}  Xa_on  |  04  |++59 ID ?? ??++|\\ +|{59}  Xa_on  |  04  |++59 ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x59  UCHAR Opcode; // 0x59
- UCHAR XaId; // ID of the XA to turn on + UCHAR Mode; // Mode 
- 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.++|  08-02-2024 Newly Added  | This bytecode turns on the specified XA with the given parameters.++|  08-02-2024 Newly Added  |
 |{5A}  Weapon_chg  |  02  |++5A ID++|\\  |{5A}  Weapon_chg  |  02  |++5A ID++|\\
Line 822: Line 763:
  } Weapon_chg;   } Weapon_chg;
 This bytecode changes the specified weapon parameters.++|  08-02-2024 Newly Added  | This bytecode changes the specified weapon parameters.++|  08-02-2024 Newly Added  |
-|{5B}  Plc_cnt  |  02  |++5B ??++|\\ +|{5B}  Plc_cnt  |  02  |++5B ID ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x5B  UCHAR Opcode; // 0x5B
- UCHAR Count; // Count value + UCHAR Id; // Id 
- } Plc_cnt; + } Plc_cnt;
 This bytecode performs the specified arithmetic operation on the counter with the given value.++|  08-02-2024 Newly Added  | This bytecode performs the specified arithmetic operation on the counter with the given value.++|  08-02-2024 Newly Added  |
-|{5C}  Sce_shake_on  |  03  |++5C ?? ??++|\\ +|{5C}  Sce_shake_on  |  03  |++5C ?? ?? ++|\\
  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.++|  08-02-2024 Newly Added  | This bytecode turns on the specified shake effect with the given parameters.++|  08-02-2024 Newly Added  |
-|{5D}  Mizu_div_set  |  02  |++5D ??++|\\ +|{5D}  Mizu_div_set  |  02  |++5D ID ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x5D  UCHAR Opcode; // 0x5D
- UCHAR Value; // Value for Mizu_div + UCHAR Id; // Id 
- } Mizu_div_set; + } Mizu_div_set;
 This bytecode sets the specified water division parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified water division parameters.++|  08-02-2024 Newly Added  |
 |{5E}  Keep_Item_ck  |  02  |++5E ??++|\\  |{5E}  Keep_Item_ck  |  02  |++5E ??++|\\
Line 853: Line 794:
  } Xa_vol;   } Xa_vol;
 This bytecode sets the specified XA volume and pan parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified XA volume and pan parameters.++|  08-02-2024 Newly Added  |
-|{60}  Kage_set  |  14  |++60 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{60}  Kage_set  |  14  |++60 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x60  UCHAR Opcode; // 0x60
- UCHAR Type; // Kage type + UCHAR Work; // Work 
- UCHAR Red; // Red color value + CHAR Id; // Id 
- UCHAR Green; // Green color value + UCHAR Data0; // Data0 
- UCHAR Blue; // Blue color value + UCHAR Data1; // Data1 
- UCHAR Alpha; // Alpha transparency value + UCHAR Data2; // Data2 
- UCHAR Flag; // Flag + 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified shadow parameters.++|  08-02-2024 Newly Added  |
-|{61}  Cut_be_set  |  04  |++61 ?? ?? 00++|\\ +|{61}  Cut_be_set  |  04  |++61 ID ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x61  UCHAR Opcode; // 0x61
- UCHAR Type; // Cut be type + UCHAR Id; // Id 
- USHORT Value; // Value + UCHAR Value; // Value 
- } Cut_be_set; + UCHAR OnOff; // OnOff 
 + } Cut_be_set;
 This bytecode sets the specified cutscene parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified cutscene parameters.++|  08-02-2024 Newly Added  |
 |{62}  Sce_Item_lost  |  02  |++62 ID++|\\  |{62}  Sce_Item_lost  |  02  |++62 ID++|\\
Line 888: Line 827:
  } Plc_gun_eff;   } Plc_gun_eff;
 This bytecode sets the specified gun effect parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified gun effect parameters.++|  08-02-2024 Newly Added  |
-|{64}  Sce_espr_on2  |  16  |++64 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{64}  Sce_espr_on2  |  16  |++64 ?? ?? ?? ?? ?? ?? XX XX YY YY ZZ ZZ ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x64  UCHAR Opcode; // 0x64
- UCHAR Type; // Type + UCHAR dir_y_id2; // dir_y_id2 
- 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 DirY; // Y direction + SHORT X; // X 
- SHORT DirZ; // Z direction + SHORT Y; // Y 
- 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.++|  08-02-2024 Newly Added  | This bytecode turns on the specified espr with the given parameters.++|  08-02-2024 Newly Added  |
 |{65}  Sce_espr_kill2  |  02  |++65 ??++|\\  |{65}  Sce_espr_kill2  |  02  |++65 ??++|\\
Line 915: Line 852:
  } Plc_stop;   } Plc_stop;
 This bytecode stops the specified plc function.++|  08-02-2024 Newly Added  | This bytecode stops the specified plc function.++|  08-02-2024 Newly Added  |
-|{67}  Aot_set_4p  |  28  |++67 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{67}  Aot_set_4p  |  28  |++67 ID ?? ?? ?? ?? ?? XX XX ZZ ZZ XX XX ZZ ZZ XX XX ZZ ZZ XX XX ZZ ZZ ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x67  UCHAR Opcode; // 0x67
- UCHAR Aot; // AOT index + UCHAR Aot; // Aot 
- UCHAR Id; // ID + UCHAR SCE; // Id 
- UCHAR Type; // Type + UCHAR SAT; // Type 
- UCHAR Floor; // Floor+ UCHAR nFloor; // nFloor
  UCHAR Super; // Super  UCHAR Super; // Super
- SHORT X; // X coordinate + SHORT X0; // X0 
- SHORT Z; // Z coordinate + SHORT Z0; // Z0 
- SHORT Width; // Width + SHORT X1; // X1 
- SHORT Depth; // Depth + SHORT Z1; // Z1 
- SHORT Unknown[8]; // Unknown data + SHORT X2; // X2 
- } 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified 4-point AOT parameters.++|  08-02-2024 Newly Added  |
-|{68}  Door_aot_set_4p  |  40  |++68 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{68}  Door_aot_set_4p  |  40  |++68 ID ?? ?? ?? ?? ?? XX XX ZZ ZZ XX XX ZZ ZZ XX XX ZZ ZZ XX XX ZZ ZZ XX XX YY YY ZZ ZZ ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x68  UCHAR Opcode; // 0x68
- UCHAR Aot; // AOT index + UCHAR Aot; // Aot 
- UCHAR Id; // ID + UCHAR SCE; // Id 
- UCHAR Type; // Type + UCHAR SAT; // Type 
- UCHAR Floor; // Floor+ UCHAR nFloor; // nFloor
  UCHAR Super; // Super  UCHAR Super; // Super
- SHORT X; // X coordinate + SHORT X0; // X0 
- SHORT Z; // Z coordinate + SHORT Z0; // Z0 
- SHORT Width; // Width + SHORT X1; // X1 
- SHORT Depth; // Depth + SHORT Z1; // Z1 
- UCHAR Destination; // Destination + SHORT X2; // X2 
- UCHAR NextFloor; // Next floor + SHORT Z2; // Z2 
- UCHAR NextRoom; // Next room + SHORT X3; // X3 
- UCHAR NextX; // Next X coordinate + SHORT Z3; // Z3 
- UCHAR NextZ; // Next Z coordinate + SHORT Next_pos_x; // Next_pos_x 
- UCHAR NextWidth; // Next width + SHORT Next_pos_y; // Next_pos_y 
- UCHAR NextDepth; // Next depth + SHORT Next_pos_z; // Next_pos_z 
- SHORT Unknown[12]; // Unknown data + SHORT Next_cdir_y; // Next_cdir_y 
- } Door_aot_set_4p; + UCHAR Next_stage; // Next_stage 
 + UCHAR Next_room; // Next_room 
 + UCHAR Next_cut; // Next_cut 
 + UCHAR Next_nfloor; // Next_nfloor 
 + UCHAR Dtex_type; // Dtex_type 
 + UCHAR Door_type; // Door_type 
 + UCHAR Knock_type; // Knock_type 
 + UCHAR Key_id; // Key_id 
 + UCHAR Key_type; // Key_type 
 + UCHAR Free; // Free 
 + } Door_aot_set_4p;
 This bytecode sets the specified 4-point door AOT parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified 4-point door AOT parameters.++|  08-02-2024 Newly Added  |
-|{69}  Item_aot_set_4p  |  30  |++69 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{69}  Item_aot_set_4p  |  30  |++69 ID ?? ?? ?? ?? ?? XX XX ZZ ZZ XX XX ZZ ZZ XX XX ZZ ZZ XX XX ZZ ZZ ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x69  UCHAR Opcode; // 0x69
- UCHAR Aot; // AOT index + UCHAR Aot; // Aot 
- UCHAR Id; // ID + UCHAR SCE; // Id 
- UCHAR Type; // Type + UCHAR SAT; // Type 
- UCHAR Floor; // Floor+ UCHAR nFloor; // nFloor
  UCHAR Super; // Super  UCHAR Super; // Super
- SHORT X; // X coordinate + SHORT X0; // X0 
- SHORT Z; // Z coordinate + SHORT Z0; // Z0 
- SHORT Width; // Width + SHORT X1; // X1 
- SHORT Depth; // Depth + SHORT Z1; // Z1 
- SHORT ItemId; // Item ID + SHORT X2; // X2 
- SHORT Unknown[8]; // Unknown data + SHORT Z2; // Z2 
- } 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified 4-point item AOT parameters.++|  08-02-2024 Newly Added  |
-|{6A}  Light_pos_set  |  06  |++6A ID XX XX ZZ ZZ++|\\ +|{6A}  Light_pos_set  |  06  |++6A 00 ?? ?? XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x6A  UCHAR Opcode; // 0x6A
- UCHAR LightId; // ID of the light source + UCHAR zAlign; // zAlign 
- SHORT PosX; // X position + UCHAR Index; // Index 
- SHORT PosZ; // Z position + UCHAR XYZ; // XYZ 
- } Light_pos_set; + SHORT Position; // Position 
 + } Light_pos_set;
 This bytecode sets the specified light position parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified light position parameters.++|  08-02-2024 Newly Added  |
-|{6B}  Light_kido_set  |  04  |++6B ?? ?? ??++|\\ +|{6B}  Light_kido_set  |  04  |++6B ?? ?? XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x6B  UCHAR Opcode; // 0x6B
- UCHAR LightId; // ID of the light source + UCHAR Index; // Index 
- UCHAR Brightness; // Brightness value + SHORT Luminosity; // Luminosity 
- UCHAR Unknown; // Unknown data + } Light_kido_set;
- } Light_kido_set; +
 This bytecode sets the specified light intensity and color parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified light intensity and color parameters.++|  08-02-2024 Newly Added  |
 |{6C}  Rbj_reset  |  01  |++6C++|\\  |{6C}  Rbj_reset  |  01  |++6C++|\\
Line 989: Line 949:
  } Rbj_reset;   } Rbj_reset;
 This bytecode resets the specified rbj parameters.++|  08-02-2024 Newly Added  | This bytecode resets the specified rbj parameters.++|  08-02-2024 Newly Added  |
-|{6D}  Sce_scr_move  |  04  |++6D ?? ?? ??++|\\ +|{6D}  Sce_scr_move  |  04  |++6D 00 XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x6D  UCHAR Opcode; // 0x6D
- UCHAR ScreenId; // Screen ID + UCHAR zAlign; // zAlign 
- UCHAR Direction; // Direction of movement + 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.++|  08-02-2024 Newly Added  | This bytecode moves the specified screen with the given parameters.++|  08-02-2024 Newly Added  |
-|{6E}  Parts_set  |  06  |++6E ?? ?? XX XX ZZ ZZ++|\\ +|{6E}  Parts_set  |  06  |++6E 00 ?? ?? XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x6E  UCHAR Opcode; // 0x6E
- UCHAR PartId; // ID of the part + UCHAR zAlign; // zAlign 
- SHORT PosX; // X position + CHAR Id; // Id 
- SHORT PosZ; // Z position + CHAR Type; // Type 
- } Parts_set; + SHORT Value; // Value 
 + } Parts_set;
 This bytecode sets the specified parts parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified parts parameters.++|  08-02-2024 Newly Added  |
 |{6F}  Movie_on  |  02  |++6F ??++|\\  |{6F}  Movie_on  |  02  |++6F ??++|\\
Line 1021: Line 981:
  } Splc_sce;   } Splc_sce;
 This bytecode sets the specified splc parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified splc parameters.++|  08-02-2024 Newly Added  |
-|{72}  Super_on  |  16  |++72 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\ +|{72}  Super_on  |  16  |++72 00 ?? ?? ?? ?? XX XX XX XX XX XX XX XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x72  UCHAR Opcode; // 0x72
- UCHAR Type; // Super type + UCHAR zAlign; // zAlign 
- SHORT PosX; // X position + UCHAR data0; // data0 
- SHORT PosY; // Y position + UCHAR data1; // data1 
- SHORT PosZ; // Z position + SHORT data2; // data2 
- SHORT DirX; // X direction + SHORT data3; // data3 
- SHORT DirY; // Y direction + SHORT data4; // data4 
- SHORT DirZ; // Z direction + SHORT data5; // data5 
- 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.++|  08-02-2024 Newly Added  | This bytecode turns on the specified super with the given parameters.++|  08-02-2024 Newly Added  |
-|{73}  Mirror_set  |  08  |++73 ?? ?? ?? ?? ?? ?? ??++|\\ +|{73}  Mirror_set  |  08  |++73 ?? ?? XX XX XX XX XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x73  UCHAR Opcode; // 0x73
- UCHAR MirrorId; // ID of the mirror + UCHAR Flag; // Flag 
- 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified mirror position parameters.++|  08-02-2024 Newly Added  |
-|{74}  Sce_fade_adjust  |  04  |++74 ?? ?? ??++|\\ +|{74}  Sce_fade_adjust  |  04  |++74 ?? ?? XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x74  UCHAR Opcode; // 0x74
- UCHAR Type; // Fade type + UCHAR data0; // data0 
- UCHAR Speed; // Fade speed + SHORT data1; // data1 
- UCHAR Color; // Fade color + } Sce_fade_adjust;
- } Sce_fade_adjust; +
 This bytecode adjusts the specified fade parameters.++|  08-02-2024 Newly Added  | This bytecode adjusts the specified fade parameters.++|  08-02-2024 Newly Added  |
-|{75}  Sce_espr3d_on2  |  22  |++75 ?? XX XX YY YY ZZ ZZ DX DX DY DY DZ DZ ?? ?? ?? ?? ?? ??++|\\ +|{75}  Sce_espr3d_on2  |  22  |++75 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x75  UCHAR Opcode; // 0x75
- UCHAR Type; // Type + UCHAR dir_y_id2; // dir_y_id2 
- 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]; // Unknown data +
- } Sce_espr3d_on2; +
 This bytecode turns on the specified 3D espr with the given parameters.++|  08-02-2024 Newly Added  | This bytecode turns on the specified 3D espr with the given parameters.++|  08-02-2024 Newly Added  |
-|{76}  Sce_Item_get  |  03  |++76 ?? ?? ID++|\\ +|{76}  Sce_Item_get  |  03  |++76 ID ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x76  UCHAR Opcode; // 0x76
- UCHAR ItemType; // Item type + UCHAR Id; // Id 
- UCHAR ItemId; // Item ID + UCHAR Num; // Num 
- } Sce_Item_get; + } Sce_Item_get;
 This bytecode gets the specified item with the given quantity.++|  08-02-2024 Newly Added  | This bytecode gets the specified item with the given quantity.++|  08-02-2024 Newly Added  |
-|{77}  Sce_line_start  |  04  |++77 ?? ?? ??++|\\ +|{77}  Sce_line_start  |  04  |++77 ID XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x77  UCHAR Opcode; // 0x77
- UCHAR LineId; // Line ID + UCHAR Id; // Id 
- 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.++|  08-02-2024 Newly Added  | This bytecode starts the specified line with the given parameters.++|  08-02-2024 Newly Added  |
-|{78}  Sce_line_main  |  06  |++78 ?? ?? ?? ?? ??++|\\ +|{78}  Sce_line_main  |  06  |++78 ID XX XX XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x78  UCHAR Opcode; // 0x78
- UCHAR LineId; // Line ID + UCHAR Id; // Id 
- 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.++|  08-02-2024 Newly Added  | This bytecode sets the specified line parameters.++|  08-02-2024 Newly Added  |
-|{79}  Sce_line_end  |  01  |++79++|\\ +|{79}  Sce_line_end  |  01  |++79 ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x79  UCHAR Opcode; // 0x79
- } Sce_line_end; + } Sce_line_end;
 This bytecode ends the specified line.++|  08-02-2024 Newly Added  | This bytecode ends the specified line.++|  08-02-2024 Newly Added  |
-|{7A}  Sce_parts_bomb  |  16  |++7A ?? XX XX YY YY ZZ ZZ DX DX DY DY DZ DZ ??++|\\ +|{7A}  Sce_parts_bomb  |  16  |++7A 00 ?? ?? ?? ?? XX XX XX XX XX XX XX XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x7A  UCHAR Opcode; // 0x7A
- UCHAR PartId; // Part ID + UCHAR zAlign; // zAlign 
- SHORT PosX; // X position + UCHAR data2; // data2 
- SHORT PosY; // Y position + UCHAR data3; // data3 
- SHORT PosZ; // Z position + UCHAR data4; // data4 
- SHORT DirX; // X direction + UCHAR data5; // data5 
- SHORT DirY; // Y direction + SHORT data6; // data6 
- SHORT DirZ; // Z direction + SHORT data8; // data8 
- UCHAR Unknown[2]; // Unknown data + SHORT dataA; // dataA 
- } Sce_parts_bomb; + SHORT dataC; // dataC 
 + SHORT dataE; // dataE 
 + } Sce_parts_bomb;
 This bytecode bombs the specified parts with the given parameters.++|  08-02-2024 Newly Added  | This bytecode bombs the specified parts with the given parameters.++|  08-02-2024 Newly Added  |
-|{7B}  Sce_parts_down  |  16  |++7B ?? XX XX YY YY ZZ ZZ DX DX DY DY DZ DZ ??++|\\ +|{7B}  Sce_parts_down  |  16  |++7B ID XX XX XX XX XX XX XX XX XX XX XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x7B  UCHAR Opcode; // 0x7B
- UCHAR PartId; // Part ID + UCHAR Id; // Id 
- SHORT PosX; // X position + SHORT X; // X 
- SHORT PosY; // Y position + SHORT Y; // Y 
- SHORT PosZ; // Z position + SHORT Z; // Z 
- SHORT DirX; // X direction + SHORT cDirZ; // cDirZ 
- SHORT DirY; // Y direction + SHORT DirX; // DirX 
- SHORT DirZ; // Z direction + SHORT DirY; // DirY 
- 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.++|  08-02-2024 Newly Added  | This bytecode moves down the specified parts with the given parameters.++|  08-02-2024 Newly Added  |
-|{7C}  Light_color_set  |  06  |++7C 00 XX XX YY YY++|\\ +|{7C}  Light_color_set  |  06  |++7C ?? ?? ?? ?? ?? 00 ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x7C  UCHAR Opcode; // 0x7C
- UCHAR zAlign; // Always Zero (Alignment byte) + UCHAR Index; // Index 
- 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; // 
- } Light_color_set; + UCHAR zAlign; // zAlign 
 + } Light_color_set;
 This bytecode sets the specified light color parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified light color parameters.++|  08-02-2024 Newly Added  |
-|{7D}  Light_pos_set2  |  06  |++7D ?? XX XX ZZ ZZ++|\\ +|{7D}  Light_pos_set2  |  06  |++7D ?? ?? ?? ?? XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x7D  UCHAR Opcode; // 0x7D
- UCHAR LightId; // ID of the light source + UCHAR nCut; // nCut 
- SHORT PosX; // X position + UCHAR Index; // Index 
- SHORT PosZ; // Z position + UCHAR XYZ; // XYZ 
- } Light_pos_set2; + SHORT Position; // Position 
 + } Light_pos_set2;
 This bytecode sets the specified light position parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified light position parameters.++|  08-02-2024 Newly Added  |
-|{7E}  Light_kido_set2  |  06  |++7E ?? ?? ?? ?? ?? ??++|\\ +|{7E}  Light_kido_set2  |  06  |++7E 00 ?? ?? XX XX ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x7E  UCHAR Opcode; // 0x7E
- UCHAR LightId; // ID of the light source + UCHAR zAlign; // zAlign 
- UCHAR Brightness; // Brightness value + UCHAR nCut; // nCut 
- UCHAR Unknown[4]; // Unknown data + UCHAR Index; // Index 
- } Light_kido_set2; + USHORT Luminosity; // Luminosity 
 + } Light_kido_set2;
 This bytecode sets the specified light intensity and color parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified light intensity and color parameters.++|  08-02-2024 Newly Added  |
-|{7F}  Light_color_set2  |  06  |++7F 00 XX XX YY YY++|\\ +|{7F}  Light_color_set2  |  06  |++7F ?? ?? ?? ?? ?? ?? ++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x7F  UCHAR Opcode; // 0x7F
- UCHAR zAlign; // Always Zero (Alignment byte) + UCHAR nCut; // nCut 
- 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; // 
- } Light_color_set2; + UCHAR B; // B 
 + } Light_color_set2;
 This bytecode sets the specified light color parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified light color parameters.++|  08-02-2024 Newly Added  |
 |{80}  Se_vol  |  02  |++80 ?? ??++|\\  |{80}  Se_vol  |  02  |++80 ?? ??++|\\
Line 1174: Line 1133:
  } Keep_Item_ck2;   } Keep_Item_ck2;
 This bytecode checks the specified item parameters.++|  08-02-2024 Newly Added  | This bytecode checks the specified item parameters.++|  08-02-2024 Newly Added  |
-|{82}  Sce_espr_task  |  03  |++82 ID ??++|\\ +|{82}  Sce_espr_task  |  03  |++82 ?? ?? ??++|\\
  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.++|  08-02-2024 Newly Added  | This bytecode sets the specified espr task parameters.++|  08-02-2024 Newly Added  |
 |{83}  Plc_heal  |  01  |++83++|\\  |{83}  Plc_heal  |  01  |++83++|\\
Line 1186: Line 1145:
  } Plc_heal;   } Plc_heal;
 This bytecode heals the specified plc function.++|  08-02-2024 Newly Added  | This bytecode heals the specified plc function.++|  08-02-2024 Newly Added  |
-|{84}  St_map_hint  |  02  |++84 ID ??++|\\ +|{84}  St_map_hint  |  02  |++84 ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x84  UCHAR Opcode; // 0x84
- UCHAR HintId; // Hint ID + UCHAR DrModeTag; // DrModeTag 
- } St_map_hint; + } St_map_hint;
 This bytecode sets the specified map hint parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified map hint parameters.++|  08-02-2024 Newly Added  |
-|{85}  Sce_em_pos_ck  |  06  |++85 ID XX XX YY YY++|\\ +|{85}  Sce_em_pos_ck  |  06  |++85 ?? ?? ?? ?? CO NT++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x85  UCHAR Opcode; // 0x85
- UCHAR EntityId; // ID of the entity + UCHAR Id; // Id 
- 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.++|  08-02-2024 Newly Added  | This bytecode checks the specified enemy position parameters.++|  08-02-2024 Newly Added  |
 |{86}  Poison_ck  |  01  |++86++|\\  |{86}  Poison_ck  |  01  |++86++|\\
Line 1222: Line 1182:
  } Evt_next2;   } Evt_next2;
 This bytecode moves to the next event in the sequence.++|  08-02-2024 Newly Added  | This bytecode moves to the next event in the sequence.++|  08-02-2024 Newly Added  |
-|{8A}  Vib_set0  |  06  |++8A ID VA LU VA LU++|\\ +|{8A}  Vib_set0  |  06  |++8A 00 ?? ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x8A  UCHAR Opcode; // 0x8A
- UCHAR Id; // Vibration ID + UCHAR zAlign; // zAlign 
- USHORT Value1; // Vibration Value 1 + USHORT data0; // data0 
- USHORT Value2; // Vibration Value 2 + USHORT data1; // data1 
- } Vib_set0; + } Vib_set0;
 This bytecode sets the specified vibration parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified vibration parameters.++|  08-02-2024 Newly Added  |
 |{8B}  Vib_set1  |  06  |++8B ID  VA LU VA LU++|\\  |{8B}  Vib_set1  |  06  |++8B ID  VA LU VA LU++|\\
  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.++|  08-02-2024 Newly Added  | This bytecode sets the specified vibration parameters.++|  08-02-2024 Newly Added  |
-|{8C}  Vib_fade_set  |  08  |++8C ID VA LU VA LU CO NT++|\\ +|{8C}  Vib_fade_set  |  08  |++8C 00 ?? ?? ?? ?? ?? ??++|\\
  typedef struct {   typedef struct {
  UCHAR Opcode; // 0x8C  UCHAR Opcode; // 0x8C
- UCHAR VibId; // Vibration ID + UCHAR zAlign; // zAlign 
- USHORT StartValue; // Starting Vibration Value + UCHAR data0; // data0 
- USHORT EndValue; // Ending Vibration Value + UCHAR data1; // data1 
- USHORT Count; // Duration of the fade + USHORT data2; // data2 
- } Vib_fade_set; + USHORT data3; // data3 
 + } Vib_fade_set;
 This bytecode sets the specified vibration fade parameters.++|  08-02-2024 Newly Added  | This bytecode sets the specified vibration fade parameters.++|  08-02-2024 Newly Added  |
 |{8D}  Item_aot_set2  |  24  |++8D ID ?? ?? ?? ?? ?? XX XX ZZ ZZ WW WW DD DD ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\  |{8D}  Item_aot_set2  |  24  |++8D ID ?? ?? ?? ?? ?? XX XX ZZ ZZ WW WW DD DD ?? ?? ?? ?? ?? ?? ?? ?? ??++|\\
  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.++|  08-02-2024 Newly Added  | This bytecode sets the specified item AOT parameters.++|  08-02-2024 Newly Added  |
 |{8E}  Sce_em_set2  |  24  |++8E 00 ID ?? ?? SI ZE ?? ?? ?? XX XX YY YY ZZ ZZ DY DY ?? ?? ?? ??++|\\  |{8E}  Sce_em_set2  |  24  |++8E 00 ID ?? ?? SI ZE ?? ?? ?? XX XX YY YY ZZ ZZ DY DY ?? ?? ?? ??++|\\
  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.++|  08-02-2024 Newly Added  | This bytecode sets the specified enemy parameters.++|  08-02-2024 Newly Added  |
  
  
re2_opcodes.txt · Last modified: 2024/08/04 06:23 by 3lric