[How-To]Add Custom Music in THUG2 (PS2)

Discuss thug2 modding, post your own, share your ideas, ask questions.
RazorHack5000
Posts: 3
Joined: Fri Mar 15, 2013 12:42 am
Location: Pontianak, Indonesia
Contact:

[How-To]Add Custom Music in THUG2 (PS2)

Postby RazorHack5000 » Fri Mar 15, 2013 1:55 am

Firstly, I said Hello for Joining this forum

Now i share you some step-to-step how to adding custom music in THUG2 for PS2 (Well, I just do it at yesterday and it just for some testing because I thought this wouldn't work at first time)

Here's what you need:
THUG2 PS2 ISO (Make it from your THUG2 PS2 Disc or find it at The Pirate Bay)
MFAudio v.1.1 (Grab it here: http://www.zophar.net/fileuploads/1/318 ... diov11.zip)
WadEdit v4 (Grab it here: http: http://thmods.com/mod_tools/WadEdit_v4.zip)
UltraISO (I used this but it's up to you)

Note: For WadEdit you need Java Runtime Environment to running this app.

Now here's step-to-step to adding the music:

1. Extract MUSICP.WAD and MUSICP.HED from MUSIC directory in THUG2 DVD ISO
2. Extract MUSICP.WAD using WadEdit with this command:

Code: Select all

java -jar WadEdit.jar e 1 MUSICP.WAD MUSICP.HED C:\MUSIC


Note: You can change C:\MUSIC to everywhere you want

3. After you've done with extracting, run MFAudio and open the music you want to add (The music file format must be WAV. MP3 didn't supported. You can convert it using media converter.) Then save as the music file without extension (trully MFAudio keep saving them as .raw to tricking the extension just add the .. at the end of the filename. Make sure you selecting the All files) in the WAD folder you just extracted ([WAD Folder]\music\vag\songs) as new song (See Additional steps for more details) or replace the existing songs then use this parameter in MFAudio:
File Format: RAW - RAW Sound Data - Compressed ADPCM
Frequency: 48000 Hz
Interleave: 18000 Bytes
(Just leave the Sample and Channels columns)

4. Repack the files again using WadEdit with this command:

Code: Select all

java -jar WadEdit b 1 MUSICP.WAD MUSICP.HED [WAD Folder you just extracted]


5.Replace the old MUSICP.WAD and MUSICP.HED in the MUSIC folder in THUG2 DVD ISO with the new one you just created.

6. Play it on PCSX2 or Burn the ISO to DVD-R or Play the ISO on your PS2 using HDLoader/USB Advance/Open PS2 Loader

Additional steps:

Well, if you adding the new song instead of replacing the existing one, use this and WhoElseButMe steps:

1. Extract the DATAP.WAD and DATAP.HED from THUG2 DVD ISO
2. Extract the DATAP.WAD using WadEdit with this command:

Code: Select all

java -jar WadEdit.jar DATAP.WAD DATAP.HED [everywhere you want to extract them]


3. After you've done with extracting, go to the [DATAP.WAD Folder you just extracted]\scripts\game\skater directories and follow this steps to decompile skater_sfx.qb file:

WhoElseButMe wrote:Why? Holy fuck man.

@LC-DDM, the reason the script doesn't decompile are the 61 instances of the RandomRange.
Open the FULL ORIGINAL script in a hex editor and do a HEX search for these 2 bytes 0730 change them to 0707.
Now the script will decompile and everywhere there was a RandomRange you'll see = = (0707) leave these as they are.
Make the changes you want to the Playlist_Tracks array and compile the script.
Before you can use this script you'll need to open the re-compiled script in a hex editor and do a hex search for 0707 and change it to 0730.
Example for adding an entry, just above the end array (:a}) copy that line

Code: Select all

   :i :s{$band$ = %s(1,"X")$track_title$ = %s(11,"Los Angeles")$genre$ = %i(2,00000002)$path$ = %s(19,"music\vag\songs\XLA"):s}
   :i :s{$band$ = %s(4,"ZEKE")$track_title$ = %s(18,"Long Train Runnin'")$genre$ = %i(2,00000002)$path$ = %s(20,"music\vag\songs\ZEKE"):s}
   :i :a}

paste that line and change it to match your values

Code: Select all

   :i :s{$band$ = %s(1,"X")$track_title$ = %s(11,"Los Angeles")$genre$ = %i(2,00000002)$path$ = %s(19,"music\vag\songs\XLA"):s}
   :i :s{$band$ = %s(4,"ZEKE")$track_title$ = %s(18,"Long Train Runnin'")$genre$ = %i(2,00000002)$path$ = %s(20,"music\vag\songs\ZEKE"):s}
   :i :s{$band$ = %s(4,"NOFX")$track_title$ = %s(22,"Idiots are Taking Over")$genre$ = %i(2,00000002)$path$ = %s(20,"music\vag\songs\NOFX"):s}
   :i :a}

And just to be clear you generate a QbKey for the short name only music\vag\songs\NOFX
NOFX = 2bb019e1, this becomes your track name, 2bb019e1.bik and goes into \Game\Data\streams\music\
Enjoy.


Note: you didn't need to generate a QBKey for this

Bugs that needs to be fixed:
After your custom song playback was ended, the game suddenly stopped streaming the music (That's why you didn't hear any songs again unless you skipped the track.)

And, one more thing I need you guys to find them:
I tried to play the extracted music using FastElbJa's ADPCM player. The player identified the original music file as MIB. If anyone knows how to convert them to MIB format, please reply to this thread.
WhoElseButMe
Posts: 420
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: [How-To]Add Custom Music in THUG2 (PS2)

Postby WhoElseButMe » Fri Mar 15, 2013 5:40 am

RazorHack5000 wrote:Note: you didn't need to generate a QBKey for this

You used a tool to repack your wad, that was written for manually editing of a wad, which means needing the qbkey.
Image
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
RazorHack5000
Posts: 3
Joined: Fri Mar 15, 2013 12:42 am
Location: Pontianak, Indonesia
Contact:

Re: [How-To]Add Custom Music in THUG2 (PS2)

Postby RazorHack5000 » Fri Mar 15, 2013 6:03 am

WhoElseButMe wrote:
RazorHack5000 wrote:Note: you didn't need to generate a QBKey for this

You used a tool to repack your hed/wad, that was written for manually editing of a hed and wad, which means needing the qbkey.


Well, I didn't knew that.
But, Have you tried these steps? (You need an ISO of THUG2 PS2)
WhoElseButMe
Posts: 420
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: [How-To]Add Custom Music in THUG2 (PS2)

Postby WhoElseButMe » Fri Mar 15, 2013 6:28 am

I've never tried doing it for a PS2
Can you upload one of the sound files
Image
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
RazorHack5000
Posts: 3
Joined: Fri Mar 15, 2013 12:42 am
Location: Pontianak, Indonesia
Contact:

Re: [How-To]Add Custom Music in THUG2 (PS2)

Postby RazorHack5000 » Fri Mar 15, 2013 6:55 am

WhoElseButMe wrote:I've never tried doing it for a PS2
Can you upload one of the sound files


I'm going to upload it now. Though it was very long time to wait as my internet connection very sucks (well Mobile USB modem with quota reaching the end making the connection only reaching the 64Kbps)

Edit: Well, here you go:
http://dl.dropbox.com/u/28469398/Melvins.rar
it was "Sweet Willy Rollbar" by Melvins (I renamed the extension to .raw so MFAudio will recognizes it)
Play the file with the parameter I just given on my first post

Return to “THUG2 modding”

Who is online

Users browsing this forum: No registered users and 4 guests