Skip to content

Commit 96b7406

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 741d103 commit 96b7406

File tree

2 files changed

+42
-23
lines changed

2 files changed

+42
-23
lines changed

config/config.ts

Lines changed: 36 additions & 23 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)',
@@ -371,6 +379,7 @@ const config: Configuration = {
371379
{
372380
name: 'KFBW',
373381
key: 'KFBW',
382+
simulator: 'msfs2020',
374383
category: '@scenery',
375384
aircraftName: 'FBW Headquarters',
376385
enabled: true,
@@ -405,8 +414,9 @@ const config: Configuration = {
405414
],
406415
},
407416
{
417+
key: 'simbridge-msfs2020',
408418
name: 'SimBridge',
409-
key: 'simbridge',
419+
simulator: 'msfs2020',
410420
category: '@simbridge',
411421
repoOwner: 'flybywiresim',
412422
repoName: 'simbridge',
@@ -499,6 +509,7 @@ const config: Configuration = {
499509
{
500510
key: '74S',
501511
name: '74S',
512+
simulator: 'msfs2020',
502513
repoOwner: 'saltysimulations',
503514
repoName: 'salty-747',
504515
category: '@aircraft',
@@ -590,15 +601,16 @@ const config: Configuration = {
590601
{
591602
key: 'traffic-base-models',
592603
name: 'FSLTL Traffic',
604+
simulator: 'msfs2020',
593605
aircraftName: 'FSLTL Traffic',
594606
titleImageUrl: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/base-models/dark.svg',
595607
titleImageUrlSelected: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/base-models/light.svg',
596608
enabled: true,
597609
backgroundImageUrls: ['https://flybywirecdn.com/installer/media-assets/addon-headers/fsltl/traffic/0.png'],
598610
shortDescription: 'FSLTL Traffic Base Models',
599611
description:
600-
'FSLTL is a free standalone real-time online traffic overhaul and VATSIM model-matching solution for MSFS.\n\n'+
601-
'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' +
602614
'This is the base model / livery pack required for FSLTL Injector, MSFS default live traffic or VATSIM use.',
603615
targetDirectory: 'fsltl-traffic-base',
604616
alternativeNames: [],
@@ -611,26 +623,27 @@ const config: Configuration = {
611623
releaseModel: {
612624
type: 'CDN',
613625
},
614-
description: 'Stable release of the aircraft models, liveries and VMR file.\n\n'+
615-
'This packages is required to see matched models / liveries if you are using FSLTL Injector, MSFS default live traffic or VATSIM.\n\n'+
616-
'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.',
617629
},
618630
],
619631
disallowedRunningExternalApps: ['@/msfs'],
620632
},
621633
{
622634
key: 'traffic-injector',
623635
name: 'FSLTL Injector',
636+
simulator: 'msfs2020',
624637
aircraftName: 'FSLTL Traffic',
625638
titleImageUrl: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/injector/dark.svg',
626639
titleImageUrlSelected: 'https://flybywirecdn.com/installer/media-assets/addon-titles/fsltl/injector/light.svg',
627640
enabled: true,
628641
backgroundImageUrls: ['https://flybywirecdn.com/installer/media-assets/addon-headers/fsltl/traffic/0.png'],
629642
shortDescription: 'FSLTL Traffic Injector Software',
630-
description: 'FSLTL Live Traffic Injector - giving you a more immersive experience at airports globally!\n\n'+
631-
'- Live IFR and VFR traffic based on Flightradar24\n\n'+
632-
'- Parked aircraft based on historic real data for immersive full airports\n\n'+
633-
'- 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',
634647
targetDirectory: 'fsltl-traffic-injector',
635648
tracks: [
636649
{
@@ -641,8 +654,8 @@ const config: Configuration = {
641654
releaseModel: {
642655
type: 'fragmenter',
643656
},
644-
description: 'FSLTL Traffic Injector for use on stable versions of MSFS 2020/2024.\n\n'+
645-
'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.',
646659
},
647660
],
648661
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)