Author Topic: Editing sound files cause game to crash  (Read 5084 times)

0 Members and 1 Guest are viewing this topic.

Editing sound files cause game to crash
Hello, first post here.  I have a problem when I try to replace some sounds with some of my own creation.  The game will crash when it tries to play the modded sound.

Is there something wrong with my modifications?  Please help a commander in need   :cool:

 

Offline Karl

  • 211
Re: Editing sound files cause game to crash
I will forward your request to ThorC, he did all the sound files for the new mechwarriors in MCO (MCG warriors), just incase he does not see your post

 

Offline ThorC

  • 29
Re: Editing sound files cause game to crash
What sound files you are trying to replace?

 
Re: Editing sound files cause game to crash
Most music files as well as the Gauss, PPC and machine gun

Edit : I'll get a screenshot of the error as well as the code tomorrow and post it here, it might help you in finding what the problem is.
« Last Edit: September 07, 2012, 10:27:35 pm by warzzone5 »

 

Offline ThorC

  • 29
Re: Editing sound files cause game to crash
The effects files need to be unpacked then repacked using xplist. I had to do it for all the sound files from mcg. Are you naming the music files that you replaced in the proper order?
example=
music00
music01
music02
music03
music04
music05

 
Re: Editing sound files cause game to crash
Ah welp I think you nailed it.  I didn't know that mc2.fx needed to be repacked and I didn't do it, I thought it worked similarily to the Fallout3 system (just create the file in your data directory and place the new file with the same name)

However, I don't know what this xplist program is.  I've never heard of it (I assume it's an unpacker/packer) and google doesn't point me to any program.  Could you give me a link to it?

 

Offline ThorC

  • 29
Re: Editing sound files cause game to crash
There should be a copy in the source code
http://www.microsoft.com/en-us/download/details.aspx?id=11457
If it's not there I will try to find it for you. I might still have a copy of it and the instructions on how to unpack and repack the sound files.
Also make sure your sound files are all in .wav format.

 
Re: Editing sound files cause game to crash
I got the programms, but I have no clue on how to use them so if you happen to find the instructions you mention I would appreciate it  :)

 

Offline ThorC

  • 29
Re: Editing sound files cause game to crash
http://dropshipcommand.com/forum/dcboard.php?az=show_topic&forum=15&topic_id=5362&mesg_id=5362&page=


xplist.exe must be used from command prompt or create file name.bat, enter command to name.bat file and dbl click on it.

xplist parameters:

xplist -l <filename> <heapsize-optional>
xplist -r <responsefile> <outputfile-optional> <-lrb-optional> <heapsize-optional>
xplist -c <responsefile> <outputfile-optional> <-lrb-optional> <heapsize-optional>
xplist -u <filename> <outputfilename> <outputextension> <heapsize-optional>

<<-lrb>>:
-l zlib compression
-r no compression
-b best compression

Parameters:
-l list contents (if you want to see list must be run from command prompt)
-r create packet file from response file
-c create packet file from response file with checksum
-u unpack and write as utputfilename.outputextension
(a000.wav - will unapck all files and create files with names from a000.wav to axxx.wav for sound files)

 
Re: Editing sound files cause game to crash
Alright I got them to work under command prompt by dragging them inside the system32 folder thanks a lot ThorC  :).  However it simply won't open any files, be it a .pak or the .fx.

Opening mc2.fx gets me a "ERROR #0002" File type not supported.

Opening any pak files (I used sound.pak) opens the file with 0 listed items.

PS : Should I keep posting in this topic or use PMs from now on?


 

Offline ThorC

  • 29
Re: Editing sound files cause game to crash
Your in uncharted territory now :warp:, I only did the sound files for the mechwarriors. I honesty know little about arranging the effects files or how to get them to unpack. It's also been awhile since I played in that area. I would suggest trying out diffrent commands on xplist. Good luck man. :yes:

 
Re: Editing sound files cause game to crash
Alright thanks guys, I'll post my findings if I ever make it work.  And keep up the good work with MCO, you guys are awesome :)

 

Offline Starman01

  • Moderator
  • 213
  • Mechwarrior
    • Wing Commander Saga
Re: Editing sound files cause game to crash
Alright I got them to work under command prompt by dragging them inside the system32 folder thanks a lot ThorC  :).  However it simply won't open any files, be it a .pak or the .fx.

Opening mc2.fx gets me a "ERROR #0002" File type not supported.

Opening any pak files (I used sound.pak) opens the file with 0 listed items.

PS : Should I keep posting in this topic or use PMs from now on?

Exactly my problem as well. I would kill if I could finally replace that stupid MG sounds, but these *.pak file is a pain in the ass. I think we have to wait till magic finds the time to remove soundfiles from the archives as well, like he did with the other stuff ;)
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.

 

Offline magic

  • Moderator
  • 211
Re: Editing sound files cause game to crash
Mc2fx does not contain any sound files, only weapon effects and so. It is not PAK file.

MC2 sounds are in sound.pak.

It can be extracted with xplist.

I had it extracted long time ago, I will have to find. The problem with xplist is when you have empty place in pak file it will unpack all files until it finds the empty place and stop. There was a solution for that but I cant remember.

Sound.pak unpacked:
https://rapidshare.com/files/3949706500/MC2%20sounds.rar
« Last Edit: September 14, 2012, 03:49:07 am by magic »

 

Offline magic

  • Moderator
  • 211
Re: Editing sound files cause game to crash
Anyone who can create better sound effects is welcome to do that.

 

Offline Starman01

  • Moderator
  • 213
  • Mechwarrior
    • Wing Commander Saga
Re: Editing sound files cause game to crash
But how can we "repack" them ? Or do we even have to ? Not sure you "freed" that pak already....
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.

 

Offline magic

  • Moderator
  • 211
Re: Editing sound files cause game to crash
I will take care of the packing (trying to find prepared files for that). Will probably use mk files from pilot sound file.

 

Offline Starman01

  • Moderator
  • 213
  • Mechwarrior
    • Wing Commander Saga
Re: Editing sound files cause game to crash
Sounds great :) Remember the new MG Sounds I posted a while back ? I would die to remove the one from vanilla..


What specs do the new files need to have ? Type, length, Hz ?
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.

 

Offline magic

  • Moderator
  • 211
Re: Editing sound files cause game to crash
Here is unpacked and prepared for packing.
https://rapidshare.com/files/744046853/MC2%20sounds.rar

dbl click mkSound and you get sound.pak.

 

Offline Starman01

  • Moderator
  • 213
  • Mechwarrior
    • Wing Commander Saga
Re: Editing sound files cause game to crash
You are the man !!!!!  :yes:  Time to light another candle on my "magic" shrine :)
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.