Merge remote-tracking branch 'upstream/main' into own-carrier-egress

This commit is contained in:
Christopher Hawker 2026-11-01 01:37:42 +11:00
commit a469844f61
42 changed files with 757 additions and 42 deletions

View file

@ -8,8 +8,34 @@ on:
permissions:
contents: read
# A newer push to the same pull request makes the older run pointless: cancel it instead of queueing behind it.
# Runs on main always finish.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
# The tests in four parts of about equal time, each on its own runner, each running as many files at once as
# it has cores (scripts/test.js; the split comes from tests/durations.json).
part:
name: test ${{ matrix.part }}/4
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
part: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm test -- --shard ${{ matrix.part }}/4
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
@ -18,10 +44,20 @@ jobs:
node-version: 24
cache: npm
- run: npm ci
- run: npm test
- name: Build (not deployed — only releases deploy)
run: npm run build
# The one check to look at, named as before: green only when every part and the build are.
test:
needs: [part, build]
if: always()
runs-on: ubuntu-latest
steps:
- name: Every part and the build passed
run: |
echo "parts: ${{ needs.part.result }}, build: ${{ needs.build.result }}"
test "${{ needs.part.result }}" = success && test "${{ needs.build.result }}" = success
translations:
runs-on: ubuntu-latest
steps:

View file

