.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old September 22nd, 2014, 04:09 AM

Shan Shan is offline
Corporal
 
Join Date: Oct 2006
Posts: 178
Thanks: 6
Thanked 3 Times in 3 Posts
Shan is on a distinguished road
Default Sound trouble...

Hi Guys,
After I upgraded to v8.0(r), I am experiencing major sound issues.

I got this problem using my own OOBs. I have been doing so for ages and never seen anything like it. Using old PC, win XP, no trouble ever... and I am well aware of how this works, but I must have overlooked something?

I checked the sound files and sound.ini - a weapon is supposed to play a certain sound, the file is there, it's working, it's in the .ini --- but it doesn't. Either it plays the .null sound in its place or some other sound.

Also, I found that vertain weapons with no specific sound file assigned play a very strange one - so it's supposed to play a default file. Where can I check which default files are assigned? I haven't figured this out yet. I got an autocannon playing the sound file for CRV rockets, for example... very weird. Or a .203 making a click sound. Sniiper rifle sounding like horses...

Now, I experimented a lot, and found if I change the sound for a weapon to another specific one, sometimes it works immediately, but sometimes it won't. But I certainly don't wanna change all sounds of all weapons, this would be a nightmare for only one OOB!

As for the default sound trouble, no idea what to do about that one. Something must be really wrong with the OOB files, my other alternative would be to copy all my modded units into the original files and try if this works. Also lots of work - I tried to use my old OOBs and just checked them for updated icons or .lbms, and copied the updated units and weapons from the new version, which was much more convenient.

Has anyone had similar trouble? Any suggestions?
__________________
'Qui desiderat pacem, bellum praeparat' - Flavius Vegetius Renatus (~400 AD), in the preface to 'De re militari'
Reply With Quote
  #2  
Old September 22nd, 2014, 06:47 AM
scorpio_rocks's Avatar

scorpio_rocks scorpio_rocks is offline
Major
 
Join Date: Aug 2013
Location: Yorkshire, UK
Posts: 1,047
Thanks: 365
Thanked 440 Times in 318 Posts
scorpio_rocks is on a distinguished road
Default Re: Sound trouble...

There are 3 places weapon sounds can be set and they have an order of precidence:

The .ini sets the "Default" sound this can be overridden by the weapon's sound field in the relevant unit (in the units tab mobhack), which in turn can be overidden by the weapon sound (sound field in the weapon tab in mobhack). If any field has a 0 in it then it defaults to the next lower level - ie wpn>unit>default.

The code on the weapon tab was added V7.

Hope this helps track down your wayward sounds
__________________

"Gentlemen, when the enemy is committed to a mistake - we must not interrupt him too soon."
Horatio Nelson.
SPMBT Roundel Objectives Mod
SPMBT Small ID Flags Mod
WW2 Roundel Objectives Mod
Reply With Quote
  #3  
Old September 22nd, 2014, 08:04 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,489
Thanks: 3,958
Thanked 5,693 Times in 2,812 Posts
DRG will become famous soon enough
Default Re: Sound trouble...

Wayward weapon sound numbers are the most likely reason this is happening in your custom OOB's >if this is anything but zero it will pick up a sound file.

Attached Thumbnails
Click image for larger version

Name:	Image1.png
Views:	530
Size:	51.8 KB
ID:	13199  
Reply With Quote
  #4  
Old September 22nd, 2014, 03:08 PM

Shan Shan is offline
Corporal
 
Join Date: Oct 2006
Posts: 178
Thanks: 6
Thanked 3 Times in 3 Posts
Shan is on a distinguished road
Default Re: Sound trouble...

Alright, thanks guys, I wasn't aware of those three levels. Looking into it now...
__________________
'Qui desiderat pacem, bellum praeparat' - Flavius Vegetius Renatus (~400 AD), in the preface to 'De re militari'
Reply With Quote
  #5  
Old September 23rd, 2014, 09:40 PM
Suhiir's Avatar

Suhiir Suhiir is offline
Lieutenant General
 
Join Date: Apr 2007
Location: Salt Lake City, UT
Posts: 2,829
Thanks: 542
Thanked 797 Times in 602 Posts
Suhiir is on a distinguished road
Default Re: Sound trouble...

