-
Notifications
You must be signed in to change notification settings - Fork 0
Making a Small Audio Mod utilizing ArgosyPack
If you are new to audio modding, check out Lunar_Lucy's Sound Modding Tutorial: https://docs.google.com/document/d/11GobpuJNfdFC-E81Aw9LBG_-EZy0Qr96cEWv8m4FS70/edit?usp=sharing
This tutorial assumes you already have your wems made with proper settings, and have the IDs they are replacing at the ready.
Download ArgosyPack at https://github.com/Silvris/ArgosyPack/releases. Press the Import Wems button and then select all of the wems you want to import. Then, edit the wem ID of each wem to match the song you want to replace. Export the NPCK with the name of your choice.
Extract the bgm_cmn.wwct from your game (the path is common/sound), and open it in a hex editor.
If you have 010 Editor, you can use the WWCTAppend script to edit the WWCT for you.
If you do not have 010 Editor, there are two things you need to edit.
First, the uint at 0xC. This is the WWPK count, increase it by one. Next, you'll need to find the end of the WWPK paths in the file. On a clean, chunkG5 file, this is located at 0x27D. You need to insert a uint index (use the WWPK count - 1) and then insert the path to your WWPK as a string.
Note: the WWCT will need to be updated with any content patches that adds new NPCKs.
Extract and make a copy of a smaller WWPK (such as bgm_08_00.wwpk) and open it in a hex editor. Here, just replace the NPCK name with the name of your exported NPCK, and make sure it is followed by two hex 00s like shown.