Skip to content

Commit 1d4f4c3

Browse files
feat: add simulator property to addons (#56)
* feat: add simulator property to addon * feat: add A32NX to msfs 2024 addons * feat: add A380X and Simbridge to MSFS2024 * revert: msfs 2024 test addons
1 parent 7620318 commit 1d4f4c3

File tree

2 files changed

+44
-28
lines changed

2 files changed

+44
-28
lines changed

config/config.ts

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ const config: Configuration = {
4949
],
5050
addons: [
5151
{
52-
key: 'A32NX',
52+
key: 'a32nx-msfs2020',
5353
name: 'A32NX',
54+
simulator: 'msfs2020',
5455
repoOwner: 'flybywiresim',
5556
repoName: 'aircraft',
5657
category: '@aircraft',
5758
aircraftName: 'A320-251N',
5859
titleImageUrl: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fbw-a32nx/dark.svg',
5960
titleImageUrlSelected: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fbw-a32nx/light.svg',
6061
enabled: true,
61-
// TODO: Change this
6262
backgroundImageUrls: ['https://flybywirecdn.com/installer/media-assets/addon-headers/fbw-a32nx/1.png'],
6363
shortDescription: 'Airbus A320neo Series',
6464
description: 'The A320neo (new engine option) is one of many upgrades introduced by Airbus to help maintain ' +
@@ -81,14 +81,21 @@ const config: Configuration = {
8181
'A32NX',
8282
'a32nx',
8383
],
84+
dependencies: [
85+
{
86+
addon: '@flybywiresim/simbridge-msfs2020',
87+
optional: true,
88+
modalText: 'SimBridge allows the A32NX to expose remote tools like the Web MCDU, as well as use the external terrain database.',
89+
},
90+
],
8491
tracks: [
8592
{
8693
name: 'Stable',
8794
key: 'a32nx-stable',
8895
url: 'https://flybywirecdn.com/addons/a32nx/stable',
8996
alternativeUrls: [
9097
'external/a32nx/stable',
91-
// move bunnycdn users to cloudflare
98+
// move bunnycdn users to cloudflare
9299
'https://cdn.flybywiresim.com/addons/a32nx/stable',
93100
],
94101
description: 'The stable edition is for those who need a stable home cockpit API, or controlled upgrades every few months. ' +
@@ -125,13 +132,6 @@ const config: Configuration = {
125132
},
126133
},
127134
],
128-
dependencies: [
129-
{
130-
addon: '@flybywiresim/simbridge',
131-
optional: true,
132-
modalText: 'SimBridge allows the A32NX to expose remote tools like the Web MCDU, as well as use the external terrain database.',
133-
},
134-
],
135135
incompatibleAddons: [
136136
// title: the exact title as it appears in the manifest.json
137137
// creator: the exact creator as it appears in the manifest.json
@@ -241,8 +241,9 @@ const config: Configuration = {
241241
disallowedRunningExternalApps: ['@/msfs', '@/mcdu-server'],
242242
},
243243
{
244+
key: 'a380x-msfs2020',
244245
name: 'A380X',
245-
key: 'A380X',
246+
simulator: 'msfs2020',
246247
repoOwner: 'flybywiresim',
247248
repoName: 'aircraft',
248249
category: '@aircraft',
@@ -268,6 +269,13 @@ const config: Configuration = {
268269
'A380X',
269270
'a380x'
270271
],
272+
dependencies: [
273+
{
274+
addon: '@flybywiresim/simbridge-msfs2020',
275+
optional: true,
276+
modalText: 'SimBridge allows the A380X to use the external terrain database.',
277+
},
278+
],
271279
tracks: [
272280
{
273281
name: 'Stable (4K)',
@@ -363,17 +371,15 @@ const config: Configuration = {
363371
description: "It is required to remove this add-on before installing and using the A380X. This add-on overrides " +
364372
"A380X components and may render the A380X unusable."
365373
},
366-
{
367-
title: 'Bright_Light_A380',
368-
description: "It is required to remove this add-on before installing and using the A380X. This add-on overrides " +
369-
"A380X components and may render the A380X unusable."
370-
},
374+
375+
371376
],
372377
disallowedRunningExternalApps: ['@/msfs'],
373378
},
374379
{
375380
name: 'KFBW',
376381
key: 'KFBW',
382+
simulator: 'msfs2020',
377383
category: '@scenery',
378384
aircraftName: 'FBW Headquarters',
379385
enabled: true,
@@ -408,8 +414,9 @@ const config: Configuration = {
408414
],
409415
},
410416
{
417+
key: 'simbridge-msfs2020',
411418
name: 'SimBridge',
412-
key: 'simbridge',
419+
simulator: 'msfs2020',
413420
category: '@simbridge',
414421
repoOwner: 'flybywiresim',
415422
repoName: 'simbridge',
@@ -502,6 +509,7 @@ const config: Configuration = {
502509
{
503510
key: '74S',
504511
name: '74S',
512+
simulator: 'msfs2020',
505513
repoOwner: 'saltysimulations',
506514
repoName: 'salty-747',
507515
category: '@aircraft',
@@ -593,15 +601,16 @@ const config: Configuration = {
593601
{
594602
key: 'traffic-base-models',
595603
name: 'FSLTL Traffic',
604+
simulator: 'msfs2020',
596605
aircraftName: 'FSLTL Traffic',
597606
titleImageUrl: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/base-models/dark.svg',
598607
titleImageUrlSelected: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/base-models/light.svg',
599608
enabled: true,
600609
backgroundImageUrls: ['https://flybywirecdn.com/installer/media-assets/addon-headers/fsltl/traffic/0.png'],
601610
shortDescription: 'FSLTL Traffic Base Models',
602611
description:
603-
'FSLTL is a free standalone real-time online traffic overhaul and VATSIM model-matching solution for MSFS.\n\n'+
604-
'Utilising native glTF models and MSFS independent online IFR/VFR traffic injection system with stock ATC interaction based on Flightradar24.\n\n'+
612+
'FSLTL is a free standalone real-time online traffic overhaul and VATSIM model-matching solution for MSFS.\n\n' +
613+
'Utilising native glTF models and MSFS independent online IFR/VFR traffic injection system with stock ATC interaction based on Flightradar24.\n\n' +
605614
'This is the base model / livery pack required for FSLTL Injector, MSFS default live traffic or VATSIM use.',
606615
targetDirectory: 'fsltl-traffic-base',
607616
alternativeNames: [],
@@ -614,26 +623,27 @@ const config: Configuration = {
614623
releaseModel: {
615624
type: 'CDN',
616625
},
617-
description: 'Stable release of the aircraft models, liveries and VMR file.\n\n'+
618-
'This packages is required to see matched models / liveries if you are using FSLTL Injector, MSFS default live traffic or VATSIM.\n\n'+
619-
'A vmr file is provided in the package for VATSIM client use.',
626+
description: 'Stable release of the aircraft models, liveries and VMR file.\n\n' +
627+
'This packages is required to see matched models / liveries if you are using FSLTL Injector, MSFS default live traffic or VATSIM.\n\n' +
628+
'A vmr file is provided in the package for VATSIM client use.',
620629
},
621630
],
622631
disallowedRunningExternalApps: ['@/msfs'],
623632
},
624633
{
625634
key: 'traffic-injector',
626635
name: 'FSLTL Injector',
636+
simulator: 'msfs2020',
627637
aircraftName: 'FSLTL Traffic',
628638
titleImageUrl: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/injector/dark.svg',
629639
titleImageUrlSelected: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/injector/light.svg',
630640
enabled: true,
631641
backgroundImageUrls: ['https://flybywirecdn.com/installer/media-assets/addon-headers/fsltl/traffic/0.png'],
632642
shortDescription: 'FSLTL Traffic Injector Software',
633-
description: 'FSLTL Live Traffic Injector - giving you a more immersive experience at airports globally!\n\n'+
634-
'- Live IFR and VFR traffic based on Flightradar24\n\n'+
635-
'- Parked aircraft based on historic real data for immersive full airports\n\n'+
636-
'- Ability to have any combination of IFR, VFR and parked aircraft',
643+
description: 'FSLTL Live Traffic Injector - giving you a more immersive experience at airports globally!\n\n' +
644+
'- Live IFR and VFR traffic based on Flightradar24\n\n' +
645+
'- Parked aircraft based on historic real data for immersive full airports\n\n' +
646+
'- Ability to have any combination of IFR, VFR and parked aircraft',
637647
targetDirectory: 'fsltl-traffic-injector',
638648
tracks: [
639649
{
@@ -644,8 +654,8 @@ const config: Configuration = {
644654
releaseModel: {
645655
type: 'fragmenter',
646656
},
647-
description: 'FSLTL Traffic Injector for use on stable versions of MSFS 2020/2024.\n\n'+
648-
'Follow the user guide at https://www.fslivetrafficliveries.com/user-guide/ before use.',
657+
description: 'FSLTL Traffic Injector for use on stable versions of MSFS 2020/2024.\n\n' +
658+
'Follow the user guide at https://www.fslivetrafficliveries.com/user-guide/ before use.',
649659
},
650660
],
651661
backgroundService: {

lib.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
export enum Simulators {
2+
Msfs2020 = 'msfs2020',
3+
Msfs2024 = 'msfs2024',
4+
}
5+
16
export interface ExternalLink {
27
url: string,
38
title: string,
@@ -94,6 +99,7 @@ export interface AddonMyInstallPageConfiguration {
9499
export interface Addon {
95100
key: string,
96101
name: string,
102+
simulator: `${Simulators}` | Simulators,
97103
repoOwner?: string,
98104
repoName?: string,
99105
category?: `@${string}`,

0 commit comments

Comments
 (0)