GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

P4G Music Swapping Guide

A Tutorial for Persona 4 Golden (PC)

Converting, looping, and replacing music in P4G!

This guide is only meant to be used for modding music, voice clips, and other audio within the game. If you're looking to mod graphics or other assets, please refer to MadMax1960's P4G Mod Loader Guide for editing and managing .pac files.



Throughout this guide, certain things will only apply to the creation of music mods, while the majority of the guide will explain how to install mods.

Skip to Step 4 if you are installing a downloaded mod. Guide is subject to change and obscurity as tools & methods develop. 

1. Before we get started, let's download a few things first. 


Requirements:



OPTIONAL tools for creating your own mods:



(To make the looping process easier, later on, it's best to make sure your audio is trimmed before continuing. I recommend using Audacity, or any Digital Audio Workstation to make needed adjustments).

We also recommend backing up any audio files, and Persona 4 Golden files before attempting to install these mods. If an error occurs, and you'd like to reset your game to default, you can find steps on how to verify the integrity of your game files here (this won't affect your save data if online).

2. Converting Your Files

When your audio files are ready to use, go ahead and launch LameXP.exe, and you should be greeted with this screen:



It'll make some loud noises, but don't worry. You can disable these in Tools>Configuration.  Click on the Compression tab, and for "Encoder / Format," select PCM/Wave.



After doing this, head over to the Output Directory tab, and choose the folder that you'll be storing the uncompressed .wav's in. This can be any folder you'd like, so long as you can access it easily later.

Going back to the Source Files tab, you can now drag and drop any audio files you wish to format for use in the game's files. Select Encode Now!, and depending on your computer speed and amount of files, your audio will be converted to uncompressed .wav's in less than a minute or so.



If done successfully, you'll have the uncompressed .wav files in whichever directory you chose, and they'll be ready for the next step.

3. Setting Loop Points

Though this step is not entirely necessary for the file to play in-game, it's best to do so in order for the song to seamlessly loop when finished. Open Wavosaur.exe, and drag and drop your audio file into the program. Press 'L'  to pull up the Loop Point markers. These can be dragged anywhere on to the track to set specific start and endpoints for the track to play after getting passed the intro.

Below, you can find a short and simple tutorial on how to get these points, but we'll be adding one more step at the end.

After determining where your loop points lie & saved the file, right-click either the Start Loop or End Loop flags on top of their respective markers, and click Properties. You'll want to copy the Start and End loop points for later, as they're required for injection of the file.



4. Injecting and Replacing Music in the XWB

If anywhere you were to mess up in the guide, it would be at this step, as this is the part where your files are injected directly into the game for playback. Make sure the mod you downloaded (or created) is on hand, along with the loop points for each song. 

Open up the Command Prompt (Win+r, and type cmd.exe, and run). Navigate to the XactTool folder you were in by using the cd command. For example:

cd C:\Users\[Username]\Documents\xacttool


Once in this folder, simply type xacttool, and press enter to launch the program.



From here, you'll want to follow the template below to inject your song properly.

xacttool -wb "{your steam games folder/[Day or Persona 4 Golden]/snd folder/bgm.xwb file directory}" -r "{music file you want to inject}" -ls {loop start} -le {loop end} -i {index number}


The index number refers to which song you're replacing in the game. If unsure, we've created a helpful spreadsheet that indicates each song's index number. 

So, for example, if you were trying to replace Your Affection with the Reincarnation remix, the code would be written as follows.

xacttool -wb "X:\Games\Steam\steamapps\common\Day\SND\BGM.xwb" -r "06 Your Affection.wav" -ls 1966080 -le 6597440 -i 23


If all goes correctly, you'll get a message like the one below, along with a brand new BGM file in your game's SND folder. 



