Jump to content
Sign in to follow this  
stephane130281

dsd_XML-sound - fuel pump sound in FS2004

Recommended Posts

Dear all,

 

I'm struggling to induce fuel pump sound in FS2004 by using the dsd_XML_sound gauge.

Here is my dsd_XML_sound.ini file:

 

[Config]

MaxSounds=100

Lvar=dsd_xml_sound3

LvarStop=dsd_stop_sounds

 

[LVars]

Lvar00=GENERAL_ENG_FUEL_PUMP_ON

 

[sounds]

Sound00=./Sound/fuelpump.wav

 

 

I've declared the dsd_XML_sound3.gau in the panel.cfg file, so the problem is not there but might be in the .ini file above.

Basically, it should start the sound when the fuel pump is ON, but it does not!

 

Anyone could help me doing this?

Many thanks in advance for any help!

 

Kind regards,

Stéphane

Share this post


Link to post
Share on other sites

This is an automatic message.

 

This topic has been moved from "The FS2004 (FS9) Forum" to "MSFS Aircraft and Panel Design Forum". This move has been done for a number of possible reasons.

  • The most likely reason is that the post was off topic.
  • The topic could also have contained images or a video that were not appropriate to the original forum it was posted in.
  • The images might not have been "illustrative" or "explanatory" in nature.
  • The topic could have been moved because we deemed it to be more appropriately placed elsewhere.

Please ensure that your posts are "on topic" and contain illustrative images or videos as appropriate. Do not post videos or images just for entertainment purposes anywhere but in the screen shot or video forums.

 

Members who continue to post off topic posts can be denied entry to specific forums in order to reduce and remove the practice. Your cooperation is appreciated.

Share this post


Link to post
Share on other sites

Hi,

 

[LVars]

Lvar00=GENERAL_ENG_FUEL_PUMP_ON

 

This is a K event.

You 'll need a L:Var.

 

So, somewhere in your panel there will be a clickspot with:

<Click>

(>K:GENERAL_ENG_FUEL_PUMP_ON)

</Click>

 

Change it to

<Click>

(>K:GENERAL_ENG_FUEL_PUMP_ON)

1 (>L:GENERAL ENG FUEL PUMP ON SOUND,enum)

</Click>

 

Then call your soundfile GENERAL ENG FUEL PUMP ON SOUND.WAV

and change the ini file into

[LVars]

Lvar00=GENERAL ENG FUEL PUMP ON SOUND

 

Hope it helps,

Share this post


Link to post
Share on other sites

Hi Jan,

 

Thx for your advices. I've renamed the .wav file and modified the .ini file. But I think you meant the .XML file about the clickspot? If so, I can't do it simply because there is no .XML files, it is a .gau file instead (e.g. the defaut C172SP in FS9).

Any advice to be able to open that kind of file?

 

Thanks again for your precious help.

Regards,

 

Stéphane

Share this post


Link to post
Share on other sites

You then need to delete or outcomment

gauge36=Cessna182s!Switches,104, 289

which contain the fuelpump (and others!)

Replace them with appropiate xml gauges.

Only then you can use the xml soundgauge.

Share this post


Link to post
Share on other sites

You then need to delete or outcomment

gauge36=Cessna182s!Switches,104, 289

which contain the fuelpump (and others!)

Replace them with appropiate xml gauges.

Only then you can use the xml soundgauge.

 

Correct

 

but also note that the dsd_XML_sound3.gau is outdated and replaced by better woking gauge.

 

Use Doug Dawson latest sound gauge. Even though it say "fsx" it work 100% in FSX and contain all the latest and greatest..!.

From Doug's website

Gauge: dsd_fsx_xml_sound.gau

Although its name refers to FSX, this gauge will also work in FS2004. It is heavily based on dsd_xml_sound3.gau.

http://www.douglassdawson.ca/

Share this post


Link to post
Share on other sites

No way to make it work!! I'm a real beginner in XLM programation.

Is there a way for you to write it for me?

It will give me also an example for the futur sound I might implement in other projects.

 

Hope you'll be able to do it.

Thanks a million,

 

Stéphane

Share this post


Link to post
Share on other sites

Hi,

 

Copy the Boeing747-400.cab from the gauges folder in a new folder of your choice

Uncab the Boeing747-400.cab in that new folder.(with winzip or other program) and start studing the simple xml files like the Strobe light switch (open with notepad)

 

<Gauge Name="Strobe Lights Switch" Version="1.0">
<Element>
 <Select>
	 <Value>(A:Light strobe,bool)</Value>
	 <Case Value="0">
	 <Image Name="Switch_Lights_Strb_Off.bmp" ImageSizes="25,45,40,72"/>
	 </Case>
	 <Case Value="1">
	 <Image Name="Switch_Lights_Strb_On.bmp" ImageSizes="25,45,40,72"/>
	 </Case>
 </Select>
</Element>
<Mouse>
 <Help ID="HELPID_GAUGE_LIGHT_SWITCH_STROBE"/>
 <Cursor Type="Hand"/>
 <Click Event="STROBES_TOGGLE"/>
</Mouse>
</Gauge>

 

Replace bitmap names with yours and put in the click section another K-event, (fuel pump).

Just save it and put the new saved xml file, name it e.g. fuelpump, and the bitmaps in a new folder under the panel folder of your aircraft, say "my xml".

Place it in the proper position in the panel.cfg with the correct synthax.

In this case: gaugexx=my xml!fuelpump, xxx, yyy

 

In your case this is an example:

 

<Gauge Name="Strobe Lights Switch" Version="1.0">
<Element>
<Position X="??" Y="??"/>
<Select>
<Value>(A:GENERAL ENG1 FUEL PUMP SWITCH,bool)</Value>
<Case Value="0"><Image Name="??off.bmp"/></Case>
<Case Value="1"><Image Name="??on.bmp"/></Case>
</Select>
</Element>

[color="#000088"]<Mouse>[/color]

<Area Left="xx" Right="yy" Top="zz" Bottom="dd">
<Tooltip>FUEL PUMP</Tooltip>
<Cursor Type="Hand"/>
<Click>
(>K:TOGGLE_ELECT_FUEL_PUMP1)
1 (>L:GENERAL ENG FUEL PUMP ON SOUND,enum)
</Click>
</Area>

[color="#000088"]</Mouse>[/color]

[color="#000088"]</Gauge>[/color]

 

Try and try again and when you are not succesful show your codes!

Share this post


Link to post
Share on other sites

Hi Jan,

 

My daughter is ill so don't have the time to do it right now, I'll do it probably this week-end and I'll let you know about it.

Again, many many thanks! :)

 

Regards,

Stéphane

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...