AI: The Somnium Files Guide

Restoring Japanese Audio in the Credits Song for AI: The Somnium Files

Restoring Japanese Audio in the Credits Song

Overview

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.

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_DataStreamingAssetsAssetBundlesStandaloneWindows64
  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_DataStreamingAssetsAssetBundlesStandaloneWindows64

    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_DataStreamingAssetsAssetBundlesStandaloneWindows64movie
  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_DataStreamingAssetsAssetBundlesStandaloneWindows64movie

    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: [link]
  3. Locate the game’s local files (AI: The Somnium Files->Right Click->Properties->Local Files->Browse Local Files)
  4. Enter
    AI_TheSomniumFiles_DataStreamingAssetsAssetBundlesStandaloneWindows64movie
  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_DataStreamingAssetsAssetBundlesStandaloneWindows64movie

    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.

SteamSolo.com