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
This commit is contained in:
113 files changed
+12553
-23
No files matched your search
@@ -0,0 +1,178 @@
|
||||
{
|
||||
"$schema": "schema/balance.schema.json",
|
||||
"version": 1,
|
||||
"time": {
|
||||
"tickMs": 50,
|
||||
"ticksPerDay": 240,
|
||||
"daysPerMonth": 30,
|
||||
"monthsPerYear": 12,
|
||||
"trainClockFactor": 60,
|
||||
"speeds": [ 0, 1, 2, 4, 8 ],
|
||||
"defaultStartYear": 1850
|
||||
},
|
||||
"map": {
|
||||
"cellSizeM": 100,
|
||||
"sizesKm": [ 64, 128, 256 ],
|
||||
"chunkCells": 64,
|
||||
"maxElevationM": 2200,
|
||||
"noise": { "octaves": 5, "baseWavelengthKm": 48, "persistence": 0.5, "lacunarity": 2.0,
|
||||
"warpStrengthKm": 9, "warpWavelengthKm": 36, "warpOctaves": 2,
|
||||
"ridgeOctaves": 4, "ridgeWavelengthKm": 28 },
|
||||
"relief": { "noiseAmplitudeM": 380, "noiseCoastFactor": 0.15, "inlandGradientM": 700, "inlandExponent": 2.0, "seaOffsetM": 25,
|
||||
"mountainAmplitudeM": 1400, "mountainStart": 0.55, "seaBandFraction": 0.03, "coastNoiseM": 90,
|
||||
"microReliefM": 6, "microWavelengthKm": 1.2 },
|
||||
"hydrology": { "riverThresholdKm2": 18, "riverWidthSteps": [ 1, 4, 16, 64 ], "carveDepthM": 4, "valleyRadiusCells": 3, "valleyDepthM": 6,
|
||||
"lakeMinDepthM": 3, "lakeMinCells": 8, "lakeMaxPercentile": 0.6, "minSourcePercentile": 0.30 },
|
||||
"cover": { "rockPercentile": 0.70, "rockMinSlope": 0.18, "mountainPercentile": 0.90, "hillMinSlope": 0.07, "hillPercentile": 0.55,
|
||||
"forestMinSlope": 0.03, "forestMaxSlope": 0.30, "forestNoiseThreshold": 0.52, "forestWavelengthKm": 6,
|
||||
"marshMaxPercentile": 0.25, "marshRiverDistanceCells": 4, "marshMaxSlope": 0.012, "marshNoiseThreshold": 0.6,
|
||||
"fieldRadiusCells": 14, "fieldShare": 0.35 },
|
||||
"deposits": { "perThousandKm2": { "coal": 0.8, "iron": 0.6, "stone": 0.7, "oil": 0.4 },
|
||||
"radiusCells": [ 3, 7 ], "reserveTonnes": { "coal": [ 250000, 900000 ], "iron": [ 200000, 700000 ], "stone": [ 400000, 1500000 ], "oil": [ 150000, 600000 ] },
|
||||
"minSpacingKm": 5, "preferredMinPercentile": { "coal": 0.45, "iron": 0.60, "stone": 0.40, "oil": 0.0 },
|
||||
"preferredMaxPercentile": { "coal": 0.92, "iron": 1.0, "stone": 0.95, "oil": 0.45 } },
|
||||
"towns": { "countBySize": { "64": 10, "128": 26, "256": 56 }, "minDistanceKm": 6, "maxWaterDistanceKm": 3, "maxSlope": 0.05,
|
||||
"maxHeightPercentile": 0.65, "largestPopulation": [ 11000, 18000 ], "zipfExponent": 0.85, "minPopulation": 500,
|
||||
"radiusBaseCells": 2.0, "radiusPerSqrtPop": 0.025 },
|
||||
"industries": { "countBySize": { "64": 32, "128": 110, "256": 400 }, "initialLevels": [ 1, 2 ],
|
||||
"shares": { "farm": 0.35, "logging": 0.12, "processing": 0.33, "manufacturing": 0.20 }, "placementAttempts": 400,
|
||||
"maxSlope": 0.15, "spacingCells": 1 },
|
||||
"hubs": { "ports": 1, "borders": 1, "portMinPopulationNearbyKm": 15 }
|
||||
},
|
||||
"market": {
|
||||
"k": 0.08,
|
||||
"alpha": 0.15,
|
||||
"windowDays": 30,
|
||||
"minPriceFactor": 0.3,
|
||||
"maxPriceFactor": 3.0,
|
||||
"ratioMin": 0.2,
|
||||
"ratioMax": 5.0,
|
||||
"world": { "amplitude": 0.12, "periodYears": 6, "volumeShare": 0.5, "baselinePerDay": 4.0, "elasticity": 1.0,
|
||||
"shockChancePerYear": 0.25, "shockMin": 0.08, "shockMax": 0.30, "shockDecayDays": 150 },
|
||||
"historyDays": 360
|
||||
},
|
||||
"localPrice": { "lambda": 0.35, "maxDeviation": 0.40, "epsilon": 1.0 },
|
||||
"industry": {
|
||||
"coverageWindowDays": 30,
|
||||
"profitFactorSlope": 0.5,
|
||||
"profitFactorMin": 0.6,
|
||||
"profitFactorMax": 1.2,
|
||||
"marginWindowDays": 90,
|
||||
"wagePerWorkerPerMonth": 1800,
|
||||
"wagePerStaffPerMonth": 5000,
|
||||
"onSiteWorkerShare": 0.30,
|
||||
"onSiteStaffShare": 0.30,
|
||||
"initialStockDays": 10,
|
||||
"footprintCells": { "small": 2, "medium": 3, "large": 4 },
|
||||
"depletionStartFraction": 0.20,
|
||||
"startingCash": 2000000
|
||||
},
|
||||
"growth": {
|
||||
"quarterDays": 90,
|
||||
"weightShipped": 0.5,
|
||||
"weightCoverage": 0.3,
|
||||
"weightProfit": 0.2,
|
||||
"upgradeThreshold": 0.75,
|
||||
"upgradeQuarters": 2,
|
||||
"downgradeThreshold": 0.35,
|
||||
"closeQuartersAtZero": 4,
|
||||
"maxLevel": 5,
|
||||
"spawnUnmetDays": 360,
|
||||
"spawnUnmetRatio": 1.25,
|
||||
"spawnMaxPerYear": 2
|
||||
},
|
||||
"town": {
|
||||
"baseGrowth": 0.002,
|
||||
"satisfactionWeight": 0.004,
|
||||
"employmentWeight": 0.003,
|
||||
"employmentPivot": 0.4,
|
||||
"maxMonthlyGrowth": 0.01,
|
||||
"satisfactionPivot": 0.5,
|
||||
"workforceShare": 0.40,
|
||||
"staffShare": 0.08,
|
||||
"staffMinPopulation": 5000,
|
||||
"staffMinServices": 2,
|
||||
"servicesSatisfactionThreshold": 0.5,
|
||||
"serviceJobsShare": 0.12,
|
||||
"satisfactionEmaDays": 30,
|
||||
"initialSatisfaction": 0.5,
|
||||
"stockDays": 20,
|
||||
"workSatisfactionPenalty": 0.05,
|
||||
"maxPopulation": 2000000
|
||||
},
|
||||
"migration": { "share": 0.01, "satisfactionThreshold": 0.4, "maxDistanceKm": 60, "emigrationShareWhenNoTarget": 0.5 },
|
||||
"employment": { "walkRadiusKm": 1.5, "workerMaxMinutes": 60, "staffMaxMinutes": 90, "coverageEmaDays": 30,
|
||||
"dissolveCoverage": 0.5, "dissolveDays": 90, "walkSpeedKmh": 4.5 },
|
||||
"localTransport": { "enabled": true, "radiusKm": 3.0, "dailyShare": 0.25, "maxUnitsPerDay": 6 },
|
||||
"hubs": {
|
||||
"port": { "name_it": "Porto", "monthlyCapacity": 3000, "duty": 0.08, "footprint": "large" },
|
||||
"border": { "name_it": "Valico", "monthlyCapacity": 1500, "duty": 0.12, "footprint": "small" }
|
||||
},
|
||||
"tariffs": {
|
||||
"freightBaseRate": 150,
|
||||
"freightFixedWeight": 0.6,
|
||||
"freightPriceWeight": 0.4,
|
||||
"freightKmExponent": 0.9,
|
||||
"paxBaseFare": 45,
|
||||
"paxKmExponent": 0.85,
|
||||
"classMultipliers": { "worker": 1.0, "staff": 3.0 },
|
||||
"lateThreshold": 1.5,
|
||||
"lateFactorMin": 0.5,
|
||||
"lateFactorSpan": 1.0
|
||||
},
|
||||
"finance": {
|
||||
"ratingSpreads": { "AAA": 0.005, "AA": 0.01, "A": 0.015, "BBB": 0.025, "BB": 0.035, "B": 0.05, "CCC": 0.07, "CC": 0.09, "C": 0.12, "D": 0.18 },
|
||||
"ratingByScore": [ 0.85, 0.75, 0.65, 0.55, 0.45, 0.35, 0.25, 0.15, 0.05 ],
|
||||
"profitMarginWeight": 0.6,
|
||||
"leverageWeight": 0.4,
|
||||
"loanTermMonths": 120,
|
||||
"loanStep": 5000000,
|
||||
"startingRating": "BB",
|
||||
"depreciationYearsTrack": 50,
|
||||
"bookValueFloor": 0.1
|
||||
},
|
||||
"stockMarket": {
|
||||
"shares": 1000000,
|
||||
"earningsMultiple": 8,
|
||||
"sentimentMin": 0.8,
|
||||
"sentimentMax": 1.3,
|
||||
"spread": 0.01,
|
||||
"ipoMaxShare": 0.4,
|
||||
"controlShare": 0.5,
|
||||
"mergeAfterDays": 360,
|
||||
"bidPremiumMin": 0.2,
|
||||
"bidPremiumMax": 0.5,
|
||||
"bidDurationDays": 90,
|
||||
"ransomShare": 0.51,
|
||||
"receivershipDividend": 0.5
|
||||
},
|
||||
"industryMaintenance": {
|
||||
"wearPerDay": 0.06,
|
||||
"efficiencyFullAbove": 70,
|
||||
"efficiencyAt20": 0.5,
|
||||
"efficiencyBelow20": 0.3,
|
||||
"breakdownBase": 0.001,
|
||||
"breakdownPivot": 40,
|
||||
"breakdownScale": 8,
|
||||
"breakdownDays": [ 5, 20 ],
|
||||
"breakdownTownSatisfaction": 0.02,
|
||||
"accidentBelow": 10,
|
||||
"accidentDays": 60,
|
||||
"accidentPopulationLoss": 0.002,
|
||||
"budgets": {
|
||||
"none": { "recoveryPerDay": 0.0, "costShareOfRevenue": 0.0, "sparePartsPerLevelPerMonth": 0 },
|
||||
"base": { "recoveryPerDay": 0.05, "costShareOfRevenue": 0.03, "sparePartsPerLevelPerMonth": 1 },
|
||||
"high": { "recoveryPerDay": 0.12, "costShareOfRevenue": 0.07, "sparePartsPerLevelPerMonth": 3 }
|
||||
},
|
||||
"noPartsRecoveryFactor": 0.5,
|
||||
"overhaulDays": 30,
|
||||
"overhaulMachineryPerLevel": 2,
|
||||
"overhaulMinStaffCoverage": 0.8,
|
||||
"upgradeMachineryPerLevel": 5,
|
||||
"upgradeDays": 60,
|
||||
"npcUpgradeMargin": 0.15,
|
||||
"npcUpgradeYears": 2,
|
||||
"npcHighMargin": 0.15,
|
||||
"npcOverhaulBelow": 35
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user