tbrittain / SMB3Explorer

⚾ Super Mega Baseball 3 & 4 save data exporter
GNU General Public License v3.0
4 stars 3 forks source link

SMB4 league transfer ability #120

Open tbrittain opened 1 year ago

tbrittain commented 1 year ago

We have already built out a lot of this functionality in the other migration app. In reality, this will be a lot simpler than any of that though

Alternatively, create a dummy league, get the league ID that was created, and rename the league save game to correspond with it (could have a simple tutorial on how to do this on the wiki instead, with showing how to get the ID for the dummy league)

tbrittain commented 1 year ago
  1. Create dummy league in-game
  2. Connect to dummy league in SMB4 Explorer
  3. Display the league name: league guid associations
  4. User copies the name of the league in the save folder that correspond to the dummy league over to the league.sav AND the league.sav.bak AND the league.hash files
  5. ???
  6. Profit
tbrittain commented 1 year ago

The above strategy doesn't exactly work - the game crashes upon going to the Customization screen. I am not quite sure why this could be happening. To my knowledge, the only reference to each league is in that t_game_savedatas table. Unless there is something going on at the game process level instead of the database, in which case I am not sure what to do

spacemanspumoni commented 1 month ago

@tbrittain suppose one was just trying to edit players in an existing league - do you know how to rewrite the save and hash files without the game crashing?

tbrittain commented 1 month ago

For the .sav files, these are just zlib compressed versions of the save game .sqlite databases. Easy to decompress and read (like with this app), but less sure about compressing the .sqlite representation into the .sav file and having the game pick that up. Also not sure on the .hash file. I haven't looked into that one quite as much