From efb30661f86e0ffab60b5106358906bbfa361b3b Mon Sep 17 00:00:00 2001 From: evilwb Date: Sun, 23 Mar 2025 00:42:15 -0700 Subject: [PATCH 1/2] Made title cinematic skip-able when first opening the game --- Container.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Container.py b/Container.py index f19bd86..a09b666 100644 --- a/Container.py +++ b/Container.py @@ -150,6 +150,9 @@ def generate_patch(world: "Rac2World", patch: Rac2ProcedurePatch, instruction=No patch.write_token(APTokenTypes.WRITE, addresses.TITLE_SCREEN_MAIN_FUNC + 0x8F0, bytes([0xF5, 0x8B, 0x80, 0xA3])) patch.write_token(APTokenTypes.WRITE, addresses.QUIT_TITLE_MAIN_FUNC + 0x830, bytes([0xF5, 0x8B, 0x80, 0xA3])) + # Allow intro cinematic to be skipped by not setting this variable that blocks the ability to skip it. + patch.write_token(APTokenTypes.WRITE, addresses.TITLE_SCREEN_MAIN_FUNC + 0x524, MIPS.nop()) + # Disable game failsafe that unlocks any planet we land on if we don't have it unlocked already. for address in addresses.SETUP_PLANET_FUNCS: patch.write_token(APTokenTypes.WRITE, address + 0x144, bytes([0x07, 0x00, 0x00, 0x10])) From a541c9229e001d4b5719d6452c266ff189676f16 Mon Sep 17 00:00:00 2001 From: evilwb Date: Sun, 23 Mar 2025 00:49:28 -0700 Subject: [PATCH 2/2] Allow skipping cutscenes by only pressing START on loaded saves. --- Callbacks.py | 3 +++ data/RamAddresses.py | 1 + 2 files changed, 4 insertions(+) diff --git a/Callbacks.py b/Callbacks.py index 3202286..455853c 100644 --- a/Callbacks.py +++ b/Callbacks.py @@ -46,6 +46,9 @@ def init(ctx: 'Rac2Context'): if ctx.current_planet is Rac2Planet.Title_Screen or ctx.current_planet is None: return + # Allow skipping cutscenes by only pressing START on loaded saves. + ctx.game_interface.pcsx2_interface.write_int8(ctx.game_interface.addresses.easy_cutscene_skip, 0x1) + # Ship Wupash if option is enabled. if ctx.slot_data.get("skip_wupash_nebula", False): ctx.game_interface.pcsx2_interface.write_int8(ctx.game_interface.addresses.wupash_complete_flag, 1) diff --git a/data/RamAddresses.py b/data/RamAddresses.py index 35914d3..bba268b 100644 --- a/data/RamAddresses.py +++ b/data/RamAddresses.py @@ -57,6 +57,7 @@ def __init__(self, game_version: str): self.equipped_weapon: int = 0x1A7398 self.quickselect: int = 0x1A73B8 + self.easy_cutscene_skip: int = 0x1A7478 self.current_planet: int = 0x1A79F0 self.current_bolts: int = 0x1A79F8 # self.raritanium_count: int = 0x1A79FC