.meta name="Bug fixes" .meta description="Fixes many minor\ngameplay, sound,\nand graphical bugs" # Original code by Ralf @ GC-Forever and Aleron Ives # https://www.gc-forever.com/forums/viewtopic.php?t=2050 # https://www.gc-forever.com/forums/viewtopic.php?t=2049 # Xbox port by fuzziqersoftware # This patch is a collection of many smaller patches, most of which are not yet ported. .versions 4OJB 4OJD 4OJU 4OED 4OEU 4OPD 4OPU entry_ptr: reloc0: .offsetof start start: .include WriteCodeBlocksXB # Tiny Grass Assassins Bug Fix .data .data 0x00000002 .binary EB0E # Shield DFP/EVP Bug Fix (allows shields to reach true max DFP/EVP values) .data .data 0x00000001 .binary 16 .data .data 0x00000001 .binary 17 # VR Spaceship Item Drop Bug Fix (allows items to drop from enemies above a certain Y position) .data .data 0x00000002 .data 0x435C0000 # Gol Dragon Camera Bug Fix (makes the camera after Gol Dragon display "normally") .data .data 0x00000002 .binary 01 # Rain Drops Color Bug Fix .data .data 0x00000008 .binary 7080808060707070 # TP Bar Color Bug Fix .data .data 0x00000004 .data 0xFF00AAFA .data .data 0x00000004 .data 0xFF00AAFA .data .data 0x00000004 .data 0xFF00AAFA .data .data 0x00000004 .data 0xFF0074EE # Olga Flow Barta Bug Fix .label g1_hook_call, .label g1_hook_loc, .data g1_hook_call .data 6 .address g1_hook_call mov eax, esi cmp al, 19 jmp g1_hook_loc g1_hook_call_end: .data g1_hook_loc .deltaof g1_hook_start, g1_hook_end .address g1_hook_loc g1_hook_start: jne g1_hook_skip_replace_value mov al, 2 g1_hook_skip_replace_value: cmp eax, [ebx + 0x440] // Original opcode jmp g1_hook_call_end g1_hook_end: # Morfos Frozen Player Bug Fix .label g2_hook_call, .label g2_hook_loc1, .label g2_hook_loc2, .data g2_hook_call .data 6 .address g2_hook_call call g2_hook_loc1 nop .data g2_hook_loc1 .deltaof g2_hook_start1, g2_hook_end1 .address g2_hook_loc1 g2_hook_start1: fld1 st0 // st = [1.0, speed] fld1 st0 // st = [1.0, 1.0, speed] fadd st0, st1 // st = [2.0, 1.0, speed] fdivp st1, st0 // st = [0.5, speed] jmp g2_hook_loc2 g2_hook_end1: .data g2_hook_loc2 .deltaof g2_hook_start2, g2_hook_end2 .address g2_hook_loc2 g2_hook_start2: test byte [esi + 0x30], 0x20 // If not set, use 1.5; if set, use 0.5 jnz g2_hook_entity_is_frozen fld1 st0 // st = [1, 0.5, speed] faddp st1, st0 // st = [1.5, speed] g2_hook_entity_is_frozen: fmulp st1, st0 // st = [((game_flags & 0x20) ? 0.5 : 1.5) * speed] ret g2_hook_end2: # Dropped Mag Color Bug Fix (only needed on beta version) .only_versions 4OJB .data 0x001759E6 .data 1 .binary 12 .data 0x00180898 .data 1 .binary 12 .all_versions # Box/Fence Fadeout Bug Fix .data .data 2 nop nop .data .data 6 nop nop nop nop nop nop # TODO: Port the rest of the patches in the GC version of BugFixes: # Bulclaw HP Bug Fix # Weapon Attributes Patch # Invalid Items Bug Fix # Item Removal Maxed Stats Bug Fix # Unit Present Bug Fix # Bank Item Stacking Bug Fix # Meseta Drop System Bug Fix # Offline Quests Drop Table Bug Fix # Mag Revival Priority Bug Fix # Mag Revival Challenge & Quest Mode Bug Fix # Reverser Target Lock Bug Fix # Deband/Shifta/Resta Target Bug Fix # Tech Auto Targeting Bug Fix # Enable Trap Animations # Tsumikiri J-Sword special attack + rapid weapon switch bug fix # Control Tower: Delbiter Death SFX Bug Fix # Ruins Laser Fence SFX Bug Fix # SFX Cancellation Distance Bug Fix # Foie SFX Pitch Bug Fix # Gifoie SFX Pitch Bug Fix # Rafoie SFX Pitch Bug Fix # Barta SFX Pitch Bug Fix # Gibarta SFX Pitch Bug Fix # Rabarta SFX Pitch Bug Fix # Zonde SFX Pitch Bug Fix # Gizonde SFX Pitch Bug Fix # Razonde SFX Pitch Bug Fix # Grants SFX Pitch Bug Fix # Megid SFX Pitch Bug Fix # Anti SFX Pitch Bug Fix # Present Color Bug Fix # Chat Bubble Window TAB Bug Fix # Chat Log Window LF/Tab Bug Fix # Dark/Hell Special GFX Bug Fix # Devil's and Demon's Special Damage Display Bug Fix # Christmas Trees Bug Fix .data 0x00000000 .data 0x00000000