MoD with music

Discuss thaw modding, post your own, share your ideas, ask questions.
SergioGV
Posts: 5
Joined: Fri Jan 21, 2011 11:19 pm
Contact:

MoD with music

Postby SergioGV » Sat Jan 22, 2011 8:50 pm

Eh, hello world.
How can i make a MoD with my music for THAW?
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: MoD with music

Postby sMo0g™ » Sun Jan 23, 2011 12:02 am

You are stupid?
WhoElseButMe
Posts: 419
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: MoD with music

Postby WhoElseButMe » Sun Jan 23, 2011 3:45 am

sMo0g™ wrote:You are stupid?

This is a valid question and isn't one of the many repeat types, please don't be a dick.

SergioGV wrote:How can i make a MoD with my music for THAW?

This hasn't been done yet but shouldn't be too hard to accomplish.
You have a music_bik.dat and a music_bik.wad
the .dat contains the offset and size of the file which can be found in the .wad
Open the .dat file using a hex editor
first 4 bytes are the number of entries, then every 12 bytes are an entry
Entry Structure
4 bytes = file name, inside music.qb.wpc you'll find playlist_tracks array each entry has a path
take only the file name, example: music\vag\songs\7seconds is the first entry in the dat and wad; 7seconds = 6AAC6FA7
4 bytes file offset (location in the .wad)
4 bytes file size

now open the .wad using a hex editor goto the offset and copy the number of bytes of the files size.
copy that into a new blank hex document and save as something.bik
Use RAD Game Tools to play the track or simply use RAD Game tools to convert your own audio file and replace with this one.
If you change the size of the file simply correct all offsets after the file you changed.

Any other question just ask.
7seconds.bik test file Size = 3.05 MB, requires RAD Game Tools
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.
WhoElseButMe
Posts: 419
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: MoD with music

Postby WhoElseButMe » Sun Jan 23, 2011 6:43 am

Just tested this and it works perfectly...

Highlight the audio file you want to add to the game, using RAD Game tools and select Bink It
Open music_bik.dat and music_bik.wad in a hex editor
Also open the new .bik file you created in a hex editor
in music_bik.dat file add 1 to the first 4 byte value, in this case 6F becomes 70
Scroll to the bottom of music_bik.dat
give your file a name. example: the name of the artist (without spaces) and generate a qbkey for it
reverse that key and add the 4 byte key to the end of music_bik.dat.
next we need to add the offset for our file
so find the very end of music_bik.wad get the offset in hex and reverse it then add the 4 byte value to the bottom of music_bik.dat.
Scroll to the bottom of the .bik file you created and get its size and add that to the bottom of music_bik.dat
Save music_bik.dat and close it.
Copy the entire contents of the .bik file you created and paste to the end of music_bik.wad
Save music_bik.wad and close it close the hex editor.

Lastly we need to add the entry to the game so open the pak/pab pair that you plan on modding using QueenBee
Navigate to music.qb.wpc
Scroll to the bottom of playlist_tracks array
Right click on the StructHeader of the last item and select copy
Right Click the last array items StructHeader again and select paste / Add Sibling
Change the band name, track name, genre, and name part of the path.
music\vag\songs\venom
The red text above should be changed to the text you generated a qbkey from earlier.
Save to disk
Test your new music.
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.
KYA >DJ<
Posts: 48
Joined: Sun Oct 03, 2010 8:24 pm
Location: Germany / Stuttgart
Contact:

Re: MoD with music

Postby KYA >DJ< » Sun Jan 23, 2011 7:35 pm

@WhoElseButMe:
You are GODLIKE...
Image
Samarasz
Posts: 72
Joined: Sat Mar 20, 2010 6:24 pm
Contact:

Re: MoD with music

Postby Samarasz » Sun Jan 23, 2011 8:06 pm

doing this with previous th series was much easier lol
SergioGV
Posts: 5
Joined: Fri Jan 21, 2011 11:19 pm
Contact:

Re: MoD with music

Postby SergioGV » Mon Jan 24, 2011 11:19 pm

YEEEEEEEEEEEEAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHH SM0000GGGG I'M RETARDEDD, STUPIDD.
H
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: MoD with music

Postby sMo0g™ » Fri Feb 04, 2011 11:44 am

xDDD lol dont offtopic!! :wat:

Return to “THAW modding”

Who is online

Users browsing this forum: No registered users and 25 guests