View topic - Battle Dynamic Music Player V1.1



All times are UTC + 1 hour


Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 20 May 2012, 11:42 

Joined: 27 Jun 2011, 12:43
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/BattleDynamicMusicV11.html


Any feedback would be appreciated; enjoy!


Last edited by LEDZ on 21 May 2012, 01:03, edited 1 time in total.

Top
 Offline Profile  
 
PostPosted: 20 May 2012, 11:44 

Joined: 27 Jun 2011, 12:43
This version now has a working spectator mode and improved debug readout. (type /luaui debugmusic to see)


Top
 Offline Profile  
 
PostPosted: 20 May 2012, 13:56 

Joined: 09 Sep 2007, 20:05
Thanks, dynamic music is a nice addition to a proper release!


Top
 Offline Profile  
 
PostPosted: 20 May 2012, 15:06 

Joined: 20 Oct 2009, 12:04
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 "\"


Top
 Offline Profile  
 
PostPosted: 20 May 2012, 16:31 

Joined: 20 Oct 2009, 12:04
OTA music suxx =)) I disabled this widget))


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: knorke and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.