Skip to content

Conversation

@Rangi42
Copy link
Member

@Rangi42 Rangi42 commented Sep 24, 2024

After this PR, there are two types of unidentified bit flags remaining: hardware register bits (for which I'm considering how much to edit/refactor hardware_constants.asm based on hardware.inc), and wCurrentMapScriptFlags bits 5, 6, and 7 (which need more case-by-case investigation).

@Rangi42 Rangi42 requested a review from dannye September 24, 2024 06:11
pop af
.not_on_switch
bit 7, a
CheckEventReuseA EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@Vortyne
Copy link
Contributor

Vortyne commented Sep 24, 2024

wCurrentMapScriptFlags 5 and 6 are both "new map was just loaded" flags used to ensure map scripts only run a function once when the map is loaded. I think the idea was that they could be re-set individually to re-trigger specific map load functions on a map, but I don't think that's ever done in a place where them being separate matters.
bit 7 is used for elevators to indicate to the map scripts that the "shake" animation should start playing.

@Rangi42
Copy link
Member Author

Rangi42 commented Sep 24, 2024

Thanks, Vortyne. Yeah, I had noticed some of that after giving them BIT_CUR_MAP_SCRIPT_5/6/7 constants in a separate ongoing PR.

@Rangi42 Rangi42 merged commit b5d2540 into pret:master Sep 24, 2024
1 check passed
@Rangi42 Rangi42 deleted the more-bit-flags branch September 24, 2024 13:37
PokefanMarcel pushed a commit to PokefanMarcel/yumepokered that referenced this pull request Oct 18, 2024
* Identify more bit flags

* Space
PokefanMarcel pushed a commit to PokefanMarcel/yumepokered that referenced this pull request Jun 21, 2025
* Identify more bit flags

* Space
PokefanMarcel pushed a commit to PokefanMarcel/yumepokered that referenced this pull request Jun 21, 2025
* Identify more bit flags

* Space
CreamElDudJafar pushed a commit to CreamElDudJafar/pokered-yellow-colors that referenced this pull request Aug 15, 2025
* Identify more bit flags

* Space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants