Marching Music - use road order - allocating music to a specific army?

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Marching Music - use road order - allocating music to a specific army?

Post by Crikey »

Is it possible to allocate specific marching music (when the use road order is activated) to a specific army? If so what gui.csv entry needs to be amended?

Welcome some advice. B)
User avatar
Little Powell
Reactions:
Posts: 4884
Joined: Thu Sep 18, 2008 10:25 am

Re: Marching Music - use road order - allocating music to a specific army?

Post by Little Powell »

Unfortunately I don't think this is possible. The marching music is a unique section in the sfx.csv. Whenever any unit uses roads, it randomly chooses one of the marching music files to play/loop.
Saddletank
Reactions:
Posts: 2171
Joined: Sat Dec 24, 2011 4:49 am

Re: Marching Music - use road order - allocating music to a specific army?

Post by Saddletank »

Crikey - I hope MTG sees this thread and comments since he has got this to work. It's in the 1.710 ver of the KS Nap mod but I don't know how he did it. It seems there is specific music for specific unit classes as the highlander units play bagpipes ;)
HITS & Couriers - a different and realistic way to play SoW MP.
User avatar
Little Powell
Reactions:
Posts: 4884
Joined: Thu Sep 18, 2008 10:25 am

Re: Marching Music - use road order - allocating music to a specific army?

Post by Little Powell »

Well it'll be news to me. I'm by no means an expert on the Classes etc., but know a thing or two about how the sounds work. I'd be curious to check out that mod.
Jack ONeill
Reactions:
Posts: 1896
Joined: Mon Apr 28, 2008 10:49 pm

Re: Marching Music - use road order - allocating music to a specific army?

Post by Jack ONeill »

All,

Yes, it can be done. Alesillo did it for his WSS Mod. The British, French/Bavarian and Imperial Infantry all have their own music, (ie: Drums), while on the march. I have added Drums to all the Allied Infantry, also. Here are the relevant files that were changed (in a Mod of the Mod, of course). Take a look.

Jack B)
The attachment unitglobal_2015-01-13.csv is no longer available
The attachment sfx.csv is no longer available
Attachments

[The extension csv has been deactivated and can no longer be displayed.]

[The extension csv has been deactivated and can no longer be displayed.]

American by birth, Californian by geography, Southerner by the Grace of God.

"Molon Labe"
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Marching Music - use road order - allocating music to a specific army?

Post by Crikey »

All - thanks for the help but I'm still not sure I can do what I want.

I'll provide some more detail to try and clarify as I may be missing something. :)

Yep, I spotted that I can allocate a music file (for example FR_Inf_1 as per the sfx.csv Jack attached). This is triggered when a unit begins to walk (whether it uses roads or not). However, this seems to trigger every time a unit to which it is allocated moves. So if FR_Inf_1 is allocated to a uniform type, the sound repeats every time a sprite with that uniform type moves. I seem to end up with multiple loops of the same sound as I tend to use regts with mixed unis. Does that ring true?

I'm looking to allocate some Mexican marching music that will only trigger when a unit in a particular army is forced to use roads.

The forced use of roads seems to trigger randomly a set of marching music files (see the stock sfx.csv)

MARCH SOUNDS
SFX_March_1 Mm_NSDMarch1.wav 25 500 0 0 1
SFX_March_2 Mm_NSDMarch2.wav 25 500 0 0 1
SFX_March_3 Mm_NSDMarch3.wav 25 500 0 0 1
SFX_March_4 Mm_NSDMarch4.wav 25 500 0 0 1
SFX_March_5 Mm_NSDMarch5.wav 25 500 0 0 1
SFX_March_6 Mm_NSDMarch6.wav 25 500 0 0 1
SFX_March_7 Mm_NSDMarch7.wav 25 500 0 0 1
SFX_March_8 Mm_NSDMarch8.wav 25 500 0 0 1

If LP is right, these can't be allocated to an army of choice.

Happy to be proved wrong. B)
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: Marching Music - use road order - allocating music to a specific army?

Post by Marching Thru Georgia »

Put the sound names in unitglobals. Then an entire class, (regiment), regardless of uniform types will only use a particular sound. Of course the sound will play whenever the unit marches, not just on the roads.
I can make this march and I will make Georgia howl.
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Marching Music - use road order - allocating music to a specific army?

Post by Crikey »

Thanks MtG and others
Put the sound names in unitglobals. Then an entire class, (regiment), regardless of uniform types will only use a particular sound. Of course the sound will play whenever the unit marches, not just on the roads.


I've gone down the SR1 route. Regts are companies etc. I'll experiment to see what works best.
Of course the sound will play whenever the unit marches, not just on the roads.
Yeah, I was hoping to separate them out.

No worries.

Thanks for the advice.
Martin James
Reactions:
Posts: 569
Joined: Mon Apr 11, 2011 9:23 pm

Re: Marching Music - use road order - allocating music to a specific army?

Post by Martin James »

Put the sound names in unitglobals. Then an entire class, (regiment), regardless of uniform types will only use a particular sound. Of course the sound will play whenever the unit marches, not just on the roads.
But in the stock game, the march music only plays when a unit is ordered to use roads. How can we change that tune to something else, please?

Martin
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: Marching Music - use road order - allocating music to a specific army?

Post by Marching Thru Georgia »

Change the Mm_NSDMarchX.wav, (where X is 1 to 8), tunes in the \base\sounds folder to the music of your choice.
I can make this march and I will make Georgia howl.
Post Reply