Files
Rail_Enterprise/data/construction.json
T
Claude 7cb98fa206 F1: economia headless, dati validati, generatore di mappa e salvataggi
- Base deterministica: Money, id tipizzati, DMath, XxHash64, calendario
- 12 file dati con schemi, validatore di schema interno, validazione semantica
  e hash dei dati; viaferrea-tools validate-data
- Generatore di mappa (rilievo, mare, priority-flood, fiumi, laghi, copertura,
  giacimenti, città, hub, industrie) e viaferrea-tools genmap
- Economia: città, industrie, hub, mercato con componente mondiale, prezzi
  locali, tariffe, lavoro in sede e a piedi, trasporto locale, registro a
  partita doppia, prestiti, rating, difficoltà
- Salvataggi Brotli con rimappatura per id e hash di stato giornaliero
- viaferrea-tools simulate con KPI CSV; 45 test verdi; ADR 0002-0006

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
2026-10-01 22:38:17 +00:00

86 lines
2.6 KiB
JSON

{
"$schema": "schema/construction.schema.json",
"version": 1,
"profile": {
"sampleSpacingM": 25,
"heightOffsetRangeM": 20,
"smoothingWindow": 5,
"naturalToleranceM": 1.5,
"embankmentMaxM": 8,
"cuttingMaxM": 8,
"riverClearanceM": 6,
"navigableClearanceM": 12,
"navigableMinWidthCells": 3,
"snapAngleDeg": 45
},
"maxGradientByTraction": { "steam": 0.025, "diesel": 0.035, "electric": 0.04, "highspeed": 0.035 },
"speedClasses": [
{ "trackClass": "c60", "minRadiusM": 200, "costMultiplier": 1.0 },
{ "trackClass": "c100", "minRadiusM": 400, "costMultiplier": 1.4 },
{ "trackClass": "c160", "minRadiusM": 900, "costMultiplier": 2.2 },
{ "trackClass": "c250", "minRadiusM": 2500, "costMultiplier": 4.0 }
],
"curveSpeedFactor": 0.65,
"costs": {
"basePerMeter": 1200,
"natural": 1.0,
"embankmentPerM": 0.25,
"cuttingPerM": 0.35,
"bridgeBase": 6.0,
"bridgePerM": 0.5,
"tunnel": 12.0,
"terrainModifiers": { "rock": 1.8, "marsh": 1.6, "mountain": 1.4, "forest": 1.15 },
"land": { "basePerCell": 20000, "nearTownKm": 2.0, "nearTownMultiplier": 3.0, "fieldMultiplier": 2.0 },
"doubleTrackMultiplier": 1.8,
"electrificationExtra": 0.35,
"stationBase": 4000000,
"stationPerPlatform": 1500000,
"depotBySize": { "small": 6000000, "medium": 12000000, "large": 24000000 },
"demolitionRefund": 0.1
},
"crews": {
"metersPerDay": { "natural": 200, "embankment": 60, "cutting": 60, "bridge": 20, "tunnel": 8 },
"crewsByTier": [ 2, 4, 8, 12, 20 ],
"upgradeClosure": true
},
"rules": {
"forbidTownFootprint": true,
"forbidIndustryFootprint": true,
"forbidForeignStations": true,
"foreignCrossingNeedsOverpass": true,
"overpassClearanceM": 7
},
"trackWear": {
"k": 400000,
"gradientWeight": 8,
"speedWeight": 0.4,
"maintenanceDriftPerDay": 0.02,
"maintenanceCostPerKmPerDay": 400,
"limitBelow60": 0.6,
"limitBelow30": 0.3,
"failureChanceBelow30": 0.002,
"renewalCostShare": 0.4,
"renewalDaysPerKm": 3
},
"structures": {
"inspectionCostShare": 0.01,
"inspectionIntervalDays": 360,
"renewalYears": 50,
"missedInspectionWearPerDay": 0.03,
"speedLimitBelow": 50,
"speedLimitFactor": 0.5,
"closeBelow": 15
},
"physics": {
"gravity": 9.81,
"adhesion": 0.3,
"adhesionFactor": 0.3,
"rollingResistance": 0.0015,
"aeroCoefficient": 0.6,
"cxByKind": { "locomotive": 0.0025, "wagon": 0.0012, "coach": 0.0015 },
"brakingMs2": 0.5,
"stallSpeedKmh": 1.0,
"stallSeconds": 120
}
}