Importing music into OpenRA

"Drill" from CovertOps disc into OpenRA

Information and discussion for custom maps and mods.
Post Reply
modingo
Posts: 4
Joined: Fri Jun 14, 2013 9:16 pm

Importing music into OpenRA

Post by modingo »

I have a .aiff song called "Drill" from CovertOps disc that wasn't inthe scores.mix file. I noticed it wasn't listed in the music list in OpenRA after I added the CovOps scores.mix file into OpenRA.

All the other CovOps music is there in OpenRA by adding the CovOps scores.mix file into CnC mod folder together with existing scores.mix...changing name slightly, of course.
Is the any way to get that .aiff file to play in OpenRA?
I'm on an intel mac so theres not much in the way of conversion software that I know how to use. Tried ffmpegX to convert .aiff to Westwoods .aud format with no luck.

I understand that it has to be converted to Westwoods' .AUD format. Then it probably needs to go into the cmc folder in OSX's Library but not sure
Any info about it would be much appreciated. :)

Matt
Posts: 1155
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Is the AIFF file located on the CD file-system or did you click import tracks in some fancy Mac tool? It seems to be an Apple audio file format so I think it is unlikely Westwood put it on the CD and if they decided to just put one track in a separate file format it may not be worth the effort to add support to it for OpenRA though this is certainly possible.

FFMPEG can only read AUD if I am not mistaken. Try one of the tools we collect at https://github.com/OpenRA/OpenRA/wiki/Audio-guide for the conversion process.

modingo
Posts: 4
Joined: Fri Jun 14, 2013 9:16 pm

Post by modingo »

Cmd. Matt wrote: Is the AIFF file located on the CD file-system or did you click import tracks in some fancy Mac tool?.

When I tried to import the music files into OpenRA like I did with my CnC discs, iTunes tried to get me to import them. On my desktop were 2 CD's because its a Hybrid disc I guess and thats what happens. One was music disc the other was the CovOps disc. Later, after finding out how to get all but "Drill" into CnC mod, I copied it out of the music cd disc onto my desktop where it is now. Its still in the native .aiff format

Matt
Posts: 1155
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Looks like Apple hides the conversion from music CD tracks to AIFF from you in the process and this "user-friendliness" is confusing here.

modingo
Posts: 4
Joined: Fri Jun 14, 2013 9:16 pm

Post by modingo »

Cmd. Matt wrote: Looks like Apple hides the conversion from music CD tracks to AIFF from you in the process and this "user-friendliness" is confusing here.
Not sure if there is a conversion or not. The disc is opened and the files are in that format. It didn't happen as I drop-copied it to the desktop. My question is...how can it be converted so OpenRA reads it?

If that's possible, then I'll try to figure out where it goes.

modingo
Posts: 4
Joined: Fri Jun 14, 2013 9:16 pm

UPDATE: Mission Accomplished

Post by modingo »

SHORT VERSION: how I added a custom song to OpenRA's built-in music player using an Intel Mac (OSX10.8.4):
Note: Drill.aiff is the Covert Operations song I wanted to add to OpenRA and the app mod I was installing it into was Command & Conquer:Tiberian Dawn (cnc).

Here goes...

• Converted Drill.aiff to Drill.wav using the free Mac app ...Audacity

• Downloaded free WineSkin Winery & loaded XCC Mixer.exe in a wrapper on my Intel Mac and updated it with the required WS9Wine 1.6 engine and Mono Frameworks.

• Used the newly installed XCC Mixer to convert Drill.wav into drill.aud (no easy task-as it is a barbaric application from the 1930's I think...see screenshot and notes at the bottom ***)

• Placed the drill.aud into my OpenRA's "Package Contents" by right clicking on the OpenRA application to Show Package Contents. Use this hierarchy to place the converted file into "bits" folder:
OpenRA > Contents > Resources > mods > cnc > bits

• Then I used the free app TextWrangler to edit the file music.yaml located in the OpenRA's Package Contents at:
OpenRA > Contents > Resources > mods > cnc > chrome

• In TextWrangler, I noticed that there was already a line of code for the CovertOps song along with all the other songs, The line of code happened to be "dril225m: Drill" without the quotes. The title "Drill" after the colon is the name the OpenRA player will list it as.

• I closed TextWrangler and did not save because the line code was already in place

• I went back into the bits folder and simply changed the name of the newly converted drill.aud to dril225m.aud to match the name shown in the music.yaml file
Note: Yes, I realize I could have also changed the line of code in music.yaml to match the name I gave the newly converted song and saved it.

Thats was it. I launched OpenRA and there is was. The song "Drill" was listed in the player and it played perfectly.



***This is a screenshot of XCC Mixer. To convert a .wav file to a Westwood Studios .aud file this is the application to do it. Ignore my futile attempts at using the Open menu to do this conversion in the last screenshot. This was a mistake. None of the XCC Mixer's top menu items are used in the conversion process. You simply navigate to the .wav files location on the far left window and the navigate to the location in the middle window where you want the converted file to end up. Navigation within these windows is sort of trial and error with a few swear words mixed in. It can be done but don't succumb to the notion that you can use the top menu in this process. It won't help. Once you have both window panes where you want them, right click on the .wav file and COPY as AUD file. It will immediatly convert a copy to the middle window pane. Also of special note to Mac Users: You can not Control-click on the .wav file to emulate a 2 button mouse right click in XCC Mixer. It will select or deselect the file only. And if you click too fast, the .wav will start to play as it did for me. I ended up replacing my one button mouse with a two button mouse for this conversion. It was the ONLY way I could invoke the pull-down menu that allowed me to Copy as AUD
Attachments
Here you can see the options available in XCC Mixer in the pull-down menu
Here you can see the options available in XCC Mixer in the pull-down menu
Screen Shot 2013-06-15 at 4.37.56 AM.png (42.9 KiB) Viewed 7907 times
This is what XCC Mixer looks like on initial launch.  Ignore that Open window
This is what XCC Mixer looks like on initial launch. Ignore that Open window
Screen Shot 2013-06-15 at 1.22.14 AM.png (77.57 KiB) Viewed 7907 times

User avatar
zypres1
Posts: 277
Joined: Mon Oct 24, 2011 8:22 pm

Post by zypres1 »

thanks for updating us on how to do it

Post Reply