aboutsummaryrefslogtreecommitdiffstats
path: root/ram (unfollow)
Commit message (Collapse)AuthorFilesLines
7 daysSL0P menu: add SAVER screensaver (autopilot EXPLORE)Ash Ketchum1-1/+5
New menu entry that auto-drives the EXPLORE camera across the overworld: - persistent-direction wander (DFS-ish): keep heading, turn only when blocked or occasionally at a junction, never an immediate U-turn. SlopSaverPickDir synthesises a d-pad direction into the normal EXPLORE dispatch, so it inherits smooth scrolling and smooth map-edge crossing. - arrows hidden; player/Pikachu never drawn (clear+freeze OAM right after every LoadMapData, before the first frame renders - also fixes a brief player flash at crossings in manual EXPLORE). - any button wakes it back to the menu. State byte wSlopSaverDir reuses wUnusedCreditsByte (0=off, else current dir).
7 daysexplore: pivot to noclip free-roam cameraAsh Ketchum1-1/+1
Ground-truth from render_overworld.py showed Kanto is ONE seamless world joined along shared edges with per-connection offsets -- so a map-by-map browser is the wrong model. Replaced it with noclip free-roam that leans on the engine's own player-walk + connection-crossing machinery (which already handles seams/offsets correctly): - wSlopNoclip flag (reused the dead wUnusedObtainedBadges byte at D356, 0 r/w, not unioned, in the saved region -> safe). - CollisionCheckOnLand: 5-byte hook at the top -> when noclip is set, return no-collision. Freed the room in ROM0 by deleting the unreferenced Func_0db5 (dead farcall LoadToggleableObjectData) in LoadMapHeader. - EXPLORE menu entry now just toggles wSlopNoclip and closes the menu, dropping you into the overworld to glide through walls/NPCs/ledges and walk across map connections exactly as the world data defines them. Verified: Pallet -> (walk north through the fences) -> seam-cross into Route 1 at y=35 -> continue north; toggle off restores collision (player blocked).
7 daysfix(nowild): use wUnusedFlag (0xCC5B) instead of wc5d8 for the toggleAsh Ketchum1-1/+1
wc5d8 looked unused but the game writes it via computed addresses (observed it change 56->44->35 while walking/warping), so the NOWILD flag got clobbered and encounters still happened. wUnusedFlag is a genuine unused WRAM0 byte (verified stable at 0 through walking + warping, not in the save block so it defaults off each boot). NOWILD flag now persists reliably.
7 daysmenu: add NOWILD toggle + REPEL (and repurpose wc5d8 as the flag)Ash Ketchum1-1/+1
NOWILD toggles wild encounters off (hooked in TryDoWildEncounter, a banked file) with an ON indicator drawn on its menu row; the flag lives in the unused wc5d8 WRAM0 byte (renamed wSlopNoWild, always-accessible, defaults 0). REPEL refills repel steps to 255. (A NOCLIP toggle was prototyped but its hook lands in the full home bank - deferred until I free ROM0 budget.) SL0P MENU now: WARP HEAL MONEY BADGES DEX MAXTEAM ITEMS NOWILD REPEL.
2026-06-24Identify `wPikachuSpawnStateFlags` and `wPikachuMapScriptFlags` bits, and ↵Yoann Fievez1-2/+2
`PIKAMOVEMENT_*` constants (#158) - Rename `wd471` to` wPikachuSpawnStateFlags`, with `BIT_PIKACHU_SPAWN_*` bits - Rename `wd492` to `wPikachuMapScriptFlags`, with `BIT_PIKACHU_MAP_*` bits - Introduce `PIKAMOVEMENT_*` constants for `ApplyPikachuMovementData` - Refactor `BillsHouse` scripts and Pikachu/Bill movement data
2026-06-14Rename wd49b to wPikachuEmotionModifier (#156)Yoann Fievez1-1/+1
This variable serves as an override for Pikachu's emotion following specific events like refusing a Thunder Stone. It is automatically cleared when its mood normalizes.
2026-01-07Use macros to enforce "hidden object" constraints, and rename them to ↵Rangi2-7/+7
"hidden events" (#559)
2026-01-07Use macros to enforce "missable/hide/show object" constraints, and rename ↵Rangi2-9/+9
them to "toggleable objects" (#557)
2025-11-27Use more Pokemon data constants, create MOVE_NAME_LENGTH (#543)Narishma-gb1-2/+5
2025-11-25Avoid magic numbers for most `CopyData` calls (#542)Rangi2-6/+10
2025-11-18Use more hardware and graphics constants (#532)Narishma-gb1-3/+3
- Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
2025-09-26Revise some RAM buffer constantsRangi1-5/+7
2025-09-10Misc. naming and cleanup (#139)Narishma-gb1-1/+1
* Name some printer/diploma routines * Name `wd434` * Name `NAME_LENGTH_JP` * Rename `callabd`/`calladb` to `farcall`/`callfar`
2025-07-02Use hardware.inc constants in places unique to YellowRangi421-3/+3
2025-07-02Check limits for warp, bg, and object eventsRangi421-6/+6
2025-07-02Define `MAX_WARP_EVENTS`Rangi421-2/+2
2025-06-30Use combined hardware constantsRangi422-5/+5
2025-06-30Replace hardware_constants.asm with hardware.inc (#511)Rangi2-5/+5
2025-01-30Consistently refer to CGB, not GBC (#491)SatoMew1-1/+2
2025-01-28Comment on size of unionRangi421-0/+1
2025-01-28Correct wTileMapBackup declared space (#487)Engezerstorung1-2/+13
2024-10-07Consistently format WRAM values (#476)Sylvie1-3/+6
* Use `db` instead of `ds 1` * Use a `UNION` for overlapping `db`/`dw`
2024-09-29Rename off-by-one wram labelsdannye1-6/+6
2024-09-25This byte is written to, but not used (#471)Vortyne1-1/+1
it's written to in init_player_data.asm ``` ld hl, wObtainedBadges ld [hli], a ld [hl], a ```
2024-09-24Identify `wCurrentMapScriptFlags` bits (#467)Sylvie1-1/+4
2024-09-23Identify more flag bits (#464)Sylvie1-0/+1
2024-09-18Identify remaining uses of `wd0b5` and `wd11e` (#463)Sylvie1-11/+16
2024-09-18Split `hSpriteIndexOrTextID` into `hSpriteIndex` and `hTextID` (#462)Sylvie2-1/+2
Also identify `wPPUpCountAndMaxPP`
2024-08-04Fix comment about auto text box drawing (#458)Vortyne1-1/+1
Actually, setting bit 0 of this byte disables auto text box drawing on calling DisplayTextID. See https://github.com/pret/pokered/blob/6e3ab0a9e97ff14123ac65f56cb4b4ddab45b695/engine/menus/display_text_id_init.asm#L7
2024-08-04Identify wcf91 as wCurPartySpecies, wCurItem, and wCurListMenuItem (#457)Sylvie1-1/+4
2024-07-24Identify wcd6d as wNameBuffer and others (#455)Sylvie1-4/+16
2024-07-16Identify various flag labels and bit constants (#454)Sylvie1-124/+16
2024-06-15Identify some unused WRAM variables (#453)Sylvie1-20/+16
2024-05-05Use constant in wram for hidden item flags (#445)Vortyne1-2/+2
Prevents defining more hidden items than the flag array has room for
2024-01-03Update to RGBDS 0.7.0 (#447)Rangi4-0/+8
2023-11-22Convert a couple ds 2 to dwvulcandth2-2/+2
2023-11-22Delete a couple EOL whitespace.vulcandth1-1/+1
2023-11-21Get rid of wEvosMoves, MAX_EVOLUTIONS, and EVOLUTION_SIZERangi421-4/+0
Fixes #430
2023-11-20Identify `wSavedCoordIndex` and its other usagesRangi421-5/+8
2023-11-20Identify the unnamed HRAM variables and one WRAM label (#438)Vortyne2-9/+6
2023-11-17Add constants for wMapConnections bits and group map header wram labelsLinus Unnebäck1-8/+7
* Add constants for wMapConnections bits * Apply Vulcandth and Rangi42 feedback --------- Co-authored-by: vulcandth <vulcandth@gmail.com>
2023-09-20Fix wPlayerHPBarColor type (#429)Linus Unnebäck1-2/+2
2023-07-16Add sound bits documentation for wOptions (#110)Linus Unnebäck1-1/+6
2023-07-15Thoroughly document debug code (#410)SatoMew1-14/+5
2023-05-10Make wCurrentBoxNum a byte instead of word (#414)Linus Unnebäck1-1/+3
2022-09-24Add constants and table macros for the map sprite sets (#392)Rangi1-2/+2
Fixes #391
2022-07-09wOAMBuffer -> wShadowOAM (#95)Colton G. Rushton1-4/+4
2022-07-09wOAMBuffer -> wShadowOAM (#370)Colton G. Rushton1-4/+4
2022-06-17Add a subdirectory for RAM filesRangi4-0/+3097
2022-06-17Add a subdirectory for RAM filesRangi4-0/+2817