Homebrew Discussion SM3DAS: Research and Development

D

Deleted User

Guest
the bios is probably the gamecube splash screen when you load a cube game on the real system.
Thats exactly it. Almost all emulators use the same term Bios Startup, or something similar, for the splash screen/Bios Menu.

We know this rom is modified, but I sincerely hope that Sunshine is not a recompiled rom, like Galaxy is, though I've not heard of any word about that yet.
 

Nareik

Member
Newcomer
Joined
Oct 12, 2019
Messages
6
Trophies
0
Age
27
XP
141
Country
United Kingdom
So I changed all the info to get twilight princess to boot (in theory) , like setting DolHash to false, changing the rom information to the proper values, etc. Will test it out now.
Did you rebuild the NSP with the Twilight Princess ISO or can you point the emulator to load it outside of the NSP?
 

wartutor

Well-Known Member
Member
Joined
Dec 25, 2012
Messages
721
Trophies
1
Age
44
XP
2,022
Country
United States
Damn i cant wait till my copy comes in the mail and i can start messing with this . Way it looks someone may figure it out before i get a chance to even try lol.
 

Tomobobo

Champion.
Member
Joined
Nov 26, 2005
Messages
1,304
Trophies
1
XP
1,873
Country
United States
Yeah I just tried setting up a NewGame "profile". Put animal crossing in, setup rom.json like so:

Code:
{
  "UID": "NewGame",
  "ROM": [
    "rom:/MarioSunshine/animalcrossing.gcm"
  ]
}

Setup a file in data/database/config/NewGame.config as:


