Late joiners: a network that joins a server session late starts on its date, with a head start

One calendar for a server session (the user's answer to Q1): a network that joins begins on the session's date, and
one that joins after day 180, when the shared market starts to move, gets a head start (answered 2026-11-11).
Dormant until the host (T3) passes a start day: in the plain build and in single-device play S.day0 is 0 and the
game is as before.

- S.day0, the calendar day a network began: 0 in newGame(), repaired in sanitize() (at most S.day), so old saves load.
  netAge() is the network's age; the first-days rules count it: the charter window (and specSanitize), the tutorial's
  five days, the DDoS grace and early size cap, route leaks, RPKI, the world's bad news, shortages and control-plane
  events, sold-out routes, the scrubbing customers, loan offers, the broker's first calls, the Speedrun and Blitz
  badges and the day counts in the win, lose and Glass Baron windows. The market, the calendar and world events stay
  on the session's date.
- beginState() takes o.day for a session network in Normal mode (lateStart()): the day, the first outage and event,
  the home POP and the first IPv4 block are stamped with it, so the block cannot be sold on day one at the session's
  price.
- The head start (60-features/81-late-joiners.js): starting cash topped up by the rise in hardware prices (START_CASH
  x (hwTrend - 1), to $1,000, at most $60k, with the market rule only) and the first 365 days of home broadband
  matched (R.rev.late: what homes pay after the Australian wholesale cut or levy; outside investors' share, inside
  revMo). A second welcome with a button to the bank, a Goals card, a bank section, a line in a city's broadband pitch
  and a toast when the year is over; every label in all six dictionaries.
- The "since you started" lines (supply chain, bandwidth market, wave prices) measure from the network's own start.
- Server-run engine: srvBegin takes begin.day (an integer from 0, else the begin fails), the fake engine begins there
  and keeps day0 in its saves, CLOCK.off leaves the shape checker and the contract test, and the fixtures' network
  begins on day 473 (written again with tests/lib/mp-sim-fixtures.js; a second run changes nothing).
- Gameplay rule F11, the agent's day0 doc and status age, ARCHITECTURE and the plans (Q1's game side built, open
  question 1 answered).
- tests/late-joiners.test.js; F11 in tests/gameplay-rules.test.js; a late begin in tests/mp-sim-engine.test.js; one
  calendar in tests/mp-sim-contract.test.js.

Merged onto Starblink and Island Wi-Fi: revMo counts both the islands (V.wisp) and the match (V.late), the revenue
share base keeps V.wisp and leaves V.late out; F11 sits before F12 in the gameplay rules and their test; the mp-sim
fixtures were written again with tests/lib/mp-sim-fixtures.js (a second run changes nothing).
This commit is contained in:
jvanvik 2026-11-12 01:30:22 +01:00
parent 9067bae1ce
commit dcdb501f16
51 changed files with 476 additions and 76 deletions

View file

@ -2833,6 +2833,17 @@
"keys.show_this_list":"Afficher cette liste",
"keys.space":"Espace",
"keys.zoom_the_map_out_or":"Dézoomer ou zoomer la carte",
"late.bank_note":"Pour avoir rejoint cette session en retard. Ce que tes abonnés te paient après toute part de gros est doublé, et les investisseurs n’en prennent aucune part.",
"late.bb_pitch":{"one":"Tu es arrivé tard : pendant encore {n} jour, ce que les foyers d’ici te paient est doublé.","other":"Tu es arrivé tard : pendant encore {n} jours, ce que les foyers d’ici te paient est doublé."},
"late.card":{"one":"Le haut débit résidentiel paie double encore {n} jour : +{price}/mois en ce moment.","other":"Le haut débit résidentiel paie double encore {n} jours : +{price}/mois en ce moment."},
"late.hello":"<b>En retard à la fête, mais bienvenue.</b> Cette session a {n} jours et le matériel coûte {p} de plus qu’à son premier jour, alors la banque ajoute {cash} à ta mise de départ. Pendant ta première année, chaque dollar que tes abonnés te paient est doublé : le haut débit résidentiel paie double.",
"late.hello_flat":"<b>En retard à la fête, mais bienvenue.</b> Cette session a {n} jours. Pendant ta première année, chaque dollar que tes abonnés te paient est doublé : le haut débit résidentiel paie double.",
"late.match":"Haut débit résidentiel doublé",
"late.over":"Ton année de retardataire est terminée : le haut débit résidentiel paie de nouveau le tarif normal.",
"late.this_month":"Bonus ce mois-ci",
"late.title":"Coup de pouce du retardataire",
"late.top_up":"Complément de mise de départ",
"late.until":"jusqu’au {date}",
"latency_contracts.credits_paid":"{price} versés en crédits SLA",
"latency_contracts.over_sla":"<b>{name}</b> : {a} ⇄ {b} tourne à {ms} ms, au-delà des {max} ms du contrat. Chaque jour au-dessus te coûte une journée de facture en crédits SLA ({price}).",
"latency_contracts.sla_terms":"SLA de latence {ms} ms : une journée de facture remboursée par jour au-dessus · jamais plus de {max}",