Unit Sounds

JTitan

Warlord
Joined
Jun 28, 2011
Messages
181
Location
New York
Everything works but there are no sounds to the unit. I would like to post this unit with sounds. Can someone help with this?

I fixed the issue with the weapon positioning and even added a backpack and canteen.

2012-09-03_AfricanInfantry2.jpg
 
CiV sounds are, unfortunately, hardcoded. Until they release the DLL "in a few months," there's absolutely nothing we can do about it.

That's true if you want to add NEW sounds, but you can reuse old sounds.

For selection sounds: Check out the "UnitGameplay2DScripts" table (makes no sense to me why unit selection sounds would be there). The columns are UnitType, SelectionSound, and FirstSelectionSound. You'll probably want AS2D_SELECT_INFANTRY for your SelectionSound and AS2D_BIRTH_INFANTRY for your FirstSelectionSound.

For combat sounds: Check out the "ArtDefine_UnitMemberCombatWeapons" table. The last two columns are WeaponTypeTag and WeaponTypeSoundOverrideTag. You'll want BULLET for both.
 
For selection sounds: Check out the "UnitGameplay2DScripts" table (makes no sense to me why unit selection sounds would be there). The columns are UnitType, SelectionSound, and FirstSelectionSound. You'll probably want AS2D_SELECT_INFANTRY for your SelectionSound and AS2D_BIRTH_INFANTRY for your FirstSelectionSound.

For combat sounds: Check out the "ArtDefine_UnitMemberCombatWeapons" table. The last two columns are WeaponTypeTag and WeaponTypeSoundOverrideTag. You'll want BULLET for both.

Thank you for your response Nutty.:)

So, this is for personal use? Because the only things that are needed for downloads are the dds, gr2, and fxsxml.

could you check out my unit Nutty?
Here is the file
View attachment AfricanInfantry.zip
 
Thank you for your response Nutty.:)

So, this is for personal use? Because the only things that are needed for downloads are the dds, gr2, and fxsxml.

could you check out my unit Nutty?
Here is the file
View attachment 330572

Another nice unit, JTitan!

Maybe I'm confused what you're asking. Are you saying you don't have any sounds when you activate your test mod to see your unit ingame? If that's the case: Every now and then I'll have a modded unit not play sounds; but then after I quit the game and try again, it'll be fine. If it's a consistent problem, my previous post was indicating where you might need to look if you forgot to add the references to one of those entries I mentioned. You didn't include the mod you made to add the unit to the game, so I'm unsure if you left something out or not.

If you're instead asking how to package sounds with the unit, then 3335d's response was right. Whoever uses your unit in their mod will end up using stock sounds (defined in the places I mentioned) when they create their mod, so there's no need to include them.
 
Another nice unit, JTitan!

Thank you Nutty. :thanx:

Maybe I'm confused what you're asking. Are you saying you don't have any sounds when you activate your test mod to see your unit ingame?

Yes, and I put Patnum333's Iroquois Infantry in the same mod and the sounds worked fine.

If that's the case: Every now and then I'll have a modded unit not play sounds; but then after I quit the game and try again, it'll be fine. If it's a consistent problem, my previous post was indicating where you might need to look if you forgot to add the references to one of those entries I mentioned. You didn't include the mod you made to add the unit to the game, so I'm unsure if you left something out or not.

I appreciate your response. It is consistent so I will have to look in the files mentioned.

If you're instead asking how to package sounds with the unit, then 3335d's response was right. Whoever uses your unit in their mod will end up using stock sounds (defined in the places I mentioned) when they create their mod, so there's no need to include them.

OK, I'll post the unit later today then.:)
 
Back
Top Bottom