B13rg / pokecrystal

Improved version of Pokémon Crystal, with added features, bug fixes, and QoL changes
1 stars 0 forks source link

Double save data size #108

Open B13rg opened 3 years ago

B13rg commented 3 years ago

Doubling the save data size will allow the game to save more data. This allows for more pokemon boxes, more held items, and more space for saving other things.

The save data is 32KB in total, and two copies of it are saved. On an MBC3 type cart, this takes up the entire RAM. This change would require the game be converted to an MBC5 type cart beforehand, to allow for more RAM space. (Issue #106 ).

Once converted to MBC5, the game will have 128K of space instead of 64K. The save file will be able to be 64K instead of 32K.

https://bulbapedia.bulbagarden.net/wiki/Save_data_structure_in_Generation_II

https://gbdev.gg8.se/wiki/articles/Memory_Bank_Controllers#MBC5_.28max_8MByte_ROM_and.2For_128KByte_RAM.29

B13rg commented 1 year ago

Using the Tpp1 MBC, we can get the space we need: #109 https://rgbds.gbdev.io/docs/master/rgbfix.1/#TPP1