Files
Rail_Enterprise/data/balance.json
T
Claude 7879ac502d F5: manutenzione delle industrie, livelli, borsa e scalate, agenti IA
- Sezione 11: usura e recupero degli impianti, fermi e incidenti, ricambi e macchinari come
  domanda esplicita (treno, trasporto locale, trasbordo nel bacino), revisione e ammodernamento,
  acquisto delle industrie dal livello 3, conguaglio mensile con il proprietario (ADR 0011).
- Livelli della compagnia con soglie ritarate e ritaratura economica misurata con le IA.
- Sezione 12.2–12.3: libro dei soci, prezzo con sentiment, quotazione, riacquisto, dividendi,
  controllo e fusione (comando 39), offerte pubbliche con difese, esiti per difficoltà,
  aste delle IA fallite, nuovi concorrenti, fine partita e Cronaca finale (ADR 0012).
- Sezione 12.1: agenti IA con candidati, Dijkstra sulle celle, TrackPreview e ROI, tre
  personalità, linee dei ricambi, rimedio agli stalli, borsa (ADR 0013).
- Salvataggio versione 3, protocollo (messaggi 126–128, blocchi di estensione), server,
  simulate --trace-ai; test di 14.5 su IA e borsa e accettazione F5 (120 test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
2026-10-12 10:36:31 +00:00

214 lines
8.7 KiB
JSON

{
"$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, "radiusHysteresisCells": 0.25 },
"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, "priceFloor": 0.05 },
"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,
"baseServicesPerPopulation": 6000,
"serviceJobsShare": 0.12,
"satisfactionEmaDays": 30,
"initialSatisfaction": 0.5,
"stockDays": 20,
"workSatisfactionPenalty": 0.05,
"workDissatisfactionDecayDays": 90,
"demandPriceFactorMin": 0.5,
"demandPriceFactorMax": 1.5,
"populationMilestone": 10000,
"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, "boardDays": 2, "returnBoardDays": 2,
"railStartCoverage": 0.5, "lineCapacityUtilization": 0.85,
"agreements": { "minSeats": 20, "proposalChance": 0.5, "feePerSeatPerMonth": 2500, "proposalDays": 30,
"durationMonths": 24, "cooldownMonths": 6, "minCoverage": 0.9, "breakDays": 30, "penaltyMonths": 3 } },
"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": 360,
"freightFixedWeight": 0.6,
"freightPriceWeight": 0.4,
"freightKmExponent": 0.9,
"paxBaseFare": 75,
"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,
"sentimentEarningsWeight": 0.4,
"sentimentCycleWeight": 1.0,
"sentimentDividendWeight": 4.0,
"sentimentSmoothingDays": 30,
"extraDividendSentimentBoost": 0.15,
"extraDividendDecayDays": 120,
"aiFloatAtStart": 0.3,
"tenderDailyShare": 0.04,
"extraDividendCashShare": 0.25,
"whiteKnightPremium": 0.05,
"ransomPremium": 0.25,
"maxDailyTradeShare": 0.05,
"secondaryMaxFloat": 0.6,
"priceHistoryMonths": 120,
"auctionDays": 30,
"auctionMinBookShare": 0.4,
"concentrationThreshold": 0.6,
"newCompetitorCooldownYears": 3,
"maxCompanies": 8,
"historyYears": 300
},
"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,
"partsTargetMonths": 3,
"initialPartsMonths": 6,
"maxOrderedParts": 200,
"townEffectRadiusKm": 12,
"stopHistoryLength": 12,
"ownerCashReserve": 2000000,
"purchase": { "assetShare": 0.6, "earningsMultiple": 5, "conditionWeight": 0.5 }
}
}