Page 1 of 1

Battle Dynamic Music Player V1.1

Posted: 20 May 2012, 12:42
by LEDZ
Edit: Tried to fix for Linux, let me know if this works please

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.
Although tested with BA only, it should work with most spring games (provided that each unit/building has a parameter called metalCost).

Use whatever music you like as long as it is in .ogg format.
To convert music files to .ogg, I recommend using Audacity, a free sound editor. 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/TTCUzpW3

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


Any feedback would be appreciated; enjoy!

Re: Battle Dynamic Music Player V1.1

Posted: 20 May 2012, 12:44
by LEDZ
This version now has a working spectator mode and improved debug readout. (type /luaui debugmusic to see)

Re: Battle Dynamic Music Player V1.1

Posted: 20 May 2012, 14:56
by BaNa
Thanks, dynamic music is a nice addition to a proper release!

Re: Battle Dynamic Music Player V1.1

Posted: 20 May 2012, 16:06
by jamerlan
Message from infolog under linux:
"No music found for War! Copy some .ogg files into \music\war"

I downloaded TA music pack.

"Music" and "music" under linux - different folders.

Also, I think its better to use "/" instead of "\"

Re: Battle Dynamic Music Player V1.1

Posted: 20 May 2012, 17:31
by jamerlan
OTA music suxx =)) I disabled this widget))