Commit Graph

454 Commits

Author SHA1 Message Date
Klaus Basan
5558cee4d8 Ref T67, utility functions for simulator info/model list 2017-05-09 19:13:45 +02:00
Klaus Basan
92472e78a6 Ref T58, consolidation fixes
* override simulator, because values can be removed
* DB simulator has priority
2017-05-09 19:13:42 +02:00
Mathew Sutcliffe
183d3f58e7 X-Plane model loader: fixed malformed model strings with spurious multiple liveries.
Each livery was being appended to the model string of the previous livery model.
Reported by Alex Beavil.
2017-05-07 21:52:14 +01:00
Mathew Sutcliffe
b1e57e28d0 Fixed QVector out-of-bounds assert in X-Plane model loader. 2017-05-06 20:22:46 +01:00
Klaus Basan
5b3097a2b0 Ref T28, description for cache 2017-05-05 23:08:18 +01:00
Klaus Basan
c3ed0bc394 Ref T28, removed areModelFilesUpdated and info if loading was from cache
* removed CacheUntilNewer
* did not really work and had some problems
* cache timestamp not really a good value to compare with
* too slow with remote file
2017-05-05 23:08:04 +01:00
Klaus Basan
4d156ad8fc Ref T28, description for caches 2017-05-05 23:07:51 +01:00
Mathew Sutcliffe
816f3bd48e New X-Plane flyable plane model string schema
Summary:
New aircraft for XP11 should include a name, author, and studio. These can be used to generate a better model string that doesn't depend on file or directory names.

If the `.acf` contains studio, this is used as the distributor. Otherwise, we use author as distributor instead (truncated in case it is a long list of names).

Then the model string is constructed by combining distributor and model name. If the model name already contains the distributor, we just use the model name.

If the name and distributor are missing, we fall back to the old scheme based on `.acf` filename and dirname.

I have also added a space between aircraft and livery. And I have added default description strings.

After this has landed and been deployed to users, we will need to remove all flyable X-Plane planes from the database and start again with them. (These are the excluded ones.) And we can't accept mappings that use the fallback old scheme if the submitted has renamed the `.acf` file or directory name.

Reviewers: rwinklmeier, kbasan

Reviewed By: kbasan

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D16
2017-05-05 23:07:28 +01:00
Mathew Sutcliffe
fbc9c37646 X-Plane model loader: performance tweaks.
Summary:
Using `QStringRef` and `QLatin1String` to avoid unnecessary allocations and conversions.

Depends on D12.

Reviewers: rwinklmeier, kbasan

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D13
2017-05-05 23:07:27 +01:00
Mathew Sutcliffe
4e23cd1382 X-Plane model loader: support extra properties of .acf files
Summary:
There are optional fields in an X-Plane flyable aircraft that we can use if they are present:

* Description
* Name
* Distributor

If not present, the user has to edit them manually.

@kbasan Any problem with constructing a `CDistributor` with empty db key?

Reviewers: rwinklmeier, kbasan

Reviewed By: rwinklmeier

Subscribers: jenkins, kbasan

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D12
2017-05-05 23:07:25 +01:00
Mathew Sutcliffe
4a4dea8d4d Rename xbus to xswiftbus
Summary:
I wanted to rename xbus because its relation to //swift// is not immediately clear from the name.

