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

@ -2834,6 +2834,17 @@
"keys.show_this_list":"Show this list",
"keys.space":"Space",
"keys.zoom_the_map_out_or":"Zoom the map out or in",
"late.bank_note":"For joining this session late. The match is on what your homes pay you after any wholesale cut, and investors take no share of it.",
"late.bb_pitch":{"one":"You joined late: for {n} more day, what homes here pay you is matched.","other":"You joined late: for {n} more days, what homes here pay you is matched."},
"late.card":{"one":"Home broadband pays double for {n} more day: +{price}/mo right now.","other":"Home broadband pays double for {n} more days: +{price}/mo right now."},
"late.hello":"<b>Late to the party, but welcome.</b> This session is {n} days old and hardware costs {p} more than on its first day, so the bank adds {cash} to your starting cash. For your first year, every dollar your homes pay you is matched: home broadband pays double.",
"late.hello_flat":"<b>Late to the party, but welcome.</b> This session is {n} days old. For your first year, every dollar your homes pay you is matched: home broadband pays double.",
"late.match":"Home broadband matched",
"late.over":"Your late joiner's year is over: home broadband pays the usual rate again.",
"late.this_month":"Match this month",
"late.title":"Late joiner's head start",
"late.top_up":"Starting cash top-up",
"late.until":"until {date}",
"latency_contracts.credits_paid":"{price} paid in SLA credits",
"latency_contracts.over_sla":"<b>{name}</b>: {a} ⇄ {b} runs at {ms} ms, over the {max} ms in its contract. Every day over costs you a day's fee in SLA credits ({price}).",
"latency_contracts.sla_terms":"Latency SLA {ms} ms: a day's fee back for every day over it · never more than {max}",