The sound override in the "Weapons" tab is most likely your culprit.
To my knowledge there is no "list" of what sound file should be associated with what weapon.

I spent hours experimenting when I rebuilt the USMC OOB and came up with a set of sounds I was fairly happy with.
However there are cases where I specifically did not assign a sound to a weapon (for example the M2/M4 Carbine) as some weapons are used to represent two (or more) different weapons, each of which has a distinct and different sound. In those cases you'll find the weapon has been assigned a sound in the "Units" tab.

The priority is:
Weapons tab
Units tab
Default (.ini file)
__________________
Suhiir - Wargame Junkie

People should not be afraid of their governments. Governments should be afraid of their people.

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe." - Albert Einstein
Reply With Quote
  #6  
Old September 23rd, 2014, 09:43 PM
Suhiir's Avatar

Suhiir Suhiir is offline
Lieutenant General
 
Join Date: Apr 2007
Location: Salt Lake City, UT
Posts: 2,829
Thanks: 542
Thanked 797 Times in 602 Posts
Suhiir is on a distinguished road
Default Re: Sound trouble...

Edit to the above (since the board no longer allows us to edit our posts):

The sound override in the "Units" tab is most likely your culprit.
__________________
Suhiir - Wargame Junkie

People should not be afraid of their governments. Governments should be afraid of their people.

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe." - Albert Einstein
Reply With Quote
  #7  
Old September 24th, 2014, 08:05 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,489
Thanks: 3,958
Thanked 5,693 Times in 2,812 Posts
DRG will become famous soon enough
Default Re: Sound trouble...

Quote:
Originally Posted by Suhiir View Post
Edit to the above (since the board no longer allows us to edit our posts):
What program are you using to view the forums ?

http://forum.shrapnelgames.com/showthread.php?t=50398

Apparently, the forums have taken a dislike to Firefox but Explorer is OK

Don
Reply With Quote
  #8  
Old September 24th, 2014, 11:52 PM
Suhiir's Avatar

Suhiir Suhiir is offline
Lieutenant General
 
Join Date: Apr 2007
Location: Salt Lake City, UT
Posts: 2,829
Thanks: 542
Thanked 797 Times in 602 Posts
Suhiir is on a distinguished road
Default Re: Sound trouble...

Quote:
Originally Posted by DRG View Post
Quote:
Originally Posted by Suhiir View Post
Edit to the above (since the board no longer allows us to edit our posts):
What program are you using to view the forums ?

http://forum.shrapnelgames.com/showthread.php?t=50398

Apparently, the forums have taken a dislike to Firefox but Explorer is OK

Don
Firefox.
__________________
Suhiir - Wargame Junkie

People should not be afraid of their governments. Governments should be afraid of their people.

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe." - Albert Einstein
Reply With Quote
  #9  
Old September 26th, 2014, 11:07 AM

Shan Shan is offline
Corporal
 
Join Date: Oct 2006
Posts: 178
Thanks: 6
Thanked 3 Times in 3 Posts
Shan is on a distinguished road
Default Re: Sound trouble...

I know now where the problem originates. The feature of having a sound slot in the weapons tab is relatively new. Must've come with the patches in recent years. Now, since I was unwilling to mod the newly patched OOBs again, I just used my old ones, checked them for errors (lbms, icons), updated a few of those and copied in all new additions. But since the old OOBs didn't have this weapon sound option, the programme just assigned a sound, usually #1, in the weapon sound slot... usually it was a sound between 1 and 16 or so, no idea why, but mostly 1.

Now, knowing about this, all I gotta do is change all default weapon sounds to0 - done in a few minutes per OOB.

Anyways, I find this a useful feature and started to assign common default sounds for certain common weapons, standardized across several OOBs. This eliminates the need during OOB design to check for sounds in the unit tabs.
I believe it should be used more - I like the idea that different autocannons all have their unique sound file. If you play a different OOB and some invisible unit is firing at you, you already got an idea what it could be. Aha, a Russian 30mm, so probably a BMP-2? And so on...
__________________
'Qui desiderat pacem, bellum praeparat' - Flavius Vegetius Renatus (~400 AD), in the preface to 'De re militari'
Reply With Quote
Reply

Bookmarks

Tags
sound


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:44 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.