Ok in an effort to speed up actually getting into the game that now doesn't take 21 minutes to finish, I started NULLing/redirecting the initial loading routine.
In the main loop the 0 bin calls a start up routine at 0x060454DC . That routine runs 2 timed "fade in -> hold -> fade out" sequences. These use the text of "Licensed by Sega..." and "programmed by Iguana..." I patched out that instruction at 0x659E from 8B 02 ()branch past if the intro has already run) to A0 02 (ALWAYS branch past it) . Basically the game skips the fading text from the start up sequence if the game is running an "attraction loop" this makes the game think its already displayed those screens and skips it.
You can do this with an action replay code:
1601659E A002
After the text screens, the main loop then calls 2 more routines once at start up. The first one loads the Acclaim logo the second loads the Iguana logo. The first instruction is at 0x65D0 and the second at 0x65D6 , I take the instruction and "null" it out. This makes the game skip the text, then skip the 2 logos and go right to the title screen.
you can also do this with 2 more action replay codes:
160165D0 0009
160165D6 0009
With these changes, the time from power on until title screen is about 9 seconds. Before the changes it was about 35 seconds.
This is all tested and working, Right now I'm trying to figure out 4MB cart support. I have it brute force loading the most common files that will fit on the cart but that adds 15 seconds back to the boot up time and only shaves about 3 seconds off the load screen after the "tonight's match up" screen. From ~11 seconds down to ~8 seconds. Still chugging along. I'm just using the RAM Cart like a cache. So before the title screen, the game copies these files to the cart, then later when the game wants them it copies them from the cart instead of the CD. If the cart isnt detected, it goes right into the "skip to the title screen" stuff up there^
No idea if I'm doing it right /shrug
These are the 19 files its currently loading:
BALLS (in game ball sprites)
NETS (in game net sprites)
COURTTMP (Has an RNC compressed file in it at 0x060ea0 appears to be 128x28 pixel 32 bit file of stripes?) and uncompressed court tiles
COURTPRM (Has an RNC compressed file in it at 0x01ec0 that contains the font for the team names during the game)
REF (the in game ref sprites)
PLAYER (in game player sprites)
MUGS (team select portraits)
DUK index files for the halftime and ending videos
DUKBACK not sure what this is TBH probably more video stuffs
DUNKS in game dunk sprites and sequences
FONT its a mystery /s the font for the menus and what not
QUARTERS has 4 RNC compressed files in it that are 15 bit BGR images for the backgrounds between quarters
INTROSFX intro sounds 492K
ICONS The icons for the extra mode with stat boosts
SHOTCLOK numbers for the shotclock
TNAMES the audio files for the team names
ADDS the courtside advertisements
PRESGFX RNC compressed iguana logo, acclaim logo, game backgrounds and final score backgrounds.
LOADING (the grey on fire basketball image. this gets called a lot after tonight's match up, and between quarters, etc)
I might drop:
REF he's only there for the initial tip off so I don't see why I should keep him in cart ram but its only 19K
ICONS only show up if you turn them on in the options and its only 16K
TNAMES these load quick and are dropped during game play 98K
MUGS not used after selecting team, mugs are indexed during the game so I dont think its much of a save 400K
PRESGFX Will definitely drop the load of this as , since the iguana and acclaim logos are bypassed it just slows everything down. 1,023K
DUK I think this loading before its needed is better than preloading it all 184K
DUKBAK I think this loading before its needed is better than preloading it all 73K
LOADING it loads onto the cart after you see it in game, but its only 59K
INTROSFX having this in the list makes it load during the initial load then again right after before the title screen
I think removing MUGS and PRESGFX (~ 1,423K) will cut down a HUGE chunk of the 15 seconds added but Im trying to find the balance of fast preload with good saving on the load time between tonights match and the game and between quarters. Im also trying to find a way to speed up the load of PRESGFX by making a new file without the acclaim and iguana logos (should cut the file size by about half)
Its just RNC compression in mode 2 just like all the other compressed files on the disc.
Then I just open the extracted BINs in crystal tile and mess with dimensions and BPP till it makes sense. Had to black out the file path to avoid spoilers.
To find the court sprites, I dumped VDP2RAM, then took a the hex data from one of the tile graphics. Then I searched the vanilla files with byte_search and found. I love me some ateam tooling!