Repository navigation
Releases
pokeemerald VITA 0.6.2
Languages
- Added French and Italian builds from clean French (
BPEF) and Italian (BPEI) Pokémon Emerald cartridge dumps. - Added Brazilian Portuguese using the community translation from PR #3. Load a clean English
BPEEdump and select Português (Brasil). - English (
BPEE) and Spanish (BPES) remain available. All five builds can be generated locally with the Web VPK Builder.
Fixes
- Shortened translated text in the native party footer, Pokémon summary and PokéNav map panel so it fits the available space.
- Added original page-switch and backspace icons for the French GBA naming-screen fallback.
- Adapted localized battle messages, Berry names, Pokédex units and selected game layouts. Localized move-type phrases now leave room for battle message punctuation.
Building the VPK
Use the Web VPK Builder with a clean 16 MiB dump of your own cartridge, or follow the build guide. The attached WebPayload and manifest are inputs for the builder. Your ROM stays on your device.
The payload passed strict auditing against four retail ROMs. The five browser-generated variants were compared with local Vita builds. The new languages and menu changes still need visual testing on physical Vita hardware.
pokeemerald VITA 0.6.1b
Hotfix release on top of v0.6.1. This release supersedes
v0.6.1and includes all critical stability, battle, overworld, save, and UI fixes merged since the originalv0.6.1release.Online Web VPK Builder (EN & ES): https://hctrrb.github.io/pokeemerald-vita-3ds/
What's new in v0.6.1b (on top of v0.6.1)
Critical stability & gameplay fixes
- 3D cross-border quest & transition NPC fix (
src/event_object_movement.c,src/trainer_see.c): fixed an issue where pre-spawning NPCs from adjacent connected maps directly from static ROM coordinates leftON_TRANSITIONquest NPCs stuck at stale coordinates/movement/visibility after crossing a border (for example,LOCALID_FOOTPRINTS_MANin Oldale Town at(8, 9)instead of(1, 11)orLOCALID_GYM_BOYin Petalburg City at(12, 15)instead of(5, 11)), while keeping smooth pop-in-free 3D pre-spawn for ~93% of outdoor static NPCs:- Added deterministic
ReconcileTransitionObjectEvents()inUpdateObjectEventsForCameraUpdate()on map transitions (gCamera.active), cleanly respawning any destination-map NPC whoseON_TRANSITIONscript changed coordinates (setobjectxyperm), movement (setobjectmovementtype), hide flag, dynamic sprite (OBJ_EVENT_GFX_VAR_*), or temporary flag (FLAG_TEMP_1..TEMP_FLAGS_END), while preserving the player, link players, camera, andFollowerMon. - Restricted neighbor pre-spawn in
TrySpawnObjectEvents()to 3D mode (PLATFORM_SETTING_VOXEL_3D) and filtered outOBJ_EVENT_GFX_VAR_*,FLAG_TEMP_*, and the 42ON_TRANSITION-mutated connected-map NPCs so they never appear at stale ROM positions before crossing. - Guarded
CheckForTrainersWantingBattle()insrc/trainer_see.cagainst triggering battles with pre-spawned trainers belonging to a different(mapGroup, mapNum).
- Added deterministic
- First-boot / empty-save Data Abort crash fix (
src/save.c): fixed a Data Abort immediately after the vitaGL logo on consoles booting with a brand-new / empty (0xFF) save file (or switching to an emptySLOT 2/SLOT 3).CopySaveSlotData()previously indexedgRamSaveSectorLocations[0xFFFF].size(+512 KB past the array, landing in unmapped memory after.bss) before verifyingSECTOR_SIGNATUREandid < NUM_SECTORS_PER_SLOT. Added matching bounds guards inGetSaveValidStatus()andGetSaveBlocksPointersBaseOffset(). Existing saves and all 3 save slots remain 100% compatible. - Sootopolis Gym defeat softlock fix (
include/battle.h,src/battle_main.c): enlargedgDisplayedStringBattlefrom300to1024bytes (BATTLE_DISPLAYED_STRING_SIZE). Juan's defeat speech (359 B in EN / 347 B in ES) previously overflowed past 300 bytes intogBattleControllerExecFlags,gBattleResources, andgBattleBufferBin.bss, causing the final Rain Badge line to repeat with a corrupted character and softlocking the Gym. Audited all 8 Gyms, Elite Four, Champion, and all 640 trainer battles across EN and ES; also fixed a minor Trick House Puzzle 7 bounds check insrc/rotating_tile_puzzle.c. - Options
HD-2Dselection marker & native Bag key items (src/platform/vita/vita_extras.c,src/platform/ui/ui_game_items.c, EN & ES):- Fixed
VitaExtras_Get()returning the renderer'sVOXEL_HD2D_HIGHenum (3) instead of the stored menu index (1), restoring the red selection marker forHD-2DON/SÍin the GBA theme and fixing"?"in non-GBA themes. - Handled Powder Jar, White Flute, and Black Flute directly with native Bag toasts without closing the Bag (avoiding
DisplayItemMessage()without an open GBA Bag menu). - Pre-validated Wailmer Pail (
CanUseWailmerPailOnField) and Fishing Rods (CanFishOnField) before closing the Bag, showing a native toast when unusable instead of falling back to an overworld message. - Locked player controls and frozen events symmetrically in
AfterClose_FieldFunc()to matchUseRegisteredKeyItemOnField(). - Updated Spanish native UI catalog (
1108/1108strings) and remappedtools/locales/es/manifest.json.gz.
- Fixed
Previously added fixes on top of original v0.6.1 (included here)
- Boot stability with plugins (
vitaGLdynamic pool clamping):MainThread_Boot(src/platform/sdl2.c) queriessceKernelGetFreeMemorySize()beforevglInitWithCustomSizes()with right-sized targets (48 MBRAM,88 MBCDRAM,2 MBPHYCONT), clamping automatically to available memory headroom on consoles with resident plugins and showing a clear error dialog instead of crashing insideSceGxm. - Hyper Beam crash fix (Champion Wallace & League): clamped
AnimHyperBeamOrbindex to the 7-entrygSolarBeamBigOrbAnimTableinsrc/battle_anim_effects_1.c(fixing the Data Abort when Wallace's Whiscash or Gyarados used Hyper Beam).
Included from base v0.6.1
Online Web VPK Builder & externalized game data (PORT_EXTERNAL_ASSETS)
- Build directly in your browser at https://hctrrb.github.io/pokeemerald-vita-3ds/ — no VitaSDK, vitaGL, MSYS2 or Python required. Supports clean 16 MB Pokémon Emerald dumps in English (BPEE) and Spanish (BPES) 100% locally via Pyodide WebAssembly.
- Externalized game data, scripts, songs, map layouts, and INCBIN assets into
emeraldvita.pakwith ASLR.reltables andengine/abi.binvalidation. - Attached clean
EmeraldVita-WebPayload.zipandweb-manifest.json(version: v0.6.1b, audited withrelease_audit.py --strictagainst clean EN and ES ROMs with 0 ROM byte leaks; 10/10 builder & EN/ES parity tests passing). - Externalized INCBIN fixes (3D flowers, ash grass, animated doors, large DMA copies, palettes,
gMonIconPaletteTable), TM/HM item lookup guard,TAKE MAILfeedback, evolutions & Rare Candy flow in native Bag, and transactional voxel atlas / warp stability.
Note: No
.vpkis attached to this release. Use the Online Web VPK Builder or build from source with your own Pokémon Emerald.gbadump.
pokeemerald VITA 0.6.1
What's new since v0.6
Online Web VPK Builder & externalized game data (PORT_EXTERNAL_ASSETS)
- Build directly in your browser at https://hctrrb.github.io/pokeemerald-vita-3ds/ — no VitaSDK, vitaGL, MSYS2 or Python required. Supports clean 16 MB Pokémon Emerald dumps in English (BPEE) and Spanish (BPES) 100% locally via Pyodide WebAssembly.
- Externalized game data, scripts, songs, map layouts and INCBIN assets into
emeraldvita.pakwith ASLR.reltables andengine/abi.binvalidation. - Attached clean
EmeraldVita-WebPayload.zipandweb-manifest.json(audited against clean EN and ES ROMs with 0 ROM byte leaks; no VPK is distributed).
Externalized asset & bug fixes
- Options HD-2D marker & native Bag key items (EN & ES): fixed
VitaExtras_Get()returning the renderer'sVOXEL_HD2D_HIGHenum (3) instead of the stored menu index (1), restoring the red selection marker in the GBA theme and fixing"?"in non-GBA themes. Handled Powder Jar, White Flute, and Black Flute directly with native Bag toasts, pre-validated Wailmer Pail and Fishing Rods before closing the Bag, froze field controls/NPCs symmetrically inAfterClose_FieldFunc(), and updated localized UI strings (1108/1108in ES). - Boot stability with plugins (
vitaGLdynamic pool clamping):MainThread_Boot(src/platform/sdl2.c) now queriessceKernelGetFreeMemorySize()beforevglInitWithCustomSizes()with right-sized targets (48 MBRAM,88 MBCDRAM,2 MBPHYCONT), clamping automatically to available memory headroom on consoles with resident plugins and showing a clear error dialog instead of crashing insideSceGxmif free graphics memory is below the minimum viable threshold. - Hyper Beam crash fix (Champion Wallace & League): fixed a vanilla out-of-bounds read in
AnimHyperBeamOrb(src/battle_anim_effects_1.c) whereanimNum % 8read past the 7-entrygSolarBeamBigOrbAnimTable(causing a Data Abort when Wallace's Whiscash or Gyarados used Hyper Beam). Audited all 228 battle animation tables and 387 sprite templates across the Pokémon League. - 3D world & externalized INCBIN stubs: fixed 3D voxel flower animations (
InitFlowerFrames), ash grass (InitAshGrassTexel), 3D animated doors (PortDoor_Getresolving tile stubs before frame offsets), large DMA copies (DmaCopyLarge_ResolveSrc), Birch speech / PokéNav / standard menu palettes (LoadPaletteWithOffset,CopyPaletteIntoBufferUnfaded,Menu_GetStdPal), andgMonIconPaletteTablebounds. - TM/HM item lookup guard:
ItemIdToBattleMoveIdreturnsMOVE_NONEfor non-TM/HM items and Bag item application restricts TM/HM checks toPOCKET_TM_HM. - TAKE MAIL feedback (EN & ES): added
UiMailResulthandling for PC Mailbox, orphan mail moved to Bag, full Mailbox, and orphan mail cleared when Bag is full. - Evolutions & Rare Candy in native Bag: fixed evolutionary stones (
EVO_MODE_ITEM_USE), wired level-up move learn and evolution flow after closing the stats panel (sDeltaAfter,canStopEvo = TRUE), and enabled trade evolutions at Lv. 40 (TRADE_EVO_LEVEL). - Voxel atlas & warp stability: transactional atlas composition, scratch-staged
AtlasExtend_Start/AtlasExtend_Step, fail-safePrepareChunkJob,VITA_PERF_C_ATLAS_FAILUREStelemetry, andGameFrame_BeginMapMutation()inWarpIntoMap.
Note: No
.vpkis attached to this release. Use the Web VPK Builder or build from source with your own Pokémon Emerald.gbadump.
pokeemerald VITA 0.6
The game in Spanish, a crash audit and a lighter HD-2D HIGH, on top of v0.5.9b. The performance note of v0.5.9 still applies: disable overclock plugins (and any plugin that lowers the clocks) for this game.
Requirement: the game needs the Vita's shader compiler,
ur0:data/libshacccg.suprx. If you do not have it, run ShaRKBR33D once. Without it the game now tells you so and closes, instead of crashing on launch.
Hardware testing: the items marked Pending hardware test are built but not yet checked on a PS Vita. Please report crashes with the
psp2core-*.psp2dmpfromux0:data/(DEBUGGING.md) and the build version shown on the main menu (v0.6).
The game in Spanish
- One language per build, taken from your cartridge. With a Spanish dump of Pokémon Esmeralda,
build_allbuilds the game in Spanish by itself: the game text, the credits, Trainer Hill, the Easy Chat lists, the town signs and the text graphics come from your own ROM, and the native UI (menus, bag, PC, Pokédex, PokéNav, options, battle HUD) is translated with the official Spanish names. The repository stays English, and nothing from your ROM leaves your build folder. Tested on a PS Vita. - The Pokédex shows metres and kilograms in metric languages.
- The UI text engine reads full UTF-8 (ellipsis, OE, French ordinals…), and each build bakes only its own language's letters into its font atlas.
- Other languages can be added the same way: see
docs/guides/ADDING_A_LANGUAGE.md.
Crash and data fixes
From a full audit of the crash classes behind the gym and Wally reports (#7, #8) and the launch crash (#10):
- Out-of-range table reads no longer crash. The port kept copies of the move, item and species tables at the very end of its memory, so a read past them (harmless on the GBA, which is how #8 and the Gym 6/7 crashes started) hit unmapped memory. The game now reads the original tables, and such a read behaves as on the GBA. Pending hardware test.
- Soft reset no longer leaks memory. Each soft reset lost 16-430 KB (the follower's and the visible wild Pokémon's sprites); a long soft-reset shiny hunt could run the console out of memory. Pending hardware test.
- Recorded battles are saved. A Battle Frontier recording only reached the save file at the next full save, so a soft reset or closing the game lost it, and watching it before then showed the previous one. Pending hardware test.
- Launch without the shader compiler: a message and a clean exit instead of a crash (#10). Pending hardware test.
- Unown and Spinda show their own letter and spots in the party, PC, summary, PokéNav, naming and move screens (before, every Unown showed as A). Pending hardware test.
HD-2D is now OFF / ON
- OPTIONS > GRAPHICS > HD-2D is OFF or ON, and ON is the full HIGH look. With the work below HIGH runs well enough that the LOW and MED levels are gone from the options. If you had chosen LOW, MED or HIGH, the game reads it as ON. Pending hardware test.
HD-2D HIGH: fewer GPU passes, same image
- The composite is packed at half resolution: the depth-of-field blur, the bloom and the night overlay are combined in a half-size pass, and the full-resolution pass only applies them and the colour grade. The vignette comes from a 16x9 grid.
- 5 render targets a frame instead of 7-8: the light-shaft profiles and the bloom source are drawn in bands of existing targets (on the Vita each extra target cost 0.7-1.1 ms whatever it drew).
- 3D battles draw their stage at half size, since it is shown blurred behind the battlers.
- Smaller savings: the shaft profile is computed only over the rows that are read, a cheaper S-curve, one static buffer for every post quad.
- Near-identical image, as intended. Pending hardware test (look and frame times).
World and overworld
- Weather, fog, particles and light rays stay put when you cross into another map (they jumped at every border), the grass and tree sway no longer steps after about a minute, and the light shafts no longer jump every minute. Tested on a PS Vita.
- Fixed a crash in the 3D world (chunk builder): a lookup shared between cores could pair one search's cell with another's answer. Tested on a PS Vita.
- Visible wild Pokémon stay visible during Fly, Dive, Escape Rope and doors, wander while you walk, freeze during scripts and menus, and only attack if you stand still next to them. Tested on a PS Vita.
Native UI
- The Frontier Pass MAP page shows only the map, larger, and you can tap a facility. Tested on a PS Vita.
- The GBA top bar's pager fits its page names in each language; the party's gender sign sits in its row. Tested on a PS Vita.
- The full list of UIs still pending a hardware test is in
docs/guides/UI_HARDWARE_TESTS.md.
For developers
build_vita.ps1 -Locale es -Rom <your Spanish ROM>builds the Spanish VPK inbuild-vita-es/; the UI string catalog istools/locales/<code>/ui.json(UI_TR/UI_Nin the code).- The game's ROM tables are the const originals under their pret names; game-side code that keeps heap memory frees it in
SoftReset; the save is read from its RAM image (docs/reference/ARCHITECTURE.md). - Measuring build: an unpaced bench step that times the real GPU frame, and masks that split the world scene's geometry.
pokeemerald VITA 0.5.9b
Small update on top of v0.5.9. Everything in v0.5.9 still applies, including its performance note: disable overclock plugins (and any plugin that lowers the clocks) for this game.
Hardware testing: the items marked Pending hardware test are built but not yet checked on a PS Vita. The full checklist is in
docs/guides/UI_HARDWARE_TESTS.md; please report crashes with thepsp2core-*.psp2dmpfromux0:data/(DEBUGGING.md).
Build version on the main menu
- The title's main menu shows the build version at the bottom right (CONTINUE / NEW GAME list only), so you can tell which build you are running. Please include it when you report a bug. Tested on a PS Vita.
- A release shows its tag (
v0.5.9b); a build made from later commits shows the tag plus the number of commits and the commit (for examplev0.5.9b-3-g1a2b3c4); a build without git history showsunknown.
UIs pending hardware test
Built, not yet checked on a PS Vita (from this release and earlier ones; detail in docs/guides/UI_HARDWARE_TESTS.md):
- The GBA theme page (choose a POKéMON, marts, forget a move, Move Relearner, naming keyboard, Easy Chat, player's PC, berry choice, Nuzlocke), and the menu themes on every screen.
- The full-screen GBA scenes in the GBA's own format: slots, roulette, contest, Pokéblock eating, Battle Dome and Factory, the berry tag, the Hall of Fame, the diploma, the wall clock, the starter choice, Mystery Gift and the link card and trade menu.
- The field's new boxes and scrolling lists: Lilycove Dept. Store, elevator, Battle Frontier exchange and tutors.
- Favor Lady, Quiz Lady and Apprentice bags, the Move Deleter, the whole Move Relearner, CHECK TAG for berries in the bag.
- FEED from the PokéNav CONDITION tab in a window, and every open menu coming back after a GBA scene.
- The PC boxes' QUICK cursor in every mode.
- Reading and writing mail, the Bard's song and the Quiz Lady in Easy Chat; the wall maps and Mr. Stone's PokéNav tutorial; the Frontier Pass's MAP and RECORD pages.
- The Battle Pyramid (START menu, PYRAMID BAG, the full-bag steps on leaving) and the Battle Frontier / Battle Tents half-party choice.
- The mirrored dialogue boxes in 2D evolution, egg-hatch and trade scenes.
For developers
- The version string comes from
git describe --tags --always, generated on every build bytools/version/game_version.cmake(CMake targetgame_version); only that one file recompiles when the version changes.
pokeemerald VITA 0.5.9
Performance note (CPU 444 MHz / GPU 222 MHz): the game sets the Vita's clocks itself to CPU 444 MHz, bus 222 MHz, GPU 222 MHz and GPU crossbar 166 MHz. At these clocks HD-2D HIGH now holds an almost steady 60 FPS in most places (OPTIONS > GRAPHICS > FRAMERATE 60). Disable overclock plugins (and any plugin that lowers the clocks) for this game: the numbers above depend on these clocks.
Hardware testing: the items marked Pending hardware test are built but not yet checked on a PS Vita. The full checklist is in
docs/guides/UI_HARDWARE_TESTS.md; please report crashes with thepsp2core-*.psp2dmpfromux0:data/(DEBUGGING.md).
HD-2D performance (HIGH: from ~29.5 ms to ~20.7 ms of GPU per frame, measured on a Vita)
- Post-processing shaders read their textures the fast way (
voxel_hd2d_shader.c): every post shader (composite, downsample, blur, bloom) computed its texture coordinates per pixel, which makes each read wait. The coordinates now come from the vertex shader. The full-screen composite went from ~10 ms to ~5.7 ms of GPU. - Cheaper post pass, same image: the downsample takes one filtered read instead of four; the composite's colour grade is reduced to its simplest form with per-frame factors set on the CPU; the field no longer computes battle-only effects; a redundant clear of the bloom target is gone; the night moonlight / screen fade layer is applied inside the post pass instead of as an extra full-screen layer.
- Light shafts: the sun and moon shafts are computed once per frame along the one axis they vary on (a small profile texture made by the original shader code), then drawn in one pass. Same beams, a fraction of the cost, the same at every hour.
- Bloom blur in one pass (HIGH): one 8-sample pass with the reach of the two passes it replaces (the halo shape is very slightly different), one render target less per frame.
- CPU spikes: animated water and flower tiles are cached through their animation cycle instead of being recomposed each step (p95 8.3 → 5.6 ms); a character's new animation frame rewrites only its own sprite slot, not eight (p95 3.4 → 0.9 ms).
- Tested: HIGH at an almost steady 60 FPS at 444 / 222 MHz; the light shafts are visible.
Day/night cycle: one schedule for everything
- One clock, one state per frame (
vita_daynight.c): light and tint, shadows, the sun and moon on screen (shafts, sky bloom, glints), windows and street lamps, fireflies and the HD-2D colour grade all read the same per-frame state built from one schedule. Before, five different timelines disagreed (for example, windows started to light up at 15:00 and the night ended at 02:00). - Schedule: dawn light from 06:00, sunrise 07:00, morning light 08:00, sun at its highest 12:00-14:00, evening from 18:00 (warmer light; windows and lamps start to light up), sunset colours 19:30, night at 21:00 (the sun sets, the moon rises; it sets at sunrise).
- Wild encounter phases follow the same schedule: morning 07:00-12:00, day 12:00-21:00, night 21:00-07:00.
- Bugfixes: with the day/night option off, the shafts no longer follow the real clock (moon shafts over a daylit world); the clock's light could be rewritten from the game thread in the middle of a frame.
- Pending hardware test: the whole cycle on the new schedule, and the encounter phases.
New native UI and GBA screens
- GBA theme page for the screens without a GBA layout (choose a POKéMON, marts, forget a move, Move Relearner, naming keyboard, Easy Chat, player's PC, berry choice, Nuzlocke): GBA top bar, section backdrop, tab name and help badges, always fitting the bar. Pending hardware test.
- Every full-screen GBA screen in the GBA's own format (816×544, black side bars): the Hall of Fame, the diploma, the wall clock, the starter choice, Mystery Gift / e-Reader and Mystery Event, the link trainer card and trade menu. The title's main menu and Birch's speech stay 16:9, as the intro. Pending hardware test.
- PC boxes: QUICK cursor (SELECT) in every mode: ✕ withdraws, stores, moves or takes / gives at once, as on the GBA. Pending hardware test.
- Bugfixes: the Move Relearner's result waits for the level-up fanfare (Pending hardware test); the Pokéblock case could read past its list after a TOSS while a block was held; the field list mirror could grow past the screen.
UIs pending hardware test
Built, not yet checked on a PS Vita (from this release and earlier ones; detail in docs/guides/UI_HARDWARE_TESTS.md):
- The GBA theme on every screen listed above, and the menu themes on every screen.
- The full-screen GBA scenes in the GBA's own format: slots, roulette, contest, Pokéblock eating, Battle Dome and Factory, the berry tag, the Hall of Fame, the diploma, the wall clock, the starter choice, Mystery Gift and the link card and trade menu.
- The field's new boxes and scrolling lists: Lilycove Dept. Store, elevator, Battle Frontier exchange and tutors.
- Favor Lady, Quiz Lady and Apprentice bags, the Move Deleter, the whole Move Relearner, CHECK TAG for berries in the bag.
- FEED from the PokéNav CONDITION tab in a window, and every open menu coming back after a GBA scene.
- The PC boxes' QUICK cursor in every mode.
- Reading and writing mail, the Bard's song and the Quiz Lady in Easy Chat; the wall maps and Mr. Stone's PokéNav tutorial; the Frontier Pass's MAP and RECORD pages.
- The Battle Pyramid (START menu, PYRAMID BAG, the full-bag steps on leaving) and the Battle Frontier / Battle Tents half-party choice.
- The mirrored dialogue boxes in 2D evolution, egg-hatch and trade scenes.
For developers
- Measuring build (
build_vita.ps1 -Probe, CMakeVITA_GPU_PROBE): GPU time per render target, an automatic bench that runs when the player stands still (HIGH, HIGH without each effect, MED, LOW, OFF; a bar at the top of the screen shows its progress), and per-frame scene columns (map, weather, daylight, lamps…) so one session's log can be split by place. Seedocs/guides/DEBUGGING.md.
pokeemerald VITA 0.5.8
Hardware testing: most of the new native screens in this release are built but not yet tested on a PS Vita. Each item below says whether it was checked on hardware (Tested) or is still pending (Pending hardware test). The full checklist is in
docs/guides/UI_HARDWARE_TESTS.md; please report crashes with thepsp2core-*.psp2dmpfromux0:data/(DEBUGGING.md).
Build fix
- Build failed at 99% on a clean clone (#9) (
tools/doc_check/check_docs.py,docs/reference/RENDERING.md):RENDERING.mdcitedvglBufferData, a vitaGL call the code no longer uses, so the documentation check (doc_check, required byeboot.bin) stopped the build before the.vpk.- The check passed on the author's machine because private, git-ignored files still contained that name. It now looks up symbols only in files git tracks, so a local build checks exactly what a public clone sees. Cited file paths still come from the whole tree, so files generated before the build (
assets/ui/intro_margins.bin,assets/ui2/ui_atlas.bin) still count.
New native UI (replacing GBA menus)
- Safari Zone (
ui_battle_hud.c, START menu):- Tested: The battle box shows SAFARI BALLS and the balls left; RETIRE asks once; the START menu shows a Safari Ball with balls and steps left.
- Pokéblock case (
ui_scr_pokeblock.c,pokeblock.cPokeblockCase_*ForUi):- Tested: Native POKéBLOCK CASE in its four modes (bag/SELECT, Safari battle, Safari feeder, Contest Lady); USE, TOSS, moving blocks; FEED plays the GBA eating scene.
- Pending hardware test: FEED from the PokéNav CONDITION tab plays the eating scene in a window inside the theme's frame (
UiCore_CloseToSceneInWindow), then the PokéNav comes back. - Pending hardware test: After feeding or CHECK TAG, every menu that was open (case, bag, START menu) comes back as it was.
- Post-catch Pokédex page:
- Tested: Catching a new species shows the native Pokédex detail page over the darkened battle, then the nickname question.
- Script bags and party choices (
item_menu.cItemMenu_*ForUi, "Choose a POKéMON" kinds):- Tested: Planting a berry (BERRIES only); CONTEST entry and MOVE RELEARNER party choices.
- Pending hardware test: Favor Lady (GIVE), Quiz Lady (CONFIRM) and Apprentice (SHOW) open the native BAG in CHOOSE mode; important items refused.
- Move Deleter and Move Relearner (
move_relearner.cMoveRelearner_*ForUi):- Pending hardware test: The Move Deleter uses the native FORGET screen with no new-move row.
- Pending hardware test: Native Move Relearner list: teach, delete an older move through FORGET and back, give up ("Stop trying to teach?").
- CHECK TAG in the bag:
- Pending hardware test: Opens the GBA berry tag and comes back to the BERRIES pocket; berry actions (CHECK TAG, USE, GIVE, TOSS).
- PC SUMMARY (
UiGame_ViewBox):- Tested: The party summary on a PC box: ↑/↓ through it (empty slots skipped), move order written back to the box, cursor on the last one viewed.
- Easy Chat (
EasyChat_Ui*):- Pending hardware test: Writing a mail (9 words), the Bard's song in Mauville (YES keeps the new song, NO restores the old one) and the Quiz Lady in Lilycove (answer and make a quiz).
- PokéNav in fixed modes:
- Pending hardware test: Wall maps (
FieldShowRegionMap) open the native Hoenn map only. - Pending hardware test: Mr. Stone's PokéNav tutorial in Rustboro: MATCH CALL only, ○ refused until the call.
- Pending hardware test: Wall maps (
- Trainer card with the Frontier Pass:
- Pending hardware test: MAP page (map built from the pass graphics, blinking marker, descriptions) and RECORD page (plays the recorded battle and returns to the card).
- Battle Pyramid (START hub, PYRAMID BAG):
- Pending hardware test: START on a floor: POKéMON, BAG, card, REST (saves, then the game's soft reset), RETIRE (asks with NO first) and OPTION; floor shown in the status.
- Pending hardware test: The PYRAMID BAG in the native bag on the floors and in battle; giving and taking held items uses it.
- Pending hardware test: Leaving with a full PYRAMID BAG: TOSS-only bag, and TAKE ITEM / TOSS per Pokémon.
- Battle Frontier and Battle Tents half-party choice:
- Pending hardware test: Enter / take out in order (FIRST, SECOND...), NOT ABLE refused, CONFIRM with the game's checks, ○ asks "Cancel the challenge?". Link half-party choices stay GBA.
GBA scenes in their own format
- Tested: The contest is GBA only now (the old overlay was removed) and shows nothing of the new UI over it.
- Tested: The Berry Blender is drawn at 816×544 with black side bars.
- Pending hardware test: The other full-screen GBA scenes (slots, roulette, contest, Pokéblock eating, Battle Dome, Battle Factory, berry tag, system screens) drawn at 816×544 with black side bars and the theme's GBA window frame; the format is latched so it never flickers when a scene starts or ends; a soft reset during a scene leaves nothing behind.
- Tested: The Game Corner's coins box and prize lists are the new UI's.
- Pending hardware test: The other native mirrors of the field (money box, scrolling lists of the Lilycove Dept. Store and elevator, Frontier exchange and tutors), with touch on their rows.
Bugfixes
- Reading a mail from the bag crashed (
ClearMail): the bag's blank mail was zero-filled, but the GBA string end is0xFF, so the signature copy ran past the mail and overwrote the read screen. Pending re-test on hardware (bag, party Pokémon and PC mailbox). - Bounds found in the UI audit: the bag's action list is sized for every action (BERRIES fills 4 since CHECK TAG); the summary never reads past the party or the box copy; a failed summary-only push no longer leaves the next party screen in summary-only mode.
- Review fixes: script bags read the right location's rules; the FEED result no longer shows the wrong block after the case is compacted; the Move Relearner's "Stop trying to teach?" flow matches the GBA; relearnable move counts are computed once per opening instead of every frame.
Known problems
- The Move Relearner can be closed before its fanfare ends.
- Link and recorded battles, Wally's catching tutorial and the Battle Arena judgment keep the GBA battle HUD.
Verification
- Vita build (
build_vita.ps1):core_boundary0 violations,doc_check0 errors; the documentation check also passes on a fresh clone.
pokeemerald VITA 0.5.7c
Bugfixes & Battle Hardening
- Natural Cure AI switch crash (
C2-12828-1/ Data Abort) (src/battle_ai_switch_items.c):- Fixed
ShouldSwitchIfNaturalCure(), where a sleeping AI Pokémon with Natural Cure (≥50% HP) andgLastLandedMoves == MOVE_UNAVAILABLE(0xFFFF) had a 50% chance to fall through intoelse if (gBattleMoves[0xFFFF].power == 0)and trigger a Data Abort on PS Vita (affecting Winona's Swablu/Altaria in Fortree Gym, Wally's Altaria/Roselia in Victory Road, and Battle Frontier trainers).
- Fixed
- Double-battle targeting & Battle HUD bounds guards (
src/battle_util.c,src/platform/ui/ui_battle_hud.c):- Guarded
GetMoveTarget()against indexinggBattleMoves[gChosenMove]out of bounds when checkingMOVE_TARGET_RANDOMin double battles (e.g. Mossdeep Gym / Battle Tower Doubles). - Normalized out-of-range move IDs to
MOVE_NONEin both the GBA and themed Battle HUD move panels (MovesGba/MovesThemed) before looking upUiGame_MoveNameorgBattleMoves[].
- Guarded
- Includes all
v0.5.7bfixes (#8):AI_SanitizeMoveId()insrc/battle_ai_script_commands.cpreventingMOVE_UNAVAILABLE(0xFFFF) from enteringBATTLE_HISTORY->usedMoves[]or indexinggBattleMoves[]/gMoveCategories[](fixes Wally outside Mauville Gym, League, and Battle Frontier/Pike status turns).
Verification
- Full audit of all 8 Hoenn Gyms, the Pokémon League (Victory Road Wally, Elite Four, Champion), Battle Dome tournaments, and all 7 Battle Frontier facilities completed with zero regressions to GBA battle mechanics.
- Vita build (
build_vita.ps1) andtools/core_boundarypassed with 0 warnings and 0 violations.
pokeemerald VITA 0.5.7b
Bugfixes
- Battle AI crash (
C2-12828-1/ Data Abort) after a failed turn (#8) (src/battle_ai_script_commands.c):- When a battler failed to execute a move (e.g. hitting itself in confusion, full paralysis, sleep, flinch, disobedience), the battle engine wrote
MOVE_UNAVAILABLE(0xFFFF) intogLastMoves[]. RecordLastUsedMoveByTarget()stored that sentinel directly inBATTLE_HISTORY->usedMoves[], and AI commands (Cmd_if_target_may_use_categorywith Physical/Special Split enabled, as well asCmd_get_move_{type,power,effect,category}_from_result,Cmd_if_has_move_with_effect, andCmd_if_doesnt_have_move_with_effect) indexedgBattleMoves[0xFFFF]out of bounds past the end of.bss, triggering a Data Abort on PS Vita (for example against Wally's Ralts outside Mauville Gym).- Added
AI_SanitizeMoveId()to clamp out-of-range move sentinels toMOVE_NONEat the AI boundary (RecordLastUsedMoveByTarget,Cmd_get_last_used_battler_move, and allgBattleMoves[]lookups inbattle_ai_script_commands.c) without altering core battle move mechanics (Mimic, Disable, Encore, Torment, Sketch).
- When a battler failed to execute a move (e.g. hitting itself in confusion, full paralysis, sleep, flinch, disobedience), the battle engine wrote
pokeemerald VITA 0.5.7
Settings: the renderer options moved to a new OPTIONS → GRAPHICS tab. Your existing
settings.txtkeeps its look: 30 FPS starts in HD-2D HIGH, 60 FPS in HD-2D OFF.
Recommended settings: with HD-2D HIGH, set FRAMERATE to 30 FPS for a smoother, steadier frame time. HD-2D LOW holds 60 FPS. HD-2D MED is experimental and not recommended yet.
Features
- GRAPHICS options tab (
vita_extras.c/.h,ui_scr_options.c,voxel_renderer.c): The framerate and the HD-2D look are now separate options.- RENDERER: 3D VOXEL DIORAMA, FRAMERATE (30 / 60 FPS, pacing only), HD-2D (OFF / LOW / MED / HIGH) and CAMERA ANGLE (35° / 25°).
- HD-2D EFFECTS: WORLD BLOOM, LIGHT SHAFTS, SKY BLOOM and DEPTH OF FIELD.
- HD-2D levels: LOW keeps the world effects (relief, foliage sway, flowers, particles, fireflies, surface FX) without post-processing; MED adds a lighter post pass (bloom, sky bloom, shafts, grading); HIGH is the full post pass, as 30 FPS HD-2D was. Any framerate can be combined with any level.
- Night street lamps rebuilt (
voxel_lamps.c/.h,voxel_sign.c,voxel_renderer.c,voxel_pointlights.c):- Lantern glass and ground light pools are now built with each chunk on Core 2 and drawn from its VBO, with the night's glow as a constant colour: no per-frame vertex work, and no more stall when crossing maps at night (the whole world's lamps used to be rebuilt on Core 0 after waiting for the chunk worker).
- One camera-facing halo per lamp (the old halo was a fixed quad that warped with the camera angle).
- Smoother pools: 64×64 RGBA8 falloff texture (was 16×16 RGBA5551, drawn in rings), drawn with a depth offset (no more z-fighting).
- Characters near a lamp now really receive its light: a steady warm tint, from feet to head, added after the night veil (it used to be lost on near-white sprites and dimmed by the veil), in every HD-2D level.
- Lower HD-2D levels spend less on lamps (smaller halo, fewer lights on characters, one sample per sprite at OFF).
- Lilycove City beacon now lights the night: halo, light on characters and a pool on the ground round its foot.
Bugfixes
- Depth of field no longer turns off bloom, sky bloom and light shafts (
voxel_renderer.c): With DIORAMA BLUR (DOF) off, every HD-2D post effect was silently skipped. DoF now only controls the blurred bands (and skips their blur work when off). A failure to allocate the post-processing targets at boot is now logged. - Bad Eggs in Pacifidlog / Route 130-131 (multicore race): Core 0 read the party every 3D frame (Mirage Island check) while Core 1 decrypted it. The renderer now only sees the game through a per-frame GameFrame published by Core 1 (
include/platform/game_frame.h), and a build-time check (tools/core_boundary) refuses to produce an eboot if Core 0 or Core 2 reach game state outside it.
Performance & Vita Architecture
- Night lamps cost a few draw calls per frame instead of a CPU re-pack and upload of every lamp in the world; their geometry is built off the critical path on Core 2.
- The lamps' light on characters is one extra draw of the lit sprites only.
Upstream Attribution
- Street lamp detection and lantern/pool geometry come from Pokemon Emerald 3DS (CC BY-NC-SA 4.0, see
NOTICE.md). Lamp colour and HD-2D look references: Bravely Emerald.