Adds dummy modules to facilitate improved import error handling. Removes unnecessary legacy PAS module from standard modules. Fixes /dist/index.js not being populated properly.

This commit is contained in:
Alex Williams
2024-05-16 19:31:00 +01:00
parent 24df4c9752
commit d04d380c67
52 changed files with 243 additions and 60 deletions

View File

@@ -11,7 +11,7 @@ if (!fs.existsSync('./dist')){
fs.mkdirSync('./dist');
}
fs.open('./dist/index.json', 'w', function() {
fs.open('./dist/index.js', 'w', function() {
fs.writeFile('./dist/index.js', code, function(err) {});
});

View File

@@ -6903,5 +6903,17 @@
},
"modifications": [
]
},
"mh": {
"blueprints": {
},
"modifications": [
]
},
"mm": {
"blueprints": {
},
"modifications": [
]
}
}

View File

@@ -0,0 +1,35 @@
{
"mh": [
{
"class": 0,
"cost": 0,
"edID": 0,
"eddbID": 0,
"grp": "mh",
"id": "4G",
"integrity": 0,
"mass": 0,
"name": "Unrecognised Utility",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"power": 0,
"rating": "I",
"symbol": "Hpt_Missing_Utility"
},
{
"class": 0,
"cost": 10,
"edID": 0,
"eddbID": 0,
"grp": "mh",
"id": "4H",
"integrity": 0,
"mass": 0,
"name": "Unrecognised Weapon",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"power": 0,
"rating": "Z",
"symbol": "Hpt_Missing_Hardpoint"
}
]
}

View File

@@ -7,7 +7,6 @@ module.exports = {
pd: require('./standard/power_distributor').pd,
s: require('./standard/sensors').s,
ft: require('./standard/fuel_tank').ft,
pas: require('./standard/planetary_approach_suite').pas
},
hardpoints: {
pl: require('./hardpoints/pulse_laser').pl,
@@ -45,7 +44,8 @@ module.exports = {
tbsc: require('./hardpoints/shock_cannon').tbsc,
tbem: require('./hardpoints/enzyme_missile_rack.json').tbem,
tbrfl: require('./hardpoints/remote_release_flechette_launcher.json').tbrfl,
gsc: require('./hardpoints/guardian_shard_cannon').gsc
gsc: require('./hardpoints/guardian_shard_cannon').gsc,
mh: require('./hardpoints/missing_hardpoint').mh,
},
internal: {
am: require('./internal/auto_field_maintenance_unit').am,
@@ -85,5 +85,6 @@ module.exports = {
sua: require('./internal/supercruise_assist').sua,
ews: require('./internal/experemental_weapon_stabilizer').ews,
pas: require('./internal/planetary_approach_suite').pas,
mm: require('./internal/missing_module').mm,
}
}

View File

@@ -0,0 +1,20 @@
{
"mm": [
{
"class": 0,
"cost": 0,
"edID": 0,
"eddbID": 0,
"grp": "mm",
"id": "4I",
"integrity": 0,
"mass": 0,
"name": "Unrecognised Module",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"power": 0,
"rating": "Z",
"symbol": "Int_Missing_Module"
}
]
}

View File

@@ -1234,6 +1234,25 @@
"symbol": "Int_Hyperdrive_Overcharge_Size2_Class1",
"ukName": "FSD",
"ukDiscript": "Faster-than-light capable ship drive, featuring experimental overcharge capabilities, necessary for supercruise travel and hyperspace jumps between star systems."
},
{
"class": 0,
"cost": 0,
"edID": 0,
"fuelmul": 0,
"fuelpower": 0,
"grp": "fsd",
"id": "4P",
"name": "Unrecognised Frame Shift Drive",
"integrity": 0,
"mass": 0,
"maxfuel": 0,
"optmass": 0,
"power": 0,
"rating": "Z",
"symbol": "Int_Missing_Hyperdrive",
"ukName": "Unrecognised Frame Shift Drive",
"ukDiscript": "Unrecognised Frame Shift Drive"
}
]
}

View File

@@ -111,6 +111,21 @@
"symbol": "Int_FuelTank_Size8_Class3",
"ukName": "Fuel Tank",
"ukDiscript": "Storage container for fuel used by ship's power plant."
},
{
"class": 1,
"cost": 0,
"edID": 0,
"eddbID": 0,
"fuel": 0,
"mass": 0,
"grp": "ft",
"id": "4M",
"rating": "Z",
"symbol": "Int_Missing_FuelTank",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"ukName": "Unrecognised Fuel Tank",
"ukDiscript": "Unrecognised Fuel Tank"
}
]
}

View File

@@ -679,6 +679,24 @@
"symbol": "Int_LifeSupport_Size1_Class5",
"ukName": "Life Support",
"ukDiscript": "Regulates habitable ship atmosphere and provides emergency reservoir for pilot's Remlock system. "
},
{
"boot": 0,
"class": 0,
"cost": 0,
"edID": 0,
"eddbID": 0,
"grp": "ls",
"id": "4O",
"integrity": 0,
"mass": 0,
"power": 0,
"rating": "Z",
"time": 0,
"symbol": "Int_Missing_LifeSupport",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"ukName": "Unrecognised Life Support",
"ukDiscript": "Unrecognised Life Support"
}
]
}

