Howto:Persistent Nasal configuration

From FlightGear wiki
Revision as of 13:17, 12 January 2020 by Hooray (talk | contribs) (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)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article is a stub. You can help the wiki by expanding it.

Consider the following setup

Create a file for your settings, save it as $FG_HOME/Nasal/rgatc.config

var settings = 
{
width: 100,
length : 200,
scale: 10,
range: 25
};

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


$FG_HOME/Nasal/rgatc.config

var filename = "rgatc.config";
var path = getprop("/sim/fg-home") ~ '/Nasal/' ~ filename;
var mySettings = io.load_nasal( path );

debug.dump(mySettings);