Author Topic: Use custom music  (Read 1427 times)

Offline Mistfire333

  • Antweight
  • Posts: 39
  • Rep: 0
    • View Profile
    • Awards
Use custom music
« 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
SadBoys2001

Offline NFX

  • *
  • Posts: 14035
  • Rep: 11
  • SliSliSliSliSliSliSliSli(0)
    • AwesomeFish921
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: nfxtreme0992
Re: Use custom music
« Reply #1 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.
Co-creator of The RA2 Randomiser



Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Use custom music
« Reply #2 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
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline Mistfire333

  • Antweight
  • Posts: 39
  • Rep: 0
    • View Profile
    • Awards
Re: Use custom music
« Reply #3 on: April 21, 2012, 03:19:54 PM »
ok thanks, is there a way i could get music to play during a match?
SadBoys2001

Offline NFX

  • *
  • Posts: 14035
  • Rep: 11
  • SliSliSliSliSliSliSliSli(0)
    • AwesomeFish921
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: nfxtreme0992
Re: Use custom music
« Reply #4 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.
Co-creator of The RA2 Randomiser



Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Use custom music
« Reply #5 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
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
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline Mistfire333

  • Antweight
  • Posts: 39
  • Rep: 0
    • View Profile
    • Awards
Re: Use custom music
« Reply #6 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
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?
SadBoys2001

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Use custom music
« Reply #7 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.

Offline Reier

  • Rieir
  • *
  • Posts: 8564
  • Rep: 8
  • I GOT 3RD IN RAW1
    • https://www.youtube.com/c
  • Awards old BOTM Winner
    • View Profile
    • Awards
Re: Use custom music
« Reply #8 on: April 22, 2012, 10:46:35 PM »
BTW Mistfire: This guy knows everything RA2 related ever ^
ALERT- Another WS coming up...
voted best bot builder two times and counting babayy. the best ra2 builder who has never won an actual tournament match
ReiAI pack for Ironforge
My drawings, and my webcomics
Why online PVP will save RA2
The problem with competitive IRL in RA2
I'm fine with hugging reier