• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Newcomer to XML, help needed.

Messages
3
Country
unitedkingdom
Hi,
Recently i have become facinated by XML but i have no idea how to start. I decided i would try to make a file that plays a sonic boom sound (SBoom.wav) when the aircraft reaches Mach.1. could anyone get me started?

I have kind of become to understand this is the basic layout:

<Element>
<Select>
<Value>
(L:COP_SBoom,enum)
if{
}
</Value>
</Select>
</Element>

This is what i have, it could be completely wrong for all i know, but could someone give me afew pointers to get started. (I make websites from HTML script so i'm not new to this kind of script)

Thanks

Gareth.
 
Welcome to XML Schema.

Sound wasnt the greatest choice in learning XML, lol.. Kind of a sophisticated direction where people have figured out how to get sound into FS. They had to use C++ gauge coding to get it to work. XML can then turn on sounds when you have the sound system in place in FS.

I use Bill Leamings sound system and just recently got Dougs also. From there, you simply create a script that will trigger it.

They can fill you in on exactly how it is done.

Welcome aboard on XML. It can be fun, and nerve wracking as well....
 
One small point about a sonic boom. You don't hear it from within the a/c. Only from outside, e.g. on the ground.
vololiberista
 
One small point about a sonic boom. You don't hear it from within the a/c. Only from outside, e.g. on the ground.
vololiberista

That brings an interesting question: if you use one of the XML to sound modules, can you limit that sound to only be heard from certain views? Ie. make an APU that can be heard from outside but not from the cockpit (because it is at the other end of the large aircraft and an air conditioning sound that can be heard only inside the aircraft..? If not with the freeware modules, then how about with the payware ones?

Geoff
 
No. There's no way to determine which viewpoint is currently active... :(
 
You can certainly limit *triggers* to the 2D cockpit (just put the triggering gauge into the 2D cockpit listing and not into the VC gauge listing), but I don't know about the VC - I don't think so for the freeware gauge?
 
That brings an interesting question: if you use one of the XML to sound modules, can you limit that sound to only be heard from certain views? Ie. make an APU that can be heard from outside but not from the cockpit (because it is at the other end of the large aircraft and an air conditioning sound that can be heard only inside the aircraft..? If not with the freeware modules, then how about with the payware ones?

Geoff
Yep you can :) ....use an effect to play the sound .
 
Back
Top