Products Support > GSX Sharing area - Airplane Configs
iFly 747-400
virtuali:
--- Quote from: boilerbill on December 15, 2014, 01:38:36 am ---Does it make any difference whether I had used 'number' instead of 'bool' since the bool variables (0 and 1) are a subset of the set of values a number variable can have?
--- End quote ---
Keep in mind that this is not really a GSX question, but rather a generic question on how XML expression works in FSX, GSX simply pass them to FSX as they are.
What you should use, it really depends on the airplane and how the animation is made. Some developers use a variable as a bool ( hence 0 or 1 ) and define an animation with a given number of frames, for example 100. In this case, their definition might look like this:
(L:MyVariable, bool) 100 *
Their gauge code will set the L: variable to either 0 or 1, and the animation will playback at the speed defined by the <Lag> parameter in the modeldef.xml, because the variable will change from 0 to 1 immediately, but the animation will catch up with it later, following by the <Lag> parameter. This is fine for linear animations.
Some developers would like to have more control, for example having a non-linear animation, one that starts slower and ends faster. In this case, they would not just set the variable to 1 and let FSX doing the rest, but they could control the variable going from 0 to 100 using their own timings. In this case, their modeldef.xml bit will look like this:
(L:MyVariable, number)
There will be no <Lag>, usually, and the gauge code will set the variable from 0 to 100.
This 2nd case sometimes might be interesting to known for GSX customization because, if allows you to write a custom door check expression this way:
(L:MyVariable, number) 90 >=
This means that GSX will wait until the variable will reach 90 ( let's assume the animation ends at 100 ) before considering the door to be open, and this might prevent the vehicle clashing into the still opening door, which might have happened if you just checked for being "not zero", so the GSX vehicle would move immediately after the first animation frame.
boilerbill:
Thank you for such an informative answer to a question that isn't quite within the scope of this forum. I didn't know where else to ask it. It never occurred to me that these number-type variables could actually control the animation in some way, but I've never used much xml programming. (The last programming language that I felt really comfortable with was C, which I taught at the high school level, and we never wrote any type of graphics programs with it.) If customers only knew how many thousands of lines of code it takes to make graphical simulations work, they would be a lot more understanding when things aren't perfect.
nbl5370g:
this works great even in P3D V3. I just followed the instructions and hey presto no more messages saying open exit 2
Letti:
Hi there
Ive tried to locate the gsx.cfg in the appdata folder... But the folder "airplanes" doenst exist o_O
tried a reinstall with an completely new downloaded installer
can anyone help me please?
virtuali:
--- Quote from: Letti on February 01, 2016, 07:36:02 am ---Ive tried to locate the gsx.cfg in the appdata folder... But the folder "airplanes" doenst exist
--- End quote ---
If you never customized any airplane with the GSX editor, it's normal that folder wouldn't exists.
You can create it, and create a new sub-folder inside, named *exactly* like the name of the airplane folder itself, under the FSX\Simobjects\Airplanes folder.
Navigation
[0] Message Index
[*] Previous page
Go to full version