Skip to content

Adding C152 to FlightGear? #28

@randomizedcoder

Description

@randomizedcoder

G'day,

Thanks for the great addition to FlightGear.

I'm having trouble adding the aircraft, so maybe I'm doing something silly?

My steps are:

  1. git clone https://github.com/awall086/c152 into a folder.
  2. Within FlightGear, go to Add-ons, Click "Add+", select the cloned folder.
Image

Flightgear gives the error "No aircraft found in the folder '/home/das/Downloads/c152/AircraftConfig' - add anyway?"
Image

I've looked at the instructions here: https://wiki.flightgear.org/Howto:Install_aircraft#Linux

Looking at the section "When installing an aircraft fails", it says to examine the -set.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!--
************************************************************************
JSBSim Cessna 152 II with 3D cockpit.

Started October 04 2015 by Adrian Fernández Gómez alcala_sim@yahoo.com.ar
************************************************************************
-->

<PropertyList>

    <sim>
        <description>Cessna 152 (1978, model)</description>
         <long-description>The Cessna 152 is a two-seat, single-engine, high-wing fixed-wing aircraft. First flown in 1977. A total of 7582 units was produced until 1985, when Cessna was ended production of their light aircrafts.</long-description>
   
         <es>
            <long-description>El Cessna 152 es un avion monomotor, de ala alta. Realizó su primer vuelo en 1977. Se construyeron un total de 7582 unidades hasta 1985, cuando Cessna finalizao la produccion de sus aviones ligeros.</long-description>
        </es>

        <tags>
            <tag>ga</tag>
            <tag>cessna</tag>
            <tag>piston</tag>
            <tag>single-engine</tag>
            <tag>fixed-gear</tag>
        </tags>
  
        <author>awall86 (Adrian Fernandez Gomez), gsagostinho (Gilberto Agostinho), wlbragg (Wayne Bragg)
        A special thanks to Octal450 (Josh Davidson) for your excelent Aircraft Configuration Utility</author>
        <status>beta</status>
        <aircraft-version>2020.1.1A</aircraft-version>
        <minimum-fg-version>2020.1.1A</minimum-fg-version>

  
        <rating>
            <FDM type="int">3</FDM>
            <systems type="int">5</systems>
            <model type="int">4</model>
            <cockpit type="int">4</cockpit>
        </rating>

        <flight-model archive="y">jsb</flight-model>
        <aero archive="y">c152</aero>
  
        <model>
            <path archive="y">Aircraft/c152/Models/c152.xml</path>     <------------------- PATH

I tried putting the cloned directory into the "~/.fgfs/Aircraft" folder:

[das@l:~/.fgfs/Aircraft]$ ls -la
total 56
drwxr-xr-x  5 das users  4096 Sep  9 10:52 .
drwxr-xr-x 11 das users  4096 Sep  9 10:42 ..
drwxr-xr-x 10 das users  4096 Sep  9 10:42 c152
drwxr-xr-x  3 das users  4096 Sep  8 17:17 org.flightgear.fgaddon.stable_2024
drwxr-xr-x  2 das users 36864 Sep  8 17:18 ThumbnailCache

[das@l:~/.fgfs/Aircraft]$ cd c152/

[das@l:~/.fgfs/Aircraft/c152]$ ls -la
total 5672
drwxr-xr-x 10 das users    4096 Sep  9 10:42 .
drwxr-xr-x  5 das users    4096 Sep  9 10:52 ..
drwxr-xr-x  2 das users    4096 Sep  9 10:42 AircraftConfig
-rwxr-xr-x  1 das users   57131 Sep  9 10:42 c152-checklists.xml
-rw-r--r--  1 das users    2459 Sep  9 10:42 c152-keyboard.xml
-rwxr-xr-x  1 das users  478639 Sep  9 10:42 c152-preview0.jpg
-rwxr-xr-x  1 das users  450469 Sep  9 10:42 c152-preview1.jpg
-rwxr-xr-x  1 das users  374037 Sep  9 10:42 c152-preview2.jpg
-rwxr-xr-x  1 das users  332555 Sep  9 10:42 c152-preview3.jpg
-rwxr-xr-x  1 das users  376183 Sep  9 10:42 c152-preview4.jpg
-rwxr-xr-x  1 das users  417484 Sep  9 10:42 c152-preview5.jpg
-rwxr-xr-x  1 das users  358285 Sep  9 10:42 c152-preview6.jpg
-rwxr-xr-x  1 das users  602775 Sep  9 10:42 c152-preview7.jpg
-rwxr-xr-x  1 das users  382712 Sep  9 10:42 c152-preview8.jpg
-rwxr-xr-x  1 das users   14255 Sep  9 10:42 c152-set.xml
-rwxr-xr-x  1 das users   11942 Sep  9 10:42 c152-sound.xml
-rwxr-xr-x  1 das users   30689 Sep  9 10:42 c152.xml
drwxr-xr-x  2 das users    4096 Sep  9 10:42 Engines
drwxr-xr-x  7 das users    4096 Sep  9 10:42 .git
-rwxr-xr-x  1 das users     378 Sep  9 10:42 .gitattributes
-rwxr-xr-x  1 das users     574 Sep  9 10:42 .gitignore
drwxr-xr-x  3 das users    4096 Sep  9 10:42 gui
-rwxr-xr-x  1 das users   18092 Sep  9 10:42 LICENSE
drwxr-xr-x  5 das users    4096 Sep  9 10:42 Models
drwxr-xr-x  2 das users    4096 Sep  9 10:42 Nasal
-rwxr-xr-x  1 das users     465 Sep  9 10:42 README.md
-rwxr-xr-x  1 das users      11 Sep  9 10:42 revision.txt
drwxr-xr-x  2 das users    4096 Sep  9 10:42 Sounds
-rwxr-xr-x  1 das users 1801590 Sep  9 10:42 Splash1.png
drwxr-xr-x  2 das users    4096 Sep  9 10:42 Systems
-rwxr-xr-x  1 das users   14558 Sep  9 10:42 thumbnail.jpg

[das@l:~/.fgfs/Aircraft/c152]$ cd ..

Looking at the file structures, I notice there is a "~/.fgfs/aircraft-data" folder, which contains some files about the c172, and some others I added (pitts for example). So I tried to add the c152.xml file in there.

[das@l:~/.fgfs/Aircraft]$ cd ..

[das@l:~/.fgfs]$ cd aircraft-data/

[das@l:~/.fgfs/aircraft-data]$ ls -la
total 56
drwxr-xr-x  2 das users  4096 Sep  9 10:57 .
drwxr-xr-x 11 das users  4096 Sep  9 10:42 ..
-rwxr-xr-x  1 das users 30689 Sep  9 10:57 c152.xml                         <----- test
-rw-r--r--  1 das users 10219 Aug 30 16:43 c172p.xml
-rw-r--r--  1 das users  4025 Sep  9 08:13 org.flightgear.fgaddon.stable_2024.fra150l.xml

[das@l:~/.fgfs/aircraft-data]$

But it didn't work.

Any suggestions appreciated.

I suppose it would be really nice to work out how to add the C152 to the FlighGear "Addcraft" "Browse" somehow.
Image

Thanks in advance,
Dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions