AI: The Somnium Files

AI: The Somnium Files

32 ratings
Restoring Japanese Audio in the Credits Song
By HOBaRT
As of 11/5/2019, the language of the song played in the credits is determined by the language selected by Steam rather than the in-game audio language selector.
This means you can't have the user interface in English, and the audio language of the song in the credits in Japanese.
With some manual modifications of the game assets, it's possible to force the Japanese version of the song to play.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Warning: This guide is a bit long, technical and requires fiddling with game files, and using the command prompt for one part

As of 11/5/2019, the language of the song played in the credits and dance mode is determined by the language selected by Steam rather than the in-game audio language selector.
This means you can't have the user interface in English, and the audio language of the song in the credits in Japanese.
With some manual modifications of the game assets, it's possible to force the Japanese version of the song to play.

By digging around in the assets, you agree to be exposed to potential spoilers.
And of course, this will prevent the English versions of the song from playing until you reinstall the game or undo the asset changes
Without further ado:
Fixing the Audio
  1. Download Unity Assets Bundle Extractor (UABE) from the 7 Days to Die forum (I used 2.2d)
  2. Locate the game's local files (AI: The Somnium Files->Right Click->Properties->Local Files->Browse Local Files)
  3. Enter
    AI_TheSomniumFiles_Data\StreamingAssets\AssetBundles\StandaloneWindows64
  4. Rename
    audio
    to
    audio.backup
    and copy it to your UABE folder
  5. Open
    audio
    in UABE, select yes and save it to
    audio_extracted
  6. Select export on the CAB-... file which should be selected, and save it as
    audio_extracted_cab
  7. Open audio_extracted_cab in UABE, sort by Name, and extract all four
    BGM_IRIS_SONG_FULL_JP...
    files, as well as
    BGM_IRIS_SONG_SHORT_JP
    and
    BGM_IRIS_SONG_GRANDFINALE_JP
    by selecting "Export Dump"
  8. You should now have 6 text files; Open each of them and replace
    JP
    with
    US
    in each file's m_Name string
  9. Locate the US versions of the songs in the list; Replace
    BGM_IRIS_SONG_FULL_US_x0.5
    with your modified
    BGM_IRIS_SONG_FULL_JP_x0.5
    txt file, etc until all 6 US files are replaced by using "Import Dump"
  10. Select File->Save, and save as
    audio_extracted_cab_fixed
  11. Select OK to close the window
  12. Re-open
    audio_extracted
  13. Select import on the CAB-... file, and select your
    audio_extracted_cab_fixed
    file (you may need to show all file types)
  14. Select File->Save, and save as
    audio_extracted_fixed
  15. Select File->Compress, and open your
    audio_extracted_fixed
    file
  16. Select LZMA for the Selected File, and the File Table; Click OK and save as
    audio_fixed
  17. Copy the
    audio_fixed
    file back to
    AI_TheSomniumFiles_Data\StreamingAssets\AssetBundles\StandaloneWindows64
    and rename it to
    audio
