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
28
XP
151
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
759
Trophies
1
Age
45
XP
2,408
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,310
Trophies
1
XP
2,150
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,310
Trophies
1
XP
2,150
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,749
Trophies
1
XP
3,420
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,749
Trophies
1
XP
3,420
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,310
Trophies
1
XP
2,150
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,749
Trophies
1
XP
3,420
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
34
XP
55
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
34
XP
55
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

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Going with that right now with a dental claim morons put the wrong company name and rejected claims been on hold an hour for the claims department
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, BTW is it better to go usb or bt for these mini Pcs figure you may know since you play with rack systems so much
  • Sicklyboy @ Sicklyboy:
    Counting my blessings that my insurance hasn't caused me really any headache (yet, at least) despite the fact that I've been getting way more appointments and what not recently due
  • Sicklyboy @ Sicklyboy:
    @K3Nv2, what do you mean, what are you trying to do?
  • K3Nv2 @ K3Nv2:
    Just looking at a built in mouse pad keyboard combo
  • K3Nv2 @ K3Nv2:
    I loose the dongle constantly but they may have better connection with usb frequency
  • Sicklyboy @ Sicklyboy:
    Imo Bluetooth is always a option of last resort for me
  • Sicklyboy @ Sicklyboy:
    Except for phones because it tends to be pretty reliable there
  • K3Nv2 @ K3Nv2:
    I got a bad habit of taking out usb transmitter and loosing it because they can't you know print names on the damn things
  • Sicklyboy @ Sicklyboy:
    But any desktop OS, I've never had anything but frustration trying to get Bluetooth devices to work reliably and stable. It might pair and connect once, and then next time I go to use it I have to delete and re-pair it again
  • K3Nv2 @ K3Nv2:
    5.3 has been so good I think 6 is really going to make it stable
  • K3Nv2 @ K3Nv2:
    I remember how shit 3 was
  • Sicklyboy @ Sicklyboy:
    Ptouch labeler aren't terribly expensive, label shit yourself fam. This is the one I own and there are cheaper ones too https://www.amazon.com/Brother-P-Touch-PTH110BP-Portable-included/dp/B09QXYND6S
  • Sicklyboy @ Sicklyboy:
    Solves part of the problem, mixing up which dongle is which. Then you just have to not lose them lol
  • K3Nv2 @ K3Nv2:
    Double D would be proud
    +1
  • Sicklyboy @ Sicklyboy:
    Even my Xbox One controller I have it paired to my desktop over Bluetooth, it USUALLY works but sometimes it refuses to connect and I have to delete and re-pair it. Maddening
  • K3Nv2 @ K3Nv2:
    Gigabytes built in mobo bt/wifi pairs pretty decent
  • Sicklyboy @ Sicklyboy:
    That's what I'm using :(
  • K3Nv2 @ K3Nv2:
    Ran a driver update in device manager?
  • Sicklyboy @ Sicklyboy:
    Not recently but I think it's less a driver issue and more just Windows having a garbage Bluetooth stack
  • K3Nv2 @ K3Nv2:
    Could be I was having issues when I first upgraded it and didn't realiser gigabyte has specific driver revisions which is stupid
  • K3Nv2 @ K3Nv2:
    Which is married to the boards revision
  • Xdqwerty @ Xdqwerty:
    Made my first review
  • RedColoredStars @ RedColoredStars:
    I've gone years without ever removing a logitech usb transmitter. Across several replacements of keyboards and mice. It just stays put.
  • Sicklyboy @ Sicklyboy:
    tldr usb > bluetooth imo
    +1
    Sicklyboy @ Sicklyboy: tldr usb > bluetooth imo +1