|
From: Bastien D. <dav...@gm...> - 2008-02-29 12:09:12
|
Hi all,
I have encounter a bug when trying to add some nasal script to an AI
model (on both FGFS 1.0.0 OSG from CVS and official plib release). It is
look like if I write a nasal snippet like this: "if(foo > 7)", the AI
model (called from an AI scenario) is not loaded.
I provide an attachment with a test case, put the file 'Jeep.xml' into
your FGFS 'data/AI/Aircraft/jeep/Models/' folder and 'KSFO_testcase.xml'
into the folder 'data/AI/'.
Normally you should see this 2 lines in your
console when you launch FGFS with my KSFO_testcase scenario:
hello jeep
5 is superior to 3.
Now you have to edit the file data/AI/Aircraft/jeep/Models/Jeep.xml on
line 289 and suppress the comments. The line 289 should look like this:
if(foo < 7.0) { print("7 is superior to 5."); }
If you now launch FGFS with KSFO_testcase scenario again, the jeep is
not loaded and with the start option '--log-level=warn' you will see
this message in the console: 'AIBase: Could not load model
AI/Aircraft/jeep/Models/Jeep.xml'.
If someone could fix this, it would be great :-) (I could not do it
myself, I have not enough C++ skills.)
Cheers,
DavidB21.
|