Comments (7)
From a cursory look at the address. I don't believe wd732
to be specific to Cycling Road. It appears to handle setting warp flags for all warps. It just also happens to contain a flag for Debug and Cycling Road Bike Riding.
It looks like the following addresses all contain various flags similar to pokecrystals' engine_flags
... just without dedicated functions to process them like pokecrystal:
wd728:: db
wBeatGymFlags:: db
wd72c:: db
wd72d:: db
wd72e:: db
wd730:: db
wd732:: db
wFlags_D733:: db
wBeatLorelei:: db
wd736:: db
wCompletedInGameTradeFlags:: dw <- possibly.
My recommendation would be to rename these to something along the lines of wFlags#
; and create constants for each of the bits referenced in their wram comments.
As far as the documentation piece goes, this can be something added when #258 is done. An easy fix for this could be something like (Assuming the end user wants to keep those debug features for the debug rom).
In engine/movie/oak_speech/oak_speech.asm
SetDefaultNames:
ld a, [wLetterPrintingDelayFlags]
push af
ld a, [wOptions]
push af
+IF DEF(_DEBUG)
ld a, [wd732]
push af
+ENDC
ld hl, wPlayerName
...
call FillMemory
+IF DEF(_DEBUG)
pop af
ld [wd732], a
+ENDC
pop af
ld [wOptions], a
pop af
ld [wLetterPrintingDelayFlags], a
....
from pokered.
As far as the documentation piece goes, this can be something added when #258 is done. An easy fix for this could be something like (Assuming the end user wants to keep those debug features for the debug rom).
The code which preserves that byte is in fact in the production build and not only in the debug build of the games.
from pokered.
The code which preserves that byte is in fact in the production build and not only in the debug build of the games.
Hence, why my suggested bug fix action (to go in the future bug docs) forces the code to only build if you are building the debug rom.
from pokered.
It looks like the start of the Bug Documentation for this has been created here. This will eventually be included in pokered's future docs/bugs_and_glitches.md
(#258). This wram address and the remaining unnamed wram addresses still require proper names, but this would be a seperate issue. I believe we can close this issue for now.
Edit: I guess it's been moved here now...
from pokered.
I added a temporary comment in #410 that documents this:
pokered/engine/movie/oak_speech/oak_speech.asm
Lines 6 to 12 in a38c792
The simplest fix is to add res 5, [hl]
here:
pokered/engine/menus/main_menu.asm
Lines 309 to 321 in a38c792
Does this help, @spixi?
from pokered.
Well done @SatoMew, but I still think that wd732 needs a proper constant name.
from pokered.
I still think that wd732 needs a proper constant name.
That will be taken care of eventually.
from pokered.
Related Issues (20)
- Automatically detect invalid object_event or bg_event text IDs HOT 6
- Use tool to publish documentation of functions such as doctest. HOT 5
- Copy pokecrystal's handling of unused types
- Copy pokecrystal's `map_const` macro
- Comment about UndergroundPathNorthSouth's dimensions
- Distinguish "meta" constants from event constants
- Add constants and table macros for the map sprite sets
- How to open 2bpp file HOT 1
- Fadas to be added HOT 1
- `TrainerDataPointers` is missing `table_width/assert_table_length` macros
- Comment the wave pattern 5 data that happens to be read from SFX HOT 4
- Inaccurate comment in `UpdateNPCSprite`
- Split `hSpriteIndexOrTextID`
- Incorrect reference
- Stadium Checksum HOT 1
- Review and revise some maps' script and text labels
- Rename `wEvosMoves` and get rid of `MAX_EVOLUTIONS` and `EVOLUTION_SIZE`
- Have palfix.py always output grayscale
- ``engine/events/starter_dex.asm`` contains an error in its comment HOT 1
- UndergroundPathNorthSouth.blk doesn't work with PolishedMap HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pokered.