Backup your original BGM.xwb file in a separate folder (as this contains the game's original music), and rename the newly created "BGM.new.xwb" to "BGM.xwb."



5. Repeat the above steps as many times as necessary!


If you have any questions at all, the comments are open. Both of us will try to be active to answer any questions, and hopefully, the community will be just as active and helping!

Todos

Add FAQ's! Add Section About Batch Files 40% High Priority access_time Jun 28 2020 Add Junes Theme to Index Spreadsheet Low Priority access_time Jul 1 2020
Sign up to access this!
  • Takanobu avatar
    Takanobu Joined 11d ago
    Offline
    462 points Ranked 49980th
    access_time 6d edit 6d
    Thank you for the guide.

    Also, just wanted to point out that the song index number spreadsheet is super helpful! Could you please check if this index number is correct? "00000033.wav A Sky Full of Stars 51"

    I can work with every other BGM, but this one does not change.

    Thanks!
    Bananite
    URL to post:
  • bobostal avatar
    bobostal Joined 10d ago
    Offline
    access_time 10d
    This works just fine for me when I use Wav files from soundpacks on here (Like the P3P portable music pack from madmax) but when i inject my own wavs (Made with lameXP like in the guide) my game has no sound whatsoever. I made sure I didn't overlook anything but it just doesn't work for some reason
    Bananite
    URL to post:
  • Rob-RmanX avatar
    Rob-RmanX Joined 1mo ago
    Offline
    access_time 10d
    I'm a newbie when it comes to modding so bare with me. I got to Step 4 and now I'm lost, not really sure what the problem is. Anytime I run the xacttool it says I'm missing something but I don't know what I could be missing? The exact phrase is "Missing required option: -wb" but everything after it says that shows up just like in the first picture you have in Step 4. On top of that no matter what I type, hitting any key on the keyboard, resets the window back to asking for a file path.
    Bananite
    URL to post:
  • binatoaristo avatar
    binatoaristo Joined 11d ago
    Offline
    access_time 11d
    so do you run the cd command in the first line cmd presents, because if so i did that and still can't find the xacttool folder. or what i mean is windows cant find it.
    Bananite
    URL to post:
  • GuyWithASword avatar
    GuyWithASword Joined 12d ago
    Offline
    access_time 11d
    LameXP shows on the task manager, but it doesn't open up. How can i fix this? 
    Bananite
    URL to post:
  • Bananers avatar
    Bananers Joined 4y ago
    Offline
    1,371 points Ranked 22578th
    8 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • Returned 100 times Medal icon
    • 1 year a member Medal icon
    • Submitted 10 Sounds Medal icon
    access_time 11d
    Is the Junes theme a background song? I can't seem to find it in the spreadsheet.
    • Helpful x 1
    I eat bananas.
    URL to post:
  • APersonNamedJune avatar
    APersonNamedJune Joined 2y ago
    Offline
    627 points Ranked 44377th
    6 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • Returned 100 times Medal icon
    • 2 years a member Medal icon
    access_time 12d
    I think I did everything correctly, yet now the game now has no sound other than the intro. What did I do wrong?
    • Agree x 1
    Bananite
    URL to post:
  • MadMax1960 avatar
    MadMax1960 Joined 8mo ago
    P4G Manager
    Offline
    4,468 points Ranked 1578th
    19 medals 1 legendary 5 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Became a Game Pioneer Medal icon
    • Thanked 50 submitters Medal icon
    • Achieved Game Manager clearance Medal icon
    access_time 13d
    Good shit man
    • Thanks x 1
    I have achieved Le_Comedy
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Authors
CyclonX
CyclonX Joined 15d ago
Offline
179 points Ranked 59235th
Author
devinacho
devinacho Joined 14d ago
Offline
119 points Ranked 66706th
Author
Special Thanks
ShrineFox
ShrineFox Joined 3y ago
Offline
Know-How
TGE
TGE Joined 12d ago
Offline
XactTool Creator
MadMax1960
MadMax1960 Joined 8mo ago
P4G Manager
Offline
4,468 points Ranked 1578th
19 medals 1 legendary 5 rare
  • Returned 5000 times Medal icon
  • Returned 1000 times Medal icon
  • 10 submissions featured Medal icon
  • Became a Game Pioneer Medal icon
  • Thanked 50 submitters Medal icon
  • Achieved Game Manager clearance Medal icon
Advisor
Maso
Foundational XWB Knowledge

Submitter

CyclonX avatar
CyclonX Joined 15d ago
Offline
179 points Ranked 59235th
CyclonX
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Best of the Banana
    Featured on Jun 23 2020
  • Best of Yesterday
    Featured on Jun 22 2020
  • Today's Pick
    Featured on Jun 21 2020
  • 12
  • 18.5k
  • 26
  • 13d
  • 11d

WiPs by Submitter