Discussion Modding Spintires - Mudrunner on the Switch: my saga until now

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by Augar, Dec 26, 2018.

  1. Augar
    OP

    Augar Member

    Newcomer
    1
    Dec 11, 2018
    Brazil
    Spintires - Mudrunner is another of those "niche" simulator games from the PC. It's a sandbox physics-based off-road simulator game, where your objective is to not get stuck on mud too often. At the end of November/2018, Saber3D released their port of their game for Switch.

    Also, this game on PC supports mods with the Steam Workshop and specialized websites. Why not try to install them on the Switch?

    File structure:
    The file and folder structure both on PC and Switch is like the image in the spoilers. They are very similar, with some files missing or not.
    Warning: Spoilers inside!
    Notice the Media.zip file, it's where the mods should be installed by two ways: adding the mod files directly into this .zip or; extracting its content into the root folder of the game with the same files. Both method works with manual installation (Steam Workshop is automated).

    First try on mods:
    My Switch is running on 6.2.0 with Atmosphere 0.8.2, booted through fusèe. If my research is correct, Atmosphere already have LayeredFS running by default, meaning that i should just copy my mod files into the correct folder into my SD Card to make them work.

    I've downloaded an Mercedez AMG car mod and copied the files into this Media.zip extracted from the .NSP using SwitchExplorer. Inside the SD Card, i've created the folder path for LayeredFS, where 01009D200952E000 is the titleID for Spintires, and copied my modified Media.zip.
    Code:
    sdcard:\atmosphere\titles\01009D200952E000\romfs\Media.zip
    It works! Kinda...
    The game boots as it should, displaying the intro movie and loading right into the main menu. But something is odd:
    Warning: Spoilers inside!

    What i've tried:
    -Using the Media.zip from the PC version: crashes the game
    -Merging PC and Switch Media.zip: same results, broken graphics
    -Extracting the default Media.zip into the LayeredFS and then applying the mod into these extracted folders, like how it's done on PC: nope, the game works as nothing had been done.
    -Install the game without the only update available (1.8GB). Horizon OS asks for it, but doesn't allow the game to boot anyway. Maybe the v0 i have available is a pre-purchase version?

    What i've partially done:
    -Using the LayeredFS, like described above.
    -Properly extract the whole NSP, modify the Media.zip, rebuild and install it again: failed at extracting, hactool (and its variants) aren't accepting my keys!

    Considerations:
    It seems that the Switch version uses pre-rendered shaders -- compare the extra files included in the Switch version: FxShaders, prebuild and textures_db_nx.bin (inside Switch's Media.zip) aren't available on PC. Also, the Switch version Media.zip have less files and Config.xml/common.cfg are totally different.
    My bet right now is on extracting the NSP, modifying it, rebuild and install again. If i can solve this issue with my keys (prod.keys have 120 of them, extracted twice with Hekate and Lockpick to make sure) maybe i can progress on my experimenting.

    Any ideas?
     
  2. CJA_999

    CJA_999 Newbie

    Newcomer
    1
    Jan 3, 2019
    China
    sir,i do the samething

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

    IMG_20190103_153540. you see

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

    what to do now? IMG_20190103_153536.

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

    we must open the textures_db_nx.bin file.

    so we can put the PC textures into ns.

    可以加微信吗?
     
  3. Augar
    OP

    Augar Member

    Newcomer
    1
    Dec 11, 2018
    Brazil
    That's awesome!

    Did you installed custom levels? Do they load? And the texture issues?
     
  4. masagrator

    masagrator Polish digger

    Member
    5
    Oct 14, 2018
    Poland
    Switch uses probably different texture format for this title (like in most Switch games). PC version may use .dds, and Switch for example .tex or .nxtex
    I don't know how to decompile them, so don't ask me.
     
  5. CJA_999

    CJA_999 Newbie

    Newcomer
    1
    Jan 3, 2019
    China
    so what we can do now?

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

    we have to wait for the big gods to crack the bin file
     
  6. Augar
    OP

    Augar Member

    Newcomer
    1
    Dec 11, 2018
    Brazil
    I got some ideas to crack open this bin or other alternatives into patching textures into the game. I do believe the answer is on the update NSP, but first i need to be able to extract NSPs without giving me errors.
     
Loading...