On Mon, 2007-09-10 at 16:58 -0700, Robert Fu wrote:
> Hi,
>  
> I'm new to FlightGrear and this mail list. The pre-built and
> self-built FlightGear-0.9.11-pre1 worked in my environment: MinGW/MSYS
> on Windows XP. But for build of the lastest CVS code of FlightGear and
> SimGear, I got the following error: 
>  
> C:\>fgfs --aircraft=f16 --airport-id=KJFK
>   Model Author:  Erik Hofman
>   Creation Date: 2001-01-01
>   Version:       $Revision: 1.44 $
>   Description:   Models an F-16A Block-32 (Basic US configuration) 
> Nasal runtime error: non-scalar in string context
>   at
> C:/gnu/msys/1.0.11/local/src/FlightGear-0.9/data/Nasal/aircraft.nas,
> line 395
>   called from:
> C:/gnu/msys/1.0.11/local/src/FlightGear-0.9/data/Nasal/aircraft.nas,
> line 818 
> Nasal runtime error: non-scalar in string context
>   at
> C:/gnu/msys/1.0.11/local/src/FlightGear-0.9/data/Nasal/globals.nas,
> line 118
>  
> The splash screen showed:
>       reading airport & navaigation data
>       ......
>       loading aircraft
>       initializing subsystems
>  
> then a Windows error dialog appeared and the fgfs application was
> closed.
>  
> Line 395 and 818 of aircraft.nas are:
>  
>   me.path = getprop("/sim/fg-home") ~ "/aircraft-data/" ~
> getprop("/sim/aircraft") ~ ".xml";
>   
>   data.init();
>  
> Line 118 of globals.nas is:
>  
>     var path = getprop("/sim/fg-home") ~ "/Nasal";
>  
> It seems that the problem is in the function getprop. I guess getprop
> is a core API, so something may be fundamentally wrong in my setup.
> I'll list some details at the end of this email. BTW, I got the same
> error in Windows Vista.
>  
> Did anyone encountered similar error before? May someone please advice
> on how to locate the problem area and resolve this issue?
>  
> Thanks a lot,
> Robert Fu
>  


Robert,

The common thread I am seeing is the prop /sim/fg-home.  This is
supposed to point to a user place to store persistant data.  Under linux
its /home/(user)/.fgfs.  Under windows it should be something like the
path to "My Documents".

Assuming you can fire up fgfs without choosing an aircraft, look in the
property browser and see if /sim/fg-home is set, and set to something
sensible, (that is to say a writable directory).

Good luck,

Ron







-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to