Board index FlightGear Development New features

Simple FG GUI front-end for Linux

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

Re: Simple FG GUI front-end for Linux

Postby erobo » Fri Sep 20, 2013 1:30 pm

Italian translation has been updated and is now 100% complete, all thanks to Philip Lacroix . It is now available in newest FGo! 1.4.4. As previously, this release do not includes any other new features or bug fixes.
erobo
 
Posts: 98
Joined: Wed Mar 19, 2008 11:10 pm
Location: Poland

Re: Simple FG GUI front-end for Linux

Postby philnx » Sat Sep 21, 2013 4:59 pm

FGo! is a great project, and I'm glad to see that it is getting better and better. Thanks, Robert. This GUI & CLI
design is really fast, and it definitely adheres to the KISS principle (http://en.wikipedia.org/wiki/KISS_principle).

By the way, the FGo! wiki page is now up to date, and new translations have been added.
philnx
 
Posts: 5
Joined: Sat Sep 21, 2013 4:43 pm

Re: Simple FG GUI front-end for Linux

Postby chris_blues » Fri Nov 01, 2013 8:30 pm

Hi Erobo!
Hope all is fine!

I had an idea the last days; it would be nice to have the possibility to display Aircraft not only by their name (like it already is) but also by folder/path. There are some models I have custom versions of, and it would be nice to have some way of differentiate between them.
Btw, for example: how is FG made aware which 707 I want to fly? If I have /media/FG/Aircraft/707 and /media/FG/git/install/fgfs/fgdata/Aircraft/707 ??? As I understand it if FG loads with --aircraft=707 it's quite impossible to tell FG which one is loaded, right? Or am I missing sth?

Cheers and thanks for FGo!
chris

P.S.
philnx wrote in Sat Sep 21, 2013 4:59 pm:By the way, the FGo! wiki page is now up to date, and new translations have been added.

Nice work! Thx!
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
 
Posts: 1581
Joined: Mon May 03, 2010 1:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Simple FG GUI front-end for Linux

Postby Philosopher » Fri Nov 01, 2013 10:58 pm

Hey Chris,

That's a good point, specifying a path would be convenient :). Currently FG searches in the (possibly multiple) --fg-aircraft directories, then $FG_ROOT/Aircraft – so anything in your custom paths will take precedence (in the order listed).

I think I'll try FGo! on my Mac if I get a chance, I'm tired of the command line by now ;).
Thanks,
Philosopher
(inactive but lurking occasionally...)
Philosopher
 
Posts: 1590
Joined: Sun Aug 12, 2012 6:29 pm
Location: Stuck in my head...
Callsign: AFTI
Version: Git
OS: Mac OS X 10.7.5

Re: Simple FG GUI front-end for Linux

Postby chris_blues » Sat Nov 02, 2013 10:46 am

I see! So in a way it's completely unneCessary to list double aircraft-entries at all since the default ones are unreachable if there are custom aircraft. That's good to know! But it would be nice nonetheless, to be able to reach the defaults...
Don't hesitate to let me know if I'm incorrect or just annoying! As long as you do it gently! :)
Debian stable 64bit - i7 8x2.8GHz - 20GB RAM - GeForce GTS 450
Citation II
User avatar
chris_blues
 
Posts: 1581
Joined: Mon May 03, 2010 1:30 pm
Location: claws of real life
Callsign: chris_blues
Version: GIT
OS: Debian stable 64

Re: Simple FG GUI front-end for Linux

Postby landersohn » Mon Nov 25, 2013 2:33 am

I have one problem with this otherwise great app:
I installed the seahawk in the main ac directory under linux on two computers. I should see 4 variants based on the -set files:
Seahawk
Seahawk-2tanks
Seahawk-RNF
Seahawk-wingman

On one of my systems I only see variants 1 and 4. On the other I only see variants 2 and 3.

Any ideas?
landersohn
 
Posts: 55
Joined: Thu Oct 18, 2012 1:57 am

Re: Simple FG GUI front-end for Linux

Postby Johan G » Mon Nov 25, 2013 8:26 am

landersohn wrote in Mon Nov 25, 2013 2:33 am:Any ideas?


See your new topic over here: Why does my aircraft does not show up
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 6049
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Simple FG GUI front-end for Linux

Postby landersohn » Mon Nov 25, 2013 1:19 pm

Actually, I figured it out: there is something in the code for FGo which suppresses "Carrier" to show up as aircraft because the seahawk has a "carrier-set.xml" file for carrier keyboard bindings. This code apparently makes some of the seahawk variants not be listed as aircraft.
landersohn
 
Posts: 55
Joined: Thu Oct 18, 2012 1:57 am

Re: Simple FG GUI front-end for Linux

Postby landersohn » Mon Nov 25, 2013 10:01 pm

Here are the details: apparently, the order in which python provides the contents is not always the same.
In config.py, line 463, the routine reading aircraft data will return after the file "carrier-set.xml" is found in the seahawk directory. if that happenes before any of the 4 seahawk variants are in the file list, those seahawk planes will not show up in the list of aircraft. Replace "return" in line 463 with "continue" and all is well.
landersohn
 
