• 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.

A few Questions

Messages
9
Hi there,

i'm currently working on a DC-8 Panel and I just started Gaugedesign and so i don't have much experience in the coding department.I used some XML tutorials and looked at other XML gauges to get the basics... Now i wanted to make a firebell-testswitch which turns on a light when you push it down and plays the sound of a bell...

this is the code:

<Gauge Name="FIRE_BELL" Version="1.0">
<Element>
<Select>
<Value> L:FIRE_BELL,bool)</Value>
<Case Value="0">
<Image Name="ON.bmp" ImageSizes="72,71"/>
</Case>
<Case Value="1">
<Image Name="OFF.bmp" ImageSizes="72,71"/>
</Case>
</Select>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle+Leave"> L:FIRE_BELL,bool) ! (>L:FIRE_BELL,bool)</Click>
</Mouse>
</Gauge>

Now it works that the switch actiavtes the "FIRE" Light on the Flight Engineer panel, which is simply a bitmap-gauge which is only visible when L:FIRE_BELL is satisfied. But the switch is a problem cause i can hold it down but after around 3 seconds it starts to go up and down constantly (or is stuck in one position).... also how can i make this gauge play a soundfile called "bell.wav" in my FS9/Sound/DC-8Project/ Folder...


I have a second problem now. I designed my first real gauge now, a Volt/Amp-Meter for the Generator 1 of the DC-8

The gauge shows up in FS Panelstudio but not in the Flightsimulator...what am i doing wrong?

Here is the Code:
<Gauge Name="DC8 AC AmpVolts1" Version="1.0">
<Element>
<Visible>(L:LT_ENG,bool) !</Visible>
<Image Name="AC1.bmp" ImageSizes="200,200"/>
<Element>
<Position X="99" Y="143"/>
<Image Name="ACNeedle.bmp">
<Axis X="7" Y="90"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="150">(A:ELECTRICAL GENALT1 BUS VOLTAGE,volts)</Value>
<Nonlinearity>
<Item Value="0" Degrees="-45"/>
<Item Value="50" Degrees="-25"/>
<Item Value="85" Degrees="0"/>
<Item Value="100" Degrees="10"/>
<Item Value="125" Degrees="25"/>
<Item Value="150" Degrees="45"/>
</Nonlineartiy>
<Delay DegreesPerSecond="20"/>
</Rotate>
</Element>
</Element>
</Gauge>


Would be really nice if somebody could help a beginner...

if you want some previews of the panel, here you go:

http://tonymadgehjg.proboards98.com/index.cgi?board=screenshots&action=display&thread=1307

video:
http://www.youtube.com/watch?v=MObru4U_i3M

http://www.youtube.com/watch?v=VklQOs7a41U

Regards

Johann
 
Try this version. You need to add the first line to all XML gauges...

<?xml version="1.0" encoding="utf-8" ?>

Code:
<?xml version="1.0" encoding="utf-8" ?> 
<Gauge Name="DC8 AC AmpVolts1" Version="1.0">
	<Element>
		<Visible>(L:LT_ENG,bool) !</Visible>
		<Image Name="AC1.bmp" ImageSizes="200,200"/>
		<Element>
			<Position X="99" Y="143"/>
			<Image Name="ACNeedle.bmp">
			<Axis X="7" Y="90"/>
			</Image>
			<Rotate>
				<Value Minimum="0" Maximum="150">(A:ELECTRICAL GENALT1 BUS VOLTAGE,volts)</Value>
				<Nonlinearity>
					<Item Value="0" Degrees="-45"/>
					<Item Value="50" Degrees="-25"/>
					<Item Value="85" Degrees="0"/>
					<Item Value="100" Degrees="10"/>
					<Item Value="125" Degrees="25"/>
					<Item Value="150" Degrees="45"/>
				</Nonlinearity>
				<Delay DegreesPerSecond="20"/>
			</Rotate>
		</Element>
	</Element>
</Gauge>
 
Last edited:
mmh i just disocvered a small typo "nonlinearity" and the closing comand was "nonlineartiy" so i tried that again now my flight sim crashes all the time i open up the FE panel with that gauge...but i think i might solve that

EDIT: ok got that solved, the gauge shows up now, though it doesnt move...i'll take a look at it again
EDIT2: Gauge Works now, thanks alot!
 
Last edited:
I've corrected the typo in the example I posted. Note that I did not check the gauge for proper operation, but simply corrected the syntax and verified for proper formatting. ;)

Although you didn't state the solution to the needle not moving, I'll make a guess that your nonlinearity table was FUBAR, as typically you would list x,y coordinates for each entry, rather than degrees of rotation. :cool:
 
nope, i saw that degree thingy on another gauge + it was mentioned in some tutorial and it works..after reading again and looking at the other code i changed the Value line to this
Value Minimum="0" Maximum="150">(A:ELECTRICAL GENALT1 BUS VOLTAGE,volts) 4.1 *</Value>

and now the needle smoothly moves along it path and dispalys correctly
 
Back
Top