Jump to content

SMB4 League Import Tool (LIT) available now!


Recommended Posts

The SMB4 League Import Tool is designed to import, register, and manage custom leagues for Super Mega Baseball 4.

What took so long? Well, Super Mega Baseball 4 completely changed how custom content is stored, loaded, and organized. 

 

What exactly does this tool do? Well, the tool is designed to look for a folder containing master.sav and your league saves, then decompress them into sqlite databases it can write changes to. The league .sav files also get decompressed into sqlite databases so that the tool can pull the GUID and league names from those files and present them in the data table.

 

What it does when you register/unregister a league is just add/remove rows from the t_league_savedatas table in the master.sqlite file it created from decompressing your .sav to make those changes. When you're done making changes (i.e. clicking "Save Changes") it writes the changes to the sqlite database and recompresses the sqlite databases back to .sav format.

 

For some background, in SMB3, there was this monolithic savedata.sav file where the Super Mega League is embedded directly inside it, and there was a giant pool of custom teams you could generate/import/export, and you can assign those teams to any custom league template the game can generate.

 

It’s like the idea with SMB2 and 3 was to build an SMB-verse and every custom team was just another asset living inside that big sandbox. You had one save, one pool, and the game let you rearrange the pieces however you wanted. This is what made a lot of the tools simple to build and import things like full teams, and logos, etc, because it was all bound to a single save and you were just swapping pieces around in a single unified SMB-verse.

 

The way they approached SMB4 is a game design choice more akin to OOTP or FHM, where the game is just a platform where the leagues are loaded into. The leagues are all self-contained universes and not just a collection of parts, which is why you now have a master.sav and league-(GUID).sav files. The master.sav file just catalogs which leagues exist in the game and ensures that the metadata/GUIDs correspond with what the game provides by default, like shapes, logos, icons and the three leagues (SMB, Legends and Creators Classic).

The league saves are all basically isolated ecosystems. The teams, logos, players, rosters, schedules, etc are all self-contained.

 

As I'm finally able to dig into these things in my spare time, I'm going to try and figure out ways/build some tools to migrate some things from SMB3 to 4 properly. The data is pretty consistent in moving logos 1:1 for example.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...