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
This commit is contained in:
Claude committed 2026-10-12 10:36:31 +00:00
1 parent 8d2fdd79e5
commit 7879ac502d
72 files changed
+5851 -122

No files matched your search

+45 -3
View File
@@ -7,13 +7,55 @@
"maxProjectsPerMonth": 2,
"candidateMaxDistanceKm": 40,
"candidateMinDistanceKm": 4,
"pathSlopePenalty": 40,
"pathSlopePenalty": 120,
"pathWaterPenalty": 8,
"trainsPerLine": 2,
"steepPenalty": 25,
"steepGradeFactor": 1.6,
"pathMarginRetryKm": 20,
"trainsPerLine": 1,
"wagonsPerTrain": 5,
"cashReserveMonths": 3,
"revenueHorizonYears": 10,
"maxRejectedShare": 0.05
"maxRejectedShare": 0.05,
"maxConcurrentProjects": 2,
"evaluateTop": 6,
"pathMarginKm": 8,
"simplifyToleranceM": 120,
"stationOffsetsM": [ 300, 550, 850, 1250 ],
"depotOffsetM": 450,
"platforms": 3,
"hubPlatforms": 6,
"assumedEfficiency": 0.6,
"speedFactor": 0.55,
"dwellMinutes": 6,
"maintenanceCostShare": 0.2,
"trackUpkeepPerKmPerYear": 30000,
"maxTrainsPerLine": 2,
"addTrainWaitingTrips": 2.0,
"minCommuters": 20,
"commuterCoverage": 0.6,
"hubShare": 0.25,
"noPartsFactor": 0.5,
"townBonus": 1.8,
"townRoiFactor": 0.5,
"repayCashMonths": 12,
"planningDaySpacing": 7,
"failedMemory": 64
},
"market": {
"founderAcceptPremium": 0.4,
"holderAcceptPremium": 0.15,
"predatoryStakeTarget": 0.3,
"sharesCashShare": 0.1,
"bidMinStake": 0.25,
"bidPremium": 0.3,
"bidCashMultiple": 1.2,
"buybackCashShare": 0.5,
"knightCashMultiple": 2.0,
"issueFloatMax": 0.5,
"issueShare": 0.1,
"industryMaxCashShare": 0.25,
"industryMinMargin": 0.1
},
"personalities": [
{ "id": "expansive", "name_it": "Espansiva", "roiThreshold": 0.08, "loanShareOfCredit": 0.8, "targetsPlayer": false, "buysShares": false, "maintenancePolicy": "standard" },
+31 -4
View File
@@ -117,11 +117,11 @@
"border": { "name_it": "Valico", "monthlyCapacity": 1500, "duty": 0.12, "footprint": "small" }
},
"tariffs": {
"freightBaseRate": 150,
"freightBaseRate": 360,
"freightFixedWeight": 0.6,
"freightPriceWeight": 0.4,
"freightKmExponent": 0.9,
"paxBaseFare": 45,
"paxBaseFare": 75,
"paxKmExponent": 0.85,
"classMultipliers": { "worker": 1.0, "staff": 3.0 },
"lateThreshold": 1.5,
@@ -152,7 +152,27 @@
"bidPremiumMax": 0.5,
"bidDurationDays": 90,
"ransomShare": 0.51,
"receivershipDividend": 0.5
"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,
@@ -181,6 +201,13 @@
"npcUpgradeMargin": 0.15,
"npcUpgradeYears": 2,
"npcHighMargin": 0.15,
"npcOverhaulBelow": 35
"npcOverhaulBelow": 35,
"partsTargetMonths": 3,
"initialPartsMonths": 6,
"maxOrderedParts": 200,
"townEffectRadiusKm": 12,
"stopHistoryLength": 12,
"ownerCashReserve": 2000000,
"purchase": { "assetShare": 0.6, "earningsMultiple": 5, "conditionWeight": 0.5 }
}
}
+5 -5
View File
@@ -23,7 +23,7 @@
],
"curveSpeedFactor": 0.65,
"costs": {
"basePerMeter": 1200,
"basePerMeter": 700,
"natural": 1.0,
"embankmentPerM": 0.25,
"cuttingPerM": 0.35,
@@ -34,9 +34,9 @@
"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 },
"stationBase": 1200000,
"stationPerPlatform": 400000,
"depotBySize": { "small": 2000000, "medium": 4000000, "large": 8000000 },
"demolitionRefund": 0.1
},
"crews": {
@@ -56,7 +56,7 @@
"gradientWeight": 8,
"speedWeight": 0.4,
"maintenanceDriftPerDay": 0.02,
"maintenanceCostPerKmPerDay": 400,
"maintenanceCostPerKmPerDay": 60,
"limitBelow60": 0.6,
"limitBelow30": 0.3,
"failureChanceBelow30": 0.002,
+7 -7
View File
@@ -50,12 +50,12 @@
"comfortMax": 1.05
},
"interventions": [
{ "id": "inspection", "name_it": "Ispezione", "days": 1, "costShare": 0.005, "spareParts": 0, "effect": "inspection" },
{ "id": "service", "name_it": "Tagliando", "days": 3, "costShare": 0.03, "spareParts": 1, "effect": "service" },
{ "id": "overhaul", "name_it": "Revisione generale", "days": 20, "costShare": 0.25, "spareParts": 5, "effect": "overhaul" },
{ "id": "repair_minor", "name_it": "Riparazione dopo guasto lieve", "days": 2, "costShare": 0.05, "spareParts": 1, "effect": "repair", "restoreTo": 80 },
{ "id": "repair_major", "name_it": "Riparazione dopo guasto grave", "days": 7, "costShare": 0.15, "spareParts": 3, "effect": "repair", "restoreTo": 90 },
{ "id": "repair_catastrophic", "name_it": "Ricostruzione dopo deragliamento", "days": 30, "costShare": 0.40, "spareParts": 8, "effect": "replace" }
{ "id": "inspection", "name_it": "Ispezione", "days": 1, "costShare": 0.001, "spareParts": 0, "effect": "inspection" },
{ "id": "service", "name_it": "Tagliando", "days": 3, "costShare": 0.012, "spareParts": 1, "effect": "service" },
{ "id": "overhaul", "name_it": "Revisione generale", "days": 20, "costShare": 0.12, "spareParts": 5, "effect": "overhaul" },
{ "id": "repair_minor", "name_it": "Riparazione dopo guasto lieve", "days": 2, "costShare": 0.03, "spareParts": 1, "effect": "repair", "restoreTo": 80 },
{ "id": "repair_major", "name_it": "Riparazione dopo guasto grave", "days": 7, "costShare": 0.08, "spareParts": 3, "effect": "repair", "restoreTo": 90 },
{ "id": "repair_catastrophic", "name_it": "Ricostruzione dopo deragliamento", "days": 30, "costShare": 0.3, "spareParts": 8, "effect": "replace" }
],
"inspection": { "brakesTo": 100, "othersPlus": 10, "hazardFactor": 0.5, "hazardDays": 30 },
"service": { "plus": 40 },
@@ -64,7 +64,7 @@
"stallsBySize": { "small": 2, "medium": 4, "large": 8 },
"staffPerStall": 4,
"slowdownAtHalfStaff": 2.0,
"initialSpareParts": 10,
"initialSpareParts": 25,
"jobsWorkersPerStall": 6,
"targetSpareParts": 40,
"maxSpareParts": 400
+12 -1
View File
@@ -90,6 +90,16 @@
"pattern": "^#[0-9a-fA-F]{6}$"
},
"minItems": 1
},
"market": {
"type": "object",
"additionalProperties": {
"type": [
"number",
"integer",
"boolean"
]
}
}
},
"required": [
@@ -97,7 +107,8 @@
"planning",
"personalities",
"companyNames",
"colors"
"colors",
"market"
],
"additionalProperties": false
}
+4 -4
View File
@@ -7,16 +7,16 @@
"requirements": { "netWorth": 0, "connectedTownsOver": { "count": 0, "population": 0 }, "creditRating": "D" },
"unlocks": { "maxLoanFactor": 1.0, "crews": 2, "trading": false, "buyIndustry": false, "ipo": false, "hostileTakeover": false, "concessions": false } },
{ "level": 2, "name_it": "Compagnia regionale", "name_en": "Regional company",
"requirements": { "netWorth": 100000000, "connectedTownsOver": { "count": 3, "population": 1000 }, "creditRating": "BB" },
"requirements": { "netWorth": 40000000, "connectedTownsOver": { "count": 2, "population": 800 }, "creditRating": "BB" },
"unlocks": { "maxLoanFactor": 2.0, "crews": 4, "trading": true, "buyIndustry": false, "ipo": false, "hostileTakeover": false, "concessions": false } },
{ "level": 3, "name_it": "Compagnia nazionale", "name_en": "National company",
"requirements": { "netWorth": 500000000, "connectedTownsOver": { "count": 8, "population": 2000 }, "creditRating": "BBB" },
"requirements": { "netWorth": 100000000, "connectedTownsOver": { "count": 3, "population": 1000 }, "creditRating": "BBB" },
"unlocks": { "maxLoanFactor": 4.0, "crews": 8, "trading": true, "buyIndustry": true, "ipo": false, "hostileTakeover": false, "concessions": true } },
{ "level": 4, "name_it": "Grande compagnia", "name_en": "Major company",
"requirements": { "netWorth": 2000000000, "connectedTownsOver": { "count": 15, "population": 3000 }, "creditRating": "A" },
"requirements": { "netWorth": 400000000, "connectedTownsOver": { "count": 6, "population": 2000 }, "creditRating": "A" },
"unlocks": { "maxLoanFactor": 8.0, "crews": 12, "trading": true, "buyIndustry": true, "ipo": true, "hostileTakeover": false, "concessions": true } },
{ "level": 5, "name_it": "Impero ferroviario", "name_en": "Railway empire",
"requirements": { "netWorth": 8000000000, "connectedTownsOver": { "count": 25, "population": 5000 }, "creditRating": "AA" },
"requirements": { "netWorth": 1500000000, "connectedTownsOver": { "count": 10, "population": 3500 }, "creditRating": "AA" },
"unlocks": { "maxLoanFactor": 16.0, "crews": 20, "trading": true, "buyIndustry": true, "ipo": true, "hostileTakeover": true, "concessions": true } }
]
}