Changes

Jump to: navigation, search

Howto:Persistent Nasal configuration

533 bytes added, 12 January
currently untested, might have to use lower-level call() API instead of load_nasal() here https://forum.flightgear.org/viewtopic.php?f=6&t=36755&start=45#p359849
{{Stub}}

Consider the following setup

Create a file for your settings, save it as [[$FG_HOME]]/Nasal/rgatc.config
<syntaxhighlight lang="nasal">
var settings =
{
width: 100,
length : 200,
scale: 10,
range: 25
};
</syntaxhighlight>

Next, open the [[Nasal Console]], and paste the follwing code:


$FG_HOME/Nasal/rgatc.config
<syntaxhighlight lang="nasal">
var filename = "rgatc.config";
var path = getprop("/sim/fg-home") ~ '/Nasal/' ~ filename;
var mySettings = io.load_nasal( path );

debug.dump(mySettings);

</syntaxhighlight>
18,310
edits

Navigation menu