Refactor modular startup and viewer ship debugging

This commit is contained in:
2026-03-13 01:57:13 -04:00
parent a9c08124f5
commit c7fcb08ba6
13 changed files with 962 additions and 127 deletions

View File

@@ -1,4 +1,19 @@
[
{
"id": "station-core",
"label": "Orbital Station",
"category": "station",
"color": "#8df0d2",
"radius": 24,
"dockingCapacity": 4,
"storage": {
"bulk-solid": 2000,
"manufactured": 1200,
"bulk-liquid": 600,
"bulk-gas": 600
},
"modules": ["docking-clamps", "refinery-stack", "fabricator-array", "power-core", "bulk-bay", "liquid-tank", "gas-tank"]
},
{
"id": "trade-hub",
"label": "Trade Hub",
@@ -12,12 +27,12 @@
{
"id": "refinery",
"label": "Refining Station",
"category": "refining",
"category": "station",
"color": "#ffb86c",
"radius": 24,
"dockingCapacity": 3,
"storage": { "bulk-solid": 2000, "manufactured": 1000 },
"modules": ["docking-clamps", "refinery-stack", "bulk-bay", "fabricator-array"]
"storage": { "bulk-solid": 2000, "manufactured": 1000, "bulk-liquid": 400, "bulk-gas": 400 },
"modules": ["docking-clamps", "refinery-stack", "bulk-bay", "fabricator-array", "power-core", "liquid-tank", "gas-tank"]
},
{
"id": "farm-ring",

View File

@@ -11,6 +11,18 @@
"category": "engine",
"summary": "Sub-light propulsion package."
},
{
"id": "reactor-core",
"label": "Reactor Core",
"category": "power",
"summary": "Primary onboard generator for ship systems."
},
{
"id": "capacitor-bank",
"label": "Capacitor Bank",
"category": "energy-buffer",
"summary": "Transient energy storage for weapons, engines, and industrial tools."
},
{
"id": "ftl-core",
"label": "FTL Core",
@@ -23,6 +35,18 @@
"category": "mining",
"summary": "Excavation laser and ore intake."
},
{
"id": "mining-turret",
"label": "Mining Turret",
"category": "mining",
"summary": "Articulated mining head for shipborne extraction."
},
{
"id": "gun-turret",
"label": "Gun Turret",
"category": "weapon",
"summary": "Hull-mounted weapon turret for ship combat."
},
{
"id": "bulk-bay",
"label": "Bulk Cargo Bay",
@@ -70,5 +94,23 @@
"label": "Fabricator Array",
"category": "production",
"summary": "Assembly lines for manufactured goods."
},
{
"id": "power-core",
"label": "Power Core",
"category": "energy",
"summary": "Primary station generator and power distribution."
},
{
"id": "liquid-tank",
"label": "Liquid Tank",
"category": "storage-liquid",
"summary": "Tankage for water, coolants, and other liquids."
},
{
"id": "gas-tank",
"label": "Fuel Tank",
"category": "storage-gas",
"summary": "Pressurized storage for volatile gas and fuel reserves."
}
]

View File

@@ -2,9 +2,10 @@
{
"id": "ore-refining",
"label": "Ore Refining",
"facilityCategory": "refining",
"facilityCategory": "station",
"duration": 8,
"priority": 100,
"requiredModules": ["refinery-stack", "power-core"],
"inputs": [
{ "itemId": "ore", "amount": 60 }
],

View File

@@ -1,41 +1,12 @@
{
"initialStations": [
{ "constructibleId": "trade-hub", "systemId": "helios", "planetIndex": 1, "lagrangeSide": 1 },
{ "constructibleId": "refinery", "systemId": "helios", "planetIndex": 2, "lagrangeSide": -1 },
{ "constructibleId": "farm-ring", "systemId": "helios", "planetIndex": 1, "lagrangeSide": -1 },
{ "constructibleId": "shipyard", "systemId": "helios", "planetIndex": 3, "lagrangeSide": 1 },
{ "constructibleId": "defense-grid", "systemId": "helios", "planetIndex": 2, "lagrangeSide": 1 }
{ "constructibleId": "station-core", "systemId": "helios", "planetIndex": 2, "lagrangeSide": -1 }
],
"shipFormations": [
{ "shipId": "carrier", "count": 1, "center": [120, 0, 60], "systemId": "helios" },
{ "shipId": "frigate", "count": 6, "center": [180, 0, 90], "systemId": "helios" },
{ "shipId": "destroyer", "count": 3, "center": [260, 0, 120], "systemId": "helios" },
{ "shipId": "cruiser", "count": 2, "center": [220, 0, 180], "systemId": "helios" },
{ "shipId": "hauler", "count": 4, "center": [310, 0, -150], "systemId": "helios" },
{ "shipId": "frigate", "count": 4, "center": [4350, 0, 560], "systemId": "perseus" },
{ "shipId": "cruiser", "count": 1, "center": [4430, 0, 640], "systemId": "perseus" },
{ "shipId": "miner", "count": 6, "center": [4620, 0, 700], "systemId": "perseus" }
],
"patrolRoutes": [
{
"systemId": "helios",
"points": [
[180, 0, 120],
[360, 0, -140],
[620, 0, 210],
[260, 0, 320]
]
},
{
"systemId": "perseus",
"points": [
[4580, 0, 740],
[4750, 0, 480],
[5020, 0, 860],
[4680, 0, 980]
]
}
{ "shipId": "constructor", "count": 1, "center": [45, 0, 20], "systemId": "helios" },
{ "shipId": "miner", "count": 1, "center": [52, 0, 24], "systemId": "helios" }
],
"patrolRoutes": [],
"miningDefaults": {
"nodeSystemId": "perseus",
"refinerySystemId": "helios"

View File

@@ -12,7 +12,7 @@
"hullColor": "#1f4f78",
"size": 4,
"maxHealth": 100,
"modules": ["command-bridge", "ion-drive", "ftl-core", "turret-grid"]
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "gun-turret"]
},
{
"id": "destroyer",
@@ -27,7 +27,7 @@
"hullColor": "#6a2e26",
"size": 7,
"maxHealth": 240,
"modules": ["command-bridge", "ion-drive", "ftl-core", "turret-grid", "turret-grid"]
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "gun-turret", "gun-turret"]
},
{
"id": "cruiser",
@@ -42,7 +42,7 @@
"hullColor": "#314562",
"size": 10,
"maxHealth": 340,
"modules": ["command-bridge", "ion-drive", "ftl-core", "turret-grid", "turret-grid", "docking-clamps"]
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "gun-turret", "gun-turret", "docking-clamps"]
},
{
"id": "carrier",
@@ -57,7 +57,7 @@
"hullColor": "#35586d",
"size": 16,
"maxHealth": 900,
"modules": ["command-bridge", "ion-drive", "ftl-core", "carrier-bay", "carrier-bay", "turret-grid", "habitat-ring"],
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "carrier-bay", "carrier-bay", "gun-turret", "habitat-ring"],
"dockingCapacity": 6,
"dockingClasses": ["frigate", "destroyer", "cruiser"]
},
@@ -76,7 +76,24 @@
"hullColor": "#365f2a",
"size": 8,
"maxHealth": 180,
"modules": ["command-bridge", "ion-drive", "ftl-core", "container-bay", "docking-clamps"]
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "container-bay", "docking-clamps"]
},
{
"id": "constructor",
"label": "Pioneer Constructor",
"role": "construction",
"shipClass": "industrial",
"speed": 20,
"ftlSpeed": 2200,
"spoolTime": 3.5,
"cargoCapacity": 160,
"cargoKind": "manufactured",
"cargoItemId": "drone-parts",
"color": "#9af0c1",
"hullColor": "#2d5d47",
"size": 9,
"maxHealth": 220,
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "fabricator-array", "container-bay", "docking-clamps"]
},
{
"id": "miner",
@@ -93,6 +110,6 @@
"hullColor": "#68552b",
"size": 6,
"maxHealth": 150,
"modules": ["command-bridge", "ion-drive", "ftl-core", "strip-miner", "bulk-bay", "docking-clamps"]
"modules": ["command-bridge", "reactor-core", "capacitor-bank", "ion-drive", "ftl-core", "mining-turret", "bulk-bay", "docking-clamps"]
}
]