Onto the AR0705 patching stuff:
Old code:
Spoiler
// ar0705 OUTER_SPRINT "name" "tz25nnpm" OUTER_SET "coordinate_x" = 1186 OUTER_SET "coordinate_y" = 56 OUTER_SET "schedule1" = 0b11111111 // bitwise OUTER_SET "schedule2" = 0b11111111 // bitwise OUTER_SET "schedule3" = 0b11111111 // bitwise OUTER_SET "schedule4" = 0b11111111 // bitwise OUTER_SPRINT "animation_bam" "tz25nnpm" OUTER_SET "sequence" = 0 OUTER_SET "frame" = 0 OUTER_SET "flag1"= 0b01000001 // bitwise OUTER_SET "flag2"= 0b00000001 // bitwise OUTER_SET "flag3"= 0b00000000 // bitwise, unknown OUTER_SET "flag4"= 0b00000000 // bitwise, unknown OUTER_SET "height" = 0 OUTER_SET "transparency" = 0 OUTER_SET "starting_frame" = 255 // 255 as default? OUTER_SET "loop_probability" = 0 OUTER_SET "start_delay" = 0 OUTER_SPRINT "palette" "none" COPY_EXISTING ~ar0705.are~ ~override~ LAUNCH_PATCH_MACRO ~add_animation~ BUT_ONLY_IF_IT_CHANGES <<<<<<<< ...ts25mini-inlined/vertex.2da 1180 82 1225 53 1225 85 1180 114 >>>>>>>> OUTER_SPRINT "name" "tz25nnp1" OUTER_SET "type" = 1 OUTER_SET "bounding_box_left" = 1180 OUTER_SET "bounding_box_top" = 53 OUTER_SET "bounding_box_right" = 1225 OUTER_SET "bounding_box_bottom" = 114 OUTER_SET "adding_vertex_num" = 4 OUTER_SET "cursor" = 22 OUTER_SPRINT "destination_area" "None" OUTER_SPRINT "entrance_name" "" OUTER_SET "flag1" = 0b00000000 // bitwise OUTER_SET "flag2" = 0b00000000 // bitwise OUTER_SET "flag3" = 0b00000000 // bitwise unknown OUTER_SET "flag4" = 0b00000000 // bitwise unknown OUTER_SPRINT "info_text" "" OUTER_SET "trap_detection_difficulty" = 0 OUTER_SET "trap_removal_difficulty" = 0 OUTER_SET "traped" = 0 OUTER_SET "detected" = 0 OUTER_SET "launch_point_x" = 1200 OUTER_SET "launch_point_y" = 50 OUTER_SPRINT "key" "" OUTER_SPRINT "script" "tz25nnp1" OUTER_SET "activation_point_x" = 0 OUTER_SET "activation_point_y" = 0 COPY_EXISTING ~ar0705.are~ ~override~ LAUNCH_PATCH_MACRO ~add_region~ BUT_ONLY_IF_IT_CHANGES <<<<<<<< ...ts25mini-inlined/vertex.2da 1180 82 1225 53 1225 85 1180 114 >>>>>>>> OUTER_SPRINT "name" "tz25nnp2" OUTER_SET "type" = 1 OUTER_SET "bounding_box_left" = 1180 OUTER_SET "bounding_box_top" = 53 OUTER_SET "bounding_box_right" = 1225 OUTER_SET "bounding_box_bottom" = 114 OUTER_SET "adding_vertex_num" = 4 OUTER_SET "cursor" = 8 OUTER_SPRINT "destination_area" "None" OUTER_SPRINT "entrance_name" "" OUTER_SET "flag1" = 0b00000000 // bitwise OUTER_SET "flag2" = 0b00000001 // bitwise OUTER_SET "flag3" = 0b00000000 // bitwise unknown OUTER_SET "flag4" = 0b00000000 // bitwise unknown OUTER_SPRINT "info_text" "" OUTER_SET "trap_detection_difficulty" = 0 OUTER_SET "trap_removal_difficulty" = 0 OUTER_SET "traped" = 0 OUTER_SET "detected" = 0 OUTER_SET "launch_point_x" = 1200 OUTER_SET "launch_point_y" = 50 OUTER_SPRINT "key" "" OUTER_SPRINT "script" "tz25nnp2" OUTER_SET "activation_point_x" = 0 OUTER_SET "activation_point_y" = 0 COPY_EXISTING ~ar0705.are~ ~override~ LAUNCH_PATCH_MACRO ~add_region~ BUT_ONLY_IF_IT_CHANGES
New code:
Spoiler
COPY_EXISTING ~ar0900.are~ ~override~ LPF fj_add_are_structure INT_VAR fj_loc_x = 1186 fj_loc_y = 56 fj_flags = 0b01000001000000010000000000000000 STR_VAR fj_structure_type = animation fj_name = tz25nnpm fj_bam_resref = tz25nnpm END LPF fj_add_are_structure INT_VAR fj_type = 1 fj_box_left = 1180 fj_box_top = 53 fj_box_right = 1225 fj_box_bottom = 114 fj_cursor_idx = 22 fj_vertex_0 = 1180 + (82 << 16) fj_vertex_1 = 1225 + (53 << 16) fj_vertex_2 = 1225 + (85 << 16) fj_vertex_3 = 1180 + (114 << 16) fj_loc_x = 1200 fj_loc_y = 50 STR_VAR fj_structure_type = region fj_name = tz25nnp1 END LPF fj_add_are_structure INT_VAR fj_type = 1 fj_box_left = 1180 fj_box_top = 53 fj_box_right = 1225 fj_box_bottom = 114 fj_cursor_idx = 8 fj_flags = 0b00000000000000010000000000000000 fj_vertex_0 = 1180 + (82 << 16) fj_vertex_1 = 1225 + (53 << 16) fj_vertex_2 = 1225 + (85 << 16) fj_vertex_3 = 1180 + (114 << 16) fj_loc_x = 1200 fj_loc_y = 50 STR_VAR fj_structure_type = region fj_name = tz25nnp2 fj_reg_script = tz25nnp2 END
Things to note:
1) FPF 1 should prolly include the "schedule" variables like the original code has, but I couldn't find an example of how to schedule 4 times
2) LPF 3 has flags ... they're freaky (might just be the reason the original AR0400 area crashed cause I'd left out flags in its revised patching macro )
The AR0400 (originally crashing) region's flags go like so:
fj_flags = 0b00000100000000110000000000000000Recipe for disaster??