Battle Dynamic Music Player V1

Battle Dynamic Music Player V1

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
LEDZ
Posts: 66
Joined: 27 Jun 2011, 13:43

Battle Dynamic Music Player V1

Post by LEDZ »

I've had quite a bit of help with Lua stuff here, so I thought I'd give something back:
A new music player that changes track according to what's happening in the game, using completely customisable .ogg music for each theme (peace/coldwar/war) and easy game/music volume control with hotkeys.

Use whatever music you like. To convert to .ogg, I recommend using Audacity (free). It has a batch converter for multiple files (edit chain/apply chain => apply to files) so you can add whatever music you want and convert it to .ogg

Code:
http://pastebin.com/7b8u33v6

Full .zip with some TA music to inspire you (extract to Spring install folder):
http://www.2shared.com/file/pD2pXCgm/Ba ... sicV1.html

Any feedback would be appreciated; enjoy!
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Battle Dynamic Music Player V1

Post by jamerlan »

Will it work for BA?
I will try! Thanks for TA sounds! :-)
LEDZ
Posts: 66
Joined: 27 Jun 2011, 13:43

Re: Battle Dynamic Music Player V1

Post by LEDZ »

Yes, I've tested it on BA only, though it should work for most mods (as long as metalCost is used by the game for units)
Post Reply

Return to “Lua Scripts”