Commit graph

435 commits

Author SHA1 Message Date
Frederic Jung
cd5d851f6c
One set of subsea optics rules for owned and leased cables (#66, #67, #68)
Subsea glass is engineered for its route, so optics reach 1.5x further on
it; the 1.6T transponder gets a 1.2T long-haul mode. Leased subsea waves
are capped by the fastest carrier any optic can run over the cable's
length (6.4T = 4x1.6T carriers), existing waves are grandfathered. Own
subsea cables can be laid between landing stations on the same landmass
when cables already run there. Also translate the long-haul note.
2026-10-25 17:01:33 +01:00
Frederic Jung
27c1d73b56
Stop buttons behind a modal firing from the keyboard
A declined PNI returned without redrawing, so its stale button stayed
focused. With a DE-KICKS quote open (game paused, nothing redraws),
Enter or Space kept pressing it, and each press toasted another decline.
Redraw after a decline, move focus into a modal when it opens, and
ignore activations of anything outside an open modal.
2026-10-25 16:49:39 +01:00
Frederic Jung
055a975851
Customer levels 5 to 13
Levels now run to 13, driven by a requirements table (peak, POPs,
continents). Each unlocks something: seven router models up to 3.2T with
3.2T ports and 12.8T waves, C+L line systems, 3.2T transponders, eight
pairs per land trench, a 102.4T fabric, 100T scrubbing, six customer
types, and free PNIs from paid-peering networks. Four traffic eras raise
the eyeball ceiling so the higher levels are reachable on a 47 Tbps map.

Default router upgrades follow the badge-less main line per class; port
and wave tiers past 1.6T/6.4T only show once unlocked. Old saves keep
their level; land trenches clamp to four pairs below level 12.
2026-10-25 16:40:17 +01:00
Frederic Jung
99e73cb897
Space parallel links by drawn line, not by link count (#64)
Every link not following a commercial cable curved out by its index among
all links on the city pair, though waves sharing a trench or cable draw as
one line. With a busy trench, leased or own fiber swung out in loops several
times the route length on about half of all routes. Index by drawn line and
scale the spacing with route length.
2026-10-25 16:07:03 +01:00
Frederic Jung
b96d5681e2
Draw your own subsea cable beside its route (#64)
It was drawn as a curve offset by how many links shared the city pair, so
with eight waves on Dublin-London it swung far out to sea. It now follows
the commercial cable on the route, eased sideways, or a gentle curve when
there is none.
2026-10-25 16:00:14 +01:00
Frederic Jung
faba573637
Stricter credit, revenue share on big loans, weird new lenders and conditions 2026-10-25 15:50:28 +01:00
Frederic Jung
683b7bad3c
Shorter in-app release notes with a link to GitHub, one release per hour at most 2026-10-25 15:38:49 +01:00
Florian Krieger
13a29c2c2a Add on-demand single-link redundancy checks 2026-10-25 15:38:10 +01:00
Frederic Jung
2041ca7908
Let Tier 1 networks lay their own subsea cables
Fixes #22
2026-10-25 15:25:28 +01:00
Florian Krieger
e3aebd3efa Navigate deal offers to the first missing POP 2026-10-25 15:04:54 +01:00
Frederic Jung
856ecfbb37
Stop loan offers once you have half a billion in the bank
Fixes #52
2026-10-25 14:48:49 +01:00
Florian Krieger
5f432aefc9 Accept local PNIs for Tier 1 customer breakout 2026-10-25 14:37:12 +01:00
Frederic Jung
b929ccdd75
Light more fiber pairs in your own trench
Fixes #35
2026-10-25 14:35:35 +01:00
Frederic Jung
353e9a816e
Add the Flood Season scenario, keep overlapping DDoS attacks apart 2026-10-25 14:32:01 +01:00
Frederic Jung
8e921693c5
Steadier taps, lighter map drawing, Sinai land route, live Tier 1, courtesy route, optics spares
Fixes #43, fixes #44, fixes #45, fixes #46, fixes #47
2026-10-25 14:08:55 +01:00
Frederic Jung
bfd895cc20
Show scenario and level progress, add tabs to the NOC dashboard
Fixes #34
2026-10-25 12:34:28 +01:00
Frederic Jung
31372c0205
Draw date-line links on both edges of the share card
Fixes #42
2026-10-25 12:26:06 +01:00
Frederic Jung
838ade2c8b
Leave the tiniest islands off the zoomed-out map 2026-10-25 12:03:58 +01:00
Frederic Jung
f2379bf72c
Settings screen, pause on furious customers, customer happiness overview (1.20.0)
Fixes #13, fixes #14, fixes #15
2026-10-25 10:29:49 +01:00
Frederic Jung
933d57228a
Pitch installing the app to phone players before a new game 2026-10-25 10:08:26 +01:00
Frederic Jung
cf3d333b81
Add a connections overview and show where each network is connected
Fixes #31, fixes #33, fixes #38
2026-10-25 10:03:17 +01:00
Frederic Jung
11118ed5e1
Keep the iPhone home-screen height fix applied, add a viewport readout (1.18.4) 2026-10-25 09:00:11 +01:00
Frederic Jung
a46c9f9694
Fill the screen as an iPhone home-screen app (1.18.3) 2026-10-25 08:47:50 +01:00
Frederic Jung
6b5fe3f14c
Add a petabit-per-second badge (1.18.2)
A new legendary badge for serving 1 Pbps — a thousand terabits — the tier
above Hundred Terabits. Italian and a test included.
2026-10-25 07:36:49 +00:00
Frederic Jung
c445fbd0ba
Add a DDoS-defence goal and badges (1.18.1)
A goal to build your first scrubbing center, and badges for weathering an
attack, holding a multi-terabit flood, running a clean-pipe or a sacrificial
PNI, blackholing your own city, and landing a HackBack that works. New stats
track the hold/monster/hack-win counts; Italian and a test included.
2026-10-25 07:33:49 +00:00
Frederic Jung
a2ab478386
Scrubbing tiers, clean-pipe, sacrificial PNI, IX blackhole, SLA (1.18.0)
Rounds out the DDoS toolbox. Scrubbing centers come in 100G/1T/10T tiers and
clean only up to their capacity; always-on or cheaper on-demand (which lags a
couple of days). A transit clean-pipe add-on scrubs a flood upstream before it
reaches you. A Chinese PNI can be marked sacrificial: a flood over it dies on
the small port instead of the core, at the cost of half its legit capacity. A
new IX-blackhole mitigation drops about half the junk while keeping the victim
up. Selling DDoS protection now carries an SLA penalty when a protected
customer still goes down. Italian and tests included.
2026-10-25 07:03:03 +00:00
Frederic Jung
bc9d2baee1
Price overland intercontinental waves above subsea, drop the cache box cap
Fixes #40, fixes #39
2026-10-25 07:49:13 +01:00
Frederic Jung
5036f1a5a8
Tie Flowspec filtering to the router's TCAM (1.17.1)
Flowspec was a flat network-wide licence. In reality the drop rules live in
hardware TCAM, and the budget differs by platform, so flowspec is now a
router-model capability: none on the used Rusty, a little on merchant-silicon
and whitebox models, full on the big chassis. The flood is filtered only where
the attacked POP's router can do it, and a bigger TCAM knocks it down further.
The licence is gone; the NOC shows how many POPs are capable and the attack
panel names the chassis doing the filtering.
2026-10-25 06:39:36 +00:00
Frederic Jung
c3b99df788
Shape DDoS attacks and add a mitigation toolbox (1.17.0)
DDoS was one flat random event. Now each attack has a vector (DNS, NTP,
CLDAP, SYN, HTTP), a size from a few Gbps to a multi-terabit monster, a
target POP, a duration and an entry point among that city's uplinks.

The NOC grows a live attack panel and a toolbox: RTBH (free, instant, but
the victim goes dark too), a one-time Flowspec licence that drops known UDP
floods at the edge but cannot touch an HTTP flood, the existing scrubbing
center, and HackBack 3000, which sometimes ends the attack and often
flattens an innocent for a fine. New Vigilante and Collateral Damage badges,
Italian translations, and tests for the attack, each tool and old saves.
2026-10-25 06:18:51 +00:00
Frederic Jung
06576357c9
Add customers that connect over interconnection fabrics (1.16.0)
Fabric customers buy transit, or a circuit to one of your POPs, over
Megapork, PocketFabric or Consolation Connect. They come in through your
NNI port in their city and count against its capacity.
2026-10-25 06:29:33 +01:00
Frederic Jung
1d6ec48bf3
Zoom levels of detail, grouped parallel waves, POP decommissioning (1.15.0)
Zoomed out, cities become dots and POPs small router pills with thinner
links and fewer labels. Up close a POP shows the router instead of the
skyline, with a router B for a second site. Parallel waves on one cable
draw as one line with a combined label. POPs can be decommissioned one at
a time or in bulk, with early-termination penalties for affected
customers. Dark fiber panels can add parallel links. NLNOG Day joins the
conferences.

Closes #37
Closes #19
Closes #32
2026-10-25 06:22:20 +01:00
Frederic Jung
7e20a1a2f0
Add Manchester, Edinburgh, Bude and Stavanger with North Sea cables (1.14.0)
New UK and Norway POPs with local eyeball networks, and nine cables:
NO-UK-Way, Celtic Norsemen, Havhingsten Hoofbeat, Shefa Sheep Line,
Oil Rig Wi-Fi, Pas de Câble, Apollo 13, Yellow Brick Road and
Glo-in-the-Dark.
2026-10-24 23:19:46 +02:00
Frederic Jung
cc28dfeb74
Add Korea's sender-pays market, Sparkly Seabone as a Tier 1, and release 1.12.0
Seoul transit costs four times the usual price and the three Korean
incumbents only peer over paid PNIs billed per gigabit sent. Glitch can
leave Korea and Faceplant can reroute it via Hong Kong. Adds the Gangnam
Style Peering scenario and the Sender Pays badge.

Sparkly Seabone becomes a Tier 1 across the Mediterranean, Europe and the
Americas; older saves keep the five Tier 1s they were playing for.

A wave supplier's optical control plane can melt down and take every
leased wave in a region dark at once.

Closes #23
2026-10-24 22:39:36 +02:00
Frederic Jung
5e0ee53617
Add LACP trouble, partial packet loss and PMTUD black holes
LAG members can flap out, hash onto one member or take the bundle down
with an eager min-links. Links can lose a few percent of packets, which
costs far more goodput than it looks, unless deep-buffer routers absorb
the microbursts. Filtered ICMP or a missing MSS clamp black-holes part of
the traffic to one network.
2026-10-24 22:27:29 +02:00
Danilo Carbonaro
42acec3f07 Let the title-screen language buttons work before a game exists
The click dispatcher only lets a short list of actions through while there
is no game yet, so picking a language on a fresh title screen did nothing.
The test now clicks the button instead of calling the action.
2026-10-24 21:52:27 +02:00
Danilo Carbonaro
42711456e2 Tidy the i18n layer after review
- Badges that react to sharks, anchors, crocodiles and llamas read the
  English text of the incident again, so they unlock in every language.
- Scenario names are looked up when shown, so they follow a language switch.
- Fall back to English (and lang="en") when the dictionary did not load,
  and version the dictionary URL so a release never pairs with a stale one.
- Share the segmented-button helper between settings and the title screen,
  merge keys that only differed in a placeholder name, and slim the check
  script.
- Tests: guard the hooks the tour patches into fireFailure/fireEvent, and
  cover the dictionary fallback and the scenario name.
2026-10-24 21:52:27 +02:00
Danilo Carbonaro
04eb32e0a5 Add Italian translation and a language switch
English stays the source text and the default. Player-facing strings go
through tr()/trn(), which look the English up in a per-language dictionary
(site/i18n/<lang>.js) and fall back to it unchanged. The dictionary is only
loaded when the game runs in that language. The language follows the
browser on the first visit and can be switched under Settings or on the
title screen; the choice is remembered.

- site/i18n/it.js: complete Italian translation (~1900 entries)
- scripts/i18n-check.js / npm run i18n:check: lists missing or stale entries
  and translations that drop a {placeholder} or HTML tag
- tests/i18n.test.js: language selection, fallback, dictionary integrity,
  and a tour of every screen, failure and event in English and Italian
2026-10-24 21:52:27 +02:00
Frederic Jung
71dbc6e37b
Light up very long dark fiber with long-haul modes and regen sites
Optics past their full-rate reach now drop to a slower, longer-reaching
modulation instead of refusing to fit, so fibers over 4,000 km are usable.
Regeneration sites split a route into shorter optical spans for full speed,
at a cost per site and per channel. The order screen warns about routes
longer than any optic's full-rate reach.

Closes #17
Closes #30
2026-10-24 21:46:48 +02:00
Frederic Jung
7457acef1e
Stop scenic routing from flapping between paths
Scenic routing measured how busy a link was including the customer's own
traffic, so it fled its own load every day. Judge links without it, split
over two paths that are about as quiet, and keep the previous choice
unless a new one is clearly better.

Closes #28
2026-10-24 21:43:05 +02:00
Frederic Jung
ceaf4dbb93
Punch up the random network names
Swap the real PTT Telecom for Post, Telegraph & Tubes, make the carrier
pigeon an RFC 1149 one, drop the names without a twist and add a batch of
networking puns. Adds a test for the name picker.
2026-10-24 21:35:29 +02:00
Frederic Jung
364fe7c242
Replace the "-ish" names with real names or proper puns
Conferences and the RIPE NCC use their real names. Data centers are named
after their streets and districts, or get a pun when they are a company.
Cables, carriers, routers and hyperscaler campuses get puns of their own.
2026-10-24 21:23:34 +02:00
Frederic Jung
ecdc0b5cc3
Polish the community exchanges and wire up Barcelona
Bring back the best jokes in the KleyWrecks, FRIES-IX and IX Strayla
blurbs, keep Bento-IX as Tokyo's cheaper challenger, and give Barcelona
the Medusa-ish cable to Lisbon and Marseille plus CDN coverage.
2026-10-24 21:16:27 +02:00
Frederic Jung
4753429327
Merge pull request #18 from NickBouwhuis/add-fries-ix
Add Barcelona and Catnip-IX, as well as second community IXs.
2026-10-24 21:14:23 +02:00
Frederic Jung
25749472d3
Only ask for shark-free routes that can stay on land
The "afraid of sharks" requirement was offered for any two cities,
including ones on different continents. Requirements can now say who
they make sense for, and old saves drop the impossible ones.

Closes #16
2026-10-24 21:11:22 +02:00
Frederic Jung
988e0c5d15
Fix the max-prefix freeze at rival exchanges and keep the loop alive
The max-prefix incident looked up an exchange id as a city, the same
bug as #24. Both messages now name the exchange and its city.

frame() now schedules the next frame first and catches a failing day
tick or draw, so one bad lookup shows a warning instead of freezing the
game.
2026-10-24 21:02:08 +02:00
Danilo Carbonaro
ba1c1e1a35 Fix the game freezing when a peer drops you at a rival exchange
Peering sessions at a second or third exchange in a city are keyed like
"drz@mil~2". The de-peering toast looked the city up as CITY['mil~2'],
threw, and the exception stopped the animation loop for good: time and
the map froze until a reload.
2026-10-24 18:18:47 +02:00
Nick Bouwhuis
9e9ecca1ad Remove duplicate NYC exchange and retain NY-Yikes 2026-10-24 16:46:33 +02:00
Nick Bouwhuis
4c88e00434 Correct exchange pricing claims 2026-10-24 15:34:26 +02:00
Nick Bouwhuis
e0e1500b8e Merge upstream main and reconcile community exchanges 2026-10-24 15:15:22 +02:00
Frederic Jung
56e15d10dd
Make the test suite fully deterministic
Seed Math.random before the game script loads, keep the game's own
seeded-games wrapper in place, and seed the scenario test too. Random
events during dayTick could replace the deadline modal and fail CI.
2026-10-24 07:12:23 +02:00