@ -6,16 +6,28 @@ All notable changes to this project are documented here. The project follows
## [Unreleased]
- The intern's PNI order now counts the traffic the PNI list shows at each POP, so it no longer orders a PNI where a network's own cache boxes already serve most of its traffic (#244).
- Cities on the map now show how big they are: zoomed out, bigger cities are bigger dots and megacities glow; zoomed in, a city's skyline grows from a hut to a megacity's towers. When cities crowd together, the smaller ones step back to a dot until you zoom in, so the map stays readable, and exchanges you haven't joined are quieter tags.
- Manila gets real exchanges: GotchaFIX Manila, the free community Bayanihan-IX and In-Vitro-IX, run by PLDTea Time. Diverge, Smarty Pants, Ditto and RISE & Shine join as Philippine networks, and PLDTea Time and Globe-Trotter Telecom now sell transit.
- Cebu joins the map on its own island, with GotchaFIX Cebu and two domestic cables from Manila: the Pan de Sal Cable Network and the Philippines Long Distance Relationship. PLDTea Time, Globe-Trotter Telecom, Diverge and RISE & Shine reach Cebu, and typhoons can hit it too.
- Davao joins the map on Mindanao, with GotchaFIX Davao. Bi-Frosted and SEA-US Later now land in Davao, as the real cables do, instead of Manila; a link you already run on their old Manila landings keeps working as a plain subsea link. Three domestic cables reach Davao from Cebu: the Pan de Sal Cable Network, the Philippines Long Distance Relationship and the new Diverge VisMin Express. RISE & Shine peers at GotchaFIX Davao. The Pan de Sal Cable Network also runs straight from Manila to Davao.
- Transit in the Philippines now costs about twice the Asian rate, as it really does, and Philippine homes pay less for broadband. GotchaFIX ports cost what the real exchange charges, about $700 a month for 10G and $2,800 for 100G. In-Vitro-IX charges about double that.
- Waves between Philippine islands now cost more than waves out of the country: Manila to Cebu costs about twice Manila to Hong Kong.
- Manila, Cebu and Davao have more people online, in line with their real populations.
- Cable names on the map no longer pile on top of each other when you zoom in. Where short cables crowd together, a name that would cover another is left out, and selecting a city shows the names of all its cables.
- Traffic for a carrier now leaves through that carrier's own transit port at the same POP, instead of being shared with every other transit port there. Networks that buy transit from the carrier get the same treatment, and a new switch on each transit port, Carry here, pulls that traffic across your network from POPs that have no port of that carrier. Prefer, Backup only and RouteScript still win.
## [2.2.0] — 2026-10-31
- DDoS attacks are realistic now: most are small, the big ones are rare, and their size no longer grows with your network, so a big network is no longer hit by floods larger than the internet's record. Attacks go after one customer (gamers and hosting attract the most) or one city's subscribers, last one to three days, and On-call sees about one a month (#242).
- A flood now arrives on every port the internet reaches you on, so more POPs and more exits spread it thinner, and a port it fills slows every customer on it. Flowspec and scrubbing behind a full port can no longer empty it (#242).
- RTBH now blackholes only the customer under attack, upstream at your transits, most exchanges and about half your private peers: everyone else is saved and the target goes dark until you withdraw it. The IX blackhole button is part of RTBH now, and RouteScript's `blackhole ddos` does the same.
- Each router holds a limited number of Flowspec rules, shown in its POP: every attack takes one rule on each router it enters (a carpet bomb takes four), and when they run out, junk passes that router unfiltered. Bigger routers hold more.
- Find any city with the new 🔍 button in the top bar, or press / on a keyboard (#218). Type a city, a country (in your language or in English) or an exchange, and the map jumps there.
- Cities on the map now show how big they are: zoomed out, bigger cities are bigger dots and megacities glow; zoomed in, a city's skyline grows from a hut to a megacity's towers. When cities crowd together, the smaller ones step back to a dot until you zoom in, so the map stays readable, and exchanges you haven't joined are quieter tags.
- An engaged scrubbing center now pulls the whole flood onto its own ingress and cleans up to its size, so your ports stay clear and only the target suffers if the center is too small. On-demand scrubbing takes half the flood on its first day instead of nothing for two days.
- Each router holds a limited number of Flowspec rules, shown in its POP: every attack takes one rule on each router it enters (a carpet bomb takes four), and when they run out, junk passes that router unfiltered. Bigger routers hold more.
- The NOC's attack card reads like the flood's path: who is hit, which ports are full, what Flowspec and scrubbing do, the result and the one thing to do now. Optional Auto-RTBH and auto-engaged scrubbing switches sit in the NOC, full ports pulse on the map, and Sandbox can send a test flood.
- Flood Season starts at customer level 4, so a 10T scrubbing center is within reach for the terabit floods; a flood you blackhole to save everyone else no longer counts as held.
- The intern's transit order has a new provider choice, Already connected: it only grows the transit you already buy at each POP, the smallest port first, and never signs a new provider, so several upstreams grow together and no customer's "no Cogentle" gets a surprise (#227).
- The intern's PNI order now counts the traffic the PNI list shows at each POP, so it no longer orders a PNI where a network's own cache boxes already serve most of its traffic (#244).
## [2.1.0] — 2026-10-31
- Your backbone now runs a technology you choose: plain IGP, LDP/MPLS, RSVP-TE, SR-MPLS or SRv6. Each step up costs plenty and uses less router CPU: label switching makes traffic that only passes through a POP cheaper for its router, and Auto-TE and RouteScript now need RSVP-TE or higher. Routers only run what they support, so a POP with an older router stays outside the backbone, and mixing vendors at the very top of what their routers can do brings interop failures. Networks that already have Auto-TE keep it exactly as it is.

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "seriesoftubes",
"version": "2.1.0",
"version": "2.2.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "seriesoftubes",
"version": "2.1.0",
"version": "2.2.0",
"license": "MIT",
"devDependencies": {
"jsdom": "24.1.3",

View file

@ -1,6 +1,6 @@
{
"name": "seriesoftubes",
"version": "2.1.0",
"version": "2.2.0",
"description": "A cartoon browser game about building the internet.",
"private": true,
"license": "MIT",
@ -11,6 +11,7 @@
},
"scripts": {
"test": "node scripts/test.js",
"test:timings": "node scripts/test-timings.js",
"build": "node scripts/build.js",
"i18n:check": "node scripts/i18n-check.js",
"i18n:fix": "node scripts/i18n-check.js --fix",

39
scripts/test-timings.js Normal file
View file

@ -0,0 +1,39 @@
#!/usr/bin/env node
// Times each tests/*.test.js on its own and writes tests/durations.json (seconds per file), which
// `npm test -- --shard i/n` uses to split the files into parts of about equal time.
// Run it after adding or growing slow tests; it takes a few minutes. Files run as many at once as the
// machine has cores, so absolute numbers vary, but their sizes relative to each other are what count.
//
// npm run test:timings
const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
const { spawn } = require('node:child_process');
const root = path.join(__dirname, '..');
const dir = path.join(root, 'tests');
const files = fs.readdirSync(dir).filter((f) => f.endsWith('.test.js')).sort().map((f) => 'tests/' + f);
const jobs = Math.max(1, parseInt(process.env.TEST_JOBS, 10) || os.availableParallelism());
const out = {};
let next = 0, failed = 0;
function run() {
if (next >= files.length) return Promise.resolve();
const f = files[next++], t = performance.now();
return new Promise((res) => {
const p = spawn(process.execPath, ['--test', f], { cwd: root, stdio: 'ignore' });
p.on('close', (code) => {
out[f] = Math.round((performance.now() - t) / 100) / 10;
if (code) { failed++; console.log(`✗ ${f} failed (timed anyway)`); }
console.log(`${String(out[f]).padStart(6)}s ${f}`);
res();
});
}).then(run);
}
Promise.all(Array.from({ length: jobs }, run)).then(() => {
const sorted = Object.fromEntries(Object.keys(out).sort().map((k) => [k, out[k]]));
fs.writeFileSync(path.join(dir, 'durations.json'), JSON.stringify(sorted, null, 1) + '\n');
const sum = Object.values(out).reduce((a, b) => a + b, 0);
console.log(`${files.length} files, ${Math.round(sum)} s in all; wrote tests/durations.json${failed ? ` (${failed} failed)` : ''}`);
});

View file

@ -1,16 +1,62 @@
#!/usr/bin/env node
// Runs every tests/*.test.js, one file at a time. New test files are picked up on their own, so adding
// one never touches package.json (and never conflicts with someone else adding theirs).
// Runs every tests/*.test.js, each file in its own process, as many at once as the machine has cores. New test
// files are picked up on their own, so adding one never touches package.json (and never conflicts with someone
// else adding theirs).
//
// npm test everything
// npm test -- tests/peering.test.js just these files (other arguments go to node --test)
// npm test -- --shard 2/4 one of four parts of about equal time (CI runs the four at once)
// npm test -- --shard 2/4 --list which files that part holds, without running them
// TEST_JOBS=1 npm test one file at a time, as it used to be
//
// Parts are balanced by tests/durations.json, each file's typical seconds (refresh: npm run test:timings).
// A file missing from it counts as a typical one, so a stale list only makes the parts a little uneven.
const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
const { spawnSync } = require('node:child_process');
const dir = path.join(__dirname, '..', 'tests');
const root = path.join(__dirname, '..');
const dir = path.join(root, 'tests');
const args = process.argv.slice(2);
const files = args.some((a) => a.endsWith('.test.js')) ? [] :
const list = args.includes('--list');
if (list) args.splice(args.indexOf('--list'), 1);
let shard = null;
const si = args.indexOf('--shard');
if (si >= 0) {
const m = /^(\d+)\/(\d+)$/.exec(args[si + 1] || '');
if (!m || +m[1] < 1 || +m[1] > +m[2]) { console.error('--shard wants i/n, like 2/4'); process.exit(2); }
shard = [+m[1], +m[2]];
args.splice(si, 2);
}
let files = args.some((a) => a.endsWith('.test.js')) ? [] :
fs.readdirSync(dir).filter((f) => f.endsWith('.test.js')).sort().map((f) => path.join('tests', f));
const r = spawnSync(process.execPath, ['--test', '--test-concurrency=1', ...args, ...files], { stdio: 'inherit', cwd: path.join(__dirname, '..') });
// Longest first, each onto the part with the least so far: parts within a file's length of each other.
function part(list, i, n) {
let dur = {};
try { dur = JSON.parse(fs.readFileSync(path.join(dir, 'durations.json'), 'utf8')); } catch (e) { /* none yet: by count */ }
const known = list.map((f) => dur[f.replace(/\\/g, '/')]).filter((s) => s > 0).sort((a, b) => a - b);
const typical = known.length ? known[known.length >> 1] : 1;
const w = (f) => dur[f.replace(/\\/g, '/')] > 0 ? dur[f.replace(/\\/g, '/')] : typical;
const load = Array(n).fill(0), out = Array.from({ length: n }, () => []);
for (const f of list.slice().sort((a, b) => w(b) - w(a) || a.localeCompare(b))) {
let k = 0;
for (let j = 1; j < n; j++) if (load[j] < load[k]) k = j;
load[k] += w(f); out[k].push(f);
}
return out[i - 1].sort();
}
if (shard && files.length) {
files = part(files, shard[0], shard[1]);
console.log(`# part ${shard[0]}/${shard[1]}: ${files.length} files`);
if (list) { for (const f of files) console.log(f); process.exit(0); }
// node --test with no files would run every test it can find: an empty part has nothing to do.
if (!files.length) process.exit(0);
}
const jobs = Math.max(1, parseInt(process.env.TEST_JOBS, 10) || os.availableParallelism());
const r = spawnSync(process.execPath, ['--test', `--test-concurrency=${jobs}`, ...args, ...files], { stdio: 'inherit', cwd: root });
process.exit(r.status ?? 1);

View file

@ -571,14 +571,17 @@
"cables.the_emirates_oman_and_pakistan_on":"Die Emirate, Oman und Pakistan an einem leichten kleinen Kabel.",
"cables.the_first_cable_from_south_america":"Das erste Kabel von Südamerika nach Ozeanien. 14.000 km sehr einsames Glas.",
"cables.the_first_subsea_fiber_in_the":"Die erste Subsea-Glasfaser in der amerikanischen Arktis: Nome nach Utqiaġvik, dann über den North Slope nach Anchorage. Das Meereis hält Reparaturschiffe das halbe Jahr fern.",
"cables.the_incumbent_s_own_line_south":"Die eigene Leitung des Platzhirschs nach Süden: über Land bis Lucena, dann unter dem Meer nach Cebu. Ruft immer noch jede Nacht an.",
"cables.the_newest_cable_from_south_africa":"Das neueste Kabel von Südafrika nach Madagaskar, Réunion und Mauritius, geteilt von den eigenen Telcos der Inseln.",
"cables.the_old_workhorse_s_younger_sibling":"Das jüngere Geschwisterchen des alten Arbeitspferds: Los Angeles nach Sydney mit Abzweig nach Fidschi.",
"cables.the_philippines_longest_domestic_cable_fresh":"Das längste Inlandskabel der Philippinen, jeden Morgen frisch. Von Luzon nach Cebu, Insel für Insel.",
"cables.the_pretty_way_around_east_asia":"Der hübsche Weg rund um Ostasien.",
"cables.the_previous_generation_still":"Die vorige Generation. Trägt immer noch den Großteil von Pakistan, Sri Lanka und Bangladesch, zusammengehalten von Hoffnung.",
"cables.the_sea_stallion_blackpool_to":"Der Seehengst: Blackpool nach Dänemark, galoppiert oben um Schottland herum.",
"cables.the_sequel_singapore_to_hong_kong":"Die Fortsetzung: Singapur nach Hongkong, Taiwan, Japan und Korea, 2025 in Betrieb genommen.",
"cables.the_seychelles_first_cable_to_tanzania":"Das erste Kabel der Seychellen, nach Tansania, nach Jahren mit Satellit.",
"cables.the_straightest_line_across_the":"Die geradeste Linie über den Atlantik. Trader zahlen das Doppelte, um ein paar Millisekunden zu sparen.",
"cables.the_upstart_s_own_cable_from":"Das eigene Kabel des Emporkömmlings von Cebu an die Nordküste Mindanaos, dann über Land nach Davao. Verlegt mitten in der Pandemie.",
"cables.tokyo_to_los_angeles_built_by":"Tokio nach Los Angeles, gebaut von einer Suchmaschine und fünf Telcos, die Händchen halten.",
"cables.up_the_west_coast_of_africa":"Die Westküste Afrikas hinauf. Irgendwas daran ist immer down.",
"cables.west_africa_s_first_big_cable":"Westafrikas erstes großes Kabel, von Portugal nach Kapstadt. Alt und wackelig, hält aber immer noch einiges zusammen.",
@ -723,6 +726,7 @@
"cities.mexico_s_data_center_boom_town":"Mexikos Boomtown für Rechenzentren, hoch und trocken mitten im Land. Jede Cloud will hier eine Region.",
"cities.mexico_s_industrial_capital_a_few":"Mexikos Industriehauptstadt, ein paar Stunden von Texas. Fabriken, Stahl und gegrillte Ziege am Wochenende.",
"cities.mexico_s_silicon_valley_home_of":"Mexikos Silicon Valley, Heimat von Mariachi und Tequila. Tagsüber Chipdesign, nachts Musik.",
"cities.mindanao_s_big_city_and_the":"Mindanaos große Stadt und das Pazifiktor der Philippinen: Hier landen die Transpazifikkabel, südlich des Taifungürtels.",
"cities.morocco_s_business_capital_on_the":"Marokkos Wirtschaftshauptstadt am Atlantik, das Tor zwischen Europa und Westafrika.",
"cities.most_uae_cables_land_on_this":"Die meisten Kabel der VAE landen an dieser Küste an, außerhalb der Straße von Hormus. Von hier nach Dubai heißt: beim Duopol mieten.",
"cities.mountains_mines_and_more_bars_per":"Berge, Minen und mehr Kneipen pro Kopf als irgendwo sonst in Brasilien. Peering-Deals werden bei Käsebrötchen unterschrieben.",
@ -795,6 +799,7 @@
"cities.the_old_gateway_to_eastern_europe":"Das alte Tor nach Osteuropa. Pakete verbeugen sich auf der Durchreise immer noch höflich.",
"cities.the_only_northeastern_capital_away":"Die einzige Hauptstadt im Nordosten, die nicht am Meer liegt. Berüchtigt heiß, mit Gewittern, die den Überspannungsschutz auf Trab halten.",
"cities.the_pacific_gateway_the_andes_sit":"Das Tor zum Pazifik. Die Anden liegen zwischen ihr und allem anderen, und ab und zu bebt die Erde.",
"cities.the_philippines_second_city_reached":"Die zweite Stadt der Philippinen, nur per Inlandskabel erreichbar. Taifune ziehen hier auf dem Weg nach Norden durch.",
"cities.the_prairie_gateway_between":"Das Tor zur Prärie zwischen Vancouver und dem Rest Kanadas. Ein Chinook schmilzt den Schnee an einem Nachmittag, dann schneit es wieder.",
"cities.the_rhine_ruhr_hub_more_carrier":"Der Rhein-Ruhr-Hub: mehr carrier-neutrale Rechenzentren als Hamburg oder München und eine Stunde von der niederländischen Grenze, also ist Glasfaser nach Amsterdam kurz und billig. Bestell hier ein Altbier, niemals ein Kölsch.",
"cities.the_seychelles_capital_on_mah":"Die Hauptstadt der Seychellen auf Mahé: 115 Inseln, Riesenschildkröten und zwei Kabel zum Festland.",
@ -2030,6 +2035,13 @@
"fiber_modals.you_need_a_fabric_port_at":"Du brauchst zuerst einen Fabric-Port an einem deiner POPs. Öffne den Tab Infra eines POPs und kauf einen Port auf {list}.",
"fiber_modals.your_own_trench_almost_no_rent":"Dein eigener Graben: fast keine Miete, aber Genehmigungen und Graben dauern ewig, und Verzögerungen kommen vor.",
"fiber_modals.your_pop_needs_a_fabric_port":"Dein POP · braucht dort einen Fabric-Port",
"find.city_country_or_exchange":"Stadt, Land oder Austauschknoten",
"find.find_a_city":"Stadt finden",
"find.find_a_city_slash":"Stadt finden (/)",
"find.no_city_matches_q":"Keine Stadt passt zu „{q}“.",
"find.press_slash_to_search_from":"Tipp: Drück irgendwo auf der Karte <b>/</b>, um zu suchen.",
"find.type_a_city_a_country":"Gib eine Stadt, ein Land oder einen Austauschknoten ein.",
"find.your_pop":"dein POP",
"game_and_settings.delete_and_start_over":"Löschen und neu anfangen",
"game_and_settings.export_save_download_a_file":"Spielstand exportieren <small>Datei herunterladen</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Import fehlgeschlagen.</b><br>Dieser Spielstand ist beschädigt und konnte nicht geladen werden. Dein aktuelles Spiel ist unberührt.",
@ -2743,6 +2755,7 @@
"networks.philippine_giant_peering_requests":"Philippinischer Riese. Peering-Anfragen werden bei einer Tasse Tee geprüft.",
"networks.pink_eyeball_giant_peering_is":"Pinker Privatkunden-Riese. Peering gibt es ... gegen eine monatliche Gebühr.",
"networks.pink_loud_and_almost_entirely_ipv6":"Pink, laut und fast komplett IPv6-only. Kichert über dein IPv4-only-CDN.",
"networks.pldtea_time_s_mobile_sibling_buy":"Das Mobilfunk-Geschwister von PLDTea Time. Kauf beim Großen, dann erreichst du den Kleinen gleich mit.",
"networks.polite_enormous_and_sorry_about_the":"Höflich, riesig und entschuldigt sich für die Rechnung.",
"networks.portugal_s_incumbent_purrs_when_you":"Portugals Platzhirsch. Schnurrt, wenn du ihm Traffic schickst.",
"networks.prepaid_mobile_from_paraguay_to":"Prepaid-Mobilfunk von Paraguay bis Guatemala, mit einem Logo, das brüllt.",
@ -2775,6 +2788,7 @@
"networks.the_biggest_network_in_china_its":"Das größte Netz Chinas. Seine CN-Too-Premiumroute umgeht die verstopfte Grenze, gegen Aufpreis.",
"networks.the_cheapest_plan_in_the_country":"Der günstigste Tarif im Land. Riecht nach Schnäppchen.",
"networks.the_cloud_it_s_just_someone":"Die Cloud. Ist doch nur das Ashburn von jemand anderem.",
"networks.the_fiber_upstart_from_the_provinces":"Der Glasfaser-Emporkömmling aus der Provinz, der seinen eigenen Weg gegangen ist. Offen für alle.",
"networks.the_kingdom_s_incumbent_once_you":"Der Platzhirsch des Königreichs. Wer einmal drin ist, bleibt drin.",
"networks.the_largest_mobile_network_on_earth":"Das größte Mobilfunknetz der Welt. Nur Paid Peering.",
"networks.the_national_carrier_every_punchline":"Der nationale Carrier. Jede Pointe ist vorab genehmigt.",
@ -2782,8 +2796,10 @@
"networks.the_other_half_of_the_duopoly":"Die andere Hälfte des Duopols, auf Kupfer und Glasfaser. Streng national: Die Welt erreicht es über seinen Wholesale-Arm.",
"networks.the_other_half_of_the_uae":"Die andere Hälfte des Duopols in den VAE. Macht dasselbe wie Etis-a-lot, nur in einer anderen Farbe.",
"networks.the_phone_company_s_favourite_child":"Das Lieblingskind der Telefongesellschaft. Hundert Millionen Handys dahinter, und deine Peering-Anfrage ist seit 1996 „in Prüfung“.",
"networks.the_third_mobile_network_same_towers":"Das dritte Mobilfunknetz: dasselbe noch mal, nur neuer. Peert offen, um aufzuholen.",
"networks.the_tier_1_that_grew_up":"Der Tier 1, der in Sizilien aufgewachsen ist. Sein Seabone-Backbone beherrscht das Mittelmeer und reicht tief nach Amerika, und trotzdem nennt er Palermo sein Zuhause.",
"networks.ukraine_s_biggest_mobile_network_has":"Das größte Mobilfunknetz der Ukraine. Hat Dinge überstanden, die die meisten Netze nie einplanen müssen.",
"networks.up_early_in_cebu_and_already":"Früh wach in Cebu und schon in ganz Asien und Europa am Peeren. Offen für alle.",
"networks.updates_so_many_updates":"Updates. So viele Updates.",
"networks.uruguay_s_state_telco_fast":"Uruguays staatliche Telco. Schnell, überall und ein bisschen stolz darauf.",
"networks.vietnam_s_giant_will_tell_you":"Vietnams Riese. Sagt dir, welches Seekabel diese Woche kaputt ist.",
@ -2794,6 +2810,7 @@
"notifications.n_min_ago":{"one":"vor {n} Min.","other":"vor {n} Min."},
"notifications.nothing_in_the_last_10_minutes":"Nichts in den letzten 10 Minuten.",
"notifications.show_all_n":"Alle {n} anzeigen",
"ops.already_connected":"Nur bestehende",
"ops.annie":"Annie",
"ops.annie_d":"Antwortet vom nächstgelegenen Schreibtisch. Liebt billige Ports und volle IXe.",
"ops.anycast_annie":"Anycast-Annie",
@ -3324,6 +3341,7 @@
"rival_exchanges.dense_filling_and_very_cheap":"Dicht, sättigend und sehr günstig.",
"rival_exchanges.every_session_comes_with_a_coffee":"Zu jeder Session gibt es eine Kaffeepause. Wird streng durchgesetzt.",
"rival_exchanges.grilled_ports_served_with_mustard":"Gegrillte Ports, serviert mit Senf und einem kalten Bier.",
"rival_exchanges.grown_in_a_lab_by_the":"Vom Platzhirsch im Labor gezüchtet. Die eigene Familie ist drauf; alle anderen zahlen fürs Zuschauen.",
"rival_exchanges.layered_resilient_and_somehow_always":"Geschichtet, robust und irgendwie immer geöffnet.",
"rival_exchanges.lots_of_small_sessions_on_little":"Viele kleine Sessions auf kleinen Tellern.",
"rival_exchanges.member_owned_and_not_for_profit":"Gehört den Mitgliedern und ist gemeinnützig. Kleiner als LYNX, aber bei der Mitgliederversammlung gibt es Kekse.",
@ -3341,6 +3359,7 @@
"rival_exchanges.the_challenger_to_the_de_kicks":"Der Herausforderer der DE-KICKS-Fabric, eingewickelt und zum Mitnehmen.",
"rival_exchanges.the_long_established_madrid_exchange":"Der alteingesessene Madrider Exchange. Neutrale Interconnection, lokales Flair und ein Route Server, der nie Siesta macht.",
"rival_exchanges.the_older_johannesburg_exchange_run":"Der ältere Exchange in Johannesburg, betrieben vom lokalen ISP-Verband. Vor jedem Wartungsfenster auf Holz klopfen.",
"rival_exchanges.the_whole_neighbourhood_carries_the":"Die ganze Nachbarschaft trägt das Haus gemeinsam. Kostenlos dabei, mit dem Segen der Regierung.",
"rival_exchanges.tokyo_has_more_exchanges_than_anyone":"Tokio hat mehr Exchanges, als irgendwer aufzählen kann. Diesen hier hat ein Breitbandriese gegründet, und er kommt ordentlich verpackt, jedes Mitglied in seinem eigenen Fach.",
"rival_exchanges.warsaw_has_more_exchanges_than":"Warschau hat mehr Exchanges, als irgendwer zählen kann. Das hier ist der zweitgrößte, diese Woche.",
"rival_exchanges.you_can_t_see_the_fabric":"Man sieht die Fabric nicht, aber sie ist definitiv da.",

View file

@ -423,7 +423,7 @@
"cables.a_friendly_cable_with_french_manners":"Un cable simpático con modales franceses.",
"cables.a_gateway_from_europe_to_india":"Una puerta de Europa a la India, por el Mar Rojo. Se pronuncia como un cable muy sorprendido.",
"cables.a_quick_hop_across_the_red":"Un salto rápido por el Mar Rojo entre Egipto y Arabia Saudí.",
"cables.a_rainbow_bridge_from_singapore_to":"Un puente arcoíris de Singapur a California, vía Yakarta y Manila.",
"cables.a_rainbow_bridge_from_singapore_to":"Un puente arcoíris de Singapur a California, vía Yakarta, Davao y Guam.",
"cables.a_ring_around_the_caribbean_from":"Un anillo alrededor del Caribe, de Florida a Centroamérica, más viejo que la mayoría de sus clientes.",
"cables.a_ring_round_east_asia_from":"Un anillo alrededor de Asia oriental desde 2001: Singapur, Hong Kong, Manila, Taipé, Shanghái, Seúl y Tokio.",
"cables.a_short_cable_across_a_very":"Un cable corto por un estrecho muy tenso.",
@ -569,14 +569,17 @@
"cables.the_emirates_oman_and_pakistan_on":"Los Emiratos, Omán y Pakistán en un cablecito ligero.",
"cables.the_first_cable_from_south_america":"El primer cable de Sudamérica a Oceanía. 14 000 km de vidrio muy solitario.",
"cables.the_first_subsea_fiber_in_the":"La primera fibra submarina del Ártico estadounidense: de Nome a Utqiaġvik, y luego por el North Slope hasta Anchorage. El hielo marino mantiene alejados a los barcos de reparación la mitad del año.",
"cables.the_incumbent_s_own_line_south":"La línea propia del operador histórico hacia el sur: por tierra hasta Lucena y luego bajo el mar hasta Cebú. Sigue llamando cada noche.",
"cables.the_newest_cable_from_south_africa":"El cable más nuevo de Sudáfrica a Madagascar, Reunión y Mauricio, compartido por las telcos de las propias islas.",
"cables.the_old_workhorse_s_younger_sibling":"El hermano menor del viejo caballo de batalla: de Los Ángeles a Sídney con una rama a Fiyi.",
"cables.the_philippines_longest_domestic_cable_fresh":"El cable nacional más largo de Filipinas, recién hecho cada mañana. De Luzón a Cebú y Mindanao, isla a isla.",
"cables.the_pretty_way_around_east_asia":"El camino bonito alrededor de Asia Oriental.",
"cables.the_previous_generation_still":"La generación anterior. Aún lleva la mayor parte de Pakistán, Sri Lanka y Bangladés, sostenida con esperanza.",
"cables.the_sea_stallion_blackpool_to":"El Semental del Mar: de Blackpool a Dinamarca, galopando por el norte de Escocia.",
"cables.the_sequel_singapore_to_hong_kong":"La secuela: de Singapur a Hong Kong, Taiwán, Japón y Corea, encendido en 2025.",
"cables.the_seychelles_first_cable_to_tanzania":"El primer cable de las Seychelles, hasta Tanzania, tras años de satélite.",
"cables.the_straightest_line_across_the":"La línea más recta a través del Atlántico. Los traders pagan el doble por ahorrar unos milisegundos.",
"cables.the_upstart_s_own_cable_from":"El cable propio del recién llegado, de Cebú a la costa norte de Mindanao y luego por tierra hasta Davao. Tendido en plena pandemia.",
"cables.tokyo_to_los_angeles_built_by":"De Tokio a Los Ángeles, construido por un buscador y cinco telcos cogidas de la mano.",
"cables.up_the_west_coast_of_africa":"Costa oeste de África arriba. Siempre hay algo caído.",
"cables.west_africa_s_first_big_cable":"El primer gran cable de África Occidental, de Portugal a Ciudad del Cabo. Viejo y tambaleante, pero sigue sosteniendo cosas.",
@ -721,6 +724,7 @@
"cities.mexico_s_data_center_boom_town":"La ciudad boom de centros de datos de México, alta y seca en medio del país. Todas las nubes quieren una región aquí.",
"cities.mexico_s_industrial_capital_a_few":"La capital industrial de México, a pocas horas de Texas. Fábricas, acero y cabrito asado los fines de semana.",
"cities.mexico_s_silicon_valley_home_of":"El Silicon Valley de México, cuna del mariachi y el tequila. Diseño de chips de día, música de noche.",
"cities.mindanao_s_big_city_and_the":"La gran ciudad de Mindanao y la puerta de Filipinas al Pacífico: los cables transpacíficos llegan aquí, al sur del cinturón de tifones.",
"cities.morocco_s_business_capital_on_the":"La capital de negocios de Marruecos en el Atlántico, puerta entre Europa y África Occidental.",
"cities.most_uae_cables_land_on_this":"La mayoría de los cables de los EAU llegan a tierra en esta costa, fuera del Estrecho de Ormuz. Ir de aquí a Dubái significa alquilar al duopolio.",
"cities.mountains_mines_and_more_bars_per":"Montañas, minas y más bares por habitante que en cualquier otro lugar de Brasil. Los acuerdos de peering se firman con pan de queso.",
@ -793,6 +797,7 @@
"cities.the_old_gateway_to_eastern_europe":"La vieja puerta de Europa del Este. Los paquetes aún hacen una reverencia educada al pasar.",
"cities.the_only_northeastern_capital_away":"La única capital del noreste lejos del mar. Famosamente calurosa, con tormentas eléctricas que mantienen ocupados a los protectores contra sobretensiones.",
"cities.the_pacific_gateway_the_andes_sit":"La puerta del Pacífico. Los Andes se interponen entre ella y todo lo demás, y el suelo tiembla de vez en cuando.",
"cities.the_philippines_second_city_reached":"La segunda ciudad de Filipinas, solo alcanzable por cable nacional. Los tifones pasan por aquí rumbo al norte.",
"cities.the_prairie_gateway_between":"La puerta de las praderas entre Vancouver y el resto de Canadá. Un chinook derrite la nieve en una tarde, y luego vuelve a nevar.",
"cities.the_rhine_ruhr_hub_more_carrier":"El hub del Rin-Ruhr: más centros de datos neutrales que Hamburgo o Múnich, y a una hora de la frontera holandesa, así que la fibra a Ámsterdam es corta y barata. Pide aquí una Altbier, nunca una Kölsch.",
"cities.the_seychelles_capital_on_mah":"La capital de las Seychelles, en Mahé: 115 islas, tortugas gigantes y dos cables al continente.",
@ -2028,6 +2033,13 @@
"fiber_modals.you_need_a_fabric_port_at":"Primero necesitas un puerto de fabric en uno de tus POPs. Abre la pestaña Infra de un POP y compra un puerto en {list}.",
"fiber_modals.your_own_trench_almost_no_rent":"Tu propia zanja: casi sin alquiler, pero los permisos y la excavación tardan una eternidad, y hay retrasos.",
"fiber_modals.your_pop_needs_a_fabric_port":"Tu POP · necesita un puerto de fabric allí",
"find.city_country_or_exchange":"Ciudad, país o punto de intercambio",
"find.find_a_city":"Buscar una ciudad",
"find.find_a_city_slash":"Buscar una ciudad (/)",
"find.no_city_matches_q":"Ninguna ciudad coincide con «{q}».",
"find.press_slash_to_search_from":"Consejo: pulsa <b>/</b> en cualquier parte del mapa para buscar.",
"find.type_a_city_a_country":"Escribe una ciudad, un país o un punto de intercambio.",
"find.your_pop":"tu POP",
"game_and_settings.delete_and_start_over":"Borrar y empezar de nuevo",
"game_and_settings.export_save_download_a_file":"Exportar partida <small>descargar un archivo</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Falló la importación.</b><br>Esa partida está dañada y no se pudo cargar. Tu partida actual sigue intacta.",
@ -2741,6 +2753,7 @@
"networks.philippine_giant_peering_requests":"Gigante filipino. Las solicitudes de peering se revisan con una taza de té.",
"networks.pink_eyeball_giant_peering_is":"Gigante rosa de eyeballs. El peering está disponible... por una cuota mensual.",
"networks.pink_loud_and_almost_entirely_ipv6":"Rosa, ruidosa y casi totalmente solo IPv6. Se ríe por lo bajo de tu CDN solo IPv4.",
"networks.pldtea_time_s_mobile_sibling_buy":"El hermano móvil de PLDTea Time. Compra al grande y llegas también a este.",
"networks.polite_enormous_and_sorry_about_the":"Educado, enorme, y lamenta lo de la factura.",
"networks.portugal_s_incumbent_purrs_when_you":"El operador histórico de Portugal. Ronronea cuando le mandas tráfico.",
"networks.prepaid_mobile_from_paraguay_to":"Móvil prepago de Paraguay a Guatemala, con un logo que ruge.",
@ -2773,6 +2786,7 @@
"networks.the_biggest_network_in_china_its":"La mayor red de China. Su ruta premium CN-Too se salta la frontera congestionada, por un precio.",
"networks.the_cheapest_plan_in_the_country":"El plan más barato del país. Huele a ganga.",
"networks.the_cloud_it_s_just_someone":"La nube. Es solo el Ashburn de otro.",
"networks.the_fiber_upstart_from_the_provinces":"La novata de la fibra que vino de provincias y se fue por su cuenta. Abierta a todos.",
"networks.the_kingdom_s_incumbent_once_you":"El operador histórico del Reino. Una vez dentro, te quedas dentro.",
"networks.the_largest_mobile_network_on_earth":"La mayor red móvil de la Tierra. Solo peering de pago.",
"networks.the_national_carrier_every_punchline":"El operador nacional. Cada chiste viene preaprobado.",
@ -2780,8 +2794,10 @@
"networks.the_other_half_of_the_duopoly":"La otra mitad del duopolio, en cobre y fibra. Estrictamente doméstico: el mundo llega a él por su brazo mayorista.",
"networks.the_other_half_of_the_uae":"La otra mitad del duopolio de los EAU. Hace lo que hace Etis-a-lot, en otro color.",
"networks.the_phone_company_s_favourite_child":"El hijo favorito de la compañía telefónica. Cien millones de teléfonos detrás, y tu solicitud de peering está «en revisión» desde 1996.",
"networks.the_third_mobile_network_same_towers":"El tercer operador móvil: ídem, pero más nuevo. Hace peering abierto para ponerse al día.",
"networks.the_tier_1_that_grew_up":"El Tier 1 que creció en Sicilia. Su backbone Seabone es dueño del Mediterráneo y llega hondo en las Américas, y aun así llama hogar a Palermo.",
"networks.ukraine_s_biggest_mobile_network_has":"La mayor red móvil de Ucrania. Ha seguido funcionando en situaciones que la mayoría de las redes nunca tienen que planear.",
"networks.up_early_in_cebu_and_already":"Madruga en Cebú y ya hace peering por Asia y Europa. Abierto a todos.",
"networks.updates_so_many_updates":"Actualizaciones. Tantas actualizaciones.",
"networks.uruguay_s_state_telco_fast":"La telco estatal de Uruguay. Rápida, en todas partes, y un poco orgullosa de ello.",
"networks.vietnam_s_giant_will_tell_you":"El gigante de Vietnam. Te dirá qué cable submarino está roto esta semana.",
@ -2792,6 +2808,7 @@
"notifications.n_min_ago":{"one":"hace {n} min","other":"hace {n} min"},
"notifications.nothing_in_the_last_10_minutes":"Nada en los últimos 10 minutos.",
"notifications.show_all_n":"Mostrar las {n}",
"ops.already_connected":"Solo los que ya tengo",
"ops.annie":"Annie",
"ops.annie_d":"Responde desde el escritorio más cercano. Le encantan los puertos baratos y los IX llenos.",
"ops.anycast_annie":"Annie Anycast",
@ -3322,6 +3339,7 @@
"rival_exchanges.dense_filling_and_very_cheap":"Denso, contundente y baratísimo.",
"rival_exchanges.every_session_comes_with_a_coffee":"Cada sesión viene con una pausa para el café. Se cumple a rajatabla.",
"rival_exchanges.grilled_ports_served_with_mustard":"Puertos a la parrilla, servidos con mostaza y una cerveza fría.",
"rival_exchanges.grown_in_a_lab_by_the":"Cultivado en laboratorio por el operador histórico. Su familia está dentro; los demás pagan por mirar.",
"rival_exchanges.layered_resilient_and_somehow_always":"En capas, resistente y, de algún modo, siempre abierto.",
"rival_exchanges.lots_of_small_sessions_on_little":"Muchas sesiones pequeñas en platitos.",
"rival_exchanges.member_owned_and_not_for_profit":"Propiedad de sus miembros y sin ánimo de lucro. Más pequeño que LYNX, pero la asamblea tiene galletas.",
@ -3339,6 +3357,7 @@
"rival_exchanges.the_challenger_to_the_de_kicks":"El aspirante a la fabric de DE-KICKS, envuelto y listo para llevar.",
"rival_exchanges.the_long_established_madrid_exchange":"El veterano intercambio de Madrid. Interconexión neutral, sabor local y un route server que nunca hace la siesta.",
"rival_exchanges.the_older_johannesburg_exchange_run":"El intercambio más antiguo de Johannesburgo, gestionado por la asociación local de ISP. Toca madera antes de cada ventana de mantenimiento.",
"rival_exchanges.the_whole_neighbourhood_carries_the":"Todo el barrio carga la casa junto. Gratis, con la bendición del gobierno.",
"rival_exchanges.tokyo_has_more_exchanges_than_anyone":"Tokio tiene más intercambios de los que nadie sabría nombrar. Este lo empezó un gigante de la banda ancha y viene muy bien empaquetado, cada miembro en su compartimento.",
"rival_exchanges.warsaw_has_more_exchanges_than":"Varsovia tiene más intercambios de los que nadie puede contar. Este es el segundo mayor, esta semana.",
"rival_exchanges.you_can_t_see_the_fabric":"No se ve la fabric, pero desde luego está ahí.",

View file

@ -423,7 +423,7 @@
"cables.a_friendly_cable_with_french_manners":"Un câble sympathique aux manières bien françaises.",
"cables.a_gateway_from_europe_to_india":"Une passerelle de l’Europe vers l’Inde, par la mer Rouge. Se prononce comme un câble très surpris.",
"cables.a_quick_hop_across_the_red":"Un saut rapide à travers la mer Rouge entre l’Égypte et l’Arabie saoudite.",
"cables.a_rainbow_bridge_from_singapore_to":"Un pont arc-en-ciel de Singapore à la Californie, via Jakarta et Manila.",
"cables.a_rainbow_bridge_from_singapore_to":"Un pont arc-en-ciel de Singapour à la Californie, via Jakarta, Davao et Guam.",
"cables.a_ring_around_the_caribbean_from":"Un anneau autour des Caraïbes, de la Floride à l’Amérique centrale, plus vieux que la plupart de ses clients.",
"cables.a_ring_round_east_asia_from":"Un anneau autour de l’Asie de l’Est depuis 2001 : Singapour, Hong Kong, Manila, Taipei, Shanghai, Séoul et Tokyo.",
"cables.a_short_cable_across_a_very":"Un câble court à travers un détroit très tendu.",
@ -569,14 +569,17 @@
"cables.the_emirates_oman_and_pakistan_on":"Les Émirats, Oman et le Pakistan sur un seul petit câble léger.",
"cables.the_first_cable_from_south_america":"Le premier câble entre l’Amérique du Sud et l’Océanie. 14 000 km de verre très solitaire.",
"cables.the_first_subsea_fiber_in_the":"La première fibre sous-marine de l’Arctique américain : de Nome à Utqiaġvik, puis par le North Slope jusqu’à Anchorage. La banquise tient les navires de réparation à distance la moitié de l’année.",
"cables.the_incumbent_s_own_line_south":"La ligne de l'opérateur historique vers le sud : par la terre jusqu'à Lucena, puis sous la mer jusqu'à Cebu. Appelle encore tous les soirs.",
"cables.the_newest_cable_from_south_africa":"Le câble le plus récent d’Afrique du Sud vers Madagascar, La Réunion et Maurice, partagé par les opérateurs des îles elles-mêmes.",
"cables.the_old_workhorse_s_younger_sibling":"Le petit frère du vieux cheval de labour : de Los Angeles à Sydney, avec une dérivation vers les Fidji.",
"cables.the_philippines_longest_domestic_cable_fresh":"Le plus long câble national des Philippines, frais chaque matin. De Luçon à Cebu et Mindanao, île après île.",
"cables.the_pretty_way_around_east_asia":"La route panoramique de l’Asie de l’Est.",
"cables.the_previous_generation_still":"La génération précédente. Transporte encore l’essentiel du trafic du Pakistan, du Sri Lanka et du Bangladesh, le tout tenu par l’espoir.",
"cables.the_sea_stallion_blackpool_to":"L’Étalon des mers : de Blackpool au Danemark, au galop autour du nord de l’Écosse.",
"cables.the_sequel_singapore_to_hong_kong":"La suite : de Singapour à Hong Kong, Taïwan, au Japon et en Corée, allumé en 2025.",
"cables.the_seychelles_first_cable_to_tanzania":"Le premier câble des Seychelles, vers la Tanzanie, après des années de satellite.",
"cables.the_straightest_line_across_the":"La ligne la plus droite à travers l’Atlantique. Les traders paient le double pour gagner quelques millisecondes.",
"cables.the_upstart_s_own_cable_from":"Le câble maison du nouveau venu, de Cebu à la côte nord de Mindanao, puis par la terre jusqu'à Davao. Posé en pleine pandémie.",
"cables.tokyo_to_los_angeles_built_by":"De Tokyo à Los Angeles, construit par un moteur de recherche et cinq opérateurs qui se tiennent la main.",
"cables.up_the_west_coast_of_africa":"Remonte la côte ouest de l’Afrique. Tu répares un bout, un autre tombe.",
"cables.west_africa_s_first_big_cable":"Le premier grand câble d’Afrique de l’Ouest, du Portugal au Cap. Vieux et bancal, mais il tient encore tout debout.",
@ -721,6 +724,7 @@
"cities.mexico_s_data_center_boom_town":"La ville du boom des datacenters au Mexique, haute et sèche au centre du pays. Chaque cloud y veut sa région.",
"cities.mexico_s_industrial_capital_a_few":"La capitale industrielle du Mexique, à quelques heures du Texas. Usines, acier et chevreau grillé le week-end.",
"cities.mexico_s_silicon_valley_home_of":"La Silicon Valley du Mexique, berceau du mariachi et de la tequila. Conception de puces le jour, musique la nuit.",
"cities.mindanao_s_big_city_and_the":"La grande ville de Mindanao et la porte des Philippines sur le Pacifique : les câbles transpacifiques atterrissent ici, au sud de la ceinture des typhons.",
"cities.morocco_s_business_capital_on_the":"La capitale économique du Maroc sur l’Atlantique, la porte entre l’Europe et l’Afrique de l’Ouest.",
"cities.most_uae_cables_land_on_this":"La plupart des câbles des Émirats atterrissent sur cette côte, hors du détroit d’Ormuz. Aller d’ici à Dubai, c’est louer au duopole.",
"cities.mountains_mines_and_more_bars_per":"Des montagnes, des mines et plus de bars par habitant que partout ailleurs au Brésil. Les accords de peering se signent autour d’un pão de queijo.",
@ -793,6 +797,7 @@
"cities.the_old_gateway_to_eastern_europe":"L’ancienne porte de l’Europe de l’Est. Les paquets s’inclinent encore poliment en passant.",
"cities.the_only_northeastern_capital_away":"La seule capitale du Nordeste loin de la mer. Réputée pour sa chaleur, avec des orages qui donnent du travail aux parafoudres.",
"cities.the_pacific_gateway_the_andes_sit":"La porte du Pacifique. Les Andes la séparent de tout le reste, et la terre tremble de temps en temps.",
"cities.the_philippines_second_city_reached":"La deuxième ville des Philippines, joignable uniquement par câble national. Les typhons y passent en remontant vers le nord.",
"cities.the_prairie_gateway_between":"La porte des Prairies entre Vancouver et le reste du Canada. Un chinook fait fondre la neige en un après-midi, puis il reneige.",
"cities.the_rhine_ruhr_hub_more_carrier":"Le hub de la Rhénanie-Ruhr : plus de data centers neutres que Hamburg ou Munich, et à une heure de la frontière néerlandaise, donc la fibre vers Amsterdam est courte et pas chère. Ici, on commande une Altbier, jamais une Kölsch.",
"cities.the_seychelles_capital_on_mah":"La capitale des Seychelles, sur Mahé : 115 îles, des tortues géantes et deux câbles vers le continent.",
@ -2028,6 +2033,13 @@
"fiber_modals.you_need_a_fabric_port_at":"Il te faut d’abord un port fabric dans un de tes POP. Ouvre l’onglet Infra d’un POP et achète un port sur {list}.",
"fiber_modals.your_own_trench_almost_no_rent":"Ta propre tranchée : presque pas de loyer, mais les permis et les travaux prennent une éternité, et les retards arrivent.",
"fiber_modals.your_pop_needs_a_fabric_port":"Ton POP · il y faut un port fabric",
"find.city_country_or_exchange":"Ville, pays ou point d'échange",
"find.find_a_city":"Trouver une ville",
"find.find_a_city_slash":"Trouver une ville (/)",
"find.no_city_matches_q":"Aucune ville ne correspond à « {q} ».",
"find.press_slash_to_search_from":"Astuce : appuyez sur <b>/</b> n'importe où sur la carte pour chercher.",
"find.type_a_city_a_country":"Tapez une ville, un pays ou un point d'échange.",
"find.your_pop":"votre POP",
"game_and_settings.delete_and_start_over":"Supprimer et recommencer",
"game_and_settings.export_save_download_a_file":"Exporter la sauvegarde <small>télécharger un fichier</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Échec de l’import.</b><br>Cette sauvegarde est endommagée et n’a pas pu être chargée. Ta partie en cours est intacte.",
@ -2741,6 +2753,7 @@
"networks.philippine_giant_peering_requests":"Géant philippin. Les demandes de peering sont examinées autour d’une tasse de thé.",
"networks.pink_eyeball_giant_peering_is":"Géant eyeball rose. Le peering est disponible... contre un abonnement mensuel.",
"networks.pink_loud_and_almost_entirely_ipv6":"Rose, bruyant et presque entièrement IPv6-only. Ricane devant ton CDN IPv4-only.",
"networks.pldtea_time_s_mobile_sibling_buy":"Le petit frère mobile de PLDTea Time. Achetez au grand et vous l'atteignez aussi.",
"networks.polite_enormous_and_sorry_about_the":"Poli, énorme, et désolé pour la facture.",
"networks.portugal_s_incumbent_purrs_when_you":"L’opérateur historique du Portugal. Ronronne quand tu lui envoies du trafic.",
"networks.prepaid_mobile_from_paraguay_to":"Du mobile prépayé du Paraguay au Guatemala, avec un logo qui rugit.",
@ -2773,6 +2786,7 @@
"networks.the_biggest_network_in_china_its":"Le plus grand réseau de Chine. Sa route premium CN-Too évite la frontière congestionnée, moyennant finance.",
"networks.the_cheapest_plan_in_the_country":"Le forfait le moins cher du pays. Ça sent la bonne affaire.",
"networks.the_cloud_it_s_just_someone":"Le cloud. C’est juste l’Ashburn de quelqu’un d’autre.",
"networks.the_fiber_upstart_from_the_provinces":"Le jeune loup de la fibre venu de province, qui a pris son propre chemin. Ouvert à tous.",
"networks.the_kingdom_s_incumbent_once_you":"L’opérateur historique du Royaume. Une fois entré, tu y restes.",
"networks.the_largest_mobile_network_on_earth":"Le plus grand réseau mobile de la planète. Peering payant uniquement.",
"networks.the_national_carrier_every_punchline":"L’opérateur national. Chaque vanne est validée en haut lieu.",
@ -2780,8 +2794,10 @@
"networks.the_other_half_of_the_duopoly":"L’autre moitié du duopole, sur cuivre et fibre. Strictement national : le monde l’atteint via sa branche de gros.",
"networks.the_other_half_of_the_uae":"L’autre moitié du duopole des Émirats. Fait ce que fait Etis-a-lot, dans une autre couleur.",
"networks.the_phone_company_s_favourite_child":"L’enfant chéri de l’opérateur téléphonique. Cent millions de téléphones derrière lui, et ta demande de peering est « en cours d’examen » depuis 1996.",
"networks.the_third_mobile_network_same_towers":"Le troisième opérateur mobile : idem, mais en plus neuf. Peering ouvert pour rattraper son retard.",
"networks.the_tier_1_that_grew_up":"Le Tier 1 qui a grandi en Sicile. Son backbone Seabone règne sur la Méditerranée et s’enfonce loin dans les Amériques, et il vit toujours à Palerme.",
"networks.ukraine_s_biggest_mobile_network_has":"Le plus grand réseau mobile d’Ukraine. A continué de fonctionner malgré des choses que la plupart des réseaux n’ont jamais à prévoir.",
"networks.up_early_in_cebu_and_already":"Debout tôt à Cebu et déjà en peering à travers l'Asie et l'Europe. Ouvert à tous.",
"networks.updates_so_many_updates":"Des mises à jour. Tellement de mises à jour.",
"networks.uruguay_s_state_telco_fast":"L’opérateur public de l’Uruguay. Rapide, partout, et un peu fier de l’être.",
"networks.vietnam_s_giant_will_tell_you":"Le géant du Vietnam. Te dira quel câble sous-marin est coupé cette semaine.",
@ -2792,6 +2808,7 @@
"notifications.n_min_ago":{"one":"il y a {n} min","other":"il y a {n} min"},
"notifications.nothing_in_the_last_10_minutes":"Rien ces 10 dernières minutes.",
"notifications.show_all_n":"Tout afficher ({n})",
"ops.already_connected":"Déjà branchés",
"ops.annie":"Annie",
"ops.annie_d":"Répond depuis le bureau le plus proche. Adore les ports pas chers et les IX bien remplis.",
"ops.anycast_annie":"Annie Anycast",
@ -3322,6 +3339,7 @@
"rival_exchanges.dense_filling_and_very_cheap":"Dense, bourratif et vraiment pas cher.",
"rival_exchanges.every_session_comes_with_a_coffee":"Chaque session inclut une pause café. Strictement obligatoire.",
"rival_exchanges.grilled_ports_served_with_mustard":"Des ports grillés, servis avec moutarde et bière fraîche.",
"rival_exchanges.grown_in_a_lab_by_the":"Cultivé en laboratoire par l'opérateur historique. Sa famille y est ; les autres paient pour regarder.",
"rival_exchanges.layered_resilient_and_somehow_always":"Tout en couches, résilient et toujours ouvert, on ne sait trop comment.",
"rival_exchanges.lots_of_small_sessions_on_little":"Plein de petites sessions servies dans de petits paniers vapeur.",
"rival_exchanges.member_owned_and_not_for_profit":"Détenu par ses membres et à but non lucratif. Plus petit que LYNX, mais il y a des biscuits à l’AG.",
@ -3339,6 +3357,7 @@
"rival_exchanges.the_challenger_to_the_de_kicks":"Le challenger du fabric DE-KICKS, roulé et prêt à emporter.",
"rival_exchanges.the_long_established_madrid_exchange":"L’IX historique de Madrid. Interconnexion neutre, saveur locale et un route server qui ne fait jamais la sieste.",
"rival_exchanges.the_older_johannesburg_exchange_run":"Le plus ancien IX de Johannesburg, géré par l’association locale des FAI. Touche du bois avant chaque fenêtre de maintenance.",
"rival_exchanges.the_whole_neighbourhood_carries_the":"Tout le quartier porte la maison ensemble. Gratuit, avec la bénédiction du gouvernement.",
"rival_exchanges.tokyo_has_more_exchanges_than_anyone":"Tokyo compte plus d’IX qu’on ne peut en nommer. Celui-ci a été fondé par un géant du haut débit et arrive soigneusement emballé, chaque membre dans son compartiment.",
"rival_exchanges.warsaw_has_more_exchanges_than":"Warsaw compte plus d’IX qu’on ne peut en compter. Celui-ci est le deuxième plus grand, cette semaine.",
"rival_exchanges.you_can_t_see_the_fabric":"Tu ne vois pas le fabric, mais il est bien là.",

View file

@ -423,7 +423,7 @@
"cables.a_friendly_cable_with_french_manners":"Un cavo amichevole con le buone maniere francesi.",
"cables.a_gateway_from_europe_to_india":"Un gateway dall’Europa all’India, attraverso il Mar Rosso. Si pronuncia come un cavo molto sorpreso.",
"cables.a_quick_hop_across_the_red":"Un salto veloce attraverso il Mar Rosso tra Egitto e Arabia Saudita.",
"cables.a_rainbow_bridge_from_singapore_to":"Un ponte arcobaleno da Singapore alla California, via Jakarta e Manila.",
"cables.a_rainbow_bridge_from_singapore_to":"Un ponte arcobaleno da Singapore alla California, via Jakarta, Davao e Guam.",
"cables.a_ring_around_the_caribbean_from":"Un anello intorno ai Caraibi dalla Florida all’America Centrale, più vecchio della maggior parte dei suoi clienti.",
"cables.a_ring_round_east_asia_from":"Un anello intorno all’Asia orientale dal 2001: Singapore, Hong Kong, Manila, Taipei, Shanghai, Seul e Tokyo.",
"cables.a_short_cable_across_a_very":"Un cavo corto attraverso uno stretto molto teso.",
@ -569,14 +569,17 @@
"cables.the_emirates_oman_and_pakistan_on":"Emirati, Oman e Pakistan su un solo cavetto leggero.",
"cables.the_first_cable_from_south_america":"Il primo cavo dal Sud America all’Oceania. 14.000 km di vetro molto solitario.",
"cables.the_first_subsea_fiber_in_the":"La prima fibra sottomarina dell’Artico americano: da Nome a Utqiaġvik, poi oltre il North Slope fino ad Anchorage. Il pack tiene lontane le navi di riparazione per metà dell’anno.",
"cables.the_incumbent_s_own_line_south":"La linea dell'operatore storico verso sud: via terra fino a Lucena, poi sotto il mare fino a Cebu. Chiama ancora ogni sera.",
"cables.the_newest_cable_from_south_africa":"Il cavo più recente dal Sudafrica a Madagascar, Riunione e Mauritius, condiviso dalle telco delle isole.",
"cables.the_old_workhorse_s_younger_sibling":"Il fratellino del vecchio cavallo da tiro: da Los Angeles a Sydney con una diramazione per le Figi.",
"cables.the_philippines_longest_domestic_cable_fresh":"Il cavo nazionale più lungo delle Filippine, fresco ogni mattina. Da Luzon a Cebu e Mindanao, isola dopo isola.",
"cables.the_pretty_way_around_east_asia":"Il giro panoramico dell’Asia orientale.",
"cables.the_previous_generation_still":"La generazione precedente. Porta ancora quasi tutto il traffico di Pakistan, Sri Lanka e Bangladesh, tenuto insieme dalla speranza.",
"cables.the_sea_stallion_blackpool_to":"Lo Stallone del Mare: da Blackpool alla Danimarca, al galoppo attorno al nord della Scozia.",
"cables.the_sequel_singapore_to_hong_kong":"Il sequel: da Singapore a Hong Kong, Taiwan, Giappone e Corea, acceso nel 2025.",
"cables.the_seychelles_first_cable_to_tanzania":"Il primo cavo delle Seychelles, verso la Tanzania, dopo anni di satellite.",
"cables.the_straightest_line_across_the":"La linea più dritta attraverso l’Atlantico. I trader pagano il doppio per risparmiare qualche millisecondo.",
"cables.the_upstart_s_own_cable_from":"Il cavo tutto suo del nuovo arrivato, da Cebu alla costa nord di Mindanao, poi via terra fino a Davao. Posato durante una pandemia.",
"cables.tokyo_to_los_angeles_built_by":"Da Tokyo a Los Angeles, costruito da un motore di ricerca e cinque telco che si tengono per mano.",
"cables.up_the_west_coast_of_africa":"Risale la costa ovest dell’Africa. C’è sempre qualcosa giù.",
"cables.west_africa_s_first_big_cable":"Il primo grande cavo dell’Africa occidentale, dal Portogallo a Città del Capo. Vecchio e traballante, ma regge ancora tutto.",
@ -721,6 +724,7 @@
"cities.mexico_s_data_center_boom_town":"La città del boom dei data center in Messico, alta e asciutta nel centro del paese. Ogni cloud vuole una region qui.",
"cities.mexico_s_industrial_capital_a_few":"La capitale industriale del Messico, a poche ore dal Texas. Fabbriche, acciaio e capretto alla griglia nel weekend.",
"cities.mexico_s_silicon_valley_home_of":"La Silicon Valley del Messico, patria del mariachi e della tequila. Progettazione di chip di giorno, musica di notte.",
"cities.mindanao_s_big_city_and_the":"La grande città di Mindanao e la porta delle Filippine sul Pacifico: i cavi transpacifici approdano qui, a sud della fascia dei tifoni.",
"cities.morocco_s_business_capital_on_the":"La capitale economica del Marocco sull’Atlantico, la porta tra l’Europa e l’Africa occidentale.",
"cities.most_uae_cables_land_on_this":"Quasi tutti i cavi degli Emirati approdano su questa costa, fuori dallo Stretto di Hormuz. Andare da qui a Dubai vuol dire affittare dal duopolio.",
"cities.mountains_mines_and_more_bars_per":"Montagne, miniere e più bar per abitante che in qualsiasi altro posto del Brasile. Gli accordi di peering si firmano davanti al pane al formaggio.",
@ -793,6 +797,7 @@
"cities.the_old_gateway_to_eastern_europe":"L’antica porta verso l’Europa dell’Est. I pacchetti fanno ancora un inchino educato quando passano.",
"cities.the_only_northeastern_capital_away":"L’unica capitale del Nordest lontana dal mare. Famosa per il caldo, con temporali e fulmini che tengono occupati gli scaricatori di sovratensione.",
"cities.the_pacific_gateway_the_andes_sit":"La porta sul Pacifico. Le Ande stanno tra lei e tutto il resto, e ogni tanto la terra trema.",
"cities.the_philippines_second_city_reached":"La seconda città delle Filippine, raggiungibile solo con cavi nazionali. I tifoni ci passano andando verso nord.",
"cities.the_prairie_gateway_between":"La porta delle praterie tra Vancouver e il resto del Canada. Un chinook scioglie la neve in un pomeriggio, poi nevica di nuovo.",
"cities.the_rhine_ruhr_hub_more_carrier":"L’hub della Renania-Ruhr: più data center carrier-neutral di Amburgo o di Monaco, e a un’ora dal confine olandese, quindi la fibra fino ad Amsterdam è corta ed economica. Qui si ordina un’Altbier, mai una Kölsch.",
"cities.the_seychelles_capital_on_mah":"La capitale delle Seychelles, su Mahé: 115 isole, tartarughe giganti e due cavi verso il continente.",
@ -2028,6 +2033,13 @@
"fiber_modals.you_need_a_fabric_port_at":"Prima ti serve una porta fabric in uno dei tuoi POP. Apri la scheda Infra di un POP e compra una porta su {list}.",
"fiber_modals.your_own_trench_almost_no_rent":"Uno scavo tutto tuo: quasi nessun affitto, ma permessi e scavi durano un’eternità, e i ritardi capitano.",
"fiber_modals.your_pop_needs_a_fabric_port":"Il tuo POP · serve una porta fabric lì",
"find.city_country_or_exchange":"Città, paese o exchange",
"find.find_a_city":"Trova una città",
"find.find_a_city_slash":"Trova una città (/)",
"find.no_city_matches_q":"Nessuna città corrisponde a “{q}”.",
"find.press_slash_to_search_from":"Suggerimento: premi <b>/</b> ovunque sulla mappa per cercare.",
"find.type_a_city_a_country":"Scrivi una città, un paese o un exchange.",
"find.your_pop":"il tuo POP",
"game_and_settings.delete_and_start_over":"Cancella e ricomincia",
"game_and_settings.export_save_download_a_file":"Esporta salvataggio <small>scarica un file</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Importazione fallita.</b><br>Quel salvataggio è danneggiato e non si può caricare. La partita in corso non è stata toccata.",
@ -2741,6 +2753,7 @@
"networks.philippine_giant_peering_requests":"Gigante filippino. Le richieste di peering vengono valutate davanti a una tazza di tè.",
"networks.pink_eyeball_giant_peering_is":"Gigante eyeball rosa. Il peering è disponibile... con un canone mensile.",
"networks.pink_loud_and_almost_entirely_ipv6":"Rosa, rumorosa e quasi solo IPv6. Ridacchia della tua CDN solo IPv4.",
"networks.pldtea_time_s_mobile_sibling_buy":"Il fratello mobile di PLDTea Time. Compri dal grande e raggiungi anche lui.",
"networks.polite_enormous_and_sorry_about_the":"Educato, enorme, e si scusa per la bolletta.",
"networks.portugal_s_incumbent_purrs_when_you":"L’incumbent del Portogallo. Fa le fusa quando gli mandi traffico.",
"networks.prepaid_mobile_from_paraguay_to":"Mobile prepagato dal Paraguay al Guatemala, con un logo che ruggisce.",
@ -2773,6 +2786,7 @@
"networks.the_biggest_network_in_china_its":"La rete più grande della Cina. Il suo percorso premium CN-Too evita il confine congestionato, a caro prezzo.",
"networks.the_cheapest_plan_in_the_country":"Il piano più economico del paese. Profuma di affare.",
"networks.the_cloud_it_s_just_someone":"Il cloud. È solo l’Ashburn di qualcun altro.",
"networks.the_fiber_upstart_from_the_provinces":"La fibra emergente dalla provincia che ha preso la sua strada. Aperta a tutti.",
"networks.the_kingdom_s_incumbent_once_you":"L’incumbent del Regno. Una volta dentro, ci resti.",
"networks.the_largest_mobile_network_on_earth":"La rete mobile più grande della Terra. Solo peering a pagamento.",
"networks.the_national_carrier_every_punchline":"Il carrier nazionale. Ogni battuta è pre-approvata.",
@ -2780,8 +2794,10 @@
"networks.the_other_half_of_the_duopoly":"L'altra metà del duopolio, su rame e fibra. Strettamente nazionale: il mondo la raggiunge tramite il suo ramo wholesale.",
"networks.the_other_half_of_the_uae":"L’altra metà del duopolio degli Emirati. Fa quello che fa Etis-a-lot, ma di un altro colore.",
"networks.the_phone_company_s_favourite_child":"Il figlio prediletto della compagnia telefonica. Cento milioni di telefoni alle spalle, e la tua richiesta di peering è “in valutazione” dal 1996.",
"networks.the_third_mobile_network_same_towers":"Il terzo operatore mobile: idem, ma più nuovo. Fa peering aperto per recuperare.",
"networks.the_tier_1_that_grew_up":"Il Tier 1 cresciuto in Sicilia. La sua dorsale Seabone domina il Mediterraneo e arriva in profondità nelle Americhe, e chiama ancora casa Palermo.",
"networks.ukraine_s_biggest_mobile_network_has":"La più grande rete mobile dell’Ucraina. Ha continuato a funzionare attraverso cose che la maggior parte delle reti non deve mai mettere in conto.",
"networks.up_early_in_cebu_and_already":"Sveglia presto a Cebu e già in peering tra Asia ed Europa. Aperto a tutti.",
"networks.updates_so_many_updates":"Aggiornamenti. Tantissimi aggiornamenti.",
"networks.uruguay_s_state_telco_fast":"La telco di stato dell’Uruguay. Veloce, ovunque, e un po’ orgogliosa.",
"networks.vietnam_s_giant_will_tell_you":"Il gigante del Vietnam. Ti dirà quale cavo sottomarino è rotto questa settimana.",
@ -2792,6 +2808,7 @@
"notifications.n_min_ago":{"one":"{n} min fa","other":"{n} min fa"},
"notifications.nothing_in_the_last_10_minutes":"Niente negli ultimi 10 minuti.",
"notifications.show_all_n":"Mostra tutte e {n}",
"ops.already_connected":"Solo quelli già collegati",
"ops.annie":"Annie",
"ops.annie_d":"Risponde dalla scrivania più vicina. Adora le porte economiche e gli IX pieni.",
"ops.anycast_annie":"Annie Anycast",
@ -3322,6 +3339,7 @@
"rival_exchanges.dense_filling_and_very_cheap":"Denso, sostanzioso e molto economico.",
"rival_exchanges.every_session_comes_with_a_coffee":"Ogni sessione include una pausa caffè. Obbligatoria.",
"rival_exchanges.grilled_ports_served_with_mustard":"Porte alla griglia, servite con senape e una birra fresca.",
"rival_exchanges.grown_in_a_lab_by_the":"Coltivato in laboratorio dall'incumbent. C'è la sua famiglia; tutti gli altri pagano per guardare.",
"rival_exchanges.layered_resilient_and_somehow_always":"A strati, resiliente e chissà come sempre aperto.",
"rival_exchanges.lots_of_small_sessions_on_little":"Tante piccole sessioni su piattini.",
"rival_exchanges.member_owned_and_not_for_profit":"Di proprietà dei membri e senza scopo di lucro. Più piccolo di LYNX, ma all’assemblea annuale ci sono i biscotti.",
@ -3339,6 +3357,7 @@
"rival_exchanges.the_challenger_to_the_de_kicks":"Lo sfidante del fabric DE-KICKS, avvolto e pronto da portar via.",
"rival_exchanges.the_long_established_madrid_exchange":"Lo storico exchange di Madrid. Interconnessione neutrale, sapore locale e un route server che non fa mai la siesta.",
"rival_exchanges.the_older_johannesburg_exchange_run":"Il più vecchio exchange di Johannesburg, gestito dall’associazione degli ISP locali. Tocca ferro prima di ogni finestra di manutenzione.",
"rival_exchanges.the_whole_neighbourhood_carries_the":"Tutto il quartiere porta la casa insieme. Entrare è gratis, con la benedizione del governo.",
"rival_exchanges.tokyo_has_more_exchanges_than_anyone":"Tokyo ha più exchange di quanti chiunque riesca a nominarne. Questo l’ha fondato un colosso della banda larga ed è confezionato con cura, ogni membro nel suo scomparto.",
"rival_exchanges.warsaw_has_more_exchanges_than":"Warsaw ha più exchange di quanti se ne possano contare. Questo è il secondo più grande, questa settimana.",
"rival_exchanges.you_can_t_see_the_fabric":"Il fabric non lo vedi, ma c’è di sicuro.",

View file

@ -423,7 +423,7 @@
"cables.a_friendly_cable_with_french_manners":"Um cabo simpático com bons modos franceses.",
"cables.a_gateway_from_europe_to_india":"Um gateway da Europa à Índia pelo Mar Vermelho. Pronuncia-se como um cabo muito surpreso.",
"cables.a_quick_hop_across_the_red":"Um pulinho pelo Mar Vermelho entre o Egito e a Arábia Saudita.",
"cables.a_rainbow_bridge_from_singapore_to":"Uma ponte de arco-íris de Singapura à Califórnia, via Jakarta e Manila.",
"cables.a_rainbow_bridge_from_singapore_to":"Uma ponte de arco-íris de Singapura à Califórnia, via Jakarta, Davao e Guam.",
"cables.a_ring_around_the_caribbean_from":"Um anel ao redor do Caribe, da Flórida à América Central, mais velho que a maioria dos clientes.",
"cables.a_ring_round_east_asia_from":"Um anel ao redor do Leste Asiático desde 2001: Singapura, Hong Kong, Manila, Taipei, Xangai, Seul e Tóquio.",
"cables.a_short_cable_across_a_very":"Um cabo curto atravessando um estreito bem tenso.",
@ -569,14 +569,17 @@
"cables.the_emirates_oman_and_pakistan_on":"Emirados, Omã e Paquistão num cabinho leve.",
"cables.the_first_cable_from_south_america":"O primeiro cabo da América do Sul à Oceania. 14.000 km de vidro muito solitário.",
"cables.the_first_subsea_fiber_in_the":"A primeira fibra submarina do Ártico americano: de Nome a Utqiaġvik, depois pelo North Slope até Anchorage. O gelo marinho mantém os navios de reparo longe por metade do ano.",
"cables.the_incumbent_s_own_line_south":"A linha própria da operadora histórica rumo ao sul: por terra até Lucena, depois sob o mar até Cebu. Ainda liga toda noite.",
"cables.the_newest_cable_from_south_africa":"O cabo mais novo da África do Sul para Madagascar, Reunião e Maurício, compartilhado pelas operadoras das próprias ilhas.",
"cables.the_old_workhorse_s_younger_sibling":"O irmão mais novo do velho burro de carga: de Los Angeles a Sydney com um ramal para Fiji.",
"cables.the_philippines_longest_domestic_cable_fresh":"O cabo nacional mais longo das Filipinas, fresquinho toda manhã. De Luzon a Cebu e Mindanao, ilha por ilha.",
"cables.the_pretty_way_around_east_asia":"O caminho bonito pela Ásia Oriental.",
"cables.the_previous_generation_still":"A geração anterior. Ainda leva quase tudo de Paquistão, Sri Lanka e Bangladesh, na base da esperança.",
"cables.the_sea_stallion_blackpool_to":"O Sea Stallion: de Blackpool à Dinamarca, galopando pelo norte da Escócia.",
"cables.the_sequel_singapore_to_hong_kong":"A continuação: de Singapura a Hong Kong, Taiwan, Japão e Coreia, aceso em 2025.",
"cables.the_seychelles_first_cable_to_tanzania":"O primeiro cabo das Seychelles, até a Tanzânia, depois de anos de satélite.",
"cables.the_straightest_line_across_the":"A linha mais reta através do Atlântico. Traders pagam o dobro para economizar alguns milissegundos.",
"cables.the_upstart_s_own_cable_from":"O cabo próprio da novata, de Cebu à costa norte de Mindanao e depois por terra até Davao. Lançado numa pandemia.",
"cables.tokyo_to_los_angeles_built_by":"De Tóquio a Los Angeles, construído por um buscador e cinco operadoras de mãos dadas.",
"cables.up_the_west_coast_of_africa":"Sobe a costa oeste da África. Sempre tem alguma coisa fora do ar.",
"cables.west_africa_s_first_big_cable":"O primeiro grande cabo da África Ocidental, de Portugal à Cidade do Cabo. Velho e bambo, mas ainda segurando as pontas.",
@ -721,6 +724,7 @@
"cities.mexico_s_data_center_boom_town":"A cidade do boom de data centers no México, alta e seca no meio do país. Toda nuvem quer uma região aqui.",
"cities.mexico_s_industrial_capital_a_few":"A capital industrial do México, a poucas horas do Texas. Fábricas, aço e cabrito assado no fim de semana.",
"cities.mexico_s_silicon_valley_home_of":"O Vale do Silício do México, terra do mariachi e da tequila. Projeto de chips de dia, música à noite.",
"cities.mindanao_s_big_city_and_the":"A grande cidade de Mindanao e a porta das Filipinas para o Pacífico: os cabos transpacíficos chegam aqui, ao sul do cinturão de tufões.",
"cities.morocco_s_business_capital_on_the":"A capital dos negócios do Marrocos no Atlântico, a porta entre a Europa e a África Ocidental.",
"cities.most_uae_cables_land_on_this":"A maioria dos cabos dos Emirados chega nesta costa, fora do Estreito de Ormuz. Ir daqui até Dubai significa alugar do duopólio.",
"cities.mountains_mines_and_more_bars_per":"Montanhas, minas e mais bares por habitante do que em qualquer outro lugar do Brasil. Acordo de peering se fecha com pão de queijo.",
@ -793,6 +797,7 @@
"cities.the_old_gateway_to_eastern_europe":"A antiga porta de entrada do Leste Europeu. Os pacotes ainda fazem uma reverência educada ao passar.",
"cities.the_only_northeastern_capital_away":"A única capital nordestina longe do mar. Famosa pelo calor, com tempestades de raios que mantêm os protetores de surto ocupados.",
"cities.the_pacific_gateway_the_andes_sit":"A porta para o Pacífico. Os Andes ficam entre ela e todo o resto, e de vez em quando a terra treme.",
"cities.the_philippines_second_city_reached":"A segunda cidade das Filipinas, alcançada só por cabo nacional. Os tufões passam por aqui a caminho do norte.",
"cities.the_prairie_gateway_between":"A porta das pradarias entre Vancouver e o resto do Canadá. Um chinook derrete a neve numa tarde, e aí neva de novo.",
"cities.the_rhine_ruhr_hub_more_carrier":"O hub do Reno-Ruhr: mais data centers neutros do que Hamburgo ou Munique, e a uma hora da fronteira holandesa, então a fibra até Amsterdã é curta e barata. Aqui se pede uma Altbier, nunca uma Kölsch.",
"cities.the_seychelles_capital_on_mah":"A capital das Seychelles, em Mahé: 115 ilhas, tartarugas gigantes e dois cabos para o continente.",
@ -2028,6 +2033,13 @@
"fiber_modals.you_need_a_fabric_port_at":"Primeiro você precisa de uma porta de fabric em um dos seus POPs. Abra a aba Infra de um POP e compre uma porta em {list}.",
"fiber_modals.your_own_trench_almost_no_rent":"Sua própria vala: quase nenhum aluguel, mas licenças e escavação levam uma eternidade, e atrasos acontecem.",
"fiber_modals.your_pop_needs_a_fabric_port":"Seu POP · precisa de uma porta de fabric lá",
"find.city_country_or_exchange":"Cidade, país ou exchange",
"find.find_a_city":"Encontrar uma cidade",
"find.find_a_city_slash":"Encontrar uma cidade (/)",
"find.no_city_matches_q":"Nenhuma cidade corresponde a “{q}”.",
"find.press_slash_to_search_from":"Dica: pressione <b>/</b> em qualquer lugar do mapa para pesquisar.",
"find.type_a_city_a_country":"Digite uma cidade, um país ou um exchange.",
"find.your_pop":"seu POP",
"game_and_settings.delete_and_start_over":"Apagar e recomeçar",
"game_and_settings.export_save_download_a_file":"Exportar save <small>baixar um arquivo</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Falha na importação.</b><br>Esse save está corrompido e não pôde ser carregado. Seu jogo atual não foi mexido.",
@ -2741,6 +2753,7 @@
"networks.philippine_giant_peering_requests":"Gigante filipino. Pedidos de peering são avaliados com uma xícara de chá.",
"networks.pink_eyeball_giant_peering_is":"Gigante eyeball cor-de-rosa. O peering está disponível... mediante mensalidade.",
"networks.pink_loud_and_almost_entirely_ipv6":"Rosa, barulhenta e quase toda só IPv6. Dá risadinha da sua CDN só IPv4.",
"networks.pldtea_time_s_mobile_sibling_buy":"O irmão móvel da PLDTea Time. Compre da grandona e chegue nele também.",
"networks.polite_enormous_and_sorry_about_the":"Educado, enorme e pedindo desculpas pela conta.",
"networks.portugal_s_incumbent_purrs_when_you":"A incumbent de Portugal. Ronrona quando você manda tráfego.",
"networks.prepaid_mobile_from_paraguay_to":"Celular pré-pago do Paraguai à Guatemala, com um logo que ruge.",
@ -2773,6 +2786,7 @@
"networks.the_biggest_network_in_china_its":"A maior rede da China. A rota premium CN-Too evita a fronteira congestionada, por um preço.",
"networks.the_cheapest_plan_in_the_country":"O plano mais barato do país. Tem cheiro de pechincha.",
"networks.the_cloud_it_s_just_someone":"A nuvem. É só o Ashburn de outra pessoa.",
"networks.the_fiber_upstart_from_the_provinces":"A novata da fibra que veio do interior e seguiu seu próprio caminho. Aberta a todos.",
"networks.the_kingdom_s_incumbent_once_you":"A incumbent do Reino. Entrou, não sai mais.",
"networks.the_largest_mobile_network_on_earth":"A maior rede mobile da Terra. Só peering pago.",
"networks.the_national_carrier_every_punchline":"A operadora nacional. Toda piada é pré-aprovada.",
@ -2780,8 +2794,10 @@
"networks.the_other_half_of_the_duopoly":"A outra metade do duopólio, em cobre e fibra. Estritamente doméstica: o mundo chega nela pelo seu braço de atacado.",
"networks.the_other_half_of_the_uae":"A outra metade do duopólio dos Emirados. Faz o mesmo que a Etis-a-lot, em outra cor.",
"networks.the_phone_company_s_favourite_child":"O filho preferido da companhia telefônica. Cem milhões de celulares por trás, e seu pedido de peering está “em análise” desde 1996.",
"networks.the_third_mobile_network_same_towers":"A terceira operadora móvel: idem, só que mais nova. Faz peering aberto para alcançar as outras.",
"networks.the_tier_1_that_grew_up":"A Tier 1 que cresceu na Sicília. Seu backbone Seabone domina o Mediterrâneo e vai fundo nas Américas, e ela ainda chama Palermo de casa.",
"networks.ukraine_s_biggest_mobile_network_has":"A maior rede mobile da Ucrânia. Continuou funcionando em situações que a maioria das redes nunca precisa planejar.",
"networks.up_early_in_cebu_and_already":"Acorda cedo em Cebu e já faz peering pela Ásia e pela Europa. Aberto a todos.",
"networks.updates_so_many_updates":"Atualizações. Tantas atualizações.",
"networks.uruguay_s_state_telco_fast":"A telco estatal do Uruguai. Rápida, em todo lugar, e um pouco orgulhosa disso.",
"networks.vietnam_s_giant_will_tell_you":"O gigante do Vietnã. Te conta qual cabo submarino está rompido esta semana.",
@ -2792,6 +2808,7 @@
"notifications.n_min_ago":{"one":"há {n} min","other":"há {n} min"},
"notifications.nothing_in_the_last_10_minutes":"Nada nos últimos 10 minutos.",
"notifications.show_all_n":"Mostrar todas as {n}",
"ops.already_connected":"Só os já conectados",
"ops.annie":"Annie",
"ops.annie_d":"Responde da mesa mais próxima. Adora uma porta barata e um IX cheio.",
"ops.anycast_annie":"Annie Anycast",
@ -3322,6 +3339,7 @@
"rival_exchanges.dense_filling_and_very_cheap":"Denso, substancioso e baratíssimo.",
"rival_exchanges.every_session_comes_with_a_coffee":"Toda sessão vem com pausa pro café. Obrigatória.",
"rival_exchanges.grilled_ports_served_with_mustard":"Portas na brasa, servidas com mostarda e uma cerveja gelada.",
"rival_exchanges.grown_in_a_lab_by_the":"Cultivado em laboratório pela operadora dominante. A família dela está lá; o resto paga para assistir.",
"rival_exchanges.layered_resilient_and_somehow_always":"Em camadas, resiliente e, não se sabe como, sempre aberto.",
"rival_exchanges.lots_of_small_sessions_on_little":"Várias sessõezinhas em pratinhos.",
"rival_exchanges.member_owned_and_not_for_profit":"Dos membros e sem fins lucrativos. Menor que o LYNX, mas a assembleia anual tem biscoito.",
@ -3339,6 +3357,7 @@
"rival_exchanges.the_challenger_to_the_de_kicks":"O desafiante do fabric DE-KICKS, embrulhado e pronto pra viagem.",
"rival_exchanges.the_long_established_madrid_exchange":"O tradicional exchange de Madrid. Interconexão neutra, sabor local e um route server que nunca tira siesta.",
"rival_exchanges.the_older_johannesburg_exchange_run":"O exchange mais antigo de Johannesburg, gerido pela associação de ISPs locais. Bata na madeira antes de cada janela de manutenção.",
"rival_exchanges.the_whole_neighbourhood_carries_the":"O bairro inteiro carrega a casa junto. Entrar é grátis, com a bênção do governo.",
"rival_exchanges.tokyo_has_more_exchanges_than_anyone":"Tokyo tem mais exchanges do que alguém consegue nomear. Este foi criado por um gigante da banda larga e vem bem embalado, cada membro no seu compartimento.",
"rival_exchanges.warsaw_has_more_exchanges_than":"Warsaw tem mais exchanges do que dá pra contar. Este é o segundo maior, esta semana.",
"rival_exchanges.you_can_t_see_the_fabric":"Você não vê o fabric, mas ele está lá, com certeza.",

View file

@ -1 +1 @@
{"v":1,"key":"2026-W44","rev":2,"theme":"flood","city":"sto","cash":2050000,"days":250,"lvl":4,"rules":{"ddos":true},"mods":[],"goal":{"t":"floods","p":{"n":32,"big":5}},"name":{"l":"wkscn.name_packet_monsoon","p":{}},"desc":{"l":"wkscn.desc_city_hosts_the_internets_favourite","p":{"city":"sto"}},"seed":1559294845,"par":198,"ref":{"home":"sto","bb":true,"ix":true,"steps":[{"k":"hop","v":["sto","tll",1,null]},{"k":"hop","v":["tll","hel",1,null]}],"avoid":[],"tr2":false,"scrub":2}}
{"v":1,"key":"2026-W44","rev":2,"theme":"flood","city":"sto","cash":2050000,"days":250,"lvl":4,"rules":{"ddos":true},"mods":[],"goal":{"t":"floods","p":{"n":32,"big":5}},"name":{"l":"wkscn.name_packet_monsoon","p":{}},"desc":{"l":"wkscn.desc_city_hosts_the_internets_favourite","p":{"city":"sto"}},"seed":1559294845,"par":214,"ref":{"home":"sto","bb":true,"ix":true,"steps":[{"k":"hop","v":["sto","tll",1,null]},{"k":"hop","v":["tll","hel",1,null]}],"avoid":[],"tr2":false,"scrub":2}}

View file

@ -18,6 +18,12 @@ const AU_TRANSIT=3,AU_WAVE={land:1.8,sub:2.6,ew:1.3},AU_IX=0.8,AU_ARPU=1.8,AU_WH
// Fibre to the Basement: on your own fibre you skip the wholesale cut, but competing networks pay the
// Regional Broadband Scheme levy instead (about $7 a month on a ~$90 bill).
const AU_LEVY=0.08;
/* The Philippines: few, thin routes out and an incumbent that owns most of them. 100 GigE transit in Manila
costs about 1.9 times Jakarta's (TeleGeography, 2026: $2.25 against $1.21 per Mbps), so the islands pay
1.9 times the Asian rate. Homes pay about ₱1,450 (US$25) a month, the incumbent's own figure (PLDT, 2025).
Between the islands capacity is dearer than out of the country: a Manila–Cebu wave costs about what
Manila–Singapore does, twice Manila–Hong Kong. */
const PH_TRANSIT=4.7,PH_ARPU=0.7,PH_WAVE=3.7;
const SITE2_COST=45000,SITE2_MO=3000,TE_COST=60000,TE_MO=4000;
const SITE2_N=[tr('economy.the_other_building'),tr('economy.campus_b_the_one_with_parking'),tr('economy.across_the_river_dc'),tr('common.the_annex'),tr('economy.suburban_mega_shed'),tr('economy.the_cheaper_one'),tr('economy.formerly_a_shopping_mall'),tr('common.bunker_two')];
// A city's buildings: '#' becomes a site number from 1 to dcN (dc2N for the second building) that stays put for this network.

View file

@ -79,4 +79,9 @@ LANDS_LL.push(
LANDS_LL.push(
{id:'mv',ll:[[73.11,4.48],[73.91,4.48],[73.91,3.88],[73.11,3.88]]},
);
// The Visayas and Mindanao: Cebu and Davao are islands of their own, reached from Luzon only by cable.
LANDS_LL.push(
{id:'ceb',ll:[[123.3,11.3],[124.1,11.3],[124.1,9.4],[123.3,9.4]]},
{id:'mdn',ll:[[121.9,7],[123,8.4],[125.4,9.8],[126.6,7.5],[126.2,5.6],[125,5.6],[122,6.6]]},
);
const LANDS=LANDS_LL.map(l=>({id:l.id,hide:true,pts:l.ll.map(q=>proj(q[0],q[1]))}));

File diff suppressed because one or more lines are too long

View file

@ -44,6 +44,7 @@ const CITY_LL={
"cbo":[80.0, 6.95],
"cbr":[149.13,-35.28],
"ccs":[-66.9,10.49],
"ceb":[123.89,10.32],
"cgb":[-56.1,-15.6],
"cgr":[-54.65,-20.47],
"chc":[172.55,-43.53],
@ -70,6 +71,7 @@ const CITY_LL={
"dur":[31.03,-29.86],
"dus":[6.78,51.22],
"dut":[-166.53,53.88],
"dvo":[125.6,7.08],
"dxb":[55.27,25.2],
"dyr":[177.4,64.7],
"ebj":[8.52,55.48],

View file

@ -35,7 +35,7 @@ const CITIES=[
{id:'akl',name:'Auckland',x:1964,y:826,land:'nz',reg:'OC',cc:'NZ',P:250,ix:'Kiwi-IX',dc:'Sheep-cooled Shed',note:tr('cities.far_from_everything_every_packet')},
{id:'per',name:'Perth',x:1712,y:785,land:'oc',reg:'OC',cc:'AU',au:true,arpu:AU_ARPU,P:200,ix:'Beard-IX',dc:'Very Remote DC',dc2:'Next-Door-DC P#',dc2N:2,note:tr('cities.the_most_isolated_big_city_on')},
{id:'jkt',name:'Jakarta',x:1614,y:624,land:'idn',reg:'AS',cc:'ID',P:900,ix:'Nasi-IX',dc:'Monsoon-proof DC',note:tr('cities.270_million_people_on_17_000')},
{id:'mnl',name:'Manila',x:1714,y:494,land:'ph',reg:'AS',cc:'PH',P:600,ix:'',dc:'Typhoon-rated DC',note:tr('cities.typhoons_earthquakes_and_a_lot_of')},
{id:'mnl',name:'Manila',x:1714,y:494,land:'ph',reg:'AS',cc:'PH',ph:true,arpu:PH_ARPU,P:1000,ix:'GotchaFIX Manila',ixCheap:1.8,dc:'Typhoon-rated DC',note:tr('cities.typhoons_earthquakes_and_a_lot_of')},
{id:'ber',name:'Berlin',x:0,y:0,land:'eu',reg:'EU',cc:'DE',P:450,ix:'Currywurst-IX',dc:'Former Brewery DC',note:tr('cities.startups_techno_and_a_surprising')},
{id:'ham',name:'Hamburg',x:0,y:0,land:'eu',reg:'EU',cc:'DE',P:250,ix:'Moin-IX',dc:'Speicherstadt Colo',note:tr('cities.germany_s_port_city_everyone_says')},
{id:'dus',name:'Düsseldorf',x:0,y:0,land:'eu',reg:'EU',cc:'DE',P:300,ix:'Altbier-IX',dc:'Königsallee Cage',note:tr('cities.the_rhine_ruhr_hub_more_carrier')},
@ -240,6 +240,9 @@ const CITIES=[
{id:'mct',name:'Muscat',x:0,y:0,land:'eu',reg:'AS',cc:'OM',P:50,ix:'Halwa-IX',dc:'Frankincense Colo',note:tr('cities.oman_s_capital_just_outside_the')},
{id:'mle',name:'Malé',x:0,y:0,land:'mv',reg:'AS',cc:'MV',P:4,ix:'',dc:'One-Metre-Up DC',note:tr('cities.the_maldives_capital_a_stop_on')},
{id:'fuk',name:'Fukuoka',x:0,y:0,land:'jp',reg:'AS',cc:'JP',P:120,ix:'Mentaiko-IX',dc:'Hakata Ramen Racks',note:tr('cities.japan_s_closest_city_to_korea')},
// The Philippines beyond Luzon
{id:'ceb',name:'Cebu',x:0,y:0,land:'ceb',reg:'AS',cc:'PH',ph:true,arpu:PH_ARPU,P:125,ix:'GotchaFIX Cebu',ixCheap:1.8,dc:"Magellan's Last Rack",note:tr('cities.the_philippines_second_city_reached')},
{id:'dvo',name:'Davao',x:0,y:0,land:'mdn',reg:'AS',cc:'PH',ph:true,arpu:PH_ARPU,P:135,ix:'GotchaFIX Davao',ixCheap:1.8,dc:"Heimdall's Hut",note:tr('cities.mindanao_s_big_city_and_the')},
];
// Display-only nudges for cities that sit on top of each other at map scale; distances still use real lon/lat.
const CITY_NUDGE={

View file

@ -49,6 +49,7 @@ const CITY_PDB={
cbo:[1,0,33],
cbr:[5,60,3196], // est.
ccs:[6,32,296],
ceb:[4,25,750], // est.
cgb:[4,5,9693],
cgr:[4,4,9693],
chc:[4,30,755], // est.
@ -75,6 +76,7 @@ const CITY_PDB={
dur:[4,137,879],
dus:[13,350,3705], // 14 listed, one closed; Digital Realty DUS1-3 alone has 141 networks
dut:[0,0,33300], // est.
dvo:[2,10,750], // est.
dxb:[8,135,231],
dyr:[0,0,6683], // est.
ebj:[1,5,529], // est.

View file

@ -31,7 +31,7 @@ const CABLES=[
{"id":"cook","name":"Cook Strait Talking","price":1.0,"age":"mid","blurb":tr('cables.down_the_west_coast_and_across'),"pairs":[["akl","chc",[[175.75,-36.25],[178,-37],[179,-38],[178.5,-39.25],[174.25,-43.5]]]]},
{"id":"ring","name":"Lord of the Tasman Rings","price":0.9,"age":"new","blurb":tr('cables.one_ring_to_bind_invercargill_to'),"pairs":[["ivc","syd",[[167.6,-46.9],[160,-42],[153,-35]]],["ivc","mel",[[167.6,-46.9],[156,-43.5],[146.2,-39.4]]],["ivc","akl",[[169,-47.25],[170.5,-47.25],[178.5,-39.25],[179,-38],[178,-37],[175.75,-36.25]]]]},
{"id":"tasman","name":"Tasman Global Excess","price":0.95,"age":"new","blurb":tr('cables.sydney_to_auckland_with_plenty_to'),"pairs":[["akl","syd",[[170,-36],[158,-34.5]]]]},
{"id":"bifrost","name":"Bi-Frosted","price":0.9,"age":"new","blurb":tr('cables.a_rainbow_bridge_from_singapore_to'),"pairs":[["sin","jkt",[[107,-2]]],["jkt","mnl",[[108.5,1.5]]],["mnl","lax",[[123,15],[140,20],[180,25],[210,30],[235,33.5]]],["mnl","gum",[[123,15],[136,14.5],[144.3,13.6]]],["gum","lax",[[145.5,14.2],[180,22],[210,30],[235,33.5]]],["jkt","gum",[[107.25,-5.25],[113,-5.25],[116,-4.25],[121,2],[139.42,11.57],[143.5,13.5]]],["gum","sea",[[149.93,19.74],[155.17,25.45],[160.51,30.59],[165.55,34.81],[170.63,38.48],[176.24,41.9],[181.86,44.75],[188.04,47.3],[190.71,48.15],[198.76,49.45],[205.61,50.09],[211.8,50.31],[218.01,50.21],[224.91,49.69],[234.5,48.25],[235.75,48.5],[236,48.25],[237.25,48.25]]]]},
{"id":"bifrost","name":"Bi-Frosted","price":0.9,"age":"new","blurb":tr('cables.a_rainbow_bridge_from_singapore_to'),"pairs":[["sin","jkt",[[107,-2]]],["gum","lax",[[145.5,14.2],[180,22],[210,30],[235,33.5]]],["jkt","gum",[[107.25,-5.25],[113,-5.25],[116,-4.25],[121,2],[139.42,11.57],[143.5,13.5]]],["jkt","dvo",[[107.25,-5.25],[113,-5.25],[116,-4.25],[121,2],[124.5,4.6],[125.5,5.3],[125.75,6.2],[125.7,6.8]]],["dvo","gum",[[125.75,6.4],[126.1,5.6],[127,5.8],[130,8],[139.42,11.57],[143.5,13.5]]],["gum","sea",[[149.93,19.74],[155.17,25.45],[160.51,30.59],[165.55,34.81],[170.63,38.48],[176.24,41.9],[181.86,44.75],[188.04,47.3],[190.71,48.15],[198.76,49.45],[205.61,50.09],[211.8,50.31],[218.01,50.21],[224.91,49.69],[234.5,48.25],[235.75,48.5],[236,48.25],[237.25,48.25]]]]},
{"id":"sjcph","name":"Sushi-Jollibee Cable","price":0.9,"age":"mid","blurb":tr('cables.southeast_asia_to_japan_with_snacks'),"pairs":[["hkg","mnl",[[116,21],[119.5,16],[120.3,14.6]]],["mnl","sin",[[119,12],[115,8],[110,5],[105,2]]],["mnl","tok",[[120,14.25],[119.25,15.25],[119.5,18],[128.03,26.23],[139,34.5]]],["sin","hkg",[[104.75,1.75],[109.75,11.5]]],["hkg","tok",[[116.5,22.25],[127,30],[130.75,30.5],[139,34.5]]]]},
{"id":"farice","name":"Far-Ice-1","price":1.2,"age":"old","blurb":tr('cables.iceland_s_lifeline_to_scotland'),"pairs":[["rek","lon",[[-23,64],[-22.25,63.25],[-20.25,63],[-7,63],[-1.63,57.93],[2,53],[1.75,51.75]]]]},
{"id":"danice","name":"Dance-Ice","price":1.0,"age":"mid","blurb":tr('cables.iceland_to_denmark_choreographed'),"pairs":[["rek","cph",[[-23,64],[-22.25,63.25],[7,57.5],[10.5,57.75],[11,57.5],[10.5,55.25],[12,54.75]]]]},
@ -97,7 +97,7 @@ const CABLES=[
{"id":"ouzo","name":"Ouzo Express","price":0.9,"age":"new","blurb":tr('cables.athens_to_alexandria_and_up_the'),"pairs":[["ath","cai",[[24,37.5],[25.2,35.5],[28,33],[29.9,31.4]]],["ath","ist",[[24.3,38.5],[25.6,39.9],[26.5,40.3],[28.2,40.8]]]]},
{"id":"tea","name":"Boston Tea Party Line","price":0.9,"age":"mid","blurb":tr('cables.boston_to_dublin_nobody_has_thrown'),"pairs":[["bos","dub",[[-65.25,43],[-26,51],[-8.5,51],[-5.75,52.25],[-5.5,53.25]]]]},
{"id":"clementine","name":"Clementine","price":0.6,"age":"new","df":true,"blurb":tr('cables.a_small_sweet_cable_from_broadstairs'),"pairs":[["lon","oos",[[1.44,51.36],[2.92,51.23]]]]},
{"id":"seaus","name":"SEA-US Later","price":1.0,"age":"mid","blurb":tr('cables.los_angeles_to_hawaii_guam_and'),"pairs":[["lax","hnl",[[-119,33.5],[-140,27],[-157.6,21.6]]],["hnl","gum",[[-158.3,21.2],[-180,18],[-200,15],[-214.6,13.5]]],["gum","mnl",[[125.76,13.3],[123.5,12.5],[120.75,13.25],[120.5,14.25]]],["gum","ror",[[144.5,13.1],[139,9.5],[134.8,7.5]]]]},
{"id":"seaus","name":"SEA-US Later","price":1.0,"age":"mid","blurb":tr('cables.los_angeles_to_hawaii_guam_and'),"pairs":[["lax","hnl",[[-119,33.5],[-140,27],[-157.6,21.6]]],["hnl","gum",[[-158.3,21.2],[-180,18],[-200,15],[-214.6,13.5]]],["gum","dvo",[[144,13.7],[135,10.5],[128,6.8],[126.4,5.7],[125.85,6.2],[125.7,6.75]]],["gum","ror",[[144.5,13.1],[139,9.5],[134.8,7.5]]]]},
{"id":"aag","name":"Asia-America Gateaux","price":1.25,"age":"old","blurb":tr('cables.california_to_hong_kong_via_hawaii'),"pairs":[["sjc","hnl",[[-122.8,35],[-140,27.5],[-158.2,21.4]]],["hnl","gum",[[-158.4,21.5],[-180,19],[-200,16],[-214.4,13.7]]],["gum","hkg",[[144.5,14],[130,17.5],[121,20],[115,21.6],[114.3,22.2]]]]},
{"id":"echo","name":"Echo-Chamber","price":0.85,"age":"new","blurb":tr('cables.california_to_singapore_via_guam'),"pairs":[["sjc","gum",[[-125,38],[-150,30],[-180,21],[-214.8,14]]],["gum","sin",[[137.45,12.58],[125,10.25],[123.75,9],[122,9],[108,5],[104.25,1.25]]]]},
{"id":"hantru","name":"HANTRU-ly Yours","price":1.3,"age":"mid","blurb":tr('cables.guam_to_the_marshall_islands_with'),"pairs":[["gum","maj",[[145,13.3],[158,7],[167,8.5],[171.2,7.2]]]]},
@ -161,6 +161,9 @@ const CABLES=[
{"id":"tw1","name":"TW1-light","price":1.1,"age":"mid","blurb":tr('cables.the_emirates_oman_and_pakistan_on'),"pairs":[["fuj","mct",[[58.25,24.25]]],["mct","khi",[[58.75,24]]]]},
{"id":"mct1","name":"MCT (Malaysia, Cambodia, Tuk-tuks)","price":0.95,"age":"new","blurb":tr('cables.malaysia_to_thailand_round_the_gulf'),"pairs":[["kul","bkk",[[101.75,2.5],[102.5,1.5],[103.5,0.75],[103.75,0.75],[104.75,1.75],[104.75,2.75],[100.5,12.75]]]]},
{"id":"kjcn","name":"KJCN (Kimchi-Japan Cable Network)","price":1,"age":"mid","blurb":tr('cables.busan_to_kyushu_the_shortest_way'),"pairs":[["icn","fuk",[[126,36.75],[126,34],[130,34]]]]},
{"id":"pdscn","name":"Pan de Sal Cable Network","price":0.9,"age":"new","blurb":tr('cables.the_philippines_longest_domestic_cable_fresh'),"pairs":[["mnl","ceb",[[120.6,14.4],[120.45,13.95],[120.85,13.6],[121.9,12.9],[122.7,12.3],[123.6,11.6],[124.2,11.2],[124.15,10.5]]],["ceb","dvo",[[124.05,10.2],[124.1,9.6],[124.5,8.9],[124.62,8.55]]],["mnl","dvo",[[121.6,13.85],[122.1,13.2],[122.9,12.45],[123.75,11.7],[124.3,11.1],[124.25,10.3],[124.1,9.6],[124.5,8.9],[124.62,8.55]]]]},
{"id":"dfon","name":"Philippines Long Distance Relationship","price":1.1,"age":"mid","blurb":tr('cables.the_incumbent_s_own_line_south'),"pairs":[["mnl","ceb",[[121.6,13.85],[122.1,13.2],[122.9,12.45],[123.75,11.7],[124.3,11.1],[124.2,10.45]]],["ceb","dvo",[[123.95,10.05],[124.4,9.5],[124.75,9.05]]]]},
{"id":"vismin","name":"Diverge VisMin Express","price":0.9,"age":"new","blurb":tr('cables.the_upstart_s_own_cable_from'),"pairs":[["ceb","dvo",[[124.15,10.9],[124.25,10.2],[124.4,9.3],[124.65,8.6]]]]},
];
const CAB=Object.fromEntries(CABLES.map(c=>[c.id,c]));
const CABLE_PAIRS=CABLES.flatMap(c=>c.pairs.map(([a,b,mid])=>{const A=CITY[a],B=CITY[b];const near=(x,ref)=>x+W*Math.round((ref-x)/W);

View file

@ -37,7 +37,11 @@ NETS.push(
{id:'bcd',name:'Bell Canad-eh',asn:577,type:'eye',cc:'CA',pol:'selective',minIx:10,minPni:30,share:.01,col:'#00549A',pops:['hfx','tor','mtl','nyc','chi','ott','cal','van'],ix:['tor','mtl','ott'],blurb:tr('networks.polite_enormous_and_sorry_about_the')});
NETS.push(
{id:'tsf',name:'Telkom-selfie',asn:7713,type:'eye',cc:'ID',pol:'selective',minIx:10,minPni:30,share:.01,col:'#E4002B',pops:['jkt','sin'],ix:['jkt','sin'],blurb:tr('networks.indonesia_s_mobile_giant_every')},
{id:'pld',name:'PLDTea Time',asn:9299,type:'eye',cc:'PH',pol:'selective',minIx:10,minPni:30,share:.008,up:['ntt','tat'],col:'#D62027',pops:['mnl','hkg','sin'],ix:['hkg'],blurb:tr('networks.philippine_giant_peering_requests')},
{id:'pld',name:'PLDTea Time',asn:9299,type:'t2',cc:'PH',pol:'selective',up:['ntt','tat'],minIx:10,minPni:30,share:.008,price:7,col:'#D62027',pops:['mnl','ceb','dvo','hkg','sin'],ix:['hkg','mnl~3'],blurb:tr('networks.philippine_giant_peering_requests')},
{id:'cvg',name:'Diverge',asn:17639,type:'eye',cc:'PH',pol:'open',up:['ntt','tat'],share:.005,col:'#F26B21',pops:['mnl','ceb','dvo','hkg','sin'],ix:['mnl','mnl~2','hkg','sin'],blurb:tr('networks.the_fiber_upstart_from_the_provinces')},
{id:'smt',name:'Smarty Pants',asn:10139,type:'eye',cc:'PH',pol:'selective',up:['pld'],minIx:10,minPni:30,share:.006,col:'#00A859',pops:['mnl'],ix:[],blurb:tr('networks.pldtea_time_s_mobile_sibling_buy')},
{id:'dto',name:'Ditto',asn:139831,type:'eye',cc:'PH',pol:'open',up:['ntt','tat'],share:.002,col:'#B5121B',pops:['mnl'],ix:['mnl','mnl~2'],blurb:tr('networks.the_third_mobile_network_same_towers')},
{id:'rsh',name:'RISE & Shine',asn:63927,type:'eye',cc:'PH',pol:'open',up:['ntt','tat'],share:.002,col:'#F5A623',pops:['mnl','ceb','dvo','sin','hkg','fra','ams','lon','sto'],ix:['mnl','mnl~2','mnl~3','ceb','dvo','sin','sin~2','hkg','hkg~2','fra','ams','lon','sto'],blurb:tr('networks.up_early_in_cebu_and_already')},
{id:'spk',name:'Spark-le',asn:4771,type:'eye',cc:'NZ',pol:'open',share:.005,col:'#6A2C91',pops:['akl','syd','chc','ivc'],ix:['akl','syd','chc'],blurb:tr('networks.new_zealand_s_shiniest_isp')},
{id:'tsy',name:'Telstraya',asn:1221,type:'t2',cc:'AU',pol:'selective',minIx:15,minPni:40,share:.01,price:9,col:'#0099F8',pops:['hnl','gum','suv','pom','nou','hir','syd','per','sin','hkg','lax','tpe','mel','bne','drw','adl','cbr','hba'],ix:['gum','sin','hkg'],blurb:tr('networks.australia_s_big_one_g_day')});
NETS.push(

View file

@ -23,6 +23,8 @@ const XIX=[
{id:'lax~2',c:'lax',name:'Smog-IX',cheap:0.6,take:0.45,blurb:tr('rival_exchanges.you_can_t_see_the_fabric')},
{id:'sin~2',c:'sin',name:'Kopi-IX',cheap:0.6,take:0.5,blurb:tr('rival_exchanges.strong_sweet_and_cheaper_than_the')},
{id:'hkg~2',c:'hkg',name:'Dim-Sum-IX',cheap:0.6,take:0.5,blurb:tr('rival_exchanges.lots_of_small_sessions_on_little')},
{id:'mnl~2',c:'mnl',name:'Bayanihan-IX',cheap:0.3,take:0.4,blurb:tr('rival_exchanges.the_whole_neighbourhood_carries_the')},
{id:'mnl~3',c:'mnl',name:'In-Vitro-IX',cheap:4.4,take:0.2,core:['pld','smt'],blurb:tr('rival_exchanges.grown_in_a_lab_by_the')},
{id:'tok~2',c:'tok',name:'Bento-IX',cheap:0.65,take:0.5,core:['drz','akm','cfl','sgt','msf','amz'],blurb:tr('rival_exchanges.tokyo_has_more_exchanges_than_anyone')},
{id:'syd~2',c:'syd',name:'At-The-Edge IX',cheap:.7,take:0.5,core:['drz','nfx','ggl','fbk','akm','cfl','amz','msf','bdc','slw','abb','voc','stb','spl','lpt','npt','mag'],blurb:tr('rival_exchanges.the_challenger_to_ix_straya_pops')},
{id:'bom~2',c:'bom',name:'Vada-Pav-IX',cheap:0.45,take:0.45,blurb:tr('rival_exchanges.mumbai_s_street_food_exchange_fast')},

View file

@ -27,7 +27,7 @@ NETS.push(
{id:'fet',name:'Far EasTone-Deaf',asn:9674,type:'eye',cc:'TW',pol:'selective',minIx:3,minPni:12,share:.003,up:['ntt'],col:'#E60012',pops:['tpe','hkg'],ix:['tpe'],blurb:tr('homegrown_eyeballs.taiwan_s_number_three_never_hears')},
{id:'fre',name:'Free as in Beer',asn:12322,type:'eye',cc:'FR',pol:'selective',minIx:6,minPni:20,share:.006,up:['cog','lvl'],col:'#CD1E25',pops:['par','mrs','ams','lon','fra'],ix:['par','mrs'],blurb:tr('homegrown_eyeballs.the_challenger_that_made_french_broadband')},
{id:'frs',name:'Yas Queen Sénégal',asn:37649,type:'eye',cc:'SN',pol:'open',share:.0008,up:['tat','tly'],col:'#FFD100',pops:['dkr'],ix:['dkr'],blurb:tr('homegrown_eyeballs.senegal_s_number_two_freshly_renamed')},
{id:'glb',name:'Globe-Trotter Telecom',asn:4775,type:'eye',cc:'PH',pol:'selective',minIx:3,minPni:15,share:.006,up:['ntt','tat'],col:'#0056A2',pops:['mnl','hkg','sin'],ix:['hkg','sin'],blurb:tr('homegrown_eyeballs.the_philippines_other_mobile_giant_roaming')},
{id:'glb',name:'Globe-Trotter Telecom',asn:4775,type:'t2',cc:'PH',pol:'selective',minIx:3,minPni:15,share:.006,price:6,up:['ntt','tat'],col:'#0056A2',pops:['mnl','ceb','dvo','hkg','sin'],ix:['mnl','mnl~2','hkg','sin'],blurb:tr('homegrown_eyeballs.the_philippines_other_mobile_giant_roaming')},
{id:'gph',name:'Grameen Machine',asn:24389,type:'eye',cc:'BD',pol:'selective',minIx:3,minPni:12,share:.004,up:['tat','ntt'],col:'#19AAF8',pops:['dac','sin'],ix:['dac'],blurb:tr('homegrown_eyeballs.bangladesh_s_biggest_mobile_network_a')},
{id:'hkb',name:'Ding-Ding Broadband',asn:9269,type:'eye',cc:'HK',pol:'open',share:.002,up:['ntt','cog'],col:'#6A2C91',pops:['hkg'],ix:['hkg'],blurb:tr('homegrown_eyeballs.fibre_to_every_tower_block_rung')},
{id:'hkt',name:'Net-Vigour HK',asn:4760,type:'eye',cc:'HK',pol:'selective',minIx:5,minPni:20,share:.004,up:['ntt','tat'],col:'#00A0E1',pops:['hkg','sin','tok','lax'],ix:['hkg'],blurb:tr('homegrown_eyeballs.hong_kong_s_incumbent_broadband_full')},

View file

@ -11,7 +11,7 @@ const INTERNS={
// The orders, in the order the panel shows them. pop: can be switched off per POP. cap: default monthly budget, of setup
// fees, or (mo) of the running costs the order adds, for caches, which are free to rack but cost rent every month.
const OPS=[
{k:'transit',i:'📈',pop:1,cap:50000,t:N_('ops.o_transit'),d:N_('ops.o_transit_d'),p:{x:{d:1.5,v:[1.25,1.5,2,3],l:N_('ops.p_x'),f:v=>v+'×'},prov:{d:'cheap',ok:v=>v==='cheap'||(isNet(v)&&!!NET[v].price),l:N_('ops.p_prov')}}},
{k:'transit',i:'📈',pop:1,cap:50000,t:N_('ops.o_transit'),d:N_('ops.o_transit_d'),p:{x:{d:1.5,v:[1.25,1.5,2,3],l:N_('ops.p_x'),f:v=>v+'×'},prov:{d:'cheap',ok:v=>v==='cheap'||v==='have'||(isNet(v)&&!!NET[v].price),l:N_('ops.p_prov')}}},
{k:'routers',i:'🧠',pop:1,cap:250000,t:N_('ops.o_routers'),d:N_('ops.o_routers_d'),p:{at:{d:80,v:[60,70,80,90],l:N_('ops.p_at'),f:v=>v+'%'},how:{d:'auto',v:['auto','add','swap'],l:N_('ops.p_how'),f:v=>tr({auto:N_('ops.how_auto'),add:N_('ops.how_add'),swap:N_('ops.how_swap')}[v])}}},
{k:'caches',i:'📦',pop:1,cap:5000,mo:1,t:N_('ops.o_caches'),d:N_('ops.o_caches_d'),p:{g:{d:5,v:[1,5,10,25,50],l:N_('ops.p_g'),f:v=>fmtG(v)}}},
{k:'ix',i:'🔀',t:N_('ops.o_ix'),d:N_('ops.o_ix_d'),p:{}},
@ -137,15 +137,19 @@ const OPS_RUN={
for(const c of opsPops('transit')){let ts=S.transit.filter(t=>t.city===c);if(!ts.length)continue;
// Thirty days of 95th-percentile-ish history per port; their peaks summed is a safe (high) estimate of the POP's peak.
const peak=ts.reduce((a,t)=>a+(t.hist||[]).reduce((m,v)=>Math.max(m,v),0),0);if(!(peak>0))continue;
const n=opsProv(c);if(!n)continue;
// "Already connected" (#227): only the providers you buy from here, the smallest first, never a new contract.
const have=opsP('transit','prov')==='have',n=have?null:opsProv(c);if(!have&&!n)continue;
const grow=t=>{const k=t.n||1,up=t.tier+1;
if(k<4&&portOk(c,t.tier))return {cost:PORT[t.tier].setup,go:()=>ACT.lagT({id:t.id,d:1}),w:'+1×'+PORT[t.tier].n};
if(PORT[up]&&portShown(up)&&portOk(c,up))return {cost:PORT[up].setup*k,go:()=>ACT.buyTransit({city:c,net:t.net,tier:up}),w:PORT[t.tier].n+'→'+PORT[up].n};
if(k<LAG_MAX&&portOk(c,t.tier))return {cost:PORT[t.tier].setup,go:()=>ACT.lagT({id:t.id,d:1}),w:'+1×'+PORT[t.tier].n};return null;};
for(let step=0;step<4;step++){const cap=ts.reduce((a,t)=>a+lagCap(PORT[t.tier].g,t.n),0);if(cap>=N*peak)break;
const t=ts.find(x=>x.net===n.id);let job=null;
if(t){const k=t.n||1,up=t.tier+1;
if(k<4&&portOk(c,t.tier))job={cost:PORT[t.tier].setup,go:()=>ACT.lagT({id:t.id,d:1}),w:'+1×'+PORT[t.tier].n};
else if(PORT[up]&&portShown(up)&&portOk(c,up))job={cost:PORT[up].setup*k,go:()=>ACT.buyTransit({city:c,net:n.id,tier:up}),w:PORT[t.tier].n+'→'+PORT[up].n};
else if(k<LAG_MAX&&portOk(c,t.tier))job={cost:PORT[t.tier].setup,go:()=>ACT.lagT({id:t.id,d:1}),w:'+1×'+PORT[t.tier].n};}
else{const need=N*peak-cap,ok=PORT.map((P,i)=>i).filter(i=>portShown(i)&&portOk(c,i)),i=ok.find(i=>PORT[i].g>=need)??ok.at(-1);
if(i!==undefined)job={cost:PORT[i].setup,go:()=>ACT.buyTransit({city:c,net:n.id,tier:i}),w:'+'+PORT[i].n};}
let job=null;
if(have){for(const t of ts.slice().sort((a,b)=>lagCap(PORT[a.tier].g,a.n)-lagCap(PORT[b.tier].g,b.n)||transitPerG(NET[a.net],c,!!a.premium)-transitPerG(NET[b.net],c,!!b.premium))){job=grow(t);if(job)break;}}
else{const t=ts.find(x=>x.net===n.id);
if(t)job=grow(t);
else{const need=N*peak-cap,ok=PORT.map((P,i)=>i).filter(i=>portShown(i)&&portOk(c,i)),i=ok.find(i=>PORT[i].g>=need)??ok.at(-1);
if(i!==undefined)job={cost:PORT[i].setup,go:()=>ACT.buyTransit({city:c,net:n.id,tier:i}),w:'+'+PORT[i].n};}}
if(!job||!X.can('transit',job.cost)||!X.pay('transit',job.go))break;
X.did('transit',c+' '+job.w);ts=S.transit.filter(t=>t.city===c);}}},
optics(X){const at=opsP('optics','at')/100;

View file

@ -21,7 +21,7 @@ function sanitize(s){
if(!isCity(s.home))s.home=Object.keys(s.pops)[0]||'fra';
opsSanitize(s);
const tier=v=>int(v,0,PORT.length-1,0),lag=v=>int(v,1,LAG_MAX,1),sid=v=>String(v==null?uid():v).slice(0,40);
s.links=s.links.filter(l=>l&&isCity(l.a)&&isCity(l.b)&&l.a!==l.b).map(l=>{l.id=sid(l.id);if(l.list!==undefined){const L=l.list;if(l.kind==='df'&&L&&typeof L==='object'&&!Array.isArray(L)){const w=int(L.w,0,256,0),p=int(L.p,0,2,0);if(w||p)l.list={w,p};else delete l.list;}else delete l.list;}l.km=num(l.km,kmBetween(l.a,l.b));l.mo=num(l.mo,0);l.cut=num(l.cut,0);if(l.pairs!==undefined)l.pairs=Math.min(l.sub?SUB_PAIRS_MAX:s.lvl>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,Math.max(1,Math.floor(+l.pairs)||1));if(l.kind!=='df'&&l.kind!=='vxc')l.kind='wave';if(l.kind==='wave')l.tier=int(l.tier,0,LT.length-1,0);if(l.cable&&!own(CAB,l.cable))l.cable=null;if(l.kind==='vxc'&&!own(VXC,l.vt))l.vt=0;if(l.kind==='df'){if(!own(DF_SYS,l.sys))l.sys='lite';l.ch=Array.isArray(l.ch)?l.ch.filter(o=>own(OPT,o)):[];l.ready=num(l.ready,0);for(const k of Object.keys(SUB_UPGRADES)){const f='sub'+k;if(l[f]!==undefined){if(l.own&&l.sub&&Number.isFinite(l[f])&&l[f]>=0)l[f]=Math.round(l[f]);else delete l[f];}}if(l.seaPath!==undefined){if(l.own&&l.sub&&Array.isArray(l.seaPath)&&l.seaPath.length>=2&&l.seaPath.length<=2048&&l.seaPath.every(p=>Array.isArray(p)&&p.length===2&&p.every(Number.isFinite)&&Math.abs(p[0])<=180&&Math.abs(p[1])<=90))l.seaPath=l.seaPath.map(p=>p.slice());else delete l.seaPath;}if(l.paid!==undefined){if(l.own&&l.sub&&Number.isFinite(l.paid)&&l.paid>=0)l.paid=Math.round(l.paid);else delete l.paid;}if(l.own&&l.sub&&!own(SEA_DESIGNS,l.seaDesign))l.seaDesign='standard';l.regen=int(l.regen,0,REGEN_MAX,0);}const deg=v=>v&&typeof v==='object'?{until:num(v.until,0),f:Math.min(1,Math.max(0,num(v.f,1)))}:null;if(l.loss)l.loss=deg(l.loss);return l;});
s.links=s.links.filter(l=>l&&isCity(l.a)&&isCity(l.b)&&l.a!==l.b).map(l=>{l.id=sid(l.id);if(l.list!==undefined){const L=l.list;if(l.kind==='df'&&L&&typeof L==='object'&&!Array.isArray(L)){const w=int(L.w,0,256,0),p=int(L.p,0,2,0);if(w||p)l.list={w,p};else delete l.list;}else delete l.list;}l.km=num(l.km,kmBetween(l.a,l.b));l.mo=num(l.mo,0);l.cut=num(l.cut,0);if(l.pairs!==undefined)l.pairs=Math.min(l.sub?SUB_PAIRS_MAX:s.lvl>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,Math.max(1,Math.floor(+l.pairs)||1));if(l.kind!=='df'&&l.kind!=='vxc')l.kind='wave';if(l.kind==='wave')l.tier=int(l.tier,0,LT.length-1,0);if(l.cable&&(!own(CAB,l.cable)||!cablePair(l.cable,l.a,l.b)))l.cable=null;if(l.kind==='vxc'&&!own(VXC,l.vt))l.vt=0;if(l.kind==='df'){if(!own(DF_SYS,l.sys))l.sys='lite';l.ch=Array.isArray(l.ch)?l.ch.filter(o=>own(OPT,o)):[];l.ready=num(l.ready,0);for(const k of Object.keys(SUB_UPGRADES)){const f='sub'+k;if(l[f]!==undefined){if(l.own&&l.sub&&Number.isFinite(l[f])&&l[f]>=0)l[f]=Math.round(l[f]);else delete l[f];}}if(l.seaPath!==undefined){if(l.own&&l.sub&&Array.isArray(l.seaPath)&&l.seaPath.length>=2&&l.seaPath.length<=2048&&l.seaPath.every(p=>Array.isArray(p)&&p.length===2&&p.every(Number.isFinite)&&Math.abs(p[0])<=180&&Math.abs(p[1])<=90))l.seaPath=l.seaPath.map(p=>p.slice());else delete l.seaPath;}if(l.paid!==undefined){if(l.own&&l.sub&&Number.isFinite(l.paid)&&l.paid>=0)l.paid=Math.round(l.paid);else delete l.paid;}if(l.own&&l.sub&&!own(SEA_DESIGNS,l.seaDesign))l.seaDesign='standard';l.regen=int(l.regen,0,REGEN_MAX,0);}const deg=v=>v&&typeof v==='object'?{until:num(v.until,0),f:Math.min(1,Math.max(0,num(v.f,1)))}:null;if(l.loss)l.loss=deg(l.loss);return l;});
for(const l of s.links)repairSubUpgradeDates(l,s.day);
/* Metrics moved from each link to its city pair (#122). Older saves routed a pair at the lowest metric of its
links, with all of them carrying traffic, so the pair keeps that metric and nothing goes on standby. */

View file

@ -5,7 +5,7 @@ const txComp=c=>{const q=CITY_PDB[c];return q?clamp((1000/Math.max(q[1],10))**0.
// No neutral data center means building your own room: POPs cost more to build and to run.
const colo=c=>{const q=CITY_PDB[c];return !q?1:q[0]===0?1.5:q[0]<=2?1.25:1;};
const popMo=c=>Math.round(POP_MO*colo(c));
function regionMult(c){const C=CITY[c];if(!C||C.cn)return 1;if(C.kr)return KR_TRANSIT;if(C.au)return AU_TRANSIT;if(C.tape)return 1.5;const base=C.reg==='AS'?2.5:C.reg==='AF'?2:C.reg==='OC'?1.8:C.reg==='SA'?1.6:1;return Math.round(base*txComp(c)*10)/10;}
function regionMult(c){const C=CITY[c];if(!C||C.cn)return 1;if(C.kr)return KR_TRANSIT;if(C.au)return AU_TRANSIT;if(C.ph)return PH_TRANSIT;if(C.tape)return 1.5;const base=C.reg==='AS'?2.5:C.reg==='AF'?2:C.reg==='OC'?1.8:C.reg==='SA'?1.6:1;return Math.round(base*txComp(c)*10)/10;}
// A network's own markup on top of that, where it is far from home (Glowball Sakura Lager in Asia and New Zealand).
// What a home pays, against the usual bill.
const arpuOf=c=>CITY[c].arpu||(CITY[c].kr&&scnRule('sender')?KR_ARPU:1);
@ -34,7 +34,7 @@ function linkLat(l){const f=l.kind==='df'?(l.own?(l.sub?seaLatencyFactor(l):1.1)
const WAVE_LAND={EU:0.65,AM:1,SA:1.6,AS:1.4,OC:1.2,AF:2.2},WAVE_SUB={EU:0.8,AM:1,SA:2,AS:1.5,OC:1.5,AF:4.5};
const WAVE_NAME={EU:tr('common.europe'),AM:tr('common.north_america'),SA:tr('common.south_america'),AS:tr('common.asia'),OC:tr('common.oceania'),AF:tr('common.africa')};
function waveMarket(a,b,sub){const ra=CITY[a].reg,rb=CITY[b].reg,T=sub?WAVE_SUB:WAVE_LAND,au=sub?AU_WAVE.sub:AU_WAVE.land;
const fa=CITY[a].au?au:(T[ra]||1),fb=CITY[b].au?au:(T[rb]||1),reg=sub&&nullPair(a,b)?AU_WAVE.ew:sub?Math.max(fa,fb):(fa+fb)/2;
const fa=CITY[a].au?au:(T[ra]||1),fb=CITY[b].au?au:(T[rb]||1),reg=sub&&nullPair(a,b)?AU_WAVE.ew:sub&&CITY[a].ph&&CITY[b].ph?PH_WAVE:sub?Math.max(fa,fb):(fa+fb)/2;
const key=a<b?a+b:b+a,mood=0.85+(hstr(key+'|mood')%31)/100;
const ero=Math.max(0.55,Math.pow(0.92,Math.floor((S?S.day:0)/360)));
return {m:reg*mood*ero,reg,mood,ero};}

View file

@ -8,7 +8,7 @@ function fireEvent(){
if(Object.keys(S.pops).some(ruCity))opts.push('runet','runet');
if(S.pops.doh&&Object.keys(S.pops).some(c=>CITY[c].gcc||CITY[c].uae)&&!(S.ev.gulf>S.day))opts.push('gulf');
if(Object.keys(S.pops).some(c=>CITY[c].saudi))opts.push('mega');
if(['mnl','hkg','tok','icn','sha','jkt'].some(c=>S.pops[c]))opts.push('typhoon');
if(['mnl','ceb','hkg','tok','icn','sha','jkt'].some(c=>S.pops[c]))opts.push('typhoon');
if(S.pops.icn&&!S.krExit)opts.push('krexit');if(S.pops.icn&&!(S.ev.krroute>S.day))opts.push('krroute');
if(Object.keys(S.pops).some(cnCity)||R.gfwCross>1)opts.push('golden','gfw');
if(S.transit.some(t=>t.net==='cog'))opts.push('depeer','depeer');
@ -34,7 +34,7 @@ function fireEvent(){
if(e==='hijack'){const nh=NETS.map(n=>n.id).filter(()=>Math.random()<0.6),old=S.ev.rpki&&S.ev.rpki.until>S.day?S.ev.rpki:null;S.ev.rpki=old?{until:Math.max(old.until,S.day+1),nets:[...new Set(old.nets.concat(nh))]}:{until:S.day+1,nets:nh};addInc({type:'hijack',ref:'rpki',until:S.day+1,msg:tr('events.a_state_owned_isp_accidentally'),cost:1500,fix:tr('events.call_everyone_you_know')});toast(tr('events.bgp_hijack_someone_else_is'),'bad');sfx('alert');return;}
if(e==='landban'){const lc=[...new Set(CABLE_PAIRS.flatMap(c=>[c.a,c.b]))];const c=pick(lc);S.ev.landban={city:c,until:S.day+45};toast(tr('events.landing_permit_dispute_in_city_two',{city:CITY[c].name}),'bad');return;}
if(e==='shutdown'){const ps=Object.keys(S.pops).filter(c=>c!==S.home);if(!ps.length)return;const c=pick(ps);S.pops[c].down=Math.max(S.pops[c].down||0,S.day+1);addInc({type:'shutdown',ref:c,until:S.day+1,msg:tr('events.regulators_ordered_every_network_in',{city:CITY[c].name}),cost:0});toast(tr('events.ordered_offline_in_city_a_government',{city:CITY[c].name}),'bad');sfx('alert');return;}
if(e==='typhoon'){const c=pick(['mnl','hkg','tok','icn','sha','jkt'].filter(x=>S.pops[x])),p=S.pops[c],nm=pick([tr('common.typhoon_bandwidth'),tr('common.typhoon_latency'),tr('common.typhoon_jitter'),tr('events.typhoon_packet_loss')]);
if(e==='typhoon'){const c=pick(['mnl','ceb','hkg','tok','icn','sha','jkt'].filter(x=>S.pops[x])),p=S.pops[c],nm=pick([tr('common.typhoon_bandwidth'),tr('common.typhoon_latency'),tr('common.typhoon_jitter'),tr('events.typhoon_packet_loss')]);
if(p.gen){S.stats.survived++;toast(tr('events.name_hits_city_the_grid_is',{name:nm,city:CITY[c].name}),'good');sfx('alert');return;}
p.down=Math.max(p.down||0,S.day+2);addInc({type:'power',ref:c,until:p.down,msg:tr('events.name_knocked_out_power_in_city',{name:nm,city:CITY[c].name}),cost:7000,fix:tr('incidents.rent_a_generator')});toast(tr('events.name_hits_city_power_is_out',{name:nm,city:CITY[c].name}),'bad');sfx('alert');compute();return;}
if(e==='runet'){S.ev.runet=S.day+1;toast(tr('events.sovereign_internet_drill_moscow'),'bad');sfx('alert');compute();return;}

View file

@ -45,6 +45,8 @@ const ACT={
if(o.a==='cust'){if(S.biz.some(b=>b.id===o.v)){ACT.custGo({id:o.v});return;}toast(tr('interface.that_customer_is_gone_the_contract'),'');return;}
if(o.a==='bank'){ACT.bank({});return;}if(o.a==='ops'){ACT.opsOpen();return;}if(o.a==='tab'&&LOG_TABS.includes(o.v))ACT.leftTab({t:o.v});},
logAll:()=>{UI.logAll=!UI.logAll;renderLeft();},
findOpen:()=>findOpen(),
findGo:({city})=>{if(!isCity(city))return;closeModal();$('dash').hidden=true;ACT.focusCity({city});},
focusCity:({city})=>{selectCity(city);const C=CITY[city];cam.x=C.x;cam.y=C.y;cam.z=Math.max(cam.z,1.2);if(innerWidth<760)UI.leftOpen=false;renderLeft();},
selLink:({id})=>selectLink(id),
};

View file

@ -10,7 +10,7 @@ Object.assign(ACT,{
toast(esc(tr('ops.fired',{name:nm})),'');after();opsModal();},
opsToggle:({k})=>{if(!opsHired()||!own(OPSK,k))return;S.ops.on[k]=!S.ops.on[k];sfx('click');after();opsModal();},
opsParam:({k,p})=>{if(!opsHired()||!own(OPSK,k)||!own(OPSK[k].p,p))return;const P=OPSK[k].p[p];let v;
if(p==='prov'){const ids=['cheap',...NETS.filter(n=>n.price&&Object.keys(S.pops).some(c=>sellsAt(n,c))).map(n=>n.id)];v=opsCycle(ids,opsP(k,p));}else v=opsCycle(P.v,opsP(k,p));
if(p==='prov'){const ids=['cheap','have',...NETS.filter(n=>n.price&&Object.keys(S.pops).some(c=>sellsAt(n,c))).map(n=>n.id)];v=opsCycle(ids,opsP(k,p));}else v=opsCycle(P.v,opsP(k,p));
(S.ops.p[k]||(S.ops.p[k]={}))[p]=v;sfx('click');after();opsModal();},
opsCap:({k})=>{if(!opsHired()||!own(OPSK,k)||!OPSK[k].cap)return;S.ops.cap[k]=opsCycle(opsCaps(k),opsCap(k));sfx('click');after();opsModal();},
opsFloor:()=>{if(!opsHired())return;S.ops.floor=opsCycle(OPS_FLOORS,S.ops.floor);sfx('click');after();opsModal();},

View file

@ -5,7 +5,7 @@ function opsCard(){if(!S)return '';const last=opsHired()&&S.ops.log[0];
<div class="meta">${opsHired()?esc(last?opsEntry(last):tr('ops.l_quiet',{name:opsName()})):opsCanHire()?tr('ops.hire_pitch_short'):tr('ops.locked',{lv:2})}</div>
<div class="btns">${btn(opsHired()?tr('ops.standing_orders'):tr('ops.hire_an_intern'),'opsOpen',{},opsHired()?'sm':'pink sm',!opsHired()&&!opsCanHire())}</div></div>`;}
const opsEntry=e=>(e.f!==undefined?opsFFLine(e)+' ':'')+(e.r.length||e.f===undefined?opsLine(e):'');
function opsVal(k,p){const P=OPSK[k].p[p],v=opsP(k,p);return p==='prov'?(v==='cheap'?tr('ops.cheapest'):NET[v].name):P.f(v);}
function opsVal(k,p){const P=OPSK[k].p[p],v=opsP(k,p);return p==='prov'?(v==='cheap'?tr('ops.cheapest'):v==='have'?tr('ops.already_connected'):NET[v].name):P.f(v);}
function opsOrderHtml(d){const k=d.k,on=S.ops.on[k],cap=d.cap?opsCap(k):0,sp=S.ops.spent[k]||0,am=Math.round(S.ops.addMo[k]||0);
return `<div class="ops-o${on?' on':''}"><div class="ops-h"><span class="ops-i" aria-hidden="true">${d.i}</span><div class="grow"><div class="nm">${tr(d.t)}</div><div class="meta">${tr(d.d)}${k==='caches'?' '+tr('ops.caches_rent',{price:fmt$(CACHE_MO)}):''}</div></div>
<button class="b sm ${on?'green':'ghost'}" data-act="opsToggle" data-args='{"k":"${k}"}' aria-pressed="${on}" aria-label="${esc(tr(d.t))}">${on?tr('common.on'):tr('ops.paused')}</button></div>

View file

@ -0,0 +1,30 @@
/* ---------- Find a city (#218): a search box that jumps the map there ----------
Matches the city's name, its country (in the player's language and in English) and its exchange and data center
names, so "Deutschland", "Germany" or "DE-CIX" all find Frankfurt. Press / anywhere, or the 🔍 chip in the HUD. */
const FIND_N=8;
const fold=s=>String(s||'').normalize('NFD').replace(/[̀-ͯ]/g,'').toLowerCase().trim();
// Country names, built once per page: they never change while playing.
let FIND_IX=null;
function findIndex(){if(FIND_IX)return FIND_IX;let dn=null,en=null;try{dn=new Intl.DisplayNames([LANG],{type:'region'});en=new Intl.DisplayNames(['en'],{type:'region'});}catch(e){}
const cn=(d,cc)=>{try{return d?d.of(cc)||'':'';}catch(e){return '';}};
FIND_IX=Object.values(CITY).map(C=>{const land=cn(dn,C.cc)||C.cc||'';return {id:C.id,name:fold(C.name),land,ctry:fold(land+' '+cn(en,C.cc)+' '+(C.cc||'')),xtra:fold((C.ix||'')+' '+(C.dc||''))};});return FIND_IX;}
// Best matches first: the name starts with it, a word of the name does, the name has it, then country, then exchange or DC.
function findCities(q){q=fold(q);const mine=c=>S&&S.pops&&S.pops[c]?0:1;
if(!q)return S&&S.pops?Object.keys(S.pops).filter(isCity).sort((a,b)=>CITY[a].name.localeCompare(CITY[b].name)).slice(0,FIND_N):[];
const out=[];for(const e of findIndex()){const n=e.name;
const s=n.startsWith(q)?0:n.split(/[\s\-.'()]+/).some(w=>w.startsWith(q))?1:n.includes(q)?2:e.ctry.includes(q)?3:e.xtra.includes(q)?4:-1;
if(s>=0)out.push([s,mine(e.id),-(CITY[e.id].P||0),e.id]);}
return out.sort((a,b)=>a[0]-b[0]||a[1]-b[1]||a[2]-b[2]).slice(0,FIND_N).map(r=>r[3]);}
function findRows(q){const ids=findCities(q),land=c=>(findIndex().find(e=>e.id===c)||{}).land||'';
if(!ids.length)return `<p class="meta" style="margin:10px 0">${q.trim()?tr('find.no_city_matches_q',{q:esc(q.trim())}):tr('find.type_a_city_a_country')}</p>`;
return ids.map((c,i)=>{const C=CITY[c],p=S&&S.pops&&S.pops[c];
return `<button class="row findrow${i?'':' on'}" data-act="findGo" data-args="${esc(JSON.stringify({city:c}))}"><span class="grow"><span class="nm">${p?'📍 ':''}${esc(C.name)}</span><span class="meta">${esc([land(c),C.ix].filter(Boolean).join(' · '))}${p?' · '+tr('find.your_pop'):''}</span></span><span aria-hidden="true">›</span></button>`;}).join('');}
function findOpen(){if(!S||!UI.started)return;
openModal(`<h2 style="font-size:24px;margin:0 0 10px">🔍 ${tr('find.find_a_city')}</h2><input class="t" id="findIn" type="search" enterkeyhint="go" autocomplete="off" autocapitalize="off" spellcheck="false" placeholder="${esc(tr('find.city_country_or_exchange'))}" aria-label="${esc(tr('find.find_a_city'))}" aria-controls="findList">
<div id="findList" class="findlist" role="list">${findRows('')}</div>${isPhone()?'':`<p class="meta" style="margin:8px 0 0">${tr('find.press_slash_to_search_from')}</p>`}`,'find');
const el=$('findIn');if(el)el.focus();}
document.addEventListener('input',e=>{if(e.target.id!=='findIn')return;const L=$('findList');if(L)L.innerHTML=findRows(e.target.value);});
document.addEventListener('keydown',e=>{
if(e.target.id==='findIn'){if(e.key==='Escape'){closeModal();return;}if(e.key==='Enter'){e.preventDefault();const c=findCities(e.target.value)[0];if(c)ACT.findGo({city:c});}return;}
if(e.key!=='/'||e.ctrlKey||e.metaKey||e.altKey||(e.target.closest&&e.target.closest('input,textarea,select,[contenteditable]')))return;
if(!S||!UI.started||!$('modal').hidden)return;e.preventDefault();findOpen();});

View file

@ -30,10 +30,13 @@ function segDist(x,y,a,b){const dx=b[0]-a[0],dy=b[1]-a[1],L=dx*dx+dy*dy||1;const
function drawCables(ks){const z=cam.z,selC=UI.drag&&UI.drag.mode==='link'?UI.drag.from:(UI.sel&&UI.sel.type==='city'?UI.sel.id:null),cached=!!(WL.cv&&WL.key&&WL.cab);
if(!selC&&z<1.7&&cached)return;
ctx.font='800 10px Nunito, sans-serif';ctx.textAlign='center';ctx.textBaseline='middle';
// Labels that would sit on another, or on a segment shorter than the name, are left out (a selected city's always show).
const LB=[],lbOk=(x,y,w,sp,hot)=>{const b=[x-w/2-3,y-7,x+w/2+3,y+7];if(!hot){let mn=Infinity,mx=-Infinity,my=Infinity,My=-Infinity;for(const q of sp){mn=Math.min(mn,q[0]);mx=Math.max(mx,q[0]);my=Math.min(my,q[1]);My=Math.max(My,q[1]);}
if(Math.hypot(mx-mn,My-my)<w*0.8)return false;if(LB.some(o=>b[0]<o[2]&&b[2]>o[0]&&b[1]<o[3]&&b[3]>o[1]))return false;}LB.push(b);return true;};
const ar=arOn();for(const cp of CABLE_PAIRS){const C=CAB[cp.cid],hot=!!selC&&(cp.a===selC||cp.b===selC);if(!hot&&cached&&z<1.7)continue;if(ar&&!hot&&!(arKind(cp.a)&&arKind(cp.b)))continue;const col=cableCol(C);
for(const k of ks){const sp=cp.pts.map(p=>toS(p[0],p[1],k));let mn=Infinity,mx=-Infinity;for(const q of sp){if(q[0]<mn)mn=q[0];if(q[0]>mx)mx=q[0];}if(mx<-20||mn>CW+20)continue;
if(hot||!cached){ctx.globalAlpha=hot?0.95:0.4;ctx.strokeStyle=col;ctx.lineWidth=hot?3:1.6;ctx.lineJoin='round';ctx.setLineDash(C.age==='old'?[6,5]:[]);ctx.beginPath();ctx.moveTo(sp[0][0],sp[0][1]);for(let i=1;i<sp.length;i++)ctx.lineTo(sp[i][0],sp[i][1]);ctx.stroke();ctx.setLineDash([]);}
if(hot||(z>=1.7&&!ar)){const m=sp[Math.floor(sp.length/2)];ctx.globalAlpha=hot?1:0.75;ctx.lineWidth=3;ctx.strokeStyle='rgba(255,255,255,.85)';ctx.strokeText(C.name,m[0],m[1]-8);ctx.fillStyle=col;ctx.fillText(C.name,m[0],m[1]-8);}
if((hot||(z>=1.7&&!ar))&&lbOk(sp[Math.floor(sp.length/2)][0],sp[Math.floor(sp.length/2)][1]-8,ctx.measureText(C.name).width,sp,hot)){const m=sp[Math.floor(sp.length/2)];ctx.globalAlpha=hot?1:0.75;ctx.lineWidth=3;ctx.strokeStyle='rgba(255,255,255,.85)';ctx.strokeText(C.name,m[0],m[1]-8);ctx.fillStyle=col;ctx.fillText(C.name,m[0],m[1]-8);}
ctx.globalAlpha=1;}}}
function bezGeom(l,at){const A=CITY[l.a],B=CITY[l.b];const i=at!==undefined?at:lineIdx(l);const key=l.id+'|b'+i;const hit=GEO.get(key);if(hit)return hit;
const bx=A.x+wrapDx(A.x,B.x),by=B.y;const dx=bx-A.x,dy=by-A.y,len=Math.hypot(dx,dy)||1;let nx=-dy/len,ny=dx/len;if(ny>0){nx=-nx;ny=-ny;}

View file

@ -424,7 +424,7 @@
"cables.a_friendly_cable_with_french_manners":"A friendly cable with French manners.",
"cables.a_gateway_from_europe_to_india":"A gateway from Europe to India, through the Red Sea. Pronounced like a very surprised cable.",
"cables.a_quick_hop_across_the_red":"A quick hop across the Red Sea between Egypt and Saudi Arabia.",
"cables.a_rainbow_bridge_from_singapore_to":"A rainbow bridge from Singapore to California, via Jakarta and Manila.",
"cables.a_rainbow_bridge_from_singapore_to":"A rainbow bridge from Singapore to California, via Jakarta, Davao and Guam.",
"cables.a_ring_around_the_caribbean_from":"A ring around the Caribbean from Florida to Central America, older than most of its customers.",
"cables.a_ring_round_east_asia_from":"A ring round East Asia from 2001: Singapore, Hong Kong, Manila, Taipei, Shanghai, Seoul and Tokyo.",
"cables.a_short_cable_across_a_very":"A short cable across a very tense strait.",
@ -570,14 +570,17 @@
"cables.the_emirates_oman_and_pakistan_on":"The Emirates, Oman and Pakistan on one light little cable.",
"cables.the_first_cable_from_south_america":"The first cable from South America to Oceania. 14,000 km of very lonely glass.",
"cables.the_first_subsea_fiber_in_the":"The first subsea fiber in the American Arctic: Nome to Utqiaġvik, then over the North Slope to Anchorage. Sea ice keeps repair ships away half the year.",
"cables.the_incumbent_s_own_line_south":"The incumbent's own line south: overland to Lucena, then under the sea to Cebu. Still calls every night.",
"cables.the_newest_cable_from_south_africa":"The newest cable from South Africa to Madagascar, Réunion and Mauritius, shared by the islands’ own telcos.",
"cables.the_old_workhorse_s_younger_sibling":"The old workhorse’s younger sibling: Los Angeles to Sydney with a branch to Fiji.",
"cables.the_philippines_longest_domestic_cable_fresh":"The Philippines' longest domestic cable, fresh every morning. Luzon to Cebu and Mindanao, island by island.",
"cables.the_pretty_way_around_east_asia":"The pretty way around East Asia.",
"cables.the_previous_generation_still":"The previous generation. Still carries most of Pakistan, Sri Lanka and Bangladesh, held together with hope.",
"cables.the_sea_stallion_blackpool_to":"The Sea Stallion: Blackpool to Denmark, galloping round the north of Scotland.",
"cables.the_sequel_singapore_to_hong_kong":"The sequel: Singapore to Hong Kong, Taiwan, Japan and Korea, lit in 2025.",
"cables.the_seychelles_first_cable_to_tanzania":"The Seychelles’ first cable, to Tanzania, after years on satellite.",
"cables.the_straightest_line_across_the":"The straightest line across the Atlantic. Traders pay double to save a few milliseconds.",
"cables.the_upstart_s_own_cable_from":"The upstart's own cable from Cebu to Mindanao's north coast, then overland to Davao. Laid in a pandemic.",
"cables.tokyo_to_los_angeles_built_by":"Tokyo to Los Angeles, built by a search engine and five telcos holding hands.",
"cables.up_the_west_coast_of_africa":"Up the west coast of Africa. Something on it is always down.",
"cables.west_africa_s_first_big_cable":"West Africa’s first big cable, from Portugal to Cape Town. Old and wobbly, but still holding things up.",
@ -722,6 +725,7 @@
"cities.mexico_s_data_center_boom_town":"Mexico’s data center boom town, high and dry in the middle of the country. Every cloud wants a region here.",
"cities.mexico_s_industrial_capital_a_few":"Mexico’s industrial capital, a few hours from Texas. Factories, steel and grilled goat on weekends.",
"cities.mexico_s_silicon_valley_home_of":"Mexico’s Silicon Valley, home of mariachi and tequila. Chip design by day, music by night.",
"cities.mindanao_s_big_city_and_the":"Mindanao's big city and the Philippines' Pacific door: the trans-Pacific cables land here, south of the typhoon belt.",
"cities.morocco_s_business_capital_on_the":"Morocco’s business capital on the Atlantic, the gateway between Europe and West Africa.",
"cities.most_uae_cables_land_on_this":"Most UAE cables land on this coast, outside the Strait of Hormuz. Getting from here to Dubai means renting from the duopoly.",
"cities.mountains_mines_and_more_bars_per":"Mountains, mines and more bars per head than anywhere else in Brazil. Peering deals get signed over cheese bread.",
@ -794,6 +798,7 @@
"cities.the_old_gateway_to_eastern_europe":"The old gateway to Eastern Europe. Packets still bow politely on the way through.",
"cities.the_only_northeastern_capital_away":"The only northeastern capital away from the sea. Famously hot, with lightning storms that keep the surge protectors busy.",
"cities.the_pacific_gateway_the_andes_sit":"The Pacific gateway. The Andes sit between it and everything else, and the ground shakes now and then.",
"cities.the_philippines_second_city_reached":"The Philippines' second city, reached only by domestic cable. Typhoons pass through on their way north.",
"cities.the_prairie_gateway_between":"The prairie gateway between Vancouver and the rest of Canada. A chinook melts the snow in an afternoon, then it snows again.",
"cities.the_rhine_ruhr_hub_more_carrier":"The Rhine-Ruhr hub: more carrier-neutral data centers than Hamburg or Munich, and an hour from the Dutch border, so fiber to Amsterdam is short and cheap. Order an Altbier here, never a Kölsch.",
"cities.the_seychelles_capital_on_mah":"The Seychelles’ capital on Mahé: 115 islands, giant tortoises and two cables to the mainland.",
@ -2029,6 +2034,13 @@
"fiber_modals.you_need_a_fabric_port_at":"You need a fabric port at one of your POPs first. Open a POP's Infra tab and buy a port on {list}.",
"fiber_modals.your_own_trench_almost_no_rent":"Your own trench: almost no rent, but permits and digging take forever, and delays happen.",
"fiber_modals.your_pop_needs_a_fabric_port":"Your POP · needs a fabric port there",
"find.city_country_or_exchange":"City, country or exchange",
"find.find_a_city":"Find a city",
"find.find_a_city_slash":"Find a city (/)",
"find.no_city_matches_q":"No city matches “{q}”.",
"find.press_slash_to_search_from":"Tip: press <b>/</b> anywhere on the map to search.",
"find.type_a_city_a_country":"Type a city, a country or an exchange.",
"find.your_pop":"your POP",
"game_and_settings.delete_and_start_over":"Delete and start over",
"game_and_settings.export_save_download_a_file":"Export save <small>download a file</small>",
"game_and_settings.import_failed_that_save_is_damaged":"<b>Import failed.</b><br>That save is damaged and could not be loaded. Your current game is untouched.",
@ -2742,6 +2754,7 @@
"networks.philippine_giant_peering_requests":"Philippine giant. Peering requests are reviewed over a cup of tea.",
"networks.pink_eyeball_giant_peering_is":"Pink eyeball giant. Peering is available... for a monthly fee.",
"networks.pink_loud_and_almost_entirely_ipv6":"Pink, loud and almost entirely IPv6-only. Giggles at your IPv4-only CDN.",
"networks.pldtea_time_s_mobile_sibling_buy":"PLDTea Time's mobile sibling. Buy from the big one and you reach this one too.",
"networks.polite_enormous_and_sorry_about_the":"Polite, enormous, and sorry about the bill.",
"networks.portugal_s_incumbent_purrs_when_you":"Portugal’s incumbent. Purrs when you send it traffic.",
"networks.prepaid_mobile_from_paraguay_to":"Prepaid mobile from Paraguay to Guatemala, with a logo that roars.",
@ -2774,6 +2787,7 @@
"networks.the_biggest_network_in_china_its":"The biggest network in China. Its CN-Too premium route skips the congested border, for a price.",
"networks.the_cheapest_plan_in_the_country":"The cheapest plan in the country. Smells like a bargain.",
"networks.the_cloud_it_s_just_someone":"The cloud. It's just someone else's Ashburn.",
"networks.the_fiber_upstart_from_the_provinces":"The fiber upstart from the provinces that went its own way. Open to all.",
"networks.the_kingdom_s_incumbent_once_you":"The Kingdom’s incumbent. Once you are in, you stay in.",
"networks.the_largest_mobile_network_on_earth":"The largest mobile network on Earth. Paid peering only.",
"networks.the_national_carrier_every_punchline":"The national carrier. Every punchline is pre-approved.",
@ -2781,8 +2795,10 @@
"networks.the_other_half_of_the_duopoly":"The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.",
"networks.the_other_half_of_the_uae":"The other half of the UAE duopoly. Does what Etis-a-lot does, in a different colour.",
"networks.the_phone_company_s_favourite_child":"The phone company’s favourite child. A hundred million phones behind it, and your peering request has been “under review” since 1996.",
"networks.the_third_mobile_network_same_towers":"The third mobile network: the same again, but newer. Peers openly to catch up.",
"networks.the_tier_1_that_grew_up":"The Tier 1 that grew up in Sicily. Its Seabone backbone owns the Mediterranean and reaches deep into the Americas, and it still calls Palermo home.",
"networks.ukraine_s_biggest_mobile_network_has":"Ukraine’s biggest mobile network. Has kept working through things most networks never have to plan for.",
"networks.up_early_in_cebu_and_already":"Up early in Cebu and already peering across Asia and Europe. Open to all.",
"networks.updates_so_many_updates":"Updates. So many updates.",
"networks.uruguay_s_state_telco_fast":"Uruguay’s state telco. Fast, everywhere, and a little proud of it.",
"networks.vietnam_s_giant_will_tell_you":"Vietnam’s giant. Will tell you which subsea cable is broken this week.",
@ -2793,6 +2809,7 @@
"notifications.n_min_ago":{"one":"{n} min ago","other":"{n} min ago"},
"notifications.nothing_in_the_last_10_minutes":"Nothing in the last 10 minutes.",
"notifications.show_all_n":"Show all {n}",
"ops.already_connected":"Already connected",
"ops.annie":"Annie",
"ops.annie_d":"Answers from whichever desk is closest. Loves a cheap port and a full IX.",
"ops.anycast_annie":"Anycast Annie",
@ -3323,6 +3340,7 @@
"rival_exchanges.dense_filling_and_very_cheap":"Dense, filling and very cheap.",
"rival_exchanges.every_session_comes_with_a_coffee":"Every session comes with a coffee break. Strictly enforced.",
"rival_exchanges.grilled_ports_served_with_mustard":"Grilled ports, served with mustard and a cold beer.",
"rival_exchanges.grown_in_a_lab_by_the":"Grown in a lab by the incumbent. Its own family is on it; everyone else pays to watch.",
"rival_exchanges.layered_resilient_and_somehow_always":"Layered, resilient and somehow always open.",
"rival_exchanges.lots_of_small_sessions_on_little":"Lots of small sessions on little plates.",
"rival_exchanges.member_owned_and_not_for_profit":"Member-owned and not-for-profit. Smaller than LYNX, but the AGM has biscuits.",
@ -3340,6 +3358,7 @@
"rival_exchanges.the_challenger_to_the_de_kicks":"The challenger to the DE-KICKS fabric, wrapped and ready to go.",
"rival_exchanges.the_long_established_madrid_exchange":"The long-established Madrid exchange. Neutral interconnection, local flavour and a route server that never takes a siesta.",
"rival_exchanges.the_older_johannesburg_exchange_run":"The older Johannesburg exchange, run by the local ISP association. Knock on wood before every maintenance window.",
"rival_exchanges.the_whole_neighbourhood_carries_the":"The whole neighbourhood carries the house together. Free to join, run with the government's blessing.",
"rival_exchanges.tokyo_has_more_exchanges_than_anyone":"Tokyo has more exchanges than anyone can name. This one was started by a broadband giant and comes neatly packed, every member in its own compartment.",
"rival_exchanges.warsaw_has_more_exchanges_than":"Warsaw has more exchanges than anyone can count. This is the second biggest, this week.",
"rival_exchanges.you_can_t_see_the_fabric":"You can’t see the fabric, but it is definitely there.",

View file

@ -117,6 +117,7 @@
<button class="chip noc" id="hNoc" data-act="leftTab" data-args='{"t":"noc"}'><span class="lbl">NOC</span><span class="val num" id="hNocVal" data-i18n="common.all_quiet">All quiet</span><span class="badge" id="hNocNew" hidden></span></button>
<div class="spacer"></div>
<div class="chip"><div class="lbl" data-i18n="common.date">Date</div><div class="val num" id="hDate">Y1 · Jan 1</div></div>
<button class="chip find" data-act="findOpen" aria-label="Find a city" data-i18n-aria-label="find.find_a_city" title="Find a city (/)" data-i18n-title="find.find_a_city_slash"><span aria-hidden="true">🔍</span></button>
<div class="chip speed" role="group" aria-label="Game speed" data-i18n-aria-label="common.game_speed">
<button data-act="speed" data-args='{"v":0}' id="sp0" aria-label="Pause" data-i18n-aria-label="common.pause">❚❚</button>
<button data-act="speed" data-args='{"v":0.5}' id="sp0.5" aria-label="Half speed" data-i18n-aria-label="common.half_speed">½×</button>

View file

@ -29,3 +29,5 @@
.minibar{height:6px;border-radius:4px;background:var(--line);overflow:hidden;margin-top:2px;width:100%}
.minibar i{display:block;height:100%;background:var(--ok)}
/* Find a city: a square chip with just the magnifier. */
#hud .chip.find{justify-content:center;align-items:center;padding:0;width:44px;min-width:44px;font-size:19px;cursor:pointer}

View file

@ -196,3 +196,9 @@ h2 .rn{font-size:18px;vertical-align:middle;padding:2px 4px}
.menu-links .lnk{background:none;border:0;padding:4px 2px;font-weight:700;font-size:14px;font-family:inherit;color:var(--ink2);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.menu-plugs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.mplug{border:2px solid var(--line);border-radius:12px;padding:8px 10px;font-weight:700;font-size:13px;line-height:1.25;color:var(--ink);text-decoration:none;background:var(--soft);display:flex;align-items:center}
/* Find a city: big tap targets, the first result (what Enter picks) highlighted. */
.findlist{margin-top:8px}
.findrow{width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);font:inherit;color:var(--ink);min-height:48px;padding:6px 8px;cursor:pointer;border-radius:0}
.findrow .nm,.findrow .meta{display:block}
.findrow.on{background:var(--soft);border-radius:10px}
.findrow:hover{background:var(--soft)}

View file

@ -36,3 +36,8 @@
.chip{padding:2px 7px}
}
/* Narrow tablets: a slim find chip and slimmer speed buttons keep the HUD on one row. */
@media (min-width:761px) and (max-width:860px){
#hud .chip.find{width:32px;min-width:32px;font-size:15px}
.speed button{min-width:23px;padding-left:2px;padding-right:2px}
}

View file

@ -119,3 +119,5 @@ button,.chip,.b,a{touch-action:manipulation;-webkit-tap-highlight-color:transpar
}
@media (prefers-reduced-motion:reduce){:root:not(.anim-force) *{animation:none !important;transition:none !important}}
:root.no-anim *{animation:none !important;transition:none !important}
/* The narrowest phones: a slimmer find chip so the date still fits. */
@media (max-width:340px){#hud .chip.find{width:34px;min-width:34px;font-size:15px}#hud .menubtn .caret{display:none}}

View file

@ -0,0 +1,29 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
// Zoomed in, cable names sit on their cables. Where short cables crowd (the Philippine islands), a name that would
// land on another is left out, unless the cable touches the selected city.
const labels = (ev, sel) => JSON.parse(ev(`(()=>{ACT.start({});S.nextFail=1e9;S.nextEvent=1e9;UI.sel=${sel ? `{type:'city',id:'${sel}'}` : 'null'};
cam.x=(CITY.mnl.x+CITY.dvo.x)/2;cam.y=(CITY.mnl.y+CITY.dvo.y)/2;cam.z=4.5;const out=[];
ctx.fillText=(t,x,y)=>out.push({t,x,y,w:ctx.measureText(t).width});ctx.strokeText=()=>{};drawCables([0]);return JSON.stringify(out);})()`));
test('cable names never sit on top of each other', () => {
const { ev, errors } = load();
const L = labels(ev);
assert.ok(L.length > 5, 'names are drawn');
assert.ok(L.some(l => l.t === 'Pan de Sal Cable Network'), 'the domestic cables are named');
const hit = (a, b) => Math.abs(a.x - b.x) < (a.w + b.w) / 2 + 6 && Math.abs(a.y - b.y) < 14;
const clash = [];
for (let i = 0; i < L.length; i++) for (let j = i + 1; j < L.length; j++) if (hit(L[i], L[j])) clash.push(`${L[i].t} / ${L[j].t}`);
assert.deepEqual(clash, []);
assert.deepEqual(errors, []);
});
test("a selected city's cables are always named", () => {
const { ev, errors } = load();
const plain = labels(ev).map(l => l.t), sel = labels(ev, 'ceb').map(l => l.t);
for (const n of ['Pan de Sal Cable Network', 'Philippines Long Distance Relationship', 'Diverge VisMin Express']) assert.ok(sel.includes(n), n);
assert.ok(sel.length >= plain.length);
assert.deepEqual(errors, []);
});

75
tests/durations.json Normal file
View file

@ -0,0 +1,75 @@
{
"tests/any-home-city.test.js": 12.0,
"tests/architect.test.js": 20.1,
"tests/automation.test.js": 13.8,
"tests/backbone-core.test.js": 27.5,
"tests/badges-variants.test.js": 20.2,
"tests/build.test.js": 1.3,
"tests/capacity-deals.test.js": 12.6,
"tests/chaos-monkey.test.js": 30.3,
"tests/city-size.test.js": 8.5,
"tests/compute-idempotent.test.js": 10.4,
"tests/ddos-floods.test.js": 22.8,
"tests/ddos-model.test.js": 31.7,
"tests/eyeballs.test.js": 13.0,
"tests/fiber-broker.test.js": 9.7,
"tests/find-city.test.js": 9.6,
"tests/game.test.js": 42.8,
"tests/gameplay-rules.test.js": 42.9,
"tests/gangnam.test.js": 12.3,
"tests/glowball-sakura-lager.test.js": 15.8,
"tests/i18n.test.js": 59.9,
"tests/islands-and-arctic.test.js": 13.7,
"tests/issues.test.js": 103.0,
"tests/language-picker.test.js": 12.5,
"tests/latency.test.js": 11.1,
"tests/levels.test.js": 16.3,
"tests/link-metrics.test.js": 22.0,
"tests/link-trial.test.js": 6.4,
"tests/load-time.test.js": 102.7,
"tests/metric-panel.test.js": 8.1,
"tests/modes.test.js": 41.1,
"tests/more-cables.test.js": 14.3,
"tests/moscow-premium.test.js": 12.0,
"tests/networks-list.test.js": 6.4,
"tests/new-game-speed.test.js": 10.1,
"tests/optic-counts.test.js": 9.7,
"tests/own-asn.test.js": 7.9,
"tests/pages.test.js": 12.4,
"tests/peering-desk.test.js": 13.9,
"tests/peering.test.js": 27.6,
"tests/perf.test.js": 10.9,
"tests/persist.test.js": 16.1,
"tests/pni-all.test.js": 12.5,
"tests/pni-global.test.js": 17.9,
"tests/pni-list.test.js": 15.4,
"tests/pnis-and-sold-out.test.js": 11.6,
"tests/puzzle-monkey.test.js": 7.9,
"tests/puzzles.test.js": 73.3,
"tests/regions.test.js": 80.3,
"tests/release-story.test.js": 2.8,
"tests/report-link.test.js": 12.0,
"tests/router-art.test.js": 7.8,
"tests/routers-per-pop.test.js": 8.1,
"tests/routing-reference.test.js": 11.6,
"tests/rules-locked.test.js": 8.4,
"tests/rules.test.js": 29.4,
"tests/sales-trial.test.js": 33.3,
"tests/save-size.test.js": 16.1,
"tests/save-slots.test.js": 48.5,
"tests/scenarios-playtest.test.js": 113.2,
"tests/sea-routing.test.js": 42.6,
"tests/services.test.js": 15.7,
"tests/specialist.test.js": 14.3,
"tests/speed.test.js": 144.6,
"tests/standing-orders.test.js": 66.8,
"tests/subsea-upgrade-timing.test.js": 13.5,
"tests/supply.test.js": 11.0,
"tests/tier1-cone.test.js": 19.8,
"tests/useless-subsea-upgrades.test.js": 7.2,
"tests/utilities-caches.test.js": 9.5,
"tests/utilities.test.js": 15.6,
"tests/weekly-architect.test.js": 28.7,
"tests/weekly-puzzle.test.js": 145.0,
"tests/weekly-scenario.test.js": 54.4
}

71
tests/find-city.test.js Normal file
View file

@ -0,0 +1,71 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { load } = require('./harness');
const start = "ACT.start({});S.nextFail=1e9;S.nextEvent=1e9";
test('find a city by its name, without accents, by country or by its exchange (#218)', () => {
const { ev, errors } = load();
ev(start);
const find = q => ev(`findCities(${JSON.stringify(q)}).join()`).split(',');
assert.equal(find('amster')[0], 'ams', 'the start of a name');
assert.equal(find('AMSTERDAM')[0], 'ams', 'any case');
assert.equal(find('sao paulo')[0], 'sao', 'accents are optional');
assert.equal(find('paulo')[0], 'sao', 'a word inside the name');
assert.ok(find('germany').includes('fra'), 'the country in English');
assert.ok(find('germany').includes('muc'));
assert.ok(find('Brezn')[0] === 'muc', 'the exchange');
assert.ok(find('germany').length <= ev('FIND_N'), 'a short list');
assert.equal(ev("findCities('zzqqxx').length"), 0);
// Names first, then countries: "san" finds San José before cities in some country with "san" in it.
assert.equal(ev("findCities('san').every((c,i,a)=>i===0||fold(CITY[a[i-1]].name).includes('san')||!fold(CITY[c].name).includes('san'))"), true);
// An empty box lists your own POPs.
assert.equal(ev("findCities('').join()"), ev("Object.keys(S.pops).join()"));
assert.deepEqual(errors, []);
});
test('the search box opens with / or the HUD button, Enter jumps to the first city, Escape closes', () => {
const { ev, dom, errors } = load();
const doc = dom.window.document;
ev(start);
const key = (k, t) => (t || doc.body).dispatchEvent(new dom.window.KeyboardEvent('keydown', { key: k, bubbles: true }));
key('/');
assert.equal(ev("$('modal').hidden"), false, '/ opens it');
assert.ok(doc.getElementById('findIn'), 'with a search field');
const inp = doc.getElementById('findIn');
inp.value = 'tokyo';
inp.dispatchEvent(new dom.window.Event('input', { bubbles: true }));
assert.match(doc.getElementById('findList').textContent, /Tokyo/);
key('Enter', inp);
assert.equal(ev("$('modal').hidden"), true, 'Enter jumps');
assert.equal(ev('UI.sel&&UI.sel.id||UI.sel'), 'tok', 'and selects Tokyo');
assert.equal(ev('cam.x'), ev('CITY.tok.x'), 'with the map on it');
// The HUD button, then a tap on a result.
doc.querySelector('#hud .chip.find').click();
assert.equal(ev("$('modal').hidden"), false);
const i2 = doc.getElementById('findIn');
i2.value = 'nowhere at all';
i2.dispatchEvent(new dom.window.Event('input', { bubbles: true }));
assert.match(doc.getElementById('findList').textContent, /No city matches/);
key('Escape', i2);
assert.equal(ev("$('modal').hidden"), true, 'Escape closes');
ev("ACT.findOpen();ACT.findGo({city:'syd'})");
assert.equal(ev('cam.x'), ev('CITY.syd.x'));
ev("ACT.findGo({city:'atlantis'})");
assert.equal(ev('cam.x'), ev('CITY.syd.x'), 'unknown ids are ignored');
// Typing / in another text field types a slash.
ev("ACT.rename()");
key('/', doc.getElementById('rnIn'));
assert.equal(ev("!!$('findIn')"), false);
assert.deepEqual(errors, []);
});
test('in German, a German country name finds the city, and the search works on a phone', () => {
const { ev, dom, errors } = load({ lang: 'de' });
ev(start + ";if(ACT.pitchSkip)ACT.pitchSkip();window.innerWidth=360;ACT.findOpen()");
assert.ok(ev("findCities('deutschland').includes('fra')"), 'Deutschland');
assert.ok(ev("findCities('germany').includes('fra')"), 'and Germany still works');
assert.match(dom.window.document.getElementById('modalCard').textContent, /Stadt finden/);
assert.doesNotMatch(dom.window.document.getElementById('modalCard').textContent, /\/ /, 'no keyboard tip on a phone');
assert.deepEqual(errors, []);
});

184
tests/philippines.test.js Normal file
View file

@ -0,0 +1,184 @@
// The Philippines: Manila's exchanges and networks, Cebu, Davao and the cables that really land there.
const test = require('node:test');
const assert = require('node:assert');
const { load } = require('./harness');
function start(ev) { ev("ACT.start({});S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0"); }
const ids = (ev, js) => JSON.parse(ev(`JSON.stringify(${js})`));
test('Manila: GotchaFIX, Bayanihan-IX and the incumbent-run In-Vitro-IX', () => {
const { ev, errors } = load();
start(ev);
assert.equal(ev('CITY.mnl.ix'), 'GotchaFIX Manila');
assert.equal(ev("XIXM['mnl~2'].name"), 'Bayanihan-IX');
assert.equal(ev("XIXM['mnl~3'].name"), 'In-Vitro-IX');
// the neutral exchange has the open networks, not the PLDT family
const gotcha = ids(ev, "ixMembers('mnl')");
for (const n of ['glb', 'cvg', 'dto']) assert.ok(gotcha.includes(n), `${n} on GotchaFIX`);
assert.ok(!gotcha.includes('pld') && !gotcha.includes('smt'));
assert.ok(gotcha.length >= 10, `GotchaFIX has ${gotcha.length} members`);
// the incumbent's own exchange is PLDT and its mobile arm
const vitro = ids(ev, "ixMembers('mnl~3')");
assert.ok(vitro.includes('pld') && vitro.includes('smt'));
assert.ok(ids(ev, "ixMembers('mnl~2')").includes('dto'));
// GetaFIX's price list: 10G for $700 and 100G for $2,800 a month, within a few percent
for (const c of ['mnl', 'ceb', 'dvo']) {
ev(`ACT.buildPop({city:'${c}'})`);
assert.ok(Math.abs(ev(`ixPortMo('${c}',0)`) - 700) <= 35, `${c} 10G is ${ev(`ixPortMo('${c}',0)`)}`);
assert.ok(Math.abs(ev(`ixPortMo('${c}',1)`) - 2800) <= 140, `${c} 100G is ${ev(`ixPortMo('${c}',1)`)}`);
}
// the community exchange is the cheapest port in town, the incumbent's the dearest
assert.ok(ev("ixMul('mnl~2')<ixMul('mnl')&&ixMul('mnl')<ixMul('mnl~3')"));
// the incumbent charges double GotchaFIX's price
assert.equal(ev("ixPortMo('mnl~3',0)"), 1760);
assert.equal(ev("ixPortMo('mnl~3',1)"), 6600);
assert.deepEqual(errors, []);
});
test('Manila: PLDTea Time and Globe-Trotter Telecom sell transit; a PLDT PNI also reaches Smarty Pants', () => {
const { ev, errors } = load();
start(ev);
assert.ok(ev("sellsAt(NET.pld,'mnl')&&sellsAt(NET.glb,'mnl')"));
assert.ok(ev("!sellsAt(NET.cvg,'mnl')&&!sellsAt(NET.dto,'mnl')&&!sellsAt(NET.smt,'mnl')"));
assert.deepEqual(ids(ev, 'PNI_NETS.pld').sort(), ['pld', 'smt']);
assert.equal(ev('NET.pld.pol'), 'selective');
assert.equal(ev('NET.cvg.pol') + ev('NET.dto.pol'), 'openopen');
assert.equal(ev('NET.glb.pol'), 'selective', 'Globe-Trotter Telecom stays selective');
assert.deepEqual(errors, []);
});
test('Manila: an exchange the player founded there before GotchaFIX existed keeps working', () => {
const { ev, errors } = load();
start(ev);
ev("ACT.buildPop({city:'mnl'});S.myIx.mnl={name:'Mine-IX Manila',members:['dto','tail0'],next:0};S.ixp.mnl=2");
ev('const o=JSON.parse(JSON.stringify(S));sanitize(o);window.__o=o');
assert.equal(ev('__o.myIx.mnl.name'), 'Mine-IX Manila');
ev('S=__o;after()');
assert.equal(ev("ixName('mnl')"), 'Mine-IX Manila');
assert.deepEqual(ids(ev, "ixMembers('mnl')"), ['dto', 'tail0']);
// and nobody can found a second one now that a real exchange runs in Manila
ev("delete S.myIx.mnl;delete S.ixp.mnl;ACT.foundIx({city:'mnl'})");
assert.ok(ev('!S.myIx.mnl'));
assert.deepEqual(errors, []);
});
test('Manila: RISE & Shine peers openly on all three Manila exchanges, across Asia and in Europe', () => {
const { ev, errors } = load();
start(ev);
assert.equal(ev('NET.rsh.name'), 'RISE & Shine');
assert.equal(ev('NET.rsh.pol'), 'open');
// GetaFIX Manila, PhOpenIX and VIX, Singapore, Hong Kong, DE-CIX, AMS-IX, LINX, Netnod. Tokyo and Los Angeles are left
// out: an open eyeball network there makes the Stepping Stones scenario too easy.
for (const x of ['mnl', 'mnl~2', 'mnl~3', 'sin', 'sin~2', 'hkg', 'hkg~2', 'fra', 'ams', 'lon', 'sto'])
assert.ok(ids(ev, `ixMembers('${x}')`).includes('rsh'), `RISE & Shine on ${x}`);
assert.deepEqual(errors, []);
});
test('Cebu: its own island, GotchaFIX Cebu, reached by two domestic cables, in the typhoon belt', () => {
const { ev, errors } = load();
start(ev);
assert.ok(ev("isSub('ceb','mnl')"), 'Cebu is an island');
assert.ok(ev('onLand(CITY.ceb.x,CITY.ceb.y)'), 'Cebu is drawn on land');
assert.equal(ev('CITY.ceb.ix'), 'GotchaFIX Cebu');
assert.equal(ev('CITY.ceb.dc'), "Magellan's Last Rack");
assert.deepEqual(ids(ev, "cablesFor('mnl','ceb').map(p=>p.cid)").sort(), ['dfon', 'pdscn']);
for (const n of ['pld', 'glb']) assert.ok(ev(`sellsAt(NET.${n},'ceb')`), `${n} sells transit in Cebu`);
assert.ok(ev("NET.cvg.pops.includes('ceb')"));
// a subsea wave from Manila to Cebu carries traffic
for (const c of ['mnl', 'ceb']) ev(`ACT.buildPop({city:'${c}'});S.pops.${c}.rgen=3`);
ev("UI.via='pdscn';UI.route='same';openLinkModal('mnl','ceb');ACT.buildLink({tier:2});closeModal()");
ev('compute()');
assert.equal(ev("S.links.filter(l=>l.sub&&l.cable==='pdscn').length"), 1);
// typhoons can now hit a Cebu PoP
ev("S.pops={ceb:S.pops.ceb};delete S.pops.ceb.gen;for(let i=0;i<2000&&!(S.pops.ceb.down>S.day);i++)fireEvent()");
assert.ok(ev("S.pops.ceb.down>S.day&&S.inc.some(i=>i.type==='power'&&i.ref==='ceb')"), 'a typhoon knocked out Cebu');
ev('cam.z=5;cam.x=CITY.ceb.x;cam.y=CITY.ceb.y;draw(0)');
assert.deepEqual(errors, []);
});
test('Davao: Mindanao, GotchaFIX Davao, the trans-Pacific landings moved from Manila, and cables from Cebu', () => {
const { ev, errors } = load();
start(ev);
assert.ok(ev("isSub('dvo','mnl')&&isSub('dvo','ceb')"), 'Davao is on Mindanao');
assert.ok(ev('onLand(CITY.dvo.x,CITY.dvo.y)'), 'Davao is drawn on land');
assert.equal(ev('CITY.dvo.ix'), 'GotchaFIX Davao');
assert.equal(ev('CITY.dvo.dc'), "Heimdall's Hut");
// Bi-Frosted's Philippine branch and SEA-US land at Davao, not Manila
const at = (cid, c) => ids(ev, `CABLE_PAIRS.filter(p=>p.cid==='${cid}'&&(p.a==='${c}'||p.b==='${c}')).map(p=>p.a==='${c}'?p.b:p.a)`).sort();
assert.deepEqual(at('bifrost', 'mnl'), []);
assert.deepEqual(at('bifrost', 'dvo'), ['gum', 'jkt']);
assert.deepEqual(at('seaus', 'mnl'), []);
assert.deepEqual(at('seaus', 'dvo'), ['gum']);
assert.ok(ev("cablesFor('jkt','gum').some(p=>p.cid==='bifrost')&&cablesFor('gum','lax').some(p=>p.cid==='bifrost')"), 'the trunk stays');
assert.deepEqual(ids(ev, "cablesFor('ceb','dvo').map(p=>p.cid)").sort(), ['dfon', 'pdscn', 'vismin']);
// PDSCN's Luzon–Mindanao segment runs the whole way, so Manila reaches Davao in one hop
assert.deepEqual(ids(ev, "cablesFor('mnl','dvo').map(p=>p.cid)"), ['pdscn']);
for (const n of ['pld', 'glb']) assert.ok(ev(`sellsAt(NET.${n},'dvo')`), `${n} sells transit in Davao`);
assert.ok(ev("NET.cvg.pops.includes('dvo')"));
ev('cam.z=5;cam.x=CITY.dvo.x;cam.y=CITY.dvo.y;draw(0)');
assert.deepEqual(errors, []);
});
test('Davao: a saved link on a Bi-Frosted or SEA-US pair that moved keeps working, without the cable', () => {
const { ev, errors } = load();
start(ev);
for (const c of ['mnl', 'jkt', 'hkg']) ev(`ACT.buildPop({city:'${c}'});S.pops.${c}.rgen=3`);
ev("UI.via='sjcph';UI.route='same';openLinkModal('mnl','hkg');ACT.buildLink({tier:2});closeModal()");
ev("UI.via='sjcph';UI.route='same';openLinkModal('mnl','hkg');ACT.buildLink({tier:2});closeModal()");
assert.equal(ev('S.links.length'), 2);
// as an old save had them: Bi-Frosted Jakarta–Manila and an untouched Manila–Hong Kong link
ev("const l=S.links[0];l.a='jkt';l.b='mnl';l.km=kmBetween('jkt','mnl');l.cable='bifrost'");
ev('const o=JSON.parse(JSON.stringify(S));sanitize(o);window.__o=o');
assert.equal(ev('__o.links.length'), 2, 'the link survives');
assert.equal(ev("__o.links.find(l=>l.a==='jkt').cable"), null, 'its cable tag is dropped');
assert.equal(ev("__o.links.find(l=>l.b==='hkg').cable"), 'sjcph', 'a pair that still exists keeps its cable');
ev('S=__o;after();compute()');
ev('cam.z=1;draw(0)');
assert.deepEqual(errors, []);
});
test('Cebu and Davao: RISE & Shine is on GotchaFIX Cebu and GotchaFIX Davao', () => {
const { ev, errors } = load();
start(ev);
for (const c of ['ceb', 'dvo']) assert.ok(ids(ev, `ixMembers('${c}')`).includes('rsh'), `RISE & Shine on ${c}`);
assert.deepEqual(errors, []);
});
test('the Philippines: transit about 1.9 times the Asian rate, homes pay about US$25 a month', () => {
const { ev, errors } = load();
start(ev);
for (const c of ['mnl', 'ceb', 'dvo']) {
assert.equal(ev(`regionMult('${c}')`), ev('PH_TRANSIT'), `${c} pays the Philippine transit rate`);
assert.equal(ev(`CITY.${c}.arpu`), ev('PH_ARPU'));
}
// Manila's 100 GigE transit is about 1.9 times Jakarta's
assert.ok(Math.abs(ev("regionMult('mnl')/regionMult('jkt')") - 1.9) < 0.1);
assert.equal(ev("regionMult('sin')"), 2.5, 'the rest of Asia is unchanged');
// the same transit port costs more in Manila than in Jakarta
ev("ACT.buildPop({city:'mnl'});ACT.buildPop({city:'jkt'})");
assert.ok(ev("transitMo({net:'sgt',city:'mnl',tier:1},10)>transitMo({net:'sgt',city:'jkt',tier:1},10)"));
assert.deepEqual(errors, []);
});
test('Philippines: waves between the islands cost more than waves out of the country', () => {
const { ev, errors } = load();
start(ev);
// cheapest 10G wave on any cable between two cities
const w = (a, b) => ev(`Math.min(...cablesOk('${a}','${b}').map(c=>waveMo(c.km,true,0)*CAB[c.cid].price*waveMarket('${a}','${b}',true).m))`);
assert.equal(ev("waveMarket('mnl','ceb',true).reg"), ev('PH_WAVE'));
assert.equal(ev("waveMarket('mnl','hkg',true).reg"), 1.5, 'international routes keep the Asian rate');
const ratio = w('mnl', 'ceb') / w('mnl', 'hkg');
assert.ok(ratio > 1.8 && ratio < 2.2, `Manila–Cebu is ${ratio.toFixed(2)} times Manila–Hong Kong`);
assert.ok(w('ceb', 'dvo') > w('mnl', 'hkg'), 'even the short Cebu–Davao hop costs more than Hong Kong');
assert.deepEqual(errors, []);
});
test('Philippines: eyeballs at about 40G per million people, like the rest of the map', () => {
const { ev, errors } = load();
// Demographia 2022 urban area for Manila, the 2020 census for Metro Cebu and Metro Davao
for (const [c, millions] of [['mnl', 24.9], ['ceb', 3.17], ['dvo', 3.34]]) {
const perM = ev(`CITY.${c}.P`) / millions;
assert.ok(perM > 37 && perM < 43, `${c} has ${perM.toFixed(1)}G per million people`);
}
assert.deepEqual(errors, []);
});

View file

@ -596,6 +596,30 @@ test('#228 the intern names the exchanges it peered at, even one that shares its
assert.deepEqual(errors, []);
});
test('#227 transit "Already connected" grows the providers you have, the smallest first, and never signs a new one', t => {
const { ev, errors } = game(t, "ACT.buyTransit({city:'fra',net:'ntt',tier:1});compute()");
hire(ev); on(ev, 'transit', { x: 1.5, prov: 'have' });
const capOf = net => ev(`(()=>{const t=S.transit.find(x=>x.city==='fra'&&x.net==='${net}');return lagCap(PORT[t.tier].g,t.n)})()`);
const c0 = capOf('cog'), n0 = capOf('ntt');
assert.equal(c0, n0, 'two equal ports to start');
ev('for(const t of S.transit)t.hist=[100]'); shift(ev);
assert.equal(ev("JSON.stringify(S.transit.filter(t=>t.city==='fra').map(t=>t.net).sort())"), '["cog","ntt"]', 'no new provider');
assert.ok(capOf('cog') > c0 && capOf('ntt') > n0, 'both grew, not just one');
assert.equal(capOf('cog'), capOf('ntt'), 'evenly, smallest first');
// a POP whose only upstream is not the cheapest never gets the cheapest added (Cheapest would buy Cogentle there)
ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=1;ACT.launchBB({city:'ams'});ACT.buyTransit({city:'ams',net:'ntt',tier:1});compute()");
assert.equal(ev("cheapestTransit('ams').id"), 'cog');
ev("for(const t of S.transit)t.hist=[400]"); ev('S.day++'); shift(ev);
assert.equal(ev("JSON.stringify(S.transit.filter(t=>t.city==='ams').map(t=>t.net))"), '["ntt"]');
// the setting cycles through it, reads "Already connected" and survives a save
ev("S.ops.p.transit.prov='cheap';ACT.opsParam({k:'transit',p:'prov'})");
assert.equal(ev("opsP('transit','prov')"), 'have');
assert.equal(ev("opsVal('transit','prov')"), 'Already connected');
ev('S=migrate(JSON.parse(JSON.stringify(S)))');
assert.equal(ev("opsP('transit','prov')"), 'have');
assert.deepEqual(errors, []);
});
test('#244 the PNI order counts the traffic the PNI list shows at that POP, not what cache boxes there already serve', t => {
const { ev, errors } = game(t, "ACT.buildPop({city:'ham'});for(const c of ['fra','ham']){S.pops[c].rgen=mainRG(4);S.pops[c].routers=6;if(!S.pops[c].bb)ACT.launchBB({city:c});S.pops[c].bb.d=CITY[c].P*0.9;}UI.pending={a:'fra',b:'ham'};ACT.buildLink({tier:3});closeModal();ACT.buyTransit({city:'fra',net:'cog',tier:3});ACT.buyTransit({city:'ham',net:'cog',tier:3});for(let i=0;i<6;i++)S.caches.push({id:'nfx'+i,city:'ham',net:'nfx'});compute()");
// Hamburg's users want a lot from NetChill, but its cache boxes there serve most of it: little is left for a PNI