Dragon Quest XI
0 of 0

File information

Last updated

Original upload

Created by

mike9k1- based on work done by Infogram

Uploaded by

mike9k1

Virus scan

Safe to use

Custom Music Mod Guide (1 comment)

  1. mike9k1
    mike9k1
    • supporter
    • 77 kudos
    Sticky
    -- (04/21) Updated for Definitive Edition -- 
    https://www.nexusmods.com/dragonquestxisdefinitiveedition/mods/5

    Edit (January 2024): AudioMogGUI is an all-in-one tool that can be used for many of the steps listed below. Download here.

    ----------------------------------------------------------------------------------
    -First, you need your own songs in .wav format (16-bit PCM), this will become more clear later

    -Next (assuming you care about proper looping), you'll want to use a program like Audacity Tenacity to find and choose your beginning and ending loop points for each song. You'll need these values in a "sample count". To do this:
    +Go to View -> Toolbars-> Selection Toolbar (make sure this is checked)
    +At the bottom of the window, where you see "Audio Position" click the drop arrow next to "00h00m00s" and select "samples"
    +Play to where you want the song to begin/end and note the value at the bottom for each, write this down or put it in notepad for later

    -Then, you will need an HCA encoder: this is the format used internally by Square Enix games that run on UE4. I recommend "criatomencd.exe": https://amicitiamods.jcink.net/index.php?showtopic=23 (direct download link: https://www.mediafire.com/?9f7d1oydfccf95v )

    -After acquiring your HCA encoder you can run it to convert your .wav files over to .hca by using this command:
    (for this you can use either a command prompt or make a batch script -- this will be faster if doing lots of files)
    criatomencd.exe [name of file].wav [name of output file].hca -codec=HCAMX -encquality=MIDDLE -lps=[the loop starting point you found in step 2] -lpe=[the loop ending point you found in step 2]-Optionally, you can download the gui version (easier for first-time users)


    -Now that you have the HCA file(s), you can grab a program called "SABReplace" from ZenHAX ( https://zenhax.com/viewtopic.php?t=13312 ). This program allows you to inject the HCA into a .uexp file and will automatically alter the header contained in the matching .uasset file. You can grab these .uexp and .uasset files from the RMM files by downloading the mod, or by using QuickBMS to dump the game's Data.pak.
    ** Definitive Edition: use version 0.0.9 -- https://www.nexusmods.com/dragonquestxisdefinitiveedition/mods/5

    -Reference the track list in the articles tab to identify what tracks you want to replace: https://www.nexusmods.com/dragonquestxi/articles/10

    -Bear in mind that the uasset and uexp MUST be in the same folder when SABReplace is used, or else the game will crash when it tries to load the song (because the cached header data in the uasset won't match the uexp). I recommend putting all 4 (SABReplace.exe, your hca, uasset, and uexp) into a clean folder by themselves to start out with.

    -Run SABReplace with this command:
    (you will need to navigate to the folder with command prompt -- there is no gui option for SABReplace)
    SABReplace.exe SWAV_BGM_***.uexp [your file].hca [loop starting point you found in step 2] [loop ending point you found in step 2]-----------------------------------
    ** Definitive Edition: After using SABReplace, place this exe (which is actually just a compiled version of this script) in the same folder as your .uasset/.uexp files and run it ONCE

    A black box will appear saying "fixing audio files...", when (usually immediately) finished it will say "done!" and "press any key to continue"
    -----------------------------------

    -Voila! You now have your new tunes, simply put them in the proper directory (<steamapps>\common\DRAGON QUEST XI S\Game\Content\Sounds\BGM\ and BGM_Och\) and make sure you have DQXIHook setup (as directed in the instructions on the 'Description' tab)

    ** Definitive Edition: DQXISHook or DQXI-SDK, each work the same way as before
    DQXISHook - supports both Demo and Full version of Definitive Edition
    DQXI-SDK - Only supports Full version, but has many more features