forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OW_AUTO_SIGNPOST
and associated metatile behaviors
#5044
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added FRLG signpost border Started working on LoadSignPostWindowFrameGfx
Added LoadSignBoxGfx Add LoadSignPostWindowFrameGfx
Feel free to squash anything AFTER (not including) 5657f83 |
AlexOn1ine
reviewed
Jul 27, 2024
AlexOn1ine
reviewed
Jul 27, 2024
AlexOn1ine
reviewed
Jul 27, 2024
agbcc fails |
Ready for review pending CI |
any reason the graphics changed? |
Are you referring to |
Bassoonian
added
type: feature branch merge
Update from feature branches
and removed
new-feature
Adds a feature
labels
Aug 10, 2024
Bassoonian
previously requested changes
Aug 11, 2024
Bassoonian
requested changes
Sep 19, 2024
Bassoonian
approved these changes
Sep 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category: overworld
Pertains to out-of-battle mechanics
type: feature branch merge
Update from feature branches
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.
INCORPORATES A FEATURE BRANCH - DO NOT SQUASH!
Description
signpost
branch to expansionOW_AUTO_SIGNPOST
and matching metatile behaviorsMB_SIGNPOST
,MB_POKEMON_CENTER_SIGN
,MB_POKEMART_SIGN
, allowing players to replicate the behavior of signposts in FRLG.Usage
OW_AUTO_SIGNPOST
In
include/config/overworld.h
, developers must setOW_AUTO_SIGNPOST
toTRUE
. This will also add three metatile behaviors to the existing list.Metatile Behaviors
No tilesets within vanilla Emerald have been modified. Users will need to manually add the new metatile behaviors to the relevent metatiles.
Functionality
When
OW_AUTO_SIGNPOST
is enabled and the player walking into a space where they are facing north and facing a metatile withMB_SIGNPOST
behavior, the following occurs:MB_POKEMON_CENTER_SIGN
orMB_POKEMART_SIGN
, generic scripts for those signs are run.WALK_AWAY_SIGNPOST_FRAMES
has elapsed, the player can walk away from the sign without finishing the scripts.Sign Message Box
The message box from FRLG cannot directly be ripped, as the message box from FRLG and Emerald are slightly different sizes. This uses a modified version that was created by @ShinyDragonHunter.
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/a96tdk.patch -O signpost.patch ; git apply signpost.patch ; rm signpost.patch
Repo
git remote add psf-expansion https://github.com/PokemonSanFran/pokeemerald-expansion/ ; git pull psf-expansion signpost
Manual Tests
After replicating the branch, to recreate my testing environment, you can either directly download the debug script and config file, or manually create the changes.
Download
wget https://files.catbox.moe/2mmvxp.bin -O data/tilesets/primary/general/metatile_attributes.bin && wget https://files.catbox.moe/sd7gwo.h -O include/config/overworld.h
Manual Testing
OW_AUTO_SIGNPOST
toTRUE
.MB_SIGNPOST
.MB_POKEMON_CENTER_SIGN
MB_POKEMART_SIGN
Verified Scenarios
All videos attempt to show the player:
signpost.mp4
People who collaborated with me in this PR
This was originally written by by @ghoulslash. The Emerald variant of FRLG's Message Box was created by @ShinyDragonHunter.
Discord Contact Info
I am
pkmnsnfrn
on Discord.