View File

@@ -1,18 +0,0 @@
{
"pas": [
{
"class": 1,
"cost": 500,
"edID": 128672317,
"eddbID": 1538,
"grp": "pas",
"id": "PA",
"mass": 0,
"power": 0,
"rating": "I",
"symbol": "Int_PlanetApproachSuite",
"ukName": "Planetary Approach Suite",
"ukDiscript": "The required Thruster modifications, sensor package and avionics to allow a ship to fly effectively in close proximity to planets."
}
]
}

View File

@@ -1015,6 +1015,29 @@
"symbol": "Int_GuardianPowerDistributor_Size8",
"ukName": "Guardian Power Distributor",
"ukDiscript": "Distribution system for ENG, SYS and WEP capacitors. Enhanced with Guardian technology to speed up capacitor recharge rates, at the cost of smaller capacitors and increased heat generation. Also boosts overall power output of any power plant it is hooked into."
},
{
"class": 0,
"cost": 0,
"edID": 0,
"eddbID": 0,
"engcap": 0,
"engrate": 0,
"grp": "pd",
"id": "4N",
"integrity": 0,
"mass": 0,
"power": 0,
"rating": "Z",
"syscap": 0,
"sysrate": 0,
"wepcap": 0,
"weprate": 0,
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"name": "Unrecognised Power Distributor",
"symbol": "Int_Missing_PowerDistributor",
"ukName": "Unrecognised Power Distributor",
"ukDiscript": "Unrecognised Power Distributor"
}
]
}

View File

@@ -678,6 +678,24 @@
"symbol": "Int_GuardianPowerplant_Size8",
"ukName": "Guardian Power Plant",
"ukDiscript": "Consumes fuel to power all ship modules. Enhanced with Guardian technology to produce greater power output, at the cost of heat generated and mass."
},
{
"class": 0,
"cost": 0,
"edID": 0,
"eddbID": 0,
"eff": 0,
"grp": "pp",
"id": "4K",
"integrity": 0,
"mass": 0,
"pgen": 0,
"rating": "Z",
"name": "Unrecognised Power Plant",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"symbol": "Int_Missing_Powerplant",
"ukName": "Unrecognised Power Plant",
"ukDiscript": "Unrecognised Power Plant"
}
]
}

View File

@@ -679,6 +679,24 @@
"symbol": "Int_Sensors_Size1_Class5",
"ukName": "Sensors",
"ukDiscript": "Standard suite providing basic detection, identification and targeting capabilities."
},
{
"angle": 0,
"class": 1,
"cost": 0,
"edID": 0,
"eddbID": 0,
"grp": "s",
"id": "4L",
"integrity": 0,
"mass": 0,
"power": 0,
"range": 0,
"rating": "Z",
"symbol": "Int_Missing_Sensors",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"ukName": "Unrecognised Sensors",
"ukDiscript": "Unrecognised Sensors"
}
]
}

View File

@@ -796,6 +796,28 @@
"symbol": "Int_Engine_Size2_Class5_Fast",
"ukName": "Thrusters",
"ukDiscript": "Enhanced performance normal-space propulsion system."
},
{
"class": 2,
"cost": 0,
"edID": 0,
"eddbID": 0,
"grp": "t",
"id": "4J",
"integrity": 0,
"mass": 0,
"maxmass": 0,
"maxmul": 0,
"minmass": 0,
"minmul": 0,
"optmass": 0,
"optmul": 0,
"power": 0,
"rating": "Z",
"symbol": "Int_Missing_Engine",
"info": "Not in Coriolis yet. Check GitHub issues. Add Issue if needed.",
"ukName": "Unrecognised Thrusters",
"ukDiscript": "Unrecognised Thrusters "
}
]
}

View File

@@ -118,7 +118,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -166,7 +166,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -164,7 +164,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -166,7 +166,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -148,7 +148,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -124,7 +124,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -119,7 +119,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -134,7 +134,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -120,7 +120,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -126,7 +126,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -121,7 +121,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -120,7 +120,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -124,7 +124,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -129,7 +129,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -150,7 +150,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -162,7 +162,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -152,7 +152,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -166,7 +166,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -123,7 +123,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -115,7 +115,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -126,7 +126,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -124,7 +124,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -161,7 +161,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -129,7 +129,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -121,7 +121,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -125,7 +125,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -123,7 +123,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -123,7 +123,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -123,7 +123,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -125,7 +125,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -124,7 +124,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -116,7 +116,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -159,7 +159,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -119,7 +119,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -124,7 +124,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -127,7 +127,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -131,7 +131,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -133,7 +133,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}

View File

@@ -132,7 +132,7 @@
1,
{
"class": 1,
"name": "Planetary",
"name": "PlanetaryApproachSuite",
"eligible": {
"pas": 1
}