Commit graph

570 commits

Author SHA1 Message Date
Frederic Jung
3afdd116b7
Point players to How the Internet Works
The title screen, the help page and the victory screen now link to Thomas
Kjær Aabo's interactive guide to how the internet really works, and so do
the README and llms.txt. Also removes debug screenshots that had slipped
into the deployed site folder.
2026-10-24 22:12:38 +02:00
Frederic Jung
c59be2d16d
Release automatically when the version on main changes
A new auto-release workflow runs the tests, tags v<version>, publishes a
release with that version's changelog section and starts the deploy from
the tag. It skips versions that are already tagged and refuses older
versions or ones without notes.
2026-10-24 21:54:52 +02:00
Danilo Carbonaro
febded70d0 Translate the strings that changed on main
The "-ish" renames, the rival-exchange messages and the free community
exchange ports changed English text that is a dictionary key, so it.js
follows the new wording. The Catnip-IX and JINXED-IX blurbs, the Medusa
Stare cable, the tick-error toast, the "Another one" name button, the
scenic-routing split note and the regen-site messages are new and go
through tr() too.
2026-10-24 21:52:27 +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
37a83c2b3f
Release 1.11.0 2026-10-24 21:51:33 +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
3009ad8385
Merge pull request #27 from NickBouwhuis
Add random network names and an "Another one" button.
2026-10-24 21:32:38 +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
Frederic Jung
16e1f95d1b
Merge pull request #25 from daniloctdev/fix/rival-ix-depeer-crash
Fix the game freezing when a peer drops you at a rival exchange
2026-10-24 21:00:10 +02:00
Nick Bouwhuis
a179836969 Add random network names and an Another one button 2026-10-24 18:23:04 +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
Frederic Jung
8fd79ef122
Release 1.10.0 2026-10-24 06:47:10 +02:00
Frederic Jung
0e5abd5c6a
Make router ports finite and add more router models
Every port, wave and fibre channel now takes a router port, and new ports
are refused when a POP is full. POPs take up to six routers, and six new
models can be swapped in from the Infra tab, including the Arrrhipster
7280R-ish and 7800R-ish.
2026-10-24 06:40:08 +02:00
Frederic Jung
5e88e44a0a
Add Italy, Portugal, Greece and more US cities; rival IXes and a long tail of small peers
New POPs in Milan, Rome, Palermo, Lisbon, Athens, Atlanta, Denver, Phoenix,
Boston, Houston and Salt Lake City, with cables and local networks.

Big metros get challenger exchanges with overlapping but different members.
IX state is now keyed by exchange id instead of city. Sixty small networks
sit on random exchanges. EU ports are cheaper and see price wars, and
Voda-Phony moves to paid peering only.
2026-10-24 06:29:19 +02:00
Frederic Jung
cc6d328511
Freeze map animation while paused
Packet dots, waves and clouds run on a clock that only advances while
the game is playing.

Closes #11
2026-10-24 06:07:33 +02:00
Frederic Jung
23b72dcb92
Realistic router ports, North Sea cables and dark fiber, own IX fabric upgrades, regional wave markets, the Gulf, tablet layout
Closes #10
2026-10-23 20:39:48 +02:00
Frederic Jung
b9bfab51f7
Split ports across both metro sites; keep the top bar on one row
Closes #8
2026-10-23 18:47:41 +02:00
Frederic Jung
aad255d193
Release 1.9.0 with RouteScript 2026-10-23 18:29:17 +02:00
Frederic Jung
d99addad88
RouteScript: a safe rule language for the Auto-TE controller 2026-10-23 18:26:43 +02:00
Frederic Jung
46fe9e4eba
WIP: RouteScript rule language for the Auto-TE controller 2026-10-23 18:20:53 +02:00
Frederic Jung
400d47e3e0
Release 1.9.0 2026-10-23 18:16:12 +02:00
Frederic Jung
f9d89ac815
NOC legend, sortable network table and transit insights
Closes #7
2026-10-23 18:02:06 +02:00
Frederic Jung
f49c60155b
Tests: run the real draw code against a recording canvas 2026-10-23 17:58:17 +02:00
Frederic Jung
494d71793e
Fix map wrap, touch and keyboard input; harden build and release workflow; docs 2026-10-23 17:56:34 +02:00
Frederic Jung
f51c68a8ac
Fix simulation bugs found in review, faster routing, deterministic tests 2026-10-23 17:50:31 +02:00
Frederic Jung
8b64570b8e
Harden saves and imports, escape button arguments, validate actions, fix loan and repair exploits 2026-10-23 17:38:39 +02:00
Frederic Jung
ba6981bda8
Deeper zoom and half speed 2026-10-23 17:13:01 +02:00
Frederic Jung
7587a56b46
Release 1.8.1 2026-10-23 16:33:43 +02:00
Frederic Jung
86de7d79e9
Settings: animations on, off or auto, and sound 2026-10-23 16:26:44 +02:00
Frederic Jung
dd2352e497
Release 1.8.0 2026-10-23 16:06:17 +02:00
Frederic Jung
2cfdaa13e4
Conferences, guided tutorial, Kyiv; changelog 2026-10-23 16:00:48 +02:00
Frederic Jung
0ae6f881c1
Scenarios, weekly challenge, sandbox, traceroute and share card 2026-10-23 15:54:49 +02:00
Frederic Jung
0ca92556dc
Release 1.7.0 2026-10-23 15:44:00 +02:00
Frederic Jung
9d73d6d449
16 more badges 2026-10-23 15:41:53 +02:00
Frederic Jung
bbc9f39c8c
Auto-TE: spill overflow onto alternate paths 2026-10-23 15:29:45 +02:00
Frederic Jung
ea00bd30f1
Release 1.6.0 2026-10-23 15:21:38 +02:00
Frederic Jung
e9c4d1726f
Badges with rarities and a hall of fame; five new goals 2026-10-23 15:16:29 +02:00
Frederic Jung
c2febdc5b1
Hyperscaler and AI cloud deals: AI WANs, multi-site training, ingests, fiber pairs 2026-10-23 15:13:09 +02:00