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,347
Trophies
3
XP
12,210
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
  • BigOnYa @ BigOnYa:
    Holla
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Dinoh scene is on the scene!
  • Psionic Roshambo @ Psionic Roshambo:
    So don't be mean and keep it clean!
    +1
  • DinohScene @ DinohScene:
    murdering teal and purple in HOMM3
    +2
  • K3Nv2 @ K3Nv2:
    Nah Dinoh psi wants you to destroy his booty
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Ken stop projecting lol
    +2
  • K3Nv2 @ K3Nv2:
    Start rubbing
  • K3Nv2 @ K3Nv2:
    I wonder how many people end up falling in love from customer service
  • Xdqwerty @ Xdqwerty:
    Don't f#ck in front of everyone, geez
  • BigOnYa @ BigOnYa:
    Uremum has the best customer service
    +2
  • K3Nv2 @ K3Nv2:
    Ow 100hp hit out a billion
  • BigOnYa @ BigOnYa:
    That's ironic, last time I went to uremum, I had to take a number, and it was 100
    +1
  • K3Nv2 @ K3Nv2:
    Yes just shows how important you are to her unlike urewife where I can even get ahold her by pager
    +1
  • BigOnYa @ BigOnYa:
    Freaking 97 degrees here now, even my dog went out and turned right back around, like nope!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's a bit warm outside
    +1
  • K3Nv2 @ K3Nv2:
    Florida already misses the hurricanes
  • Psionic Roshambo @ Psionic Roshambo:
    One is supposedly forming in the gulf lol
  • K3Nv2 @ K3Nv2:
    Tell Florida citizens meth is a ac unit in the mouth
  • BigOnYa @ BigOnYa:
    Psi, Did you get any Flooding near you, or is it all south?
    +2
  • K3Nv2 @ K3Nv2:
    Why do we need back yard pools it's Florida
  • Psionic Roshambo @ Psionic Roshambo:
    I'm like an hour north of Tampa it's rained a bit here but no flooding
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    45 minutes until my next date hehehe
  • K3Nv2 @ K3Nv2:
    The gators need a new home
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, you are dad of how many kids now?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Hmmm I don't know lol
    Psionic Roshambo @ Psionic Roshambo: Hmmm I don't know lol