Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions Container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down
1 change: 1 addition & 0 deletions data/RamAddresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down