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

MSFS Setting LVAR in .FLT

Messages
19
Country
unitedkingdom
Hey all

So sorry if this is a dumb question - but is it possible to set an LVAR value in .flt files?


For example if I started on a runway a particular LVAR Boolean = 1 ?

thanks
 
Messages
88
Absolutely you can. Add a [LocalVars.0] section in the .flt file and under that list all the LVARS you need to set. The LVar name must not contain spaces or it will not work.

[LocalVars.0]
MY_LOCAL_VAR=1
 
Messages
926
Country
australia
Just an addendum for anyone interested. If you save your flight it will save the [LocalVars.0] as part of the .FLT file. You can then copy and paste the parts needed into the starting FLT files (runway.FLT, taxi.FLT etc).

Note that this is also something you will need to consider if you are using an L var == 0 as an initalising value, if the user loads a saved flight then your L var initialiser won't be zero anymore.
 
Messages
49
Country
spain
Just an addendum for anyone interested. If you save your flight it will save the [LocalVars.0] as part of the .FLT file. You can then copy and paste the parts needed into the starting FLT files (runway.FLT, taxi.FLT etc).

Note that this is also something you will need to consider if you are using an L var == 0 as an initalising value, if the user loads a saved flight then your L var initialiser won't be zero anymore.
Could you elaborate on this (the initialization part)? My experience is the following:
setting a certain LVar to 1 in the default cruise.flt does work. But setting that same LVar to 1 on a saved FLT, once loaded again, it doesn’t work. It seems as if the LVar is re-written.
 
Top