Board index FlightGear Development New features

Problem about FGPlot

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Problem about FGPlot

Postby umbanana » Sat Jan 18, 2014 9:57 am

Hello guys, I've met some problems while using fgplot. (My FG version is 2.10.0.3 and my system is Windows7.)

Image
Image
as is shown in the pictures, all the windows and buttons are properly shown but pressing ">" plots nothing...
And the error instructed by the launcher is "No such member: set" and "Undefined member Do_plot". But Do_plot is well defined in the code I think...

The codes mentioned are here: https://gitorious.org/fg/fgdata/source/00bc5df63822a25d777cd847d906be7ba6eeacad:gui/dialogs/fgplot.xml

Does anybody know where the problem may be?
Last edited by umbanana on Sun Jan 19, 2014 2:32 am, edited 1 time in total.
umbanana
 
Posts: 29
Joined: Sat Jan 04, 2014 5:20 am

Re: Problem about FGPlot

Postby sa7k » Sat Jan 18, 2014 7:13 pm

Maybe you are using an old FlightGear version that does not support canvas. What is your FlightGear version? How did you install fgplot?
sa7k
 
Posts: 380
Joined: Fri Mar 16, 2012 3:24 pm
Location: SA7K
Callsign: LV-EPM
IRC name: sa7k
Version: git
OS: debian

Re: Problem about FGPlot

Postby Philosopher » Sun Jan 19, 2014 12:03 am

This is the specific line that is failing, for easier reference:
https://gitorious.org/fg/fgdata/source/ ... t.xml#L437
Philosopher
 
Posts: 1593
Joined: Sun Aug 12, 2012 7:29 pm

Re: Problem about FGPlot

Postby umbanana » Sun Jan 19, 2014 2:27 am

sa7k wrote in Sat Jan 18, 2014 7:13 pm:Maybe you are using an old FlightGear version that does not support canvas. What is your FlightGear version? How did you install fgplot?


Hi, sa7k!

I'm using FGv2.10.0.3
It's written on the wiki page of fgplot that version above v2.8 is OK. So my vesion may not cause a problem i think.

Installation: I put the 4 relevant xml files(fgplot.xml fgplot_opt fgplot_selector fgplot_help) in /gui/dialog, and added something to the menu & menubar file as the developper said.
:cry: confusing..

BTW: My system is windows 7, does it matter?
umbanana
 
Posts: 29
Joined: Sat Jan 04, 2014 5:20 am

Re: Problem about FGPlot

Postby umbanana » Sun Jan 19, 2014 2:37 am

Philosopher wrote in Sun Jan 19, 2014 12:03 am:This is the specific line that is failing, for easier reference:
https://gitorious.org/fg/fgdata/source/ ... t.xml#L437


Thanks, Philosophor, for pointing out the failing line!
I'm not good at coding...so I still can't see why it fails and how to correct?
Did you ever use the fgplot feature before?
umbanana
 
Posts: 29
Joined: Sat Jan 04, 2014 5:20 am

Re: Problem about FGPlot

Postby umbanana » Sun Jan 19, 2014 4:29 am

I found the problem...
It's the FlightGear version. I've tried v2.8.0.5 v2.10.0.3 and v2.12.0.1, it turned out that the earlier the version is, the more problem there are...
fgplot runs perfectly in 2.12 and only in 2.12 in my PC...
umbanana
 
Posts: 29
Joined: Sat Jan 04, 2014 5:20 am

Re: Problem about FGPlot

Postby Hooray » Sun Jan 19, 2014 8:47 am

FGPlot probably uses newer features only found in 2.10+ - 2.80 being the first version to include canvas support, and FGPlot development having started around the 2.10 release timeline, that makes perfectly sense. Apparently, the developer just didn't add any version checks to detect such incompatibilities - but that's trivial to do using getprop("/sim/version") - see TheTom's code for examples.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU


Return to New features

Who is online

Users browsing this forum: No registered users and 4 guests