Development Update: Game Simulation & Bugfixes
The past few days have been all about stabilising the game simulation and squashing some persistent bugs that surfaced during multi-season testing. The weekly simulation now runs far more reliably and financial calculations finally match across all team views.
🎯 Game Calculation
- Critical bug fixed: simulating multiple weeks at once skipped games in weeks 9-11 (all showed 0:0). Root cause was a PHP type-juggling issue in the branching logic of
spielberechnung.php - The three execution paths (single game, full season, weekly sim) are now cleanly structured as an
if / elseif / elsechain
💰 Finances
- End-of-season balance on
franchise.phpandteams.phpnow shows identical values — previously there was a discrepancy of up to 120M becausefranchise.phpwas using the logged-in player's data instead of the viewed team's data - The EOS calculation on
index.phpnow correctly filters by the current season — previously it counted games from all past seasons, inflating the home game count by 4x - CPU teams can no longer upgrade buildings and staff when their projected end-of-season balance would not allow it
🏆 Award Notifications
- Season number now displays correctly in the notification bar (e.g. "Season 3 Most Valuable Player" instead of just "Most Valuable Player")
- Duplicate award notifications fixed — players with awards across multiple seasons caused duplicates
- All award texts properly localised for both German and English
📋 Depth Chart
- Roster size now highlighted in red when over the maximum or below 40 players
- Practice Squad count shown in red when exceeding 16 players
These fixes lay the foundation for the next batch of bigger features. Getting the game calculation rock-solid was long overdue and finally makes multi-season testing truly reliable.