Add OW_UNION_DISABLE_CHECK and OW_FLAG_MOVE_UNION_ROOM_CHECK #5448
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
OW_UNION_DISABLE_CHECK
. WhenTRUE
, the nurse does not inform the player if there is a trainer waiting in the Union Room. This speeds up the loading of the Pokémon Center.OW_FLAG_MOVE_UNION_ROOM_CHECK
. If this flag is set, the game will only check if players are in the Union Room while healing Pokémon, and not when players enter the Pokémon Center. This speeds up the loading of the Pokémon Center. This is ignored ifOW_UNION_DISABLE_CHECK
isTRUE
.Details
Usage
OW_UNION_DISABLE_CHECK
When this is
TRUE
:InitUnionRoom
will never run.BufferUnionRoomPlayerName
will never run.OW_FLAG_MOVE_UNION_ROOM_CHECK
When this is defined:
CableClub_OnResume
(meaningInitUnionRoom
) will run after the Nurse sets the balls on the healing machine, instead of when the player enters the Pokémon Center.Testing
Clean Branch
You can recreate this branch by applying a patch or pulling the repo. From a clean version of expansion's upcoming, you can either:
Patch
wget https://files.catbox.moe/o0qs9q.patch -O union.patch ; git apply union.patch ; rm union.patch
Repo
git remote add psf-expansion https://github.com/PokemonSanFran/pokeemerald-expansion/ ; git pull psf-expansion noAdapterUnionCheck2
Manual Tests
After replicating the branch, to recreate my testing environment, you can either directly download the debug script, or manually create the changes.
Download
OW_UNION_DISABLE_CHECK
==TRUE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
==0
wget https://files.catbox.moe/e2aojo.h -O include/config/overworld.h
OW_UNION_DISABLE_CHECK
==FALSE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
==0
wget https://files.catbox.moe/qkdd2c.h -O include/config/overworld.h
OW_UNION_DISABLE_CHECK
==TRUE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
!=0
wget https://files.catbox.moe/semp2p.h -O include/config/overworld.h
OW_UNION_DISABLE_CHECK
==FALSE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
!=0
wget https://files.catbox.moe/xf1abp.h -O include/config/overworld.h
Manual Testing
include/config/overworld.h
to the desired valuesVerified Scenarios
All videos start from a Player that has used Cheat Start and saved outside of the Pokemon Center.
OW_UNION_DISABLE_CHECK
==TRUE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
==0
TRUE0.mp4
OW_UNION_DISABLE_CHECK
==FALSE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
==0
FALSE0.mp4
OW_UNION_DISABLE_CHECK
==TRUE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
!=0
TRUEset.mp4
OW_UNION_DISABLE_CHECK
==FALSE
&&OW_FLAG_MOVE_UNION_ROOM_CHECK
!=0
FALSEset.mp4
People who collaborated with me in this PR
This was originally written by @Deokishisu. Give them all the credit.
Features this PR does NOT handle:
Discord Contact Info
I am
pkmnsnfrn
on Discord.