Fixing the Dance Mode Finale
  1. Download Unity Assets Bundle Extractor (UABE) from the 7 Days to Die forum (I used 2.2d)
  2. Locate the game's local files (AI: The Somnium Files->Right Click->Properties->Local Files->Browse Local Files)
  3. Enter
    AI_TheSomniumFiles_Data\StreamingAssets\AssetBundles\StandaloneWindows64\movie
  4. Copy
    video_video_dance_en_2k_60
    and
    video_video_dance_jp_2k_60
    to your UABE folder, and rename
    video_video_dance_en_2k_60
    to
    video_video_dance_en_2k_60.backup
  5. Open
    video_video_dance_jp_2k_60
    in UABE, select yes, and save it to
    video_video_dance_jp_2k_60_extracted
  6. Select export on the selected CAB-... file, and save it as
    video_video_dance_jp_2k_60_extracted_cab
  7. Scroll down to the second CAB-... file (ending in .resource), select export, and save it as
    video_video_dance_jp_2k_60_extracted_cab_resource
  8. Open
    video_video_dance_jp_2k_60_extracted_cab
    in UABE
  9. Select "Export Dump" on
    Unnamed asset
    and save the file
  10. Open
    video_video_dance_en_2k_60
    in UABE, select yes, and save it to
    video_video_dance_en_2k_60_extracted
  11. Select export on the selected CAB-... file, and save it as
    video_video_dance_en_2k_60_extracted_cab
  12. Open
    video_video_dance_en_2k_60_extracted_cab
    in UABE
  13. Select "Export Dump" on
    Unnamed asset
    and save the file
  14. Open both of the text files you just extracted in Notepad, and copy the m_Size number near the bottom of the ..._jp... file to the ..._en... (in my case I'm copying 377879765 from the Japanese file and overwriting 377879934 in the US file)
  15. Save the ..._en... file, and select "Import Dump" on
    Unnamed asset
    in the
    video_video_dance_en_2k_60_extracted_cab
    file, replacing it with the
    Video_Dance_en_2k_60-...
    text file
  16. Select File->Save, and save as
    video_video_dance_en_2k_60_extracted_cab_fixed
  17. Select OK to close the window
  18. Re-open
    video_video_dance_en_2k_60_extracted
  19. Select import on the CAB-... file, and select your
    video_video_dance_en_2k_60_extracted_cab_fixed
    file
  20. Scroll down to the second CAB-... file (ending in .resource), select import, and select
    video_video_dance_jp_2k_60_extracted_cab_resource
  21. Select File->Save, and save as
    video_video_dance_en_2k_60_extracted_fixed
  22. Select File->Compress, and open your
    video_video_dance_en_2k_60_extracted_fixed
    file
  23. Select LZMA for the Selected File, and the File Table; Click OK and save as
    video_video_dance_en_2k_60_fixed
  24. Copy the
    video_video_dance_en_2k_60_fixed
    file back to
    AI_TheSomniumFiles_Data\StreamingAssets\AssetBundles\StandaloneWindows64\movie
    and rename it to
    video_video_dance_en_2k_60
Fixing the Credits
This is the most complicated part as while dance mode uses rendered subtitles, the ones in the credits are embedded into the video!
  1. Download Unity Assets Bundle Extractor (UABE) from the 7 Days to Die forum (I used 2.2d)
  2. Download ffmpeg here: https://www.ffmpeg.org/download.html#build-windows
  3. Locate the game's local files (AI: The Somnium Files->Right Click->Properties->Local Files->Browse Local Files)
  4. Enter
    AI_TheSomniumFiles_Data\StreamingAssets\AssetBundles\StandaloneWindows64\movie
  5. Copy
    video_video_e6-wrap79_m10_00_en_2k_60
    and
    video_video_e6-wrap79_m10_00_jp_2k_60
    to your UABE folder, and rename
    video_video_e6-wrap79_m10_00_en_2k_60
    to
    video_video_e6-wrap79_m10_00_en_2k_60.backup
  6. Open
    video_video_e6-wrap79_m10_00_jp_2k_60
    in UABE, select yes, and save it to
    video_video_e6-wrap79_m10_00_jp_2k_60_extracted
  7. Select export on the selected CAB-... file, and save it as
    video_video_e6-wrap79_m10_00_jp_2k_60_extracted_cab
  8. Scroll down to the second CAB-... file (ending in .resource), select export, and save it as
    video_video_e6-wrap79_m10_00_jp_2k_60_extracted_cab_resource
  9. Open
    video_video_e6-wrap79_m10_00_jp_2k_60_extracted_cab
    in UABE
  10. Select "Export Dump" on
    Unnamed asset
    and save the file
  11. Open
    video_video_e6-wrap79_m10_00_en_2k_60
    in UABE, select yes, and save it to
    video_video_e6-wrap79_m10_00_en_2k_60_extracted
  12. Select export on the selected CAB-... file, and save it as
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab
  13. Scroll down to the second CAB-... file (ending in .resource), select export, and save it as
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_resource
  14. Open the folder the two _resource files you just extracted are in with command prompt
  15. Run the command
    ffmpeg -i video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_resource -i video_video_e6-wrap79_m10_00_jp_2k_60_extracted_cab_resource -c:v copy -map 0:v:0 -c:a copy -map 1:a:0 -f mp4 video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_resource_fixed
    to replace the English credits audio with the Japanese
  16. Open
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab
    in UABE
  17. Select "Export Dump" on
    Unnamed asset
    and save the file
  18. Open the Video_E6_wrap79_M10_00_en_2k_60... text file in notepad, and replace the m_Size value at the bottom with the file size of the newly created
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_resource_fixed
    in bytes (for me, it's 377985865)
  19. Save the ..._en... file, and select "Import Dump" on
    Unnamed asset
    in the
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab
    file, replacing it with the modified
    Video_E6_wrap79_M10_00_en_2k_60...
    text file
  20. Select File->Save, and save as
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_fixed
  21. Select OK to close the window
  22. Re-open
    video_video_e6-wrap79_m10_00_en_2k_60_extracted
  23. Select import on the CAB-... file, and select your
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_fixed
    file
  24. Scroll down to the second CAB-... file (ending in .resource), select import, and select
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_cab_resource_fixed
  25. Select File->Save, and save as
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_fixed
  26. Select File->Compress, and open your
    video_video_e6-wrap79_m10_00_en_2k_60_extracted_fixed
    file
  27. Select LZMA for the Selected File, and the File Table; Click OK and save as
    video_video_e6-wrap79_m10_00_en_2k_60_fixed
  28. Copy the
    video_video_e6-wrap79_m10_00_en_2k_60_fixed
    file back to
    AI_TheSomniumFiles_Data\StreamingAssets\AssetBundles\StandaloneWindows64\movie
    and rename it to
    video_video_e6-wrap79_m10_00_en_2k_60
Cleanup
After you are satisfied with the audio, you can delete UABE and the temporary files you created inside it.

The game should now be properly undubbed.

I have tested the credits and dance mode, but I have not done a full playthrough with this mod.

This is my first guide, so the formatting is probably awful, and it is rather long, but I prefer not to upload the patched assets myself.

However, anyone is free to use this guide to make a simpler one with prepatched assets if they wish.
13 Comments
Melon Bread 16 Apr @ 10:58am 
The current best way to do this now is:
{LINK REMOVED}
alantay11 14 Jul, 2022 @ 9:06pm 
If anyone wants the edited files, I left the credits video with JP subs though.

{LINK REMOVED}
{LINK REMOVED}
{LINK REMOVED}
General Winter 29 May, 2022 @ 9:23am 
true, kinda wish i knew this in hindsight but it already came and went so oh well
Harle 29 May, 2022 @ 2:13am 
Probably but at least, I won't have a jarring change in voice actor when I reach the end now.

By the way, the UABE interface significantly changed in the latest version. If you want the same one used in this guide, you can get it here:
https://github.com/SeriousCache/UABE/releases/tag/2.2stabled
General Winter 28 May, 2022 @ 6:25pm 
it just seems easier to watch it on youtube than go through all the trouble of fixing it for in game
Harle 28 May, 2022 @ 12:45pm 
Thanks for this guide! I wanted to replay this game (with Japanese voices) before the sequel releases and it all worked perfectly.
What a hassle though :-D
General Winter 22 Jan, 2022 @ 1:10pm 
christ having beating this game off game pass that was a SOUR surprise to suddenly hear everyone's dubs during the credits, like why? why is this even an issue?
egerke 13 Nov, 2021 @ 3:27am 
Thanks a lot, it was quite a hassle to get this done but worth the effort. All of them work for me though I did need to compress the credits file a second time to make it work. Or maybe the game just needed a reboot, idk.
Draaloff 12 Jun, 2020 @ 9:02pm 
As they are separate files, I must have made a mistake. I've 100%ed the game, saw the video and it's 5am. I really don't want to mess with the files anymore as it's taken enough time already. Thanks again for the guide though.
HOBaRT  [author] 12 Jun, 2020 @ 8:10pm 
My save at the end of the game plays the modded finale video just fine. As far as I know the game hasn't updated since I wrote this.

Double check that you did all the steps correctly. There are a lot of them and it's a bit fiddly. The dance mode finale is a completely different file than the story end finale for whatever reason.


If it still doesn't work I can double check my steps.