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

FSXA Lvar assignment in ModelDef XML?

Kekelekou

Resource contributor
Messages
226
Country
france
I don't know if your feedback is good or bad news for me :laughing: Good news because what I want to do is achievable, bad news because then it means I don't a clue about what is wrong in my code!
Thanks anyway.
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
Well then, post your "code" (script) so we can help you figure it out! :rotfl:
 
Messages
918
Country
indonesia
from your link provided, from my side, I usually did clean and simple Lvar code in modeldef.xml
XML:
<code>(L:RefillStation_Distance, number) 1 *</code>

then all script code to drive that Lvars is from gauge or module.
 

Kekelekou

Resource contributor
Messages
226
Country
france
You are correct kalong : the code is the one posted in the first comment of the link.
My first test method was the same one as yours: all thre code in a gauge except this last bit in the modeldef animation:

Code:
100 (L:Peli_CurrentStatus, number) *
(L:Peli_Timer, number) +

And this works absolutely fine!

That’s why I don’t understand why the same darn code won’t work when injected from the modeldef!
 

tgibson

Resource contributor
Messages
11,346
Country
us-california
Does anyone KNOW that LINDA can set values in modeldef entries? If not, then you can't do it that way.
 
Messages
918
Country
indonesia
even though xml gauge and modeldef.xml use same XML programming, but it use/extract in different way.
 

Kekelekou

Resource contributor
Messages
226
Country
france
@tgibson : I’d say it can. Will test that specifically.

@kalong : why on Earth would the same language have the same syntax and usage in gauges or modeldef? MS logic! :laughing::banghead:
 
Top