Skip to content

Expose live native GSC Pokemon and split-stat fields - #399

Closed
Roxas2712 wants to merge 70 commits into
UNDERdecoded:mainfrom
Roxas2712:codex/upstream-gen2-mon-fields
Closed

Roxas2712 wants to merge 70 commits into
UNDERdecoded:mainfrom
Roxas2712:codex/upstream-gen2-mon-fields

Conversation

@Roxas2712

Copy link
Copy Markdown

Source GSC consumers read Pokemon maxHp/name/types and specialAttack/specialDefense, while the shared native engine stores stats.hp and spatk/spdef. Publish these names on the actual native records, with live native writes, stat replacement and registry edits; no duplicate HP counter, Pokemon or serialized helper fields. Preserve existing custom behavior and explicit raw fields, while protected owners can decline decoration. Strict SDK schemas accept native split-stat patches within1..255 integer bounds.

This adaptation uses this older host's actual Pokemon RNG constructor, BattleState.makeBattler and generic Loader registry fold. It does not fabricate the newer fork's Battler extraction, live source model, identity helpers or options constructor. The host has no semantic-checkpoint subsystem; that integration is separate fork work, not claimed here. The plain helper retains exact native-wrapper authentication and native-slot rebinding without traversing mod storage.

Independent frozen older-host tests on6985a377:184 data checks without LOVE,170 actual native birth/save/validation/combat/SDK/schema checks across15 registered editions, plus4454 frame-query,116 chrome and1031 position regressions. Initial c0ea73d failed the real SDK patch because the nested schema rejected spatk; the schema was corrected and the actual loader test rerun. No full older-host/GPU/unchanged-mod/final-release acceptance is claimed.

Stacked on #398 (screen position) and its #397/#383/#224 viewport/chrome prerequisites. No upstream merge is performed. The standalone source battle constructor/turn executor remains open. No mod, protected installation or player profile is edited.

Independently owned integration/tests by Roxas2712 are offered under https://github.com/Roxas2712/Gen2Recomped/blob/main/LICENSE-ROXAS2712.md, including the specific Cedric / UNDERdecoded permission with visible credit. Existing engine authors' rights, notices and earlier grants remain effective. See docs/native-gen2-mon-fields.md.

# Conflicts:
#	src/mods/Loader.lua
# Conflicts:
#	docs/modding.md
#	src/mods/Loader.lua
#	src/world/WorldAPI.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant