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

This Month's Specials

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

   







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


Reply
 
Thread Tools Display Modes
  #1  
Old April 19th, 2011, 06:03 PM
A_Rude_Gesture's Avatar

A_Rude_Gesture A_Rude_Gesture is offline
Private
 
Join Date: Jun 2005
Location: Scania (Southernmost part of), Sweden
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
A_Rude_Gesture is on a distinguished road
Thumbs down Sound file question

Hi!
First off, I've tried searching for all the possible keywords relating to this subject that I could think of, still I might have missed something and if I have, I'm sorry.

Onto my question.
I was just wondering if it would be at all possible to link a sound file to starting a certain scenario? I'll elaborate. Say I make a scenario depicting the Falklands/Malvinas war and I want a short mp3 clip of Thatcher commenting on the occupation to play when you start the scenario, maybe linked to the Choose Side screen (perhaps even, if possible, linked to a person choosing to play the British side) and if they win the scenario and the "Outcome Screen" pops up I want another speech by Thatcher or perhaps a snippet of music, would this be at all possible?

Ideally I would of course like to have different mp3-clips for each outcome ranging from massive defeat to total victory.

I know it was possible to link sound to the briefing screen in another Steel Panthers game not being made by the good folks at Shrapnel Games (I won't mention the name of that particular game as I'm amongst civilized people here on the forums and there is no need for profanity, sufficing to say I removed it from my hard drive the moment I discovered WinSPMBT...which was many years ago).
__________________
“Darling, I’m off to the war.”
“Don’t go, darling, don’t go to the war.”
“I must go to the war, darling, they won’t start without me.”
“Don’t go, darling, it’s dangerous- rat-tat-tat boom, and all those noises.”
“I must go, darling, it’s my duty as a Cockney man.”

-Eddie Izzard, Glorious
Reply With Quote
  #2  
Old April 20th, 2011, 12:09 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,616
Thanks: 4,058
Thanked 5,815 Times in 2,869 Posts
DRG will become famous soon enough
Default Re: Sound file question

Currently, no. In all the years we've been doing this ( this is the thirteenth year ) you are the only person I am aware of who has asked us about that. We started winSPMBT off with MP3's and most people had no problem but there were enough that did that we switched to WAV

Don
Reply With Quote
The Following User Says Thank You to DRG For This Useful Post:
  #3  
Old April 20th, 2011, 03:15 AM
iCaMpWiThAWP's Avatar

iCaMpWiThAWP iCaMpWiThAWP is offline
First Lieutenant
 
Join Date: Sep 2008
Location: Brazil/France/Somewhere over the Atlantic
Posts: 660
Thanks: 21
Thanked 30 Times in 19 Posts
iCaMpWiThAWP is on a distinguished road
Default Re: Sound file question

Quote:
Originally Posted by DRG View Post
Currently, no. In all the years we've been doing this ( this is the thirteenth year ) you are the only person I am aware of who has asked us about that. We started winSPMBT off with MP3's and most people had no problem but there were enough that did that we switched to WAV

Don
What is the main difference, in the game, between WAV or MP3 sounds?
__________________
I am not responsible for any damage your brains may suffer by reading the text above
Reply With Quote
  #4  
Old April 20th, 2011, 04:14 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,988
Thanks: 482
Thanked 1,922 Times in 1,250 Posts
Mobhack is on a distinguished road
Default Re: Sound file question

There is no difference in game terms between WAV and MP3 - it is just that some folk's machines did not play the MP3 format properly, due to differences in installed codecs. That is why we went for the WAV format as the default in the sounds eventually - the Microsoft DirectPlay suite the sound engine uses seems to be very sensitive to the installation of non-standard codecs.

MP3 files are usually smaller than WAV, that is their main benefit.


Cheers
Andy
Reply With Quote
  #5  
Old April 20th, 2011, 05:31 AM
A_Rude_Gesture's Avatar

A_Rude_Gesture A_Rude_Gesture is offline
Private
 
Join Date: Jun 2005
Location: Scania (Southernmost part of), Sweden
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
A_Rude_Gesture is on a distinguished road
Default Re: Sound file question

Quote:
Originally Posted by DRG View Post
Currently, no. In all the years we've been doing this ( this is the thirteenth year ) you are the only person I am aware of who has asked us about that. We started winSPMBT off with MP3's and most people had no problem but there were enough that did that we switched to WAV

Don
Well, mom always said I was special...in fact...so did my teachers..hmmm?
Well, if I'm the only one requesting this feature I understand why you won't bother with trying to implement it. Anyway, thanks a bunch for the reply!
__________________
“Darling, I’m off to the war.”
“Don’t go, darling, don’t go to the war.”
“I must go to the war, darling, they won’t start without me.”
“Don’t go, darling, it’s dangerous- rat-tat-tat boom, and all those noises.”
“I must go, darling, it’s my duty as a Cockney man.”

-Eddie Izzard, Glorious
Reply With Quote
  #6  
Old April 20th, 2011, 11:41 AM
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 file question

There is a work around that may work IF you want to be creative.

Create your scenario in it's own private folder.
Put your replacement sound file(s), named the exact same as the default sound/music file in that same folder.
When your scenario is run the game may run your version of the sound file rather then the default.

I have not tested this, but depending on exactly how the WinSPMBT .exe code is written, it may work.
__________________
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
The Following User Says Thank You to Suhiir For This Useful Post:
  #7  
Old April 20th, 2011, 04:55 PM
A_Rude_Gesture's Avatar

A_Rude_Gesture A_Rude_Gesture is offline
Private
 
Join Date: Jun 2005
Location: Scania (Southernmost part of), Sweden
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
A_Rude_Gesture is on a distinguished road
Default Re: Sound file question

Thanks!
I'll try that!
__________________
“Darling, I’m off to the war.”
“Don’t go, darling, don’t go to the war.”
“I must go to the war, darling, they won’t start without me.”
“Don’t go, darling, it’s dangerous- rat-tat-tat boom, and all those noises.”
“I must go, darling, it’s my duty as a Cockney man.”

-Eddie Izzard, Glorious
Reply With Quote
  #8  
Old April 20th, 2011, 06:55 PM
A_Rude_Gesture's Avatar

A_Rude_Gesture A_Rude_Gesture is offline
Private
 
Join Date: Jun 2005
Location: Scania (Southernmost part of), Sweden
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
A_Rude_Gesture is on a distinguished road
Default Re: Sound file question

Suhiir, I need a little clarification.

When you say create the scenario in it's own folder, I presume you mean in it's own folder in windows, yeah? Problem is that the game won't find the scenario if it's in another folder.
Is there perhaps some ini-file or something where I can point it to scan another folder as well as the original?

When it comes to the replacement soundfile, my main problem is that I'm not sure which soundfile to change. I'm trying to get it to play when they start the scenario, so I'm guessing it's the click sound, but I don't want the soundfile to kick off everytime a person clicks on something whilst playing the scenario.

Let me elaborate.
As you may or may not know I'm currently creating a series of fictitious scenarios depicting the Provisional IRA during the 70's and what I would like is to, say, have James Connolly's famous last statement read as the person playing the scenario hits the "Start"-button and then never be heard again. I'm guessing that will be very hard since it appears there is only one "Click"-sound.

Again, if I could point the irl action of a person clicking the "start"-button to associate that with a certain soundfile, we'll be laughing, but then I suppose I wouldn't need to put the scenario in it's own folder, nor rename the soundfile.

Checking the sound ini files there are a lot of sound slots not being used, but how to change the association of a soundslot to go with a certain action in game is, I suspect, beyond my capabilities.

There is however a peculiar part in the CamoGame.ini which reads:

;interface click 0=off, 1=on when sound preference is on
SPCInterfaceClick=1

;interface click 0=off, 1=on when sound preference is on
SPCInterfaceClick=0

Not sure what exactly this is pointing to. Well, 1 am here in Sweden, so I'll call it a night, but I'll play around with the inis tomorrow.
__________________
“Darling, I’m off to the war.”
“Don’t go, darling, don’t go to the war.”
“I must go to the war, darling, they won’t start without me.”
“Don’t go, darling, it’s dangerous- rat-tat-tat boom, and all those noises.”
“I must go, darling, it’s my duty as a Cockney man.”

-Eddie Izzard, Glorious

Last edited by A_Rude_Gesture; April 20th, 2011 at 06:57 PM.. Reason: Because I'm to stupid to use the preview
Reply With Quote
  #9  
Old April 21st, 2011, 02:59 AM
iCaMpWiThAWP's Avatar

iCaMpWiThAWP iCaMpWiThAWP is offline
First Lieutenant
 
Join Date: Sep 2008
Location: Brazil/France/Somewhere over the Atlantic
Posts: 660
Thanks: 21
Thanked 30 Times in 19 Posts
iCaMpWiThAWP is on a distinguished road
Default Re: Sound file question

Make sure you back them up before doing it
__________________
I am not responsible for any damage your brains may suffer by reading the text above
Reply With Quote
  #10  
Old April 25th, 2011, 01:36 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 file question

Quote:
Originally Posted by A_Rude_Gesture View Post
When you say create the scenario in it's own folder, I presume you mean in it's own folder in windows, yeah?
Yes

Quote:
Originally Posted by A_Rude_Gesture View Post
Problem is that the game won't find the scenario if it's in another folder.
Is there perhaps some ini-file or something where I can point it to scan another folder as well as the original?
I would have thought you could alter the path in an .ini file as well. But on closer inspection this doesn't appear there is an .ini telling WinSPMBT where to look for it files...so not gonna work.

Again I want to stress this whole idea was a work around to attempt to do something WinSPMBT was never intended to be able to do.
__________________
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
Reply

Bookmarks


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 05:29 PM.


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