Posts: 55
Joined: Thu Oct 18, 2012 1:57 am

Re: Simple FG GUI front-end for Linux

Postby philnx » Fri Dec 13, 2013 11:32 am

For anyone out there running Slackware GNU/Linux, there's a new SlackBuild for FGo! available here:

http://slackbuilds.org/repository/14.1/games/fgo/

Basically, it repackages erobo's release in order to make it available system-wide, it also creates an entry in the desktop menu and sets a few default paths (FG_BIN, FG_ROOT and FG_SCENERY).

Greetings
philnx
 
Posts: 5
Joined: Sat Sep 21, 2013 4:43 pm

Re: Simple FG GUI front-end for Linux

Postby sa7k » Sat Jan 18, 2014 6:03 pm

Hey erobo, I'm getting this error with the new scenery
Code: Select all
$ fgo
Traceback (most recent call last):
  File "/usr/games/fgo", line 17, in <module>
    run(WORKING_DIR)
  File "/usr/share/games/fgo/src/__init__.py", line 19, in run
    data = Config()
  File "/usr/share/games/fgo/src/config.py", line 78, in __init__
    self.update(first_run=True)
  File "/usr/share/games/fgo/src/config.py", line 208, in update
    self.updateAptLists()
  File "/usr/share/games/fgo/src/config.py", line 214, in updateAptLists
    self._readApt()
  File "/usr/share/games/fgo/src/config.py", line 494, in _readApt
    self._makeApt()
  File "/usr/share/games/fgo/src/config.py", line 372, in _makeApt
    lat += float(e[1])
ValueError: could not convert string to float: Version

Do you know what could be happening?
It's the same with debian's 1.3.1 version and the latest download.
sa7k
 
Posts: 382
Joined: Fri Mar 16, 2012 2:24 pm
Location: SA7K
Callsign: LV-EPM
IRC name: sa7k
Version: git
OS: debian

Re: Simple FG GUI front-end for Linux

Postby Philosopher » Sun Jan 19, 2014 9:09 pm

Me too. I think it's the change in format... I'll see if I can find any docs on what changed, and then patch it.

Except... I don't have the new scenery, just a Git install. (I assume the new navdata is in there.) :P
Thanks,
Philosopher
(inactive but lurking occasionally...)
Philosopher
 
Posts: 1590
Joined: Sun Aug 12, 2012 6:29 pm
Location: Stuck in my head...
Callsign: AFTI
Version: Git
OS: Mac OS X 10.7.5

Re: Simple FG GUI front-end for Linux

Postby sa7k » Sun Jan 19, 2014 9:31 pm

Oh, ok, sorry. I thought it was the part that read which airports are installed and updates the list. Thanks Philosopher.
sa7k
 
Posts: 382
Joined: Fri Mar 16, 2012 2:24 pm
Location: SA7K
Callsign: LV-EPM
IRC name: sa7k
Version: git
OS: debian

Re: Simple FG GUI front-end for Linux

Postby Philosopher » Sun Jan 19, 2014 9:40 pm

Yeah, I looked into apt.dat a bit, and came up with a hack to get me through the immediate issues, but it unfortunately doesn't work any better, because the format is so different and I can't understand the Python code in a few minutes ;).

The only actually useful thing I figured out was skipping the first 4 lines (which are now non-data):
Code: Select all
            skip = 4
            for line in fin:
                if skip:
                    skip -= 1; continue


And then I attempted to use this:
Code: Select all
                # Find runways.
                elif code == '10' and line[3] == " ":
                    e = line.strip().split()
                    if e[3] != 'xxx':
                        rwy = e[3]
                        if rwy.endswith('x'):
                            rwy = rwy[:-1]
                        entry += ('=' + rwy)
                    if e[3] != 'xxx':
                        for i in [0,18]:
                            if i+9 >= len(e): break
                            lat += float(e[i+9])
                            lon += float(e[i+10])
                            runway_count += 1


But it really doesn't work. About 1 airport shows up in the list on the right – and it probably isn't real :P.

Hopefully someone can fix it – or maybe I can figure it out another day.
Thanks,
Philosopher
(inactive but lurking occasionally...)
Philosopher
 
Posts: 1590
Joined: Sun Aug 12, 2012 6:29 pm
Location: Stuck in my head...
Callsign: AFTI
Version: Git
OS: Mac OS X 10.7.5

Re: Simple FG GUI front-end for Linux

Postby pommesschranke » Thu Jan 30, 2014 2:31 pm

Code: Select all
ValueError: could not convert string to float: Version


I get the same error.
my workaround:
I point to a old version of apt.dat.gz that I had:

config.py line 330.
Code: Select all
   self.apt_path = "/home/laserman/fg-fgdata/Airports/apt.dat.gz"
   fin = gzip.open(self.apt_path)
pommesschranke
 
Posts: 1105
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04

PreviousNext

Return to New features

Who is online

Users browsing this forum: No registered users and 2 guests