Battle Dynamic Music Player V1.1

Battle Dynamic Music Player V1.1

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.1

Post 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!
Last edited by LEDZ on 21 May 2012, 02:03, edited 1 time in total.
LEDZ
Posts: 66
Joined: 27 Jun 2011, 13:43

Re: Battle Dynamic Music Player V1.1

Post by LEDZ »

This version now has a working spectator mode and improved debug readout. (type /luaui debugmusic to see)
BaNa
Posts: 1562
Joined: 09 Sep 2007, 21:05

Re: Battle Dynamic Music Player V1.1

Post by BaNa »

Thanks, dynamic music is a nice addition to a proper release!
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Battle Dynamic Music Player V1.1

Post 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 "\"
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Battle Dynamic Music Player V1.1

Post by jamerlan »

OTA music suxx =)) I disabled this widget))
Post Reply

Return to “Lua Scripts”