[GroupAI] Dynamic background Music V3
Moderators: hoijui, Moderators
[GroupAI] Dynamic background Music V3
Yes thats right, the biggest of the MTR's singe spring began, background music that changes based on what happens ingame! Whatsmore music that can be defined via mod (possible not the best method though).
This will drop a folder called music into your spring folder along with a few mp3's and a music.tdf If you wish to add music to your mod add a music/music.tdf to your mod and then include mp3s (not packaged in your sdz/7, they need to be inside the spring/music folder not the VFS).
Then ingame assign the groupAI to your commander or some other insignificant unit and hey presto.
Download v3 (0.74b3) here
Download v3 replacement dll(0.75b2) patch here
.76b1 version
note: uses windows MCI APIs, dont expect a linux build anytime soon.
This will drop a folder called music into your spring folder along with a few mp3's and a music.tdf If you wish to add music to your mod add a music/music.tdf to your mod and then include mp3s (not packaged in your sdz/7, they need to be inside the spring/music folder not the VFS).
Then ingame assign the groupAI to your commander or some other insignificant unit and hey presto.
Download v3 (0.74b3) here
Download v3 replacement dll(0.75b2) patch here
.76b1 version
note: uses windows MCI APIs, dont expect a linux build anytime soon.
Last edited by AF on 21 Jul 2007, 00:54, edited 3 times in total.
http://www.fileuniverse.com/?p=show&a=cat&id=54
OTA cavedog music. I already have a few in there already. Rename them to remove spaces, and then add them to music.tdf. Increase the files tag and add a set of new tags for the filename and the length in seconds.
OTA cavedog music. I already have a few in there already. Rename them to remove spaces, and then add them to music.tdf. Increase the files tag and add a set of new tags for the filename and the length in seconds.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
I've yet ot notice a slowdown of any kind.
The mechanism for controlling music switches is simple, I'd have liked to have gone into more detail with it but groupAI lacks numerous calls skirmish AIs have.
It basically checks the unitcount and if its gone up or down at set intervals, along with a few timers to prevent switching back and forth every second.
Ideally I'd want it to be the gradient of damage dealt per second increase that determines the switches but I dont have that information.
The mechanism for controlling music switches is simple, I'd have liked to have gone into more detail with it but groupAI lacks numerous calls skirmish AIs have.
It basically checks the unitcount and if its gone up or down at set intervals, along with a few timers to prevent switching back and forth every second.
Ideally I'd want it to be the gradient of damage dealt per second increase that determines the switches but I dont have that information.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
An OS independant version can already be made using 0.74b3's LuaUI,
but I'm not fond of the technique that would have to be used. I may add
a simple lua call to 0.75 that would make it 'cleaner'. I'd also write an open-
source widget to go along with it
P.S. Spectators can't play the music with GroupAI? (no units)
but I'm not fond of the technique that would have to be used. I may add
a simple lua call to 0.75 that would make it 'cleaner'. I'd also write an open-
source widget to go along with it

P.S. Spectators can't play the music with GroupAI? (no units)
google is terribly obscure with mp3.
Most of what I've found refrences Windows MCI, installing codecs, encoding and decoding at command line between formats, and a collection of code projects articles that simply dont work.
I wasnt aware spring had an mp3 decoder compiled in it? There are OpenAL extensions for Mp3 but they're linux only.
Most of what I've found refrences Windows MCI, installing codecs, encoding and decoding at command line between formats, and a collection of code projects articles that simply dont work.
I wasnt aware spring had an mp3 decoder compiled in it? There are OpenAL extensions for Mp3 but they're linux only.
and can you play the OTA soundtrack mp3s? (using microsoft windows media player not VLAN or winamp).
Is the crash as soon as you start the groupAI? If it doesnt crash within 10 seconds of you selecting and assignign that groupAI it isnt the groupAIs fault. Every single operation executed by the groupAI is executed in the very first run through, if it was going to crash its crash instantly.
XP?
XPn?
XP x64?
XP Pro?
XP home?
XP corporate?
XP tablet?
XP media center?
XP sp1 or sp2?
Directx 8?
Directx 9?
Integrated audio?
Codec packs?
Is the crash as soon as you start the groupAI? If it doesnt crash within 10 seconds of you selecting and assignign that groupAI it isnt the groupAIs fault. Every single operation executed by the groupAI is executed in the very first run through, if it was going to crash its crash instantly.
XP?
XPn?
XP x64?
XP Pro?
XP home?
XP corporate?
XP tablet?
XP media center?
XP sp1 or sp2?
Directx 8?
Directx 9?
Integrated audio?
Codec packs?