Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Howto:Persistent Nasal configuration"

From FlightGear wiki
Jump to: navigation, search
m
Line 4: Line 4:
  
 
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
 +
We will be using a Nasal hash, that is treated as JSON
 
<syntaxhighlight lang="nasal">
 
<syntaxhighlight lang="nasal">
 
{
 
{

Revision as of 11:03, 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 We will be using a Nasal hash, that is treated as JSON

{
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);