Melchior FRANZ wrote:
> Drew wrote:
> > switch = props.globals.getNode("/sim/rendering/blackout", 1);
> >
> > Does this property need to be declared somewhere?
>
> No. The line is OK. But maybe your version of fgfs isn't? The Nasal code
> is for fgfs CVS/HEAD. It uses Nasal syntax that was added to CVS yesterday.
> (Not that it had to. But it was fun.  :-)

Actually, that would just cause a parser error.  I suspect what's
really happening is that on Drew's system the black.nas file is being
loaded before props.nas (the order is arbitrary -- whatever the OS
gives you).

Nasal currently lacks an "import" feature that allows you to say
"please stop executing this file until this other file is loaded, then
resume".  Although with the new features, this would be easy to add.

For right now, the safest thing is to put your initialization code (at
least the parts that depend on other modules) into a function and set
it to run after startup with settimer().

Andy

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to