Back to blog
Engineering•June 18, 2026•4 min read

Why the overall-rating formula lives on the server

Every Streetvers character rolls up eight stats into a single FIFA-style overall rating. The tempting place to compute it is wherever you're showing it. The correct place is the server - everywhere else just mirrors.

One canonical formula, mirrored outward

The API owns the OVR formula. The admin panel re-implements it bit-for-bit so an editor sees a live rating as they tune stats - but that client copy is a convenience, not an authority. When the two could ever disagree, the server wins. A rating a client can compute and submit is a rating a client can lie about.

Decide once where a number is true. Every other place that shows it is a cache of that truth, not a second opinion.

Keep the client honest by design

Server-canonical stats shape the whole data model:

  • The admin form's live OVR readout mirrors the server formula, so authoring matches reality without trusting the browser.
  • The owned roster is a server-side PlayerCard record - the game asks who owns what, it doesn't assert it.
  • When the Unity client wires up, it reads ratings; it never gets to define them.