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!
Battle Dynamic Music Player V1.1
Moderator: Moderators
Battle Dynamic Music Player V1.1
Last edited by LEDZ on 21 May 2012, 02:03, edited 1 time in total.
Re: Battle Dynamic Music Player V1.1
This version now has a working spectator mode and improved debug readout. (type /luaui debugmusic to see)
Re: Battle Dynamic Music Player V1.1
Thanks, dynamic music is a nice addition to a proper release!
Re: Battle Dynamic Music Player V1.1
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 "\"
"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
OTA music suxx =)) I disabled this widget))