benih wrote in Thu Oct 22, 2020 8:58 am:Hm, this may be related to my problem with the c182s (only fallback model is shown)!
viewtopic.php?f=4&t=38161cgdae wrote in Wed Oct 21, 2020 11:55 pm:and look on our aircraft path
How is that achieved exactly? is this the aircraft path given with --aircraft-dir, like --aircraft-dir=/home/beni/Dokumente/FGFS/Aircraft/c182s ?
The multiplayer code we're discussing uses globals->get_aircraft_paths(). which is a list of directories in which to search for aircraft, from --fg-aircraft=... command-line parameters. I suspect it doesn't have information about any directory specified with --aircraft-dir.
And this code doesn't know anything about --aircraft-dir.
I'm unfamiliar with the --aircraft-dir option actually. It looks like it allows one to specify ones aircraft by its directory rather than the aircraft name to look for within one or more Aircraft/ directories.
I'm not sure about the exact details, and haven't experimented with the actual code, but for --aircraft-dir to cause the multiplayer system to fail to find an aircraft, seems to require a particular set of circumstances:
- * The user specifies their aircraft with --aircraft-dir=....
* A multiplayer aircraft appears with the same model as the user's aircraft.
* The multiplayer aircraft doesn't appear elsewhere in the locations specified by --fg-aircraft=....
In this case i think the model won't be found, so the multiplayer aircraft will appear as a glider. But i stress that i haven't tried the actual code, so i could be missing all sorts of things here.
If people on this thread are using Flightgear with --aircraft-dir=..., it might be worth trying without the --aircraft-dir=... setting, and instead use --fg-aircraft=... and --aircraft=....
[edit]
Looking at the code (https://sourceforge.net/p/flightgear/fl ... f04d1478b/ ) a question arises:
does the code always just tries to do that for <fgdata> Aircraft? So it fails for other aircraft paths?
- Code: Select all
+ /* Need to append <fgdata>/Aircraft, otherwise we won't be able to find
+ c172p. */
+ SGPath fgdata_aircraft = globals->get_fg_root();
+ fgdata_aircraft.append("Aircraft");
+ dirs.push_back(fgdata_aircraft);
This code is merely appending <fgdata>/Aircraft to the list of paths that we search when looking for models specified in the multiplayer packet. So there's no special treatment of <fgdata> aircraft.
- Jules