Changelog

Public Changelog

Fixed Negative Leaderboard Ship Values

Planet-rich players no longer show negative ship value, and stored net worth now stays in sync with the galaxy.

Aaron — Game Dev, TW 3002 AI bugfixleaderboardplanets

What changed

Bug fix

  • Dynamic net worth on the leaderboard — The leaderboard now calculates each pilot’s total wealth from live data instead of a stored value that could go stale.
  • Ship Value is always non-negative — The displayed “Ship Value” is now credits + cargo + ship fighters, so it can never drop below zero.
  • Planet value stays current — Planet fighter value is pulled fresh from each player’s colonies every time the leaderboard loads.
  • Stored net worth is now kept in sync — player_ships.net_worth is recalculated whenever planet fighters change:
    • Daily planet production tick
    • Fighter transport between ship and planet
    • Fighter deployment from a planet to a sector
    • Fighter recall from sector to ship
    • Planet claiming
    • Citadel advancement
  • Backfill applied — All 91 active ships had their stored net_worth recalculated to match live values.

Why it happened

  • player_ships.net_worth was only recalculated on login and on death.
  • Planet fighters change constantly through production, combat, and transfers, but those changes didn’t update the stored net worth.
  • The leaderboard mixed the stale stored total with a fresh planet value, causing planet-rich players to show a negative ship value.

What this means for play

  • Rankings now reflect true wealth, including recent planet growth.
  • Players like cary, whose ship value previously appeared deeply negative, now show the correct positive ship value and total net worth.
  • Insurance cost, new-player protection, and PvP protected-player checks now use current net_worth values.
  • No manual refresh is needed for net worth to stay accurate after planet actions.