Stuart Buchanan
52a6245b49
Add --carrier-position command line argument
...
Takes special values "FLOLS" and "abeam" to set up
aligned for final approach or at the 180 for the carrier flight
deck. Or alternatively a catapult or parking position.
2020-04-17 20:25:18 +01:00
James Turner
faee5dbabf
Code changes for crash reporting with Sentry.
2020-04-17 17:55:34 +01:00
James Turner
a24301f746
UI for enabling crash-reporting in the launcher
2020-04-16 22:33:37 +01:00
James Turner
e1d00509c7
Enable sentry linkage (for Jenkins)
...
Note this require a sentry-native build with this commit applied:
0c631f6ec7
2020-04-14 11:15:40 +01:00
Erik Hofman
2fd0877824
Only load the video settings when the autosave file is not found. This requires the properties in the video settings configuration file to have the archive attribute set but it solves the problem of loading the autosave file twice (and too late in the process)
2020-04-13 17:03:37 +02:00
Stuart Buchanan
6ab7c08aa5
Fix --heading for --ndb position option.
...
Previously setting an offset for an NDB start position
resuled in any --heading setting being ignored. This fixes it.
2020-04-12 21:45:20 +01:00
James Turner
4571769ee7
Quiet some log messages
2020-04-10 19:12:10 +01:00
James Turner
0a6fe33bc3
Add support for compatible-fg-version in -set.xml
...
This is to evaluate if this is a good idea, not sure if we actually
want to commit to this approach yet.
2020-04-10 10:40:32 +01:00
James Turner
9304bcc9af
Change some warnings to developer mode.
2020-04-10 10:40:32 +01:00
James Turner
b1395a86ba
Add —disable-hold-short option for MP
...
Allow explicit disabling of the hold-short behaviour when it causes
problems.
2020-04-10 10:40:32 +01:00
Richard Harrison
b8f28d54c6
Carrier init:
...
As well as "FLOLS" in the runway allow it in the parkpos; probably we should rename this to "position" rather than "parkpos"
2020-04-10 00:06:00 +02:00
James Turner
f5b04684cf
Disable linking to sentry for now, due to a bug
...
Discovered na upstream issue in sentry-native’s exported CMake targets,
at least on macOS. Disabling until I hear back from them.
2020-04-08 16:07:31 +01:00
James Turner
2500534b1e
Build changes for new crash-reporting system.
2020-04-07 09:38:13 +01:00
Stuart Buchanan
00fd5fbaec
Carrier "abeam" position support
...
Support for --carrier-abeam option, which places the aircraft
at the end of a downwind opposite the FLOLS.
Add launcher support for above.
Add carrier display for launcher showing position relative to
carrier.
2020-04-05 23:13:32 +01:00
Stuart Buchanan
6b17604ba8
Carrier launcher: Allow setting altitude
2020-04-03 20:37:37 +01:00
James Turner
968fbd82e0
Fix typo breaking mag-compass and others
2020-04-03 09:57:13 +01:00
James Turner
f24b886ce4
Launcher: fix favourites loading
...
Also fix some warnings, closer to no output from the launcher.
2020-04-02 16:13:12 +01:00
gallaert
1ce36af298
- When HLA is enabled in Simgear, HLA is also enabled in Flightgear
...
making the build between Simgear and Flightgear consistent.
- Fix an issue with lib/lib64 path between CentOS/RedHat distributions
and Debian derived distributions.
- Fix a compilation issue with HLA in the Flightgear code.
2020-04-01 21:02:24 +01:00
James Turner
005ddf7c98
Optimisation: avoid property name lookups
2020-04-01 16:20:29 +01:00
James Turner
8ddf4d6699
Fix reset-data-path dialog logic
...
Use correct root path key in QSettings, everywhere
Use the direct Win32 API until Qt wrapper is fixed.
2020-03-26 17:35:01 +00:00
Fernando García Liñán
6f676ee85b
Compositor: Added $FG_ROOT/Compositor/Effects as a resource provider.
2020-03-24 19:44:05 +01:00
James Turner
5f0c10d94d
Fix incorrect write() return code handling
2020-03-20 22:24:44 +00:00
James Turner
162ba266d0
Fix a warning
2020-03-20 11:40:47 -07:00
James Turner
26b527f151
Fix Linux compilation
2020-03-20 11:40:32 -07:00
James Turner
177fc565da
Launcher: initial carrier support
...
Allow selecting carriers from scenarios, and starting at either a
parking position, or a distance offset from the FLOLS (effectively
a crude ‘on-final’)
Extend the —carrier startup option to accept a runway ident of FLOLS,
in conjunction with the existing —offset-distance argument.
2020-03-20 15:51:47 +00:00
James Turner
f903cdfa50
Linux/macOS: use flock() to implement exclusive launch.
...
Previous implementation wasn’t correct, use a better one now. In the
case of a non-clean exit we will leave a stale .pid file in FG_HOME,
but we clear stale files on the next launch.
2020-03-20 12:08:35 +00:00
James Turner
d52f1b5d47
Improve in-sim launcher behaviour
...
Restrict the UI to the pieces which make sense.
2020-03-17 10:00:17 +00:00
James Turner
8edcaa4853
Merge /u/ltoenning/flightgear_sim/ branch fix/2146 into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/190/
2020-03-13 13:53:30 +00:00
Lars Toenning
2c9d64dcc6
Fix broken sound mute function
...
Fixes #2146
2020-03-13 11:13:30 +01:00
James Turner
e492ddd5a0
Event more local8Bit -> UTF8 fixes
2020-03-13 09:53:49 +00:00
James Turner
27410761f3
Lots of UTF8 path correctness fixes
2020-03-12 14:23:44 +00:00
James Turner
5b41f374c6
L10N fixes: handle UTF8 paths in more places.
...
Still not complete, but now we set the command line args to be UTF-8 on
Windows, we can strip out more of the ‘local 8-bit’ places (which
screw up, generally).
2020-03-12 10:51:49 +00:00
Julian Smith
ab7e7ec7b4
src/Main/globals.cxx: don't load /ai/models/ from autosave.xml file.
...
This cleans things up if earlier 'next' build as added spurious property items
to autosave.
2020-03-11 21:49:15 +00:00
James Turner
a405d0508b
Fix a dumb allocation bug on Windows
2020-03-09 16:28:22 +00:00
Bertrand Coconnier
973bf32074
[JSBSim] Added the ability to log properties in a CSV file.
2020-01-25 16:05:30 +01:00
Scott Giese
a9365cd34e
Embedded Resources: Fix for Ninja 1.9
...
Refactor to break circular references.
New custom target generates the resource files.
FGFS and Test_Suite targets declare a dependency to the generated files.
2019-12-26 01:26:44 -06:00
James Turner
be628b36b7
Allow add/remove of IO channels at runtime
...
Commands:
add-io-channel
remove-io-channel
2019-12-19 00:00:41 +00:00
Edward d'Auvergne
4105b70f74
Options: Only set the logging priority if the command line option is supplied.
...
This prevents the changing of the logstream priority as set by the test suite
permanently to "alert" during the execution of tests. Setting a default value
of SG_ALERT is not required as this is the simgear logstream default anyway.
2019-11-08 13:59:17 +01:00
Edward d'Auvergne
0f0361efb8
Options::setupRoot: Removal of the logic that fg_root is currently not set.
...
This allows the test suite to preset fg_root using its own bootstrapping logic.
2019-11-08 13:59:16 +01:00
Julian Smith
88644185b3
src/Main/metar_main.cxx: added -s option to decode explicit METAR string without contacting server.
2019-10-31 22:53:41 +00:00
Julian Smith
4b1cfbc5ed
src/Main/metar_main.cxx: use SGMetar::getDescription().
2019-10-31 22:49:09 +00:00
Julian Smith
335547160c
src/Main/fg_init.cxx: use /sim/log-file-line to control output of file:line in logs.
...
We call sglog().setFileLine() in response to changes to /sim/log-file-line.
2019-09-04 10:55:43 +01:00
Julian Smith
f3d1135320
Various fixes for building on OpenBSD.
2019-09-04 10:55:43 +01:00
Scott Giese
1ede51f3f6
Improved OSG Version detection.
2019-08-26 17:45:16 -05:00
Edward d'Auvergne
34a6cb3c74
SGSubsystem classes: Registration of all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
d259c70560
SGSubsystem classes: Addition of staticSubsystemClassId() to all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
332c240b38
SGSubsystemGroup: Removal of the subsystem group naming.
...
This is a partial reversion of 5253215065
, the
changes of which are incompatible with the subsystem class IDs.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
fb5c36fc82
SGSubsystem classes: Renaming of the subsystem ID variables and functions.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
7a6e63ddb9
SGSubsystem classes: Subsystem and subsystem group API declaration standardisation.
...
This is a cleanup commit.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
60a2444766
SGSubsystem classes: Whitespace standardisation of the declarations.
...
This is a clean up commit prior to the subsystem API standardisation to simplify
the diffs. It includes all SGSubsystem and SGSubsystemGroup derived classes.
2019-07-01 14:27:28 +02:00
Scott Giese
47e3e7baed
[Emesary] Fix compile on Linux.
2019-06-14 21:45:11 -05:00
Richard Harrison
6ebc91d3f7
Added mainloop frame notifications
...
Using Emesary Global Transmitter the following events are notified
* Frame Begin
* Frame End
* Mainloop started
* Mainloop stopped
This integrates with the background threaded Nasal Garbage collection (simgear:nasal/cppbind/NasalEmesaryInterface.hxx) and is also controlled by the properties as follows
* /sim/nasal-gc-threaded (true) - use background threaded GC
* /sim/nasal-gc-threaded-wait (false) - at the start of the frame wait for the previous GC thread to complete.
I initially thought that the wait at the start of the frame would be necessary; however in 100 or so hours of flight without the await for completion at the start of frame no threading problems (or any other problems) were shown; so nasal-gc-threaded-wait is defaulted to false which gives a slight boost in performance.
So what this does is to it removes the GC pause of 10-20ms every 4 seconds (test using the F-15). This change doesn't really give much extra performance per frame because normally GC is only performed when needed.
2019-06-11 14:38:38 +02:00
James Turner
d8b6fbfef0
macOS / DBus : avoid abort on startup
...
Don’t do the fgOSDisableScreensave DBus stuff on macOS - there is no
global DBus daemon configured by default.
2019-05-27 16:05:19 +01:00
James Turner
88a78dd314
Remove last hard-coded default airport ID
...
Neither Torsten nor I can recall why we continued to hard-code this,
so make it dynamic for now. When we remember why we hard-code it,
we can add a BigComment from future-James to future-future-James about
why not to do this again :)
2019-05-27 11:42:53 +01:00
Fernando García Liñán
fa4ef2ab52
Added a property to indicate compositor support
2019-05-20 23:44:16 +02:00
James Turner
bac5d6c713
Windows: read Unicode command line
...
One more step in full Unicode support.
2019-04-27 18:54:13 +01:00
Dan Wickstrom
1948304157
Fix problem where AI planes are placed on top of user aircraft when user either selects a specific spot or user selects parking to be an available spot.
2019-04-25 11:39:41 +01:00
James Turner
4e8e69b4f8
Migrate invert-mouse-wheel setting from pre 2019.x
...
Flip the sense of this property, since the interpretation in SG is
also flipped now.
2019-04-11 20:40:17 +01:00
Lars Toenning
85acefab95
Swift: initial support
2019-04-11 11:36:22 +01:00
James Turner
64eaf6fe03
Fix for route-path when leg 0 is not a runway
...
Avoid doing turn-computation for the first waypoint, even if it’s not
a runway. Add a unit-test to cover this case.
Reported by Josh Davidson
2019-03-26 22:50:46 +01:00
James Turner
7c2a5e9e99
FlightGear support for queued commands
...
This enables queued commands to be processed once per main event loop.
At present this is done after subsystem updates.
2019-03-24 17:59:23 +00:00
Richard Harrison
a95daa2a5a
add command line options to enable and disable DDS Texture cache.
2019-03-01 19:06:42 +01:00
Richard Harrison
8e35b7efc7
OSG 3.4.0 compilation fixes.
2019-02-20 19:12:02 +01:00
Fernando García Liñán
bec41e7e17
Compositor: FG now gracefully quits if no valid Compositor has been found. Added a command line option (--compositor) to choose the default Compositor.
2019-02-20 03:09:17 +01:00
James Turner
c2fb01ccb7
Partial revert of METAR fix, now SimGear is fixed.
...
This reverts commit 2fdc24c109
.
2019-02-17 19:03:19 +00:00
Richard Harrison
5253215065
Improvements to performance monitoring.
...
* Ensure that subsystems are named.
* Nasal timers are named appropriately
2019-02-10 18:07:07 +01:00
Scott Giese
2fdc24c109
METAR fix
2019-02-07 01:26:05 -06:00
James Turner
dee1998979
Less Boost.
2019-02-06 17:36:36 +00:00
Scott Giese
7fd7c599a2
Fix missing header file for strutils
2019-02-04 23:49:02 -06:00
James Turner
a9a49bc2e6
Unboosting files
...
Use simgear::strutils replacements in places, C++11 features in others
2019-02-04 15:20:22 +00:00
James Turner
49c4dc5213
Scenarios from FG_HOME, aircraft and add-ons
...
Enhancements suggested by Nikolai Verner-Christensen - support loading
scenarios from {FG_HOME}/Scenarios, {aircraft-dir}/Scenarios and
{add-on}/Scenarios.
Additionally, allow passing the path to a scenario file to
—ai-scenario, eg —ai-scenario=/home/jmt/FGFS/my-test-scenario.xml
When a scenario defines a carrier, and —carrier is used to request a
carrier start, we now auto-load the corresponding scenario, to give
a nicer user experience.
2019-02-03 12:12:00 +00:00
Richard Harrison
6e2443d268
Change to print exception type (inherited exceptions)
2019-01-20 23:26:58 +01:00
James Turner
845e7c6bef
Improved ‘is MP enabled’ check for pos-init
...
This fixes the MP detection check when selecting MP on the command-line
2019-01-08 23:20:51 +00:00
James Turner
b0dc850df1
Fix type of some numerical constants
...
Patch by Ron Haertel
2019-01-06 14:30:58 +00:00
James Turner
9339fd2375
Add some /sim/presets properties to setDefaults
...
Ensure these properties are always defined, but with default values,
to simplify usage.
2018-12-04 09:50:48 +01:00
James Turner
1e104bbdfe
Version the FG-root setting
...
This ensures fresh installs will see an empty value, and hence
default to the shipped version.
2018-11-25 14:06:51 +00:00
Richard Harrison
1e636ce4cf
Support for DDS Texture Cache
...
- pass texture cache control properties to simgear
- /sim/rendering/texture-cache/cache-enabled
- /sim/rendering/texture-cache/compress-transparent
- /sim/rendering/texture-cache/compress-solid
- /sim/rendering/texture-cache/compress
- support --texture-cache-dir command line option
- set max reported supported texture size during splashscreen.
2018-11-24 20:21:46 +01:00
James Turner
3b3c99777d
Reduce level of a log message
2018-11-07 09:39:54 +01:00
James Turner
49c3fc064a
XLIFF: Fix loading of indexed strings
2018-10-13 21:22:18 +01:00
James Turner
2313f482a3
Add missing C-string include for strcmp
2018-10-13 09:07:32 +01:00
James Turner
dbb99ee550
XLIFF: fix null approved-attr handling
2018-10-13 08:42:05 +01:00
James Turner
53de09d151
Fix dumb commit for XLIFF approved-attr handling
2018-10-13 00:20:38 +01:00
James Turner
adea824bd3
XLIFF parser ignores un-approved translations
...
As suggested by Florent, ensure we respect the XLIFF ‘approved’
attribute, so we can track translations which don’t work yet due to
PLIB limitations.
2018-10-12 22:24:33 +01:00
James Turner
f819750287
Launcher respects --language arg if set
2018-10-12 11:37:39 +01:00
Erik Hofman
43c201d9d0
Fix an almost certain buffer overflow
2018-10-10 09:24:02 +02:00
James Turner
a66f0243bf
Use GetUserPreferredUILangauges on Windows
...
This should accurately reflect the user's language preferences in the control
panel, unlike the previous method.
2018-09-28 12:09:24 +01:00
James Turner
098c489ae0
Make —parking-id an alias for —parkpos
2018-09-20 10:26:48 +01:00
James Turner
110aec6039
Tiny code cleanups while doing other changes
2018-09-18 17:34:23 +01:00
James Turner
72e1737aa6
Reset: wipe the Effect UniformCache
2018-09-13 23:52:52 +02:00
James Turner
72239c9a52
Code cleanups while checking reposition performance
...
Some C++11 fixes and give FDMShell, Reply a subsystem-name
2018-09-09 13:42:51 +01:00
James Turner
525cfadfa3
Reset: persist USERARCHIVE settings
...
Save user-setting properties to disk before beginning a reset, so
they are restored correctly.
2018-09-01 19:21:47 +01:00
James Turner
40d5d918ba
Allow local acft to override packaged acft
...
When an explicit aircraft-dir is set, check this location before
checking installed packages. This allows setting —aircraft and
-aircraft-dir to correctly take precedence over a package.
2018-08-30 15:23:45 +01:00
James Turner
41687767b9
Translations looked up correctly
...
Tweak both the launcher and main locale lookups, to tolerate the
different region suffixes encountered in reality.
2018-08-28 23:34:44 +01:00
James Turner
f4b98cf204
Fix CMake dependencies for translations
...
When only building the fgfs target (which IDEs tend to do), we didn’t
update the translations. Add an explicit dependency to remedy this.
2018-08-28 12:04:56 +01:00
James Turner
3f5a0a47ad
Improved build.h generation (each build)
...
Use a custom_target to recursively invoke Cmake at build time; this
ensures the build ID and Git revision are always up to date.
2018-08-19 16:06:16 +01:00
James Turner
09918a6862
Fix Nasal duplicate init
...
Also ensure Nasal reset is handled correctly (requires corresponding
SimGear commit)
2018-08-19 12:34:27 +01:00
James Turner
f5117109fe
Load translations from XLIFF format
...
When an <xliff> entry is present inside a locale specification,
this takes precedence over the legacy translations.
2018-08-12 11:18:50 -07:00
James Turner
d534a5ba36
Move build-ID variables to their own header
...
This is to reduce rebuilding by changing version.h needlessly, since
only a few places use the build ID info.
2018-08-12 11:18:50 -07:00
James Turner
696c95d612
Fix passing —-config files via the launcher
...
Curt found this, allow using --config from the launcher additional
settings box.
2018-08-10 12:51:51 +01:00
Edward d'Auvergne
feb854946e
TestSuite: Complete removal of FG_TESTLIB.
2018-07-26 15:52:07 +02:00