Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Box Expansion #102

Merged
merged 13 commits into from
Jun 11, 2024
Merged

Feature: Box Expansion #102

merged 13 commits into from
Jun 11, 2024

Conversation

VeryTwistedSpoon
Copy link

image

Feature: Box Expansion 📦

  • Expands the vanilla limit of 40 boxes to 80 boxes to support NatDex space requirements.
  • Vanilla saves will have their base 40 boxes copied and stored into the new 80 box array through migration work.
  • To prevent issues with pre-load initialization, PlayerWork is injected through trampolining off of FieldCanvas$$Start. This is not the case if migration is performed which it can be successfully overwritten during initialization without issue.
  • BoxList view updated and re-scaled to display all 80 boxes which can all be functionally navigated to.
  • Requires updated Box UI assetbundle from RomFS repo

- BoxInfinityScrollItem.h
- BoxTray.h
- BoxWindow.h
- Missing pragma argument
- Not required in the actual Box Expansion code but handy header to have
- 99% functional when utilising Vanilla migration
- Currently cannot load game without migration, however FromBytes() does successfully finish
- injectPlayerWork() is trampolined onto FieldCanvas$$Start which injects Box Expansion into the PlayerWork post-startup.
-
- Base 40 boxes successfully expanded to 80 boxes.
- Migration work implemented. Vanilla saves will have their base 40 boxes copied and stored into the new 80 box array.
- To prevent issues with pre-load initialization, Playerwork is injected through trampolining off of FieldCanvas$$Start. This is not the case if migration is performed which it can be successfully overwritten during initialization without issue.
- BoxList view updated and re-scaled to display all 80 boxes which can be functionally navigated to.
- Requires updated Box UI assetbundle from RomFS repo
@VeryTwistedSpoon VeryTwistedSpoon added the feature New feature label Jun 10, 2024
@VeryTwistedSpoon VeryTwistedSpoon self-assigned this Jun 10, 2024
@VeryTwistedSpoon VeryTwistedSpoon linked an issue Jun 10, 2024 that may be closed by this pull request
src/mod/externals/Dpr/UI/BoxListNavigate.h Outdated Show resolved Hide resolved
src/mod/externals/Dpr/UI/BoxWindow.h Outdated Show resolved Hide resolved
src/mod/externals/Dpr/UI/BoxWindow.h Outdated Show resolved Hide resolved
src/mod/externals/Dpr/UI/BoxWindow.h Outdated Show resolved Hide resolved
src/mod/externals/Dpr/UI/BoxWindow.h Outdated Show resolved Hide resolved
src/mod/save/data/box/box.h Outdated Show resolved Hide resolved
- Unified PlayerPrefsProvider_PlayerWork_.h & PlayerPrefsProvider_ViewerSettings_.h to instead use a template such as other classes such as List
src/mod/save/save_hooks.cpp Outdated Show resolved Hide resolved
- Fixed PlayerPrefsProvider.h
@VeryTwistedSpoon VeryTwistedSpoon merged commit 67429b6 into master Jun 11, 2024
@VeryTwistedSpoon VeryTwistedSpoon deleted the box-expansion branch June 11, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend the Box System to hold more mons
2 participants