Howto:Persistent Nasal configuration: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
Create a file for your settings, save it as [[$FG_HOME]]/Nasal/rgatc.config
Create a file for your settings, save it as [[$FG_HOME]]/Nasal/rgatc.config
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
var settings =
{
{
width: 100,
width: 100,

Revision as of 13:22, 12 January 2020

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

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

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

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

debug.dump(mySettings);