ROM Hack UnityFS editing (such as Doom)

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,096
Country
United States
So I've been trying my hand at really simple modding on a lot of things lately and one thing that has really been a problem for me for a long time are those UnityFS files -- eg "assets." For example, in Doom I thought it would be nice if I could edit the soundtrack. (It's not a popular thing among most -- most prefer the original MIDI from Reznor and I can understand why, but I have always felt that the PS1's soundtrack had a very interesting dark atmospheric feel that suited the game well. On some PC Doom engine implementations I can use a custom WAD I made with it and I thought it would be nice if I could get its soundtrack into this too.) Unfortunately, it seems I can't even find tools to extract the files properly. (UnityAssetsBundleExtractor for instance is able to open it and decompress it to a new file, but the actual physical audio data is inaccessible in a separate "tree" or whatever you call it.)

I've seen a lot of mods of this sort out there for various games, so I know it's possible, but apparently none of my searching in all this time has yielded the right tools.
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,628
Country
Germany
Use UnityAssetsBundleExtractor to extract "CAB-d5ae2b5aa3edc0f73b4bb6b1ae125a53" and "CAB-d5ae2b5aa3edc0f73b4bb6b1ae125a53.resource"

The first file is the index, it tells the game where the audio data is, the second file contains the audio, format is encrypted FSB5.
You can unpack it with quickbms and this script: https://pastebin.com/4LbFA7Ar

You can then play these with in_vgmstream and xmplay.

About modding the audio, never tried it, but unity is not mod friendly, especially on consoles, most unity mods require to hook the .NET code, which is not possible on Switch (il2cpp makes it impossible).
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,345
Trophies
3
XP
12,203
Country
Poland
For extracting playable audio better to use AssetStudio or find audio file with UABE, then click on "Plugins" and "Extract audio". You get then playable wav file.

With replacing will be a little issue. I've tried already by packing new asset pack with Unity 2018.3 (DOOM is using 2018.3.12f1 when for PC the closest one is 2018.3.14f1), Hex editing Information files to have the same Informations about pack and replaced resources blob in audio UnityFS archive. And game stucks.
 
Last edited by masagrator,

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,096
Country
United States
To be clear, I don't really want to extract or play the original audio, just replace it. I already have a XG synthesizer which handles the original MIDI about as well as anything is going to.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    Float like a butterfly burns when I pee lol
    +1
  • BigOnYa @ BigOnYa:
    So does that mean your date was not good? It burns now?
    +2
  • K3Nv2 @ K3Nv2:
    Got two new stds in one night
    +1
  • BigOnYa @ BigOnYa:
    Giggity
    +1
  • The Catboy @ The Catboy:
    I don't bite! Minus the times when I did bite
  • The Catboy @ The Catboy:
    Like 5 minutes ago
  • K3Nv2 @ K3Nv2:
    Billie needs her lunch
  • K3Nv2 @ K3Nv2:
    Ffs papa brought back the cheeseburger pizza it's like the only decent pie they had since the 80s
  • BigOnYa @ BigOnYa:
    I'm not a fan of papa johns, but that does sound good. We hardly order out pizza, I like making my own, but when we do its donatoes
  • K3Nv2 @ K3Nv2:
    I get them like once every two months anymore
  • K3Nv2 @ K3Nv2:
    Just because it's half a mile from where I live
  • BigOnYa @ BigOnYa:
    Request next time you order, that Shaq deliver it to you
  • K3Nv2 @ K3Nv2:
    I want him to buy me a chain also
  • K3Nv2 @ K3Nv2:
    Open it right next to the one we have
    +1
  • BakerMan @ BakerMan:
    guys should i make a new thread and just count the amount of posts until kyle, luke or leo joins the thread for fun?
  • BakerMan @ BakerMan:
    kyle's fine, just waiting for that wario joke

    luke and leo though, they yap until the thread's enjoyability is about halved
  • K3Nv2 @ K3Nv2:
    Leo is Luke's alterego when he gets hard
  • BigOnYa @ BigOnYa:
    Luke is gone, he got banned. And I'm surprised Leo hasn't yet
  • K3Nv2 @ K3Nv2:
    Subway was actually pretty decent tonight
  • BigOnYa @ BigOnYa:
    Wut you get, a seafood and psi salad sub
  • K3Nv2 @ K3Nv2:
    Psi had my footlong meatball special
    +1
  • PandaPandel @ PandaPandel:
    i want a meatball sandwich
    now
  • K3Nv2 @ K3Nv2:
    Gay
  • BigOnYa @ BigOnYa:
    Bout time you came out and admitted it
  • K3Nv2 @ K3Nv2:
    Bigonya talks to himself often
    +1
    K3Nv2 @ K3Nv2: Bigonya talks to himself often +1