gametechmods

Robot Arena => General Support => Topic started by: Mistfire333 on April 18, 2012, 11:53:07 PM

Title: Use custom music
Post by: Mistfire333 on April 18, 2012, 11:53:07 PM
hi everyone, i just wanted help on changing the music that plays in-game


i also have a few bots that i think will be a treat if you learn how to use them well
Title: Re: Use custom music
Post by: NFX on April 21, 2012, 07:08:16 AM
There's a folder called "Music" in the RA2 directory. You can just put whatever music you want in there, and it'll play in the game. As long as it's an MP3 file.
Title: Re: Use custom music
Post by: Mr. AS on April 21, 2012, 09:14:41 AM
you can put multiple .mp3's in a folder but ra2 will play them in alphabetical order
Title: Re: Use custom music
Post by: Mistfire333 on April 21, 2012, 03:19:54 PM
ok thanks, is there a way i could get music to play during a match?
Title: Re: Use custom music
Post by: NFX on April 22, 2012, 05:18:30 AM
You have to mess around with the .exe file, I think. Nobody has been able to achieve this yet. So, unfortunately, no.

Perhaps you could change the final countdown beep to some sort of music file.
Title: Re: Use custom music
Post by: Mr. AS on April 22, 2012, 05:25:06 AM
You have to mess around with the .exe file, I think. Nobody has been able to achieve this yet. So, unfortunately, no.
http://www.madiaba.gametechmods.com/MusicBoxArena.rar (http://www.madiaba.gametechmods.com/MusicBoxArena.rar)
myth busted

but if you want music to play for each arena you'll have to copypaste the code from the musicbox arena to each and every other arena in it's corresponding place per arena
Title: Re: Use custom music
Post by: Mistfire333 on April 22, 2012, 06:20:31 PM
You have to mess around with the .exe file, I think. Nobody has been able to achieve this yet. So, unfortunately, no.
http://www.madiaba.gametechmods.com/MusicBoxArena.rar (http://www.madiaba.gametechmods.com/MusicBoxArena.rar)
myth busted

but if you want music to play for each arena you'll have to copypaste the code from the musicbox arena to each and every other arena in it's corresponding place per arena
could you make a video on how to do this?
Title: Re: Use custom music
Post by: Trovaner on April 22, 2012, 09:20:04 PM
I personally prefer to play music in the background using a music player.
Alternatively, you can...
-copy the music code from the Music Box Arena and put it in "Arenas/__init__.py" to get it to play songs only during battles. This would be a much easier solution (than the latter alternative) but getting specific arenas to play certain tracks wouldn't be as easy to do.
-copy the music code from the Music Box Arena and put it in every Arena.py to to get every arena to play its own unique song. More work but it would allow you to theme specific arenas.

At the moment, I don't have the time to record a video or write the code for you but it wouldn't be too difficult to figure out on your own. Just compare the combat arena's code to the music box's code.
Title: Re: Use custom music
Post by: Reier on April 22, 2012, 10:46:35 PM
BTW Mistfire: This guy knows everything RA2 related ever ^