1. godreborn

    godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,046
    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.
     
  2. SilverJolteon

    SilverJolteon Member
    Newcomer

    Joined:
    Oct 9, 2016
    Messages:
    20
    Country:
    United States
    I tried doing that and got a different hash still.

    Edit: First 100 bytes, that is.
     
  3. godreborn

    godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,046
    Country:
    United States
    he said bits, not bytes.
     
  4. SilverJolteon

    SilverJolteon Member
    Newcomer

    Joined:
    Oct 9, 2016
    Messages:
    20
    Country:
    United States
    I mean, I'd assume bytes. 100 bits is only around 12~13 bytes, which isn't even the full header. And I just tested it anyways and it doesn't match either.
     
  5. Zen11

    Zen11 Newbie
    Newcomer

    Joined:
    Nov 22, 2019
    Messages:
    7
    Country:
    United States
    Yeah sorry my mistake, i misunderstand
     
  6. Tomobobo

    Tomobobo Champion.
    Member

    Joined:
    Nov 26, 2005
    Messages:
    1,276
    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?
     
    KiiWii likes this.
  7. SilverJolteon

    SilverJolteon Member
    Newcomer

    Joined:
    Oct 9, 2016
    Messages:
    20
    Country:
    United States
    I'm using HxD, a hex editor.
     
  8. Kei00

    Kei00 Member
    Newcomer

    Joined:
    Jan 18, 2013
    Messages:
    41
    Country:
    He also said that the hash check can be disabled.
     
  9. SilverJolteon

    SilverJolteon Member
    Newcomer

    Joined:
    Oct 9, 2016
    Messages:
    20
    Country:
    United States
    It seems like only the dol hash can be disabled, not the others unfortunately.
     
    Kei00 likes this.
  10. CeeDee

    CeeDee Wow! Wow, wow, wow!
    Member

    Joined:
    May 4, 2014
    Messages:
    4,581
    Country:
    United States
    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.
     
    peteruk, KiiWii and Tomobobo like this.
  11. Psi-hate

    OP Psi-hate GBATemp's Official Psi-Hater
    Member

    Joined:
    Dec 14, 2014
    Messages:
    1,743
    Country:
    United States
    I'm back online for a bit, I'll do some testing myself now.

    — Posts automatically merged - Please don't double post! —

    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, Sep 16, 2020 at 8:16 AM
  12. fate6

    fate6 Haha, I killed a Pumpkin!
    Member

    Joined:
    Aug 2, 2014
    Messages:
    309
    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, Sep 16, 2020 at 8:23 AM
  13. Dakota_Pixel

    Dakota_Pixel Member
    Newcomer

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

    — Posts automatically merged - Please don't double post! —

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

    Attached Files:

    peteruk likes this.
  14. peteruk

    peteruk GBAtemp Addict
    Member

    Joined:
    Jun 26, 2015
    Messages:
    2,536
    Country:
    United Kingdom
    @KiiWii already suggested this but it was missed
     
    KiiWii likes this.
  15. Psi-hate

    OP Psi-hate GBATemp's Official Psi-Hater
    Member

    Joined:
    Dec 14, 2014
    Messages:
    1,743
    Country:
    United States
    Maybe nulling it would work - but I'm not sure. Looks like compiled code to me? Disassembly when /s

    — Posts automatically merged - Please don't double post! —

    I'll see what happens, will report back in a bit
     
    KiiWii and peteruk like this.
  16. StarGazerTom

    StarGazerTom GBAtemp Addict
    Member

    Joined:
    Feb 2, 2015
    Messages:
    2,028
    Country:
    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.
     
  17. SilverJolteon

    SilverJolteon Member
    Newcomer

    Joined:
    Oct 9, 2016
    Messages:
    20
    Country:
    United States
    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
     
  18. godreborn

    godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,046
    Country:
    United States
    glad I could help with the sha-1 suggestion. now, it's time to get very stoned. would be interesting to try to figure this out in that condition. :P
     
    KiiWii and StarGazerTom like this.
  19. Tomobobo

    Tomobobo Champion.
    Member

    Joined:
    Nov 26, 2005
    Messages:
    1,276
    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, Sep 16, 2020 at 8:52 AM
  20. godreborn

    godreborn GBAtemp Legend
    Member

    Joined:
    Oct 10, 2009
    Messages:
    11,046
    Country:
    United States
    the bios is probably the gamecube splash screen when you load a cube game on the real system.
     
    Tomobobo and StarGazerTom like this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Development, Research, SM3DAS