Homebrew Discussion SM3DAS: Research and Development

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
you might want to narrow down which hash you're looking for. sha-1 is the most likely, but you can tell by number of characters.
 

Tomobobo

Champion.
Member
Joined
Nov 26, 2005
Messages
1,310
Trophies
1
XP
2,144
Country
United States
Setting load bios to true in data/database/config/MarioSunshine.config crash on boot, setting "UseDolHash" : false, as well as taking out hash data in rom.json the game boots. I'm gonna try to strip out stuff in the config files to see what's really needed to keep the game running.

What tools are you guys using to get all the different hashes?
 
  • Like
Reactions: KiiWii

SilverJolteon

Active Member
Newcomer
Joined
Oct 9, 2016
Messages
28
Trophies
0
Age
28
XP
162
Country
United States
Setting load bios to true in data/database/config/MarioSunshine.config crash on boot, setting "UseDolHash" : false, as well as taking out hash data in rom.json the game boots. I'm gonna try to strip out stuff in the config files to see what's really needed to keep the game running.

What tools are you guys using to get all the different hashes?
I'm using HxD, a hex editor.
 

CeeDee

fuckin dork
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,906
Country
United States
The sunshine .gcm provided does work on dolphin but at 25 fps for me and the videos play audio but only the subtitles, and some of the sound is weird like the name of the button is cut out. Also in the subtitles and the map screen there are references to keyboard inputs.View attachment 224999
View attachment 225000

And I think the hash will be of the .dol executable within the .gcm, not of the iso itself.
They used the PAL ROM as a base, hence it running at 25. The 'keyboard inputs' / unusual characters are done so they can overlay something like '^' with a switch button in the overlayed font, and the cut out voice clips are done so they don't have to rerecord lines or anything.
 

Psi-hate

GBATemp's Official Psi-Hater
OP
Member
Joined
Dec 14, 2014
Messages
1,749
Trophies
1
XP
3,405
Country
United States
I'm back online for a bit, I'll do some testing myself now.

--------------------- MERGED ---------------------------

So here:
Code:
010049900F546002\romfs\data\database\hagi\MarioSunshine.json

Inside the json is this:
Code:
{
    "Info": {
        "GCM": {
            "Name": "Super Mario Sunshine",
            "CountryCode": "EU",
            "GameID": "GMSP",
            "DVD": 0,
            "ROMVersion": 0,
            "GCMID": "GMSP.0.0"
        },
        "Hashes": {
            "exe": "f4425036b50590ea5c9357580abe922decf72012",
            "media": "763cae402272dd4fc428f45238c3ae040d6cb1a2",
            "full": "b23b9b9ee9365e26f8159c36ae80981412bf7372"
        },
        "UID": "MarioSunshine",
        "ShortName": "MarioSunshine"
    },
    "Mxic": {
        "Hashes": ["0xD7E6E7E5", "0x1E9791F9"]
    }
}

Mxic { Hashes } Look like ROM addresses to me. I'll see what's at there in the gcm.

EDIT: The GCM doesn't contain that much data. I'll search for those values just in case, at least.
 
Last edited by Psi-hate,

fate6

Haha, I killed a Pumpkin!
Member
Joined
Aug 2, 2014
Messages
419
Trophies
0
Location
[fate6@Canterlot ~]$
XP
2,259
Country
United States
For those wondering about the FPS, the PAL version of the game can run both 50hz/25FPS or 60hz/30FPS but to get the higher framerate you had to hold B on boot.

If you look in hagi conf iirc it has an option so the emu always sees the B being held thus it boots 60hz/30FPS on the switch.
I also saw a tweet about a sound that seemed like a censure bleep but after checking both PAL and NTSC copies in dolphin the sound is the same however the one on the switch is louder for some reason.

Also there seem to be bindings for keyboard and GC pad but the emu doesn't use them as its set to a different "port" that only has the switch, if someone could enable them and see if they work that would be neat.
 
Last edited by fate6,

Dakota_Pixel

Member
Newcomer
Joined
Feb 22, 2018
Messages
10
Trophies
0
XP
94
Country
United States
I found a reference to SHA1 in the "main" file you get when you extract the exefs for sunshine's nca

--------------------- MERGED ---------------------------

Would it at all be possible to disable the checks all together?
 

Attachments

  • Capturebuf.PNG
    Capturebuf.PNG
    320 KB · Views: 286
  • Like
Reactions: peteruk

peteruk

Well-Known Member
Member
Joined
Jun 26, 2015
Messages
3,003
Trophies
2
XP
7,328
Country
United Kingdom
Would it at all be possible to disable the checks all together?

Maybe set ‘use dol hash’ to false, or comment out/remove hash related categories altogether.... see if ninty actually made them a prerequisite :ph34r:

edit:

looking forward to a compatibility list soon :)

@KiiWii already suggested this but it was missed
 
  • Like
Reactions: KiiWii

Psi-hate

GBATemp's Official Psi-Hater
OP
Member
Joined
Dec 14, 2014
Messages
1,749
Trophies
1
XP
3,405
Country
United States
I found a reference to SHA1 in the "main" file you get when you extract the exefs for sunshine's nca

--------------------- MERGED ---------------------------

Would it at all be possible to disable the checks all together?
Maybe nulling it would work - but I'm not sure. Looks like compiled code to me? Disassembly when /s

--------------------- MERGED ---------------------------

@KiiWii already suggested this but it was missed
I'll see what happens, will report back in a bit
 
  • Like
Reactions: KiiWii and peteruk
D

Deleted User

Guest
Questiom: how much of the data of the 3DAS Sunshine GCM file is the same as an older, GameCube GCM file?

That could lead to clues. Maybe a hex compare between the two (or maybe a few different versions compared to the 3DAS version) will lead to some answers.
 

SilverJolteon

Active Member
Newcomer
Joined
Oct 9, 2016
Messages
28
Trophies
0
Age
28
XP
162
Country
United States
I found a reference to SHA1 in the "main" file you get when you extract the exefs for sunshine's nca

--------------------- MERGED ---------------------------

Would it at all be possible to disable the checks all together?
I found a github repo named after one of the terms in the hex data you posted, though I'm not sure how much it will help, or if it will help at all.
https://github.com/nsg1999/S6crypto
 

Tomobobo

Champion.
Member
Joined
Nov 26, 2005
Messages
1,310
Trophies
1
XP
2,144
Country
United States
I've pulled out every single piece of text in

data\database\hagi\MarioSunshine.json

I didn't mess with the input sections of

data\database\config\MarioSunshine.config

But everything else I removed and the game seems to boot. Everything except under Boot: LoadBios, which must be set to false. The game boots with every other setting removed, though stuff like image quality and aspect ratio and stuff will be different than the Nintendo intended operation.

Pretty sure the hagi.config in root is just an example file also. Though it could be the default settings? Either way the gcm is still booting with default or no settings except the loadbios setting.

The opening post tho sounds like it's gonna be the right way to go, set up our own NewGame setup and try that, just trying to see what a minimum setup would look like. There's not been any references to the media replacement tho, so just injecting over sunshine might be more complex than just these settings files.
 
Last edited by Tomobobo,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @salazarcosplay, I'm good. Thanks.