xswiftbus seems reasonable.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: kbasan

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D14
2017-05-05 23:07:11 +01:00
Klaus Basan
fad7d4b8c9 Ref T35, optional model description when mapping 2017-05-05 22:40:16 +01:00
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Mathew Sutcliffe
045b149164 refs #937 Resolved clazy warnings: Q_ENUMS is deprecated. 2017-04-19 19:31:47 +01:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
b7f69c6887 refs #937 Resolved clazy warnings: unnecessary memory allocation. 2017-04-19 19:31:39 +01:00
Mathew Sutcliffe
fce1513dae refs #937 Resolved clazy warnings: unnecessary detaching of containers. 2017-04-19 19:31:38 +01:00
Mathew Sutcliffe
488f42b0a1 refs #928 Parse and load OBJ8 CSL packages. 2017-04-19 19:31:33 +01:00
Klaus Basan
8eb9a8b217 refs #933, utility class to start MCX and settings trait 2017-04-18 00:08:37 +01:00
Klaus Basan
929e2883d0 refs #921, renaming follow ups 2017-04-18 00:06:34 +01:00
Klaus Basan
0b29ef3f78 Clang warnings 2017-04-18 00:06:32 +01:00
Klaus Basan
6d97f477c9 refs #911, support for Windows UNC paths in parser 2017-04-18 00:05:18 +01:00
Klaus Basan
b0fe4ce930 refs #911, allow to set model dir relative to simulator directory
* utility functions in simulator info
* and fscommonutil
* and button in UI to set default
2017-04-18 00:05:15 +01:00
Klaus Basan
2b50fe1fdb refs #906, utility functions in simulator info and model caches 2017-04-18 00:05:08 +01:00
Mathew Sutcliffe
b0aa713a2e refs #920 Remove duplicate checks. 2017-04-18 00:05:06 +01:00
Mathew Sutcliffe
55b738e65c refs #920 X-Plane support in CSimulatorInfo::getLocallyInstalledSimulators. 2017-04-18 00:05:03 +01:00
Klaus Basan
d214739912 refs #917, validate simulator setting 2017-04-18 00:04:54 +01:00
Klaus Basan
f816c927ee refs #917, use utility functions in simulator settings 2017-04-18 00:04:52 +01:00
Klaus Basan
0544ab0193 refs #917, fixed plugin ids in wizard
utility functions CSimulatorInfo -> plugin
2017-04-18 00:04:50 +01:00
Klaus Basan
422e6626c8 refs #912, formatting, typos, const 2017-04-18 00:04:37 +01:00
Klaus Basan
6ec0960811 Removed unused forward declarations 2017-04-18 00:00:54 +01:00
Klaus Basan
28ffdd8ed9 refs #916, added utility functions in CInterpolatorMulti 2017-04-18 00:00:52 +01:00
Klaus Basan
1c96d30bcd refs #911, added P3D exclude directories 2017-04-18 00:00:43 +01:00
Klaus Basan
f82f04275b refs #911, allow to obtain address/port from simConnect.cfg file 2017-04-18 00:00:39 +01:00
Mathew Sutcliffe
b491a1432c refs #896 Added CInterpolatorMulti to allow runtime switching between interpolator algorithms. 2017-04-18 00:00:28 +01:00
Klaus Basan
7b9747b35c refs #910, obtain simConnect dll details
utility function
2017-04-18 00:00:07 +01:00
Klaus Basan
0f2680ba2a Formatting #910 2017-04-18 00:00:06 +01:00
Klaus Basan
fce4cb8a4d refs #827, preferColorLiveries as parameter for scoreFull
flag will be set in aircraft matcher
2017-04-17 23:59:33 +01:00
Klaus Basan
88a5b54ef6 refs #827, use matching logs (CMatchingUtils) with score functions 2017-04-17 23:59:26 +01:00
Klaus Basan
8d198a9174 refs #827, moved matching utilities to blackmisc so it can be used also with score functions in blackmisc 2017-04-17 23:59:25 +01:00
Klaus Basan
60a937b5b6 refs #907, model interface
* extended interface, function to get simulator
* made CDbMappingComponentAware an interface
* public getMappingComponent
2017-04-17 23:59:18 +01:00
Klaus Basan
35c685b344 Formatting, #825 (matching) 2017-04-17 23:58:53 +01:00
Klaus Basan
0851b8c994 refs #868, added xplaneDir utility function to remove boilerplate code
and using CFileUtils::appendFilePaths to concat file paths
2017-04-17 23:58:48 +01:00
Klaus Basan
99c792dd4b Refs #868 Use CXPlaneUtil::xplaneRootDir() in the X-Plane plugin 2017-04-17 23:58:46 +01:00
Michał Garapich
f25d569ae8 refs #868 Add CXPlaneUtil::xplane11Dir() 2017-04-17 23:58:45 +01:00
Mathew Sutcliffe
6a6f98ebd1 refs #896 Renaming members. 2017-04-17 23:58:17 +01:00
Mathew Sutcliffe
a94e117e97 refs #896 Use corrected altitude in spline interpolator (prevents underflow in FSX). 2017-04-17 23:58:16 +01:00
Klaus Basan
78f3ef375f refs #896, added logging of CG and old/new position 2017-04-17 23:58:13 +01:00
Klaus Basan
03b8739158 refs #895, add initial parts when aircraft is added in FSX
plus some utility functions
2017-04-17 23:58:09 +01:00
Klaus Basan
a27717cf8b refs #895, also log when parts are empty
* added empty flag
* move logging into own function (because it is called in multiple places now)
2017-04-17 23:58:07 +01:00