Code:
    "Hagi" : {
            "Boot" :
                {
                  
                    "LoadBios" : false
                },

          
and the input stuff


Put a blank .jason called NewGame.json in the folder data/database/hagi/NewGame.json.

Duplicated the mario save file and put A.sav in data/saves/NewGame/

The replacement game didn't boot.

Stripping out all the info from the mario config files and just pointing the rom.json to a replacement .gcm doesn't boot.
 
Last edited by Tomobobo,

Tomobobo

Champion.
Member
Joined
Nov 26, 2005
Messages
1,304
Trophies
1
XP
1,873
Country
United States
The hagi.config and probably hagi-override.config in root seem to have effects on the game booting, at least with everything removed the game doesn't boot. So those files seem to have some relevance as well.

The contents of hagi-override.config are seemingly unimportant, they seem to just blank out a single input. But removing this stuff breaks sunshine from booting.

I'll work on ripping hagi.config.
 
Last edited by Tomobobo,

Psi-hate

GBATemp's Official Psi-Hater
OP
Member
Joined
Dec 14, 2014
Messages
1,745
Trophies
1
XP
3,100
Country
United States
Very weird.. I'm getting an error occurred regardless if I edit the romfs or not. I copied the clean dump of the romfs to layeredfs and it's still crashing when loading the game. What the heck lol
 
D

Deleted User

Guest
I think folks should focus on trying to get files booting from within it. Adding in the complexity of layeredFS isn't going to help progress all that much (i would imagine).
 

Psi-hate

GBATemp's Official Psi-Hater
OP
Member
Joined
Dec 14, 2014
Messages
1,745
Trophies
1
XP
3,100
Country
United States
I think folks should focus on trying to get files booting from within it. Adding in the complexity of layeredFS isn't going to help progress all that much (i would imagine).
Recompiling the nsp every time would suck tho, let alone installing it :P
 

Tomobobo

Champion.
Member
Joined
Nov 26, 2005
Messages
1,304
Trophies
1
XP
1,873
Country
United States
LayerdFS is just super helpful to be able to change stuff quickly, I'm sure the end goal would be to have a standalone emu with a gui frontend and all the bells and whistles but right now LayeredFS is simply the only way you're gonna be messing with the files at all.

Got an actual Atmosphere crash while removing the audio stuff from hagi.config, I'm thinking that file has the most influence on the general operation of the emu.
 

Psi-hate

GBATemp's Official Psi-Hater
OP
Member
Joined
Dec 14, 2014
Messages
1,745
Trophies
1
XP
3,100
Country
United States
Yeah, very odd that my layeredFS is crashing despite it being all clean and directly ripped from the NSP with no edits. I've restarted my switch several times too, hmm.
 
D

Deleted User

Guest
Stupid Question, how does one extract all the files from the nsp on their computer? (I don't have my switch here atm).

I'm gonna try extract the sunshine.gcm file and hex compare it to older roms, try spot some differences.
 

24hrjellymachine

New Member
Newbie
Joined
Sep 16, 2020
Messages
2
Trophies
0
Age
33
XP
44
Country
United States
So,
rom.json
{
"UID": "MarioSunshine",
"ROM": [
"rom:/MarioSunshine/Super_Mario_Sunshine_Stardust-trimmed.gcm"
]
}
Super_Mario_Sunshine_Stardust-trimmed.hash
{}​

MarioSunshine.json
{
"Info": {
"GCM": {
},
},
}​

It is absolutely ignoring hash checks of the gcm file itself, but it may still be checking internals.
I confirmed this by rebuilding the stock Super_Mario_Sunshine_Stardust-trimmed.gcm with GCIT, and it boots.
That is, a gcm unique from the original is booting, isn't that nice?
So from here I'll be focusing on dissecting this gcm to see if I can't figure out what makes it tic.
It may in fact still have those hashes stored elsewhere, and be checking them against files within the gcm, but I doubt that. Right now, I think it's something special going on in this image.

Edit: GCIT, not GITS
 
Last edited by 24hrjellymachine,
D

Deleted User

Guest
So,
rom.json
{
"UID": "MarioSunshine",
"ROM": [
"rom:/MarioSunshine/Super_Mario_Sunshine_Stardust-trimmed.gcm"
]
}
Super_Mario_Sunshine_Stardust-trimmed.hash
{}​

MarioSunshine.json
{
"Info": {
"GCM": {
},
},
}​

It is absolutely ignoring hash checks of the gcm file itself, but it may still be checking internals.
I confirmed this by rebuilding the stock Super_Mario_Sunshine_Stardust-trimmed.gcm with GITS, and it boots.
So from here I'll be focusing on dissecting this gcm to see if I can't figure out what makes it tic.
Think this was discussed in the other thread. Someone mentioned that it might be checking something inside the gcm file.

Whatever is going on, it's going on in there.

Hell, maybe that's not a "hash" so to speak, and it's a damn string that's been injected at a specific address cus some dummy thought it would catch people out.

There's also been mentions about removing the first 100 bits (bytes? i confuse these the whole time), but never specified the gcm file, the boot.dol, ect ect.
 

24hrjellymachine

New Member
Newbie
Joined
Sep 16, 2020
Messages
2
Trophies
0
Age
33
XP
44
Country
United States
Distinctions between original EU Super Mario Sunshine and the one included in SM3DAS.
  • marioEU.MAP
  • apploader.img
  • boot.bin
  • fst.bin
  • main.dol

Nothing surprising there, disappointing though, it'd be nice if it were one change right?

I haven't noted the video files, you'll find the thp files on the Switch to only contain audio, the real videos are loaded externally, we knew this already.
 
  • Like
Reactions: Psi-hate
General chit-chat
Help Users
  • Veho @ Veho:
    Lasenge.
  • Veho @ Veho:
    Once again I fell down the martial arts rabbit hole and am plumbing the murky depths of the internet's various martial arts and fighting crafts echo chambers.
  • Veho @ Veho:
    I like to get up to speed on that every now and then, see what the newest high wisdom everyone is spouting nowadays.
  • Veho @ Veho:
    If you're not actively involved and only get up to speed every few years or so, you can see the tide of public opinion flapping worse than my dong while I'm skipping naked down a hallway.
  • Veho @ Veho:
    And the "established wisdom" changes every decade.
  • Veho @ Veho:
    England is installing a new king.
  • Veho @ Veho:
    Their previous monarch has reached End Of Life and is being replaced.
  • Veho @ Veho:
    Like most forced updates, this one has terrible support and was very poorly received by the userbase.
  • Psionic Roshambo @ Psionic Roshambo:
    And mostly just adds useless features
  • Psionic Roshambo @ Psionic Roshambo:
    We need AI overlords
  • Veho @ Veho:
    Someone mowed a giant dick into the lawn in front of Westminster Abbey.
  • Veho @ Veho:
    Just in time for the coronation.
  • Veho @ Veho:
    That's what I said, maybe they were just doing a recreation of the Cerne Abbas giant but didn't finish it in time.
  • Veho @ Veho:
    The Abbey building was supposed to be the hat.
  • H @ hecker_isaac:
    goodmorning peeps
  • Psionic Roshambo @ Psionic Roshambo:
    Bell end lol
  • K3N1 @ K3N1:
    I got gas
  • Psionic Roshambo @ Psionic Roshambo:
    Save it Ken stuff is expensive lol
  • K3N1 @ K3N1:
    I save it for Walmart
  • Psionic Roshambo @ Psionic Roshambo:
    https://imgur.com/gallery/ZfBfPgk 100 million... Can think of better uses but OK lol
  • K3N1 @ K3N1:
    $35 just for drinks milk and bread today
  • K3N1 @ K3N1:
    I like how this is #2 in headphones Perytong Sleep Headphones Wireless, Bluetooth Sports Headband Headphones with Ultra-Thin HD Stereo Speakers Perfect for Sleeping,Workout,Jogging,Yoga,Insomnia, Air Travel, Meditation, Grey https://a.co/d/fPOFL4J
    K3N1 @ K3N1: I like how this is #2 in headphones Perytong Sleep Headphones Wireless, Bluetooth Sports...