Commit graph

366 commits

Author SHA1 Message Date
Frederic Jung
537ec4efd0
Saves get the rules of their mode, whatever their rules say
sanitize() trusted any preset and override in a save, so an edited or imported save
could run a Normal game on puzzle rules (no clock, ever), On-call with infinite money
and open gates, sandbox powers without the sandbox tag, or a scenario off On-call.
Rules now follow the mode: scenarios and the weekly are On-call, a sandbox keeps only
its chaos, a Normal game one of the three Normal presets unchanged.
2026-10-29 07:01:18 +01:00
Frederic Jung
d56039695c
Attacks arrive as on 1.36 again: drop the distributed multi-ingress flood model
Frederic's call for 2.0: keep #153's fixes, NOC breakdown, new vectors, gaming risk
and overlapping attacks, but not the per-port model. It split every flood over each
ingress port with traffic (over a thousand on a big network), stored them all in the
save, routed one pinned flow per port, and with it came the build-order and
victim-scoring bugs found in review.

Each attack is again one entry port at the victim (a.entry): upstream clean-pipe,
Flowspec on the victim's router, IX blackholing, a sacrificial PNI and RouteScript
filter it in that order (ddosMitigation), then scrubbing; what leaks is junk at the
victim spread like its traffic, exactly as on main. Saves from 2.0 builds with
a.entries load: sanitize drops the shares and a 'distributed' entry becomes 'edge'.
Removed: R.ingressPorts, ddosEntries/ddosFold/ddosSlices/ddosCities/ddosHasIx, pinned
flows (and the pinned-rank handling in routing and its reference), the mixed-TCAM
line and the 'across N ports' message, and their tests; the scrubbing source-city
test now uses two victims sharing one center. CHANGELOG #153 bullets describe what
ships and credit #153.
2026-10-28 20:53:58 +01:00
Frederic Jung
b5cba3e591
BGP at 3 a.m. brings twice On-call's DDoS, as it says, not twenty times
Spicy chaos moved attacks onto the gamers' daily schedule without scaling it, so the
preset had about 20x the attacks of On-call. Without gaming customers, attacks stay
on the failure schedule (which spicy already runs 1.8x as often, with a slightly
heavier DDoS weight to make it 2x); gaming customers still bring their busier one.
2026-10-28 20:23:44 +01:00
Frederic Jung
e80fd0e453
Spicy chaos stretches exactly what an incident holds down
stretchInc() stretched anything ending on the same day: always the primary attack
(even when the incident was about another one, never the overlapping ones) and any
unrelated outage that happened to end then. It now finds the attack by i.atk and
everything else by the incident's ref, as clearInc() does, and saves allow the
longest stretched attack (11 days).
2026-10-28 20:19:41 +01:00
Frederic Jung
40e4c79139
Attacks keep their 12 biggest ingress ports and fold the rest, so saves stay small
Every attack stored every ingress port with traffic (over a thousand on a big
network), which grew the save from 272 KB to 1.8 MB with 14 attacks. The rest is now
one share at the victim, routed like the classic flood over its usual exits; old
saves are folded on load.
2026-10-28 20:16:20 +01:00
Frederic Jung
25e3e6db33
DDoS attacks are scored and SLA-charged at their victim only
ddosSf() took the worst service of every city with an ingress port, so on a big
network every attack counted as lost and charged SLA payouts to protected customers
anywhere. Held/lost, the SLA check and the far-scrubbing warning now look at the
attacked city.
2026-10-28 20:11:06 +01:00
Frederic Jung
675c63d561
Floods cross the backbone to their victim again, whatever order the POPs were built in
Each ingress slice gave its junk the ingress city as source, so a flood only filled
the port it came in on: it never loaded the backbone or the victim's router, as it
did before distributed ingress. Junk is now created at the victim, pinned to its
entry port, before any real traffic and in attack order, so S.pops order no longer
decides who gets a full port. A port the victim cannot reach still fills.
2026-10-28 20:09:18 +01:00
Frederic Jung
6d839102b5
Pinned attack flows route at their entry port's own rank, not a cone rank
base() now takes the target network; pinned junk has none, so coneOf() called every
PNI a cone route and the flood was routed late (behind real traffic) or not at all.
Pinned flows use the port's own rank (low preference still last), those ranks join
RSET, and the reference allocation in the routing test does the same.
2026-10-28 19:58:25 +01:00
Frederic Jung
2873ee3435
Sales trial: run the pass with the offer first, and skip the other when it cannot change the answer
With events booked ahead the trial routed the network twice: without the offer (who is happy now)
and with it. compute() only reads the previous result for scenic circuits, so without those the
order of the two passes does not matter. With the offer first, a failing offer or one nobody is
unhappy with needs no second pass. The same offers are signed (tests/sales-trial.test.js checks
over 100 seeded offers against the original trial, scenic or not).
2026-10-28 19:14:51 +01:00
Frederic Jung
7def8113f4
Routing: remember each list's first exit group per source city while its exits have room
Most flows from one city ask the same rank list for the same nearest group of exits. Exits only
fill up while routing, so while every exit in that group still has room the scan would find it
again; it is reused instead. Networks with identical exit lists share one list, so the memory
serves them all. Same groups, same order, same result (routing-reference and speed tests).
2026-10-28 18:51:09 +01:00
Frederic Jung
2d12a20e34
Routing: a flow scans only the exits on its own island
The big fixture is a dozen islands (POPs no backbone joins). Each flow scanned every exit in its
rank's list and threw away the unreachable ones, two thirds of the scan. Lists are now split per
island once per compute; with one island nothing changes. Same exits, same order, same result
(routing-reference gains a network-of-islands case).
2026-10-28 18:36:44 +01:00
Frederic Jung
1f182b0df9
Pinned attack flows are routed even when RouteScript moves every other exit off their rank
The rank loop skips ranks no list uses (RSET), but flows pinned to an entry
port route at the port's plain rank. With 'prepend transit' or 'prefer transit'
moving every transit to 2.9/4.4, rank 3 was skipped and the flood vanished.
Fixes tests/routing-reference.test.js, which failed on v2.
2026-10-28 18:16:31 +01:00
Frederic Jung
de8ce0a6c3
Merge v2: standing orders, resolved as v2 has it 2026-10-28 18:16:30 +01:00
Frederic Jung
946da17c8b
Merge Puzzles, Tier 1 by customer cone and badge variants into v2 2026-10-28 18:14:56 +01:00
Frederic Jung
47fbd1c124
Standing orders: one sales trial per shift, so a big network's day stays fast 2026-10-28 18:13:48 +01:00
Frederic Jung
d0fbbed96a
Merge v2 (the eight community PRs) under the ruleset, puzzles and Tier 1 by cone
Integration base for performance work: origin/v2-orders' merge of v2 and the
ruleset, onto v2-doors. Pinned attack flows (#153) route at their port's plain
rank (no customer cone), and that rank is always tried even when RouteScript
moved every other exit off it.
2026-10-28 18:05:45 +01:00
Frederic Jung
829d3a4ba6
CHANGELOG and architecture notes for standing orders 2026-10-28 17:52:42 +01:00
Frederic Jung
c3c25fe565
Tests for standing orders: each order costs what the clicks cost; budget, pause, saves, fat fingers, phones 2026-10-28 17:52:37 +01:00
Frederic Jung
08413b53a3
Tests: #185 sales and repair run as standing orders; batches open from the Ops sheet 2026-10-28 17:46:16 +01:00
Frederic Jung
4717bc0f75
Standing orders in German, Spanish, French, Italian and Portuguese 2026-10-28 17:43:12 +01:00
Frederic Jung
7c8fa68659
Standing orders: a NOC intern runs the player's orders once a day (#98) 2026-10-28 17:40:22 +01:00
Frederic Jung
39ef7c13bb
Merge Tier 1 by customer cone and badge variants 2026-10-28 17:08:10 +01:00
Frederic Jung
6489db146e
Tier 1 by customer cone (#85), and badge variants per ruleset preset
Cones: a PNI or IX session reaches the peer and its transitive customer cone,
precomputed once at load (CONE/CONE_S/DOWN/ANC). Cone routes rank after direct
peering and before transit (CONE_RANK 2.5), so peering widely still pays. The
long tail and several real eyeballs get real-world upstreams. Cones only add
reach, so the rule is easier for every save and needs no version flag.

Badges: S.achP[id] records the preset variant (freeze/oncall/bgp), sanitized,
default 'oncall' for old saves; the device hall of fame records every variant
earned. Harder presets upgrade a badge; toast, list, collection shelf and the
share card show it. Sandbox and puzzles earn none.
2026-10-28 16:54:19 +01:00
Frederic Jung
8df1b82a2e
Puzzles behind the Puzzles door: merge v2-puzzles onto the ruleset
Puzzles run on the puzzle preset (clock off); the temporary title button is gone and the door opens the puzzle list.
2026-10-28 16:39:05 +01:00
Frederic Jung
78100bd158
Puzzles: landscape framing, toasts beside the card, CHANGELOG (#190) 2026-10-28 16:24:06 +01:00
Frederic Jung
7fc8d0f080
Puzzles: small, calm network builds with stars, packs and a weekly puzzle (#190) 2026-10-28 16:21:25 +01:00
Frederic Jung
fa4e30692e
Merge the ruleset and four doors into v2 2026-10-28 15:45:09 +01:00
Frederic Jung
33c84964fa
Architecture: where the ruleset lives 2026-10-28 15:30:13 +01:00
Frederic Jung
66e13d2fc3
Saves made as puzzles load with the puzzle rules 2026-10-28 15:29:22 +01:00
Frederic Jung
531f90f107
One game, four doors: a per-save ruleset with Change Freeze, On-call and BGP at 3 a.m., a real Sandbox, and a new start screen 2026-10-28 15:27:04 +01:00
Frederic Jung
370ac536f6
Merge #192: Add bulk peering, cache and PoP redundancy utilities (Columbo818) 2026-10-28 15:25:15 +01:00
Frederic Jung
35fb35103f
Merge #185: auto sale + auto repair automation (Logfro) 2026-10-28 15:23:07 +01:00
Frederic Jung
96463577b9
Merge #181: Add bulk PNI ordering across networks and POPs (Logfro) 2026-10-28 15:21:01 +01:00
Frederic Jung
327749e0cf
Merge #177: Add editable optic counts for land and subsea fiber (LookedPath) 2026-10-28 15:17:42 +01:00
Frederic Jung
624f12bfd4
Merge #153: Overhaul the DDOS Attack system (FHRNet) 2026-10-28 15:15:36 +01:00
Frederic Jung
1b12a2c014
Merge #94: Calibrate city prices with PeeringDB and Hurricane Electric data (clayberF) 2026-10-28 15:04:40 +01:00
Frederic Jung
a6829b3d66 Merge #131: Custom routing metric for links (MurphysHub) 2026-10-28 14:58:12 +01:00
Frederic Jung
0fb3d3ab96
Merge #62: Add on-demand single-link redundancy checks (Flol0) 2026-10-28 14:58:12 +01:00
Frederic Jung
c011022203
Merge main: German; the Moscow premium note in German 2026-10-28 14:25:39 +01:00
Frederic Jung
f5e15e427f
China Telecomet's premium crossing in Moscow, at the Hong Kong price (#195) 2026-10-28 14:13:15 +01:00
Frederic Jung
7949cfd2c7
Merge main
# Conflicts:
#	CHANGELOG.md
2026-10-28 14:11:40 +01:00
Frederic Jung
7a8ad272d1
Merge pull request #193 from luckylucab0/add-german
Add German translation

# Conflicts:
#	CHANGELOG.md
2026-10-28 14:02:12 +01:00
Frederic Jung
7cfadaa6ae
Glowball Sakura Lager: only its real hubs, dearer far from home, no transit for Australians 2026-10-28 13:57:10 +01:00
Frederic Jung
3458e43583
Merge #191: Glowball Sakura Lager, a Tier 2 carrier (thesysadmindev) 2026-10-28 13:39:33 +01:00
Luca
77e906fe6f
German: test the translated How the Internet Works card 2026-10-28 12:14:52 +00:00
Luca
1f28654069
German: smoother wording after a full review
A read-through of every German text against the English fixed a few
mistranslations (buying out a bank, customers being "let go", a reversed
subject in a peering note, a conference bonus that reads as delayed) and
evened out the rest: sessions are "up"/"down", "der Cross-Connect",
"transitfrei", "de-peert", "Paid Peering", "Faserbruch", "Stromnetz" for
the power grid, "Spitzenlast" for peak traffic, and shorter labels where
German ran long.
2026-10-28 12:06:24 +00:00
Luca
b98dd33c09
German: wording from playing it, eyeballs are Privatkunden
Start screen, How to play, goals and tutorial use the wording a native
speaker picked while playing: "Baue deinen eigenen ISP auf", two-finger
zoom, "Zieh von einer Stadt zur anderen" and "Preisschock". Eyeballs are
now always "Privatkunden" in German.

The "How the Internet Works" card title is now a label, so German can
show "Wie funktioniert das Internet?"; the other languages keep the
English name.
2026-10-28 12:00:01 +00:00
Luca
1a0a70e575
Add German translation
Series of Tubes now speaks German. site/i18n/de.js translates all 3,063
labels in informal "du". Networking terms that German engineers say in
English stay English (Peering, Transit, Dark Fiber, Wave, Port, POP, IX,
Route Server, LAG, PNI and so on); plain "fiber" is "Glasfaser" and
"fiber pair" is "Faserpaar". RouteScript syntax stays English, as in the
other languages.

German is registered in the language list and the offline cache, so a
German browser starts in German. Every per-language test now covers it,
and the German style notes are in the add-strings skill and in the
dictionary header.
2026-10-28 11:41:57 +00:00
Logfro
39063acce7
Merge branch 'main' into main 2026-10-28 12:06:40 +01:00
Charles Miller
ce83c01f83 Distribute odd cache totals evenly between sites 2026-10-28 10:54:16 +00:00