Merge the ruleset and four doors into v2
This commit is contained in:
commit
fa4e30692e
43 changed files with 582 additions and 82 deletions
|
|
@ -6,6 +6,9 @@ All notable changes to this project are documented here. The project follows
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- A new start screen with four doors: Puzzles, Sandbox, Normal, and Scenarios & weekly. Every network now picks its rules when it starts, and they stay locked for that network; your saved games carry on exactly as before.
|
||||||
|
- Normal comes in three flavours. Change Freeze has a third of the outages and no DDoS floods, delivers PNIs, cross-connects and builds in days instead of months (#151), and skips the peering inbox, hardware shortages and sold-out routes. On-call is the classic game. BGP at 3 a.m. brings almost twice the outages, lasting half as long again, and twice the DDoS. The HUD and the share card show which one you picked.
|
||||||
|
- Sandbox is a real sandbox now (#188): everything is unlocked from day one, your own subsea cable included, money never runs out, deliveries are quick, and you pick how much chaos you want, from none to spicy.
|
||||||
- China Telecomet now sells its CN-Too premium crossing in Moscow too, at the same price as in Hong Kong (#195). Haul your European traffic to Moscow and it reaches China with about 3% loss; nothing else of theirs is on offer there.
|
- China Telecomet now sells its CN-Too premium crossing in Moscow too, at the same price as in Hong Kong (#195). Haul your European traffic to Moscow and it reaches China with about 3% loss; nothing else of theirs is on offer there.
|
||||||
- Series of Tubes now speaks German. The game follows your browser's language the first time, and you can switch to German under Settings or on the title screen. Networking terms like Peering and Transit stay in English, the way network engineers say them.
|
- Series of Tubes now speaks German. The game follows your browser's language the first time, and you can switch to German under Settings or on the title screen. Networking terms like Peering and Transit stay in English, the way network engineers say them.
|
||||||
- Glowball Sakura Lager joins the map: a Tier 2 carrier in the big hubs of the US, Europe and Asia-Pacific that sells transit, takes PNIs and peers openly wherever it is. It is not a Tier 1, so it buys its own transit from three of them, while 13 smaller networks in its regions buy theirs from it, and one PNI with it reaches about 3% of all traffic. Far from home, in Asia and New Zealand, it charges more than the locals, and it sells no transit in Australia.
|
- Glowball Sakura Lager joins the map: a Tier 2 carrier in the big hubs of the US, Europe and Asia-Pacific that sells transit, takes PNIs and peers openly wherever it is. It is not a Tier 1, so it buys its own transit from three of them, while 13 smaller networks in its regions buy theirs from it, and one PNI with it reaches about 3% of all traffic. Far from home, in Asia and New Zealand, it charges more than the locals, and it sells no transit in Australia.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ hoisted across files, and top-level statements run in path order. Find code by n
|
||||||
| `10-catalog/` | Prices and gear: POP and port costs, routers (`RG`), supply chain, port slots, dark fiber systems and optics (`OPT`), reach and subsea upgrades |
|
| `10-catalog/` | Prices and gear: POP and port costs, routers (`RG`), supply chain, port slots, dark fiber systems and optics (`OPT`), reach and subsea upgrades |
|
||||||
| `20-world/` | Map projection, landmasses, coastline, city coordinates (`CITY_LL`), `CITIES`, `CABLES` |
|
| `20-world/` | Map projection, landmasses, coastline, city coordinates (`CITY_LL`), `CITIES`, `CABLES` |
|
||||||
| `30-networks/` | Other ASes (`NETS`), rival exchanges (`XIX`), the long tail, traffic shares (`NSH`) |
|
| `30-networks/` | Other ASes (`NETS`), rival exchanges (`XIX`), the long tail, traffic shares (`NSH`) |
|
||||||
| `40-progress/` | Customer types (`BIZ_T`), `LEVELS` and their requirements, `GOALS` |
|
| `40-progress/` | Customer types (`BIZ_T`), `LEVELS` and their requirements, `GOALS`; the per-save ruleset (`S.rules`, `rule()`, `PRESETS`, `chaosMul()`, `leadDays()`) |
|
||||||
| `50-state.js` | The globals `S`, `R`, `UI`; `emptyR()` |
|
| `50-state.js` | The globals `S`, `R`, `UI`; `emptyR()` |
|
||||||
| `60-features/` | Banks and loans, scenarios and the weekly challenge, conferences, the tutorial, traceroute, the share card, `newGame()` |
|
| `60-features/` | Banks and loans, scenarios and the weekly challenge, conferences, the tutorial, traceroute, the share card, `newGame()` |
|
||||||
| `70-rules/` | Formatting helpers and market rules: exchanges, PNIs, the peering inbox, peering policy and snubs, DE-KICKS, sold-out routes, hot ports and the Tier 1/2/3 rank |
|
| `70-rules/` | Formatting helpers and market rules: exchanges, PNIs, the peering inbox, peering policy and snubs, DE-KICKS, sold-out routes, hot ports and the Tier 1/2/3 rank |
|
||||||
|
|
|
||||||
|
|
@ -1780,7 +1780,7 @@
|
||||||
"fiber_modals.for_comparison_a_leased_1_6t":"Zum Vergleich: Eine gemietete 1.6T-Wave kostet auf dieser Strecke {price}/Monat. Optiken kommen als Nächstes, im Link-Panel.",
|
"fiber_modals.for_comparison_a_leased_1_6t":"Zum Vergleich: Eine gemietete 1.6T-Wave kostet auf dieser Strecke {price}/Monat. Optiken kommen als Nächstes, im Link-Panel.",
|
||||||
"fiber_modals.from_city":"Von {city}",
|
"fiber_modals.from_city":"Von {city}",
|
||||||
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km sind länger, als jede Optik mit voller Geschwindigkeit reicht.</b> Transponder laufen im Langstreckenmodus (1.2T, 800G oder 400G pro Kanal), oder du fügst unterwegs Regen-Standorte hinzu, um wieder volle Geschwindigkeit zu bekommen.",
|
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km sind länger, als jede Optik mit voller Geschwindigkeit reicht.</b> Transponder laufen im Langstreckenmodus (1.2T, 800G oder 400G pro Kanal), oder du fügst unterwegs Regen-Standorte hinzu, um wieder volle Geschwindigkeit zu bekommen.",
|
||||||
"fiber_modals.lease_an_iru_price_mo_ready":"IRU mieten <small>{price}/Monat · fertig in 30 Tagen</small>",
|
"fiber_modals.lease_an_iru_price_mo_ready_n":"IRU mieten <small>{price}/Monat · fertig in {n} Tagen</small>",
|
||||||
"fiber_modals.level_n":"Level {n}",
|
"fiber_modals.level_n":"Level {n}",
|
||||||
"fiber_modals.no_dark_fiber_inside_the_uae":"Keine Dark Fiber innerhalb der VAE. Nur die zwei lizenzierten Betreiber dürfen hier Glasfaser verlegen, und die verkaufen nur Waves.",
|
"fiber_modals.no_dark_fiber_inside_the_uae":"Keine Dark Fiber innerhalb der VAE. Nur die zwei lizenzierten Betreiber dürfen hier Glasfaser verlegen, und die verkaufen nur Waves.",
|
||||||
"fiber_modals.no_install_fee_live_in_minutes":"Keine Einrichtungsgebühr, live in Minuten, monatlich abgerechnet. Günstiger als eine Wave für kleine Kapazitäten, aber sie läuft über die Fabric von jemand anderem, und diese Fabric kann ausfallen.",
|
"fiber_modals.no_install_fee_live_in_minutes":"Keine Einrichtungsgebühr, live in Minuten, monatlich abgerechnet. Günstiger als eine Wave für kleine Kapazitäten, aber sie läuft über die Fabric von jemand anderem, und diese Fabric kann ausfallen.",
|
||||||
|
|
@ -1891,6 +1891,7 @@
|
||||||
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) ist transitfrei. Du peerst mit jedem Riesen auf dem Planeten und zahlst niemandem etwas, um das Internet zu erreichen. Hat dich {days} Tage und {n} Störungen gekostet.",
|
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) ist transitfrei. Du peerst mit jedem Riesen auf dem Planeten und zahlst niemandem etwas, um das Internet zu erreichen. Hat dich {days} Tage und {n} Störungen gekostet.",
|
||||||
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG und Co. kommen jedes Jahr vorbei. Melde dich im Tab Deals für $8k an. In den 45 Tagen danach brauchen selektive Netze mit Präsenz in dieser Region nur halb so viel Traffic wie sonst, bevor sie mit dir peeren. Manchmal gewinnst du auch die Tombola.",
|
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG und Co. kommen jedes Jahr vorbei. Melde dich im Tab Deals für $8k an. In den 45 Tagen danach brauchen selektive Netze mit Präsenz in dieser Region nur halb so viel Traffic wie sonst, bevor sie mit dir peeren. Manchmal gewinnst du auch die Tombola.",
|
||||||
"help.once_auto_te_is_installed_you":"Sobald Auto-TE installiert ist, kannst du es im Tab NOC programmieren. Zu den Regeln gehören <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> und <code>blackhole ddos</code>. Prüfen spielt einen Probelauf mit dem Live-Traffic durch; Deployen macht es echt, Fehler inklusive.",
|
"help.once_auto_te_is_installed_you":"Sobald Auto-TE installiert ist, kannst du es im Tab NOC programmieren. Zu den Regeln gehören <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> und <code>blackhole ddos</code>. Prüfen spielt einen Probelauf mit dem Live-Traffic durch; Deployen macht es echt, Fehler inklusive.",
|
||||||
|
"help.one_game_four_doors_puzzles_are":"Ein Spiel, vier Türen, und die Regeln wählst du beim Start eines Netzes, danach sind sie festgelegt. Rätsel sind kleine Knoten zum Entwirren, ohne Uhr. Sandbox gibt dir eine Milliarde Dollar, alle Freischaltungen (dein eigenes Seekabel inklusive) und so viel Chaos, wie du willst, aber keine Abzeichen. Normal gibt es dreifach: Change Freeze (wenige Ausfälle, Lieferungen in Tagen, kein Postfach, keine Engpässe), Rufbereitschaft (das klassische Spiel) und BGP um 3 Uhr nachts (mehr und längere Ausfälle, mehr DDoS). Szenarien sind handgebaute Herausforderungen mit Ziel und Frist, und die Wochen-Challenge gibt allen eine Woche lang dieselbe Welt. Teile dein Ergebnis mit der Karte im Menü.",
|
||||||
"help.open_peers_with_anyone_selective":"Offene Netze peeren mit allen. Selektive wollen erst Traffic sehen. Restriktive (Tier 1s) peeren nur mit Riesen, über PNIs. Paid Peering heißt genau das: Du zahlst. Große selektive Netze haben auch Launen: In manchen Städten lehnen sie ein paar Monate lang neue Peers ab oder nehmen nur PNIs, und ab und zu bauen sie eine Session ab, die du schon hattest. Versuch es in einer anderen Stadt oder mit einem PNI und frag später nochmal.",
|
"help.open_peers_with_anyone_selective":"Offene Netze peeren mit allen. Selektive wollen erst Traffic sehen. Restriktive (Tier 1s) peeren nur mit Riesen, über PNIs. Paid Peering heißt genau das: Du zahlst. Große selektive Netze haben auch Launen: In manchen Städten lehnen sie ein paar Monate lang neue Peers ab oder nehmen nur PNIs, und ab und zu bauen sie eine Session ab, die du schon hattest. Versuch es in einer anderen Stadt oder mit einem PNI und frag später nochmal.",
|
||||||
"help.out_of_port_speed_bundle_up":"Port zu langsam? Bündle bis zu 8 identische Ports zum selben Transit-Anbieter, IX oder PNI zu einem LAG. Jedes Mitglied kostet einen vollen Port; Flow-Hashing ist nie perfekt gleichmäßig, also trägt ein Bündel etwa 95 % der Summe.",
|
"help.out_of_port_speed_bundle_up":"Port zu langsam? Bündle bis zu 8 identische Ports zum selben Transit-Anbieter, IX oder PNI zu einem LAG. Jedes Mitglied kostet einen vollen Port; Flow-Hashing ist nie perfekt gleichmäßig, also trägt ein Bündel etwa 95 % der Summe.",
|
||||||
"help.pni_lead_times":"PNI-Lieferzeiten",
|
"help.pni_lead_times":"PNI-Lieferzeiten",
|
||||||
|
|
@ -1899,7 +1900,6 @@
|
||||||
"help.reach_an_ix_over_a_fabric":"Erreiche einen IX über eine Fabric-Verbindung, ohne dort einen POP zu haben. Das funktioniert, und der Route Server bringt dir trotzdem jedes offene Netz, aber es wird nicht empfohlen: Der Reseller verlangt das 1,5-Fache für den Port und überbucht ihn auf 80 %, die Latenz läuft über die Fabric, ein Fabric-Ausfall reißt jede Session runter, und viele selektive Netze lehnen Remote-Mitglieder rundheraus ab.",
|
"help.reach_an_ix_over_a_fabric":"Erreiche einen IX über eine Fabric-Verbindung, ohne dort einen POP zu haben. Das funktioniert, und der Route Server bringt dir trotzdem jedes offene Netz, aber es wird nicht empfohlen: Der Reseller verlangt das 1,5-Fache für den Port und überbucht ihn auf 80 %, die Latenz läuft über die Fabric, ein Fabric-Ausfall reißt jede Session runter, und viele selektive Netze lehnen Remote-Mitglieder rundheraus ab.",
|
||||||
"help.routers_optics_and_new_builds_get":"Router, Optiken und Neubauten werden mit den Jahren teurer, nach den ersten sechs Monaten etwa 4 % pro Jahr, und ab und zu macht ein Engpass eins davon für einen oder zwei Monate deutlich teurer. Was du schon besitzt, behält seinen Preis. Ersatzteile im Regal und eine jährliche Preisbindung aus dem Tab NOC verringern den Preisschock.",
|
"help.routers_optics_and_new_builds_get":"Router, Optiken und Neubauten werden mit den Jahren teurer, nach den ersten sechs Monaten etwa 4 % pro Jahr, und ab und zu macht ein Engpass eins davon für einen oder zwei Monate deutlich teurer. Was du schon besitzt, behält seinen Preis. Ersatzteile im Regal und eine jährliche Preisbindung aus dem Tab NOC verringern den Preisschock.",
|
||||||
"help.rules_for_your_auto_te_controller":"Regeln für deinen Auto-TE-Controller: welche Ausgänge bevorzugt, welche gemieden werden und wann auf den nächsten übergelaufen wird. Die Hilfe im Editor erklärt jede Regel und hat fertige Skripte.",
|
"help.rules_for_your_auto_te_controller":"Regeln für deinen Auto-TE-Controller: welche Ausgänge bevorzugt, welche gemieden werden und wann auf den nächsten übergelaufen wird. Die Hilfe im Editor erklärt jede Regel und hat fertige Skripte.",
|
||||||
"help.sandbox_gives_you_a_billion_dollars":"Sandbox gibt dir eine Milliarde Dollar, alle Freischaltungen und keine Ausfälle, aber keine Abzeichen. Szenarien sind handgebaute Herausforderungen mit Ziel und Frist, und die Wochen-Challenge gibt allen eine Woche lang dieselbe Welt. Teile dein Ergebnis mit der Karte im Menü.",
|
|
||||||
"help.share_my_network":"Mein Netz teilen",
|
"help.share_my_network":"Mein Netz teilen",
|
||||||
"help.some_customers_come_with_conditions":"Manche Kunden kommen mit Bedingungen: nirgends Cogentle, keine Seekabel wegen Haien, zwei Router, ein Generator, NetChill on-net, verlustarme Erreichbarkeit nach China und mehr. Jede bringt einen Bonus. Nicht erfüllte machen sie grantig, bis du es behebst oder sie gehen.",
|
"help.some_customers_come_with_conditions":"Manche Kunden kommen mit Bedingungen: nirgends Cogentle, keine Seekabel wegen Haien, zwei Router, ein Generator, NetChill on-net, verlustarme Erreichbarkeit nach China und mehr. Jede bringt einen Bonus. Nicht erfüllte machen sie grantig, bis du es behebst oder sie gehen.",
|
||||||
"help.some_routers_take_forever_to_boot":"Manche Router brauchen ewig zum Booten. Der Tab Infra zeigt, wie lange deiner braucht. Langsame Booter lassen Abstürze länger dauern und machen aus einem Router-Tausch einen dreitägigen Ausfall. Größere Chassis, vor allem alles mit einem PacketOinker™ drin, sind öfter langsam. Zwillingsrouter machen das zum Problem von jemand anderem.",
|
"help.some_routers_take_forever_to_boot":"Manche Router brauchen ewig zum Booten. Der Tab Infra zeigt, wie lange deiner braucht. Langsame Booter lassen Abstürze länger dauern und machen aus einem Router-Tausch einen dreitägigen Ausfall. Größere Chassis, vor allem alles mit einem PacketOinker™ drin, sind öfter langsam. Zwillingsrouter machen das zum Problem von jemand anderem.",
|
||||||
|
|
@ -2906,6 +2906,29 @@
|
||||||
"routing_and_routers.the_model_won_t_fit_why":"<b>Der {model} passt nicht.</b><br>{why}",
|
"routing_and_routers.the_model_won_t_fit_why":"<b>Der {model} passt nicht.</b><br>{why}",
|
||||||
"routing_and_routers.the_new_routers_in_city_are":"<b>Die neuen Router in {city} werden noch eingebaut.</b><br>Ein Tausch pro Tag: Versuch es morgen nochmal.",
|
"routing_and_routers.the_new_routers_in_city_are":"<b>Die neuen Router in {city} werden noch eingebaut.</b><br>Ein Tausch pro Tag: Versuch es morgen nochmal.",
|
||||||
"routing_and_routers.unplug_something_first_used_ports":"<b>Steck zuerst etwas aus.</b><br>{used} Ports sind belegt, und mit einem Router weniger gibt es nur {max}.",
|
"routing_and_routers.unplug_something_first_used_ports":"<b>Steck zuerst etwas aus.</b><br>{used} Ports sind belegt, und mit einem Router weniger gibt es nur {max}.",
|
||||||
|
"rules.a_billion_dollars_every_unlock_your":"Eine Milliarde Dollar, alles freigeschaltet, dein eigenes Seekabel.",
|
||||||
|
"rules.a_cut_now_and_then":"Ab und zu ein Bagger.",
|
||||||
|
"rules.bgp_at_3_a_m":"BGP um 3 Uhr nachts",
|
||||||
|
"rules.change_freeze":"Change Freeze",
|
||||||
|
"rules.chaos_calm":"Ruhig",
|
||||||
|
"rules.chaos_none":"Keins",
|
||||||
|
"rules.chaos_normal":"Normal",
|
||||||
|
"rules.chaos_spicy":"Scharf",
|
||||||
|
"rules.everything_is_on_fire_and_it":"Alles brennt, und du hast Bereitschaft.",
|
||||||
|
"rules.fewer_outages_pnis_and_builds_in":"Ein Drittel der Ausfälle, kein DDoS. PNIs und Bauten in Tagen. Kein Postfach, keine Lieferengpässe, keine ausverkauften Routen.",
|
||||||
|
"rules.infinite_money_everything_unlocked_quick":"Endlos Geld, alles freigeschaltet, kurze Lieferzeiten. Keine Abzeichen.",
|
||||||
|
"rules.like_the_real_game":"Wie im echten Spiel.",
|
||||||
|
"rules.more_and_longer_outages_more_ddos":"Fast doppelt so viele Ausfälle, anderthalbmal so lang, doppelt so viel DDoS. Alles an.",
|
||||||
|
"rules.no_clock_no_bills_nothing_breaks":"Keine Uhr, keine Rechnungen, nichts geht kaputt.",
|
||||||
|
"rules.nobody_touches_prod_even_the_backhoes":"Niemand fasst Prod an. Sogar die Bagger sind im Urlaub.",
|
||||||
|
"rules.nothing_ever_breaks":"Nichts geht je kaputt.",
|
||||||
|
"rules.on_call":"Rufbereitschaft",
|
||||||
|
"rules.one_small_network_one_tricky_goal":"Ein kleines Netz, ein kniffliges Ziel.",
|
||||||
|
"rules.puzzle":"Rätsel",
|
||||||
|
"rules.real_lead_times_real_outages_a":"Echte Lieferzeiten, echte Ausfälle, ein volles Peering-Postfach. Das klassische Spiel.",
|
||||||
|
"rules.rules_are_locked_for_this_network":"{rules}: Die Regeln sind für dieses Netz festgelegt.",
|
||||||
|
"rules.the_real_thing_your_pager_has":"Das echte Spiel. Dein Pager hat Meinungen.",
|
||||||
|
"rules.your_pager_never_sleeps":"Dein Pager schläft nie.",
|
||||||
"save.cash_in_the_bank":"{cash} auf der Bank",
|
"save.cash_in_the_bank":"{cash} auf der Bank",
|
||||||
"save.import_failed_err":"<b>Import fehlgeschlagen.</b><br>{err}",
|
"save.import_failed_err":"<b>Import fehlgeschlagen.</b><br>{err}",
|
||||||
"save.load_name":"{name} laden?",
|
"save.load_name":"{name} laden?",
|
||||||
|
|
@ -2963,6 +2986,7 @@
|
||||||
"scenarios.reach_45_of_the_internet_and":"Erreiche 45 % des Internets und bediene 300 Gbps",
|
"scenarios.reach_45_of_the_internet_and":"Erreiche 45 % des Internets und bediene 300 Gbps",
|
||||||
"scenarios.red_sea_crisis":"Krise im Roten Meer",
|
"scenarios.red_sea_crisis":"Krise im Roten Meer",
|
||||||
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio, ganz von vorn. Der Karneval beginnt in 90 Tagen und will fünf Tage am Stück 400 Gbps. Die ganze Welt schaut zu.",
|
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio, ganz von vorn. Der Karneval beginnt in 90 Tagen und will fünf Tage am Stück 400 Gbps. Die ganze Welt schaut zu.",
|
||||||
|
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Sandbox-Modus</b><br>Eine Milliarde Dollar und alles freigeschaltet. Chaos: {chaos}. Bau das Internet, das du immer wolltest, und halt einen Ersatzbagger bereit.",
|
||||||
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Sandbox-Modus</b><br>Eine Milliarde Dollar, alles freigeschaltet, und nichts geht jemals kaputt. Bau das Internet, das du schon immer wolltest.",
|
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Sandbox-Modus</b><br>Eine Milliarde Dollar, alles freigeschaltet, und nichts geht jemals kaputt. Bau das Internet, das du schon immer wolltest.",
|
||||||
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brasilien ist ein Kontinent: vierzig IX.brrr-Exchanges, Tausende Provedores und der Amazonas zwischen dir und dem Norden.",
|
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brasilien ist ein Kontinent: vierzig IX.brrr-Exchanges, Tausende Provedores und der Amazonas zwischen dir und dem Norden.",
|
||||||
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Die schnellsten, hungrigsten Privatkunden der Welt, Transit zum vierfachen Preis und drei Platzhirsche, die dir jedes Gigabit in Rechnung stellen, das du ihnen schickst.",
|
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Die schnellsten, hungrigsten Privatkunden der Welt, Transit zum vierfachen Preis und drei Platzhirsche, die dir jedes Gigabit in Rechnung stellen, das du ihnen schickst.",
|
||||||
|
|
@ -3081,24 +3105,34 @@
|
||||||
"supply_chain.until_date_at_p":"bis {date}, zu +{p}",
|
"supply_chain.until_date_at_p":"bis {date}, zu +{p}",
|
||||||
"supply_chain.what_p_n_days_left":"{what} +{p} · noch {n} Tage",
|
"supply_chain.what_p_n_days_left":"{what} +{p} · noch {n} Tage",
|
||||||
"supply_chain.your_price_lock_covers_you_until":"Deine Preisgarantie gilt bis {date}.",
|
"supply_chain.your_price_lock_covers_you_until":"Deine Preisgarantie gilt bis {date}.",
|
||||||
|
"title.a_billion_dollars_and_every_toy":"Eine Milliarde Dollar und jedes Spielzeug im Laden.",
|
||||||
"title.anywhere_else":"Irgendwo anders",
|
"title.anywhere_else":"Irgendwo anders",
|
||||||
"title.asia_hub_great_peering_far_from":"Asien-Drehkreuz. Tolles Peering, weit weg von zu Hause.",
|
"title.asia_hub_great_peering_far_from":"Asien-Drehkreuz. Tolles Peering, weit weg von zu Hause.",
|
||||||
"title.back_to_my_network":"Zurück zu meinem Netz",
|
"title.back_to_my_network":"Zurück zu meinem Netz",
|
||||||
"title.big_hungry_market_few_providers":"Großer, hungriger Markt, wenige Anbieter.",
|
"title.big_hungry_market_few_providers":"Großer, hungriger Markt, wenige Anbieter.",
|
||||||
"title.build_an_internet_lay_fiber_between":"Baue deinen eigenen ISP auf. Verlege Glasfaser zwischen Städten, kauf Transit, peere an Exchanges, gewinne Geschäftskunden und halte deine Privatkunden bei Laune, während Bagger, Haie und Route Leaks alles tun, um dich aufzuhalten.",
|
"title.build_an_internet_lay_fiber_between":"Baue deinen eigenen ISP auf. Verlege Glasfaser zwischen Städten, kauf Transit, peere an Exchanges, gewinne Geschäftskunden und halte deine Privatkunden bei Laune, während Bagger, Haie und Route Leaks alles tun, um dich aufzuhalten.",
|
||||||
|
"title.chaos_in_your_sandbox":"Chaos in deinem Sandkasten",
|
||||||
"title.chat_on_signal":"Chat auf Signal",
|
"title.chat_on_signal":"Chat auf Signal",
|
||||||
"title.choose":"Auswählen …",
|
"title.choose":"Auswählen …",
|
||||||
"title.continue_name_date":"{name} fortsetzen · {date}",
|
"title.continue_name_date":"{name} fortsetzen · {date}",
|
||||||
"title.cookieless_stats_no_tracking":"Statistik ohne Cookies, kein Tracking",
|
"title.cookieless_stats_no_tracking":"Statistik ohne Cookies, kein Tracking",
|
||||||
"title.crossroads_of_europe_de_kicks_ix":"Drehkreuz Europas. DE-KICKS IX, günstiger Transit.",
|
"title.crossroads_of_europe_de_kicks_ix":"Drehkreuz Europas. DE-KICKS IX, günstiger Transit.",
|
||||||
|
"title.hand_built_crises_and_one_world":"Handgebaute Krisen, und jede Woche eine Welt für alle.",
|
||||||
"title.hard_mode_pricey_everything":"Schwerer Modus. Alles teuer, und die Tierwelt will dich tot sehen.",
|
"title.hard_mode_pricey_everything":"Schwerer Modus. Alles teuer, und die Tierwelt will dich tot sehen.",
|
||||||
|
"title.how_much_trouble":"Wie viel Ärger darf’s sein?",
|
||||||
"title.huge_eyeball_market_pricey":"Riesiger Privatkundenmarkt. Teure Nachbarn.",
|
"title.huge_eyeball_market_pricey":"Riesiger Privatkundenmarkt. Teure Nachbarn.",
|
||||||
"title.n_more_cities_with_transit":{"one":"{n} weitere Stadt mit Transit zum Kaufen","other":"{n} weitere Städte mit Transit zum Kaufen"},
|
"title.n_more_cities_with_transit":{"one":"{n} weitere Stadt mit Transit zum Kaufen","other":"{n} weitere Städte mit Transit zum Kaufen"},
|
||||||
"title.name_your_network":"Gib deinem Netz einen Namen",
|
"title.name_your_network":"Gib deinem Netz einen Namen",
|
||||||
"title.new_in_series_of_tubes_v":"Neu in Series of Tubes {v}",
|
"title.new_in_series_of_tubes_v":"Neu in Series of Tubes {v}",
|
||||||
|
"title.one_network_one_knot_no_clock":"Ein Netz, ein Knoten zum Entwirren. Keine Uhr.",
|
||||||
|
"title.pick_a_door":"Wähl eine Tür",
|
||||||
"title.pick_your_home_city":"Wähle deine Heimatstadt",
|
"title.pick_your_home_city":"Wähle deine Heimatstadt",
|
||||||
"title.scenarios_amp_weekly_challenge":"Szenarien & Wochen-Challenge →",
|
"title.puzzles":"Rätsel",
|
||||||
|
"title.puzzles_are_coming_soon":"<b>Rätsel kommen bald.</b><br>Die Knoten werden noch geknüpft.",
|
||||||
|
"title.rules_are_picked_once_and_locked":"Die Regeln wählst du einmal, danach sind sie für dieses Netz festgelegt. Kein Nachverhandeln mitten im Spiel.",
|
||||||
|
"title.scenarios_amp_weekly":"Szenarien & Woche",
|
||||||
"title.source_on_github":"Quellcode auf GitHub",
|
"title.source_on_github":"Quellcode auf GitHub",
|
||||||
|
"title.the_real_game_climb_from_tier":"Das echte Spiel: von Tier 3 hoch zu Tier 1.",
|
||||||
"title.your_network_name_was_saved_and":"Dein Netz {name} wurde gespeichert und wartet auf dich.",
|
"title.your_network_name_was_saved_and":"Dein Netz {name} wurde gespeichert und wartet auf dich.",
|
||||||
"traceroute.across_the_ix_switch":"über den Switch des {ix}",
|
"traceroute.across_the_ix_switch":"über den Switch des {ix}",
|
||||||
"traceroute.as_path_path":"<b>AS-Pfad:</b> {path}",
|
"traceroute.as_path_path":"<b>AS-Pfad:</b> {path}",
|
||||||
|
|
|
||||||
|
|
@ -1778,7 +1778,7 @@
|
||||||
"fiber_modals.for_comparison_a_leased_1_6t":"A modo de comparación, una onda alquilada de 1.6T en esta ruta cuesta {price}/mes. Las ópticas vienen después, desde el panel del enlace.",
|
"fiber_modals.for_comparison_a_leased_1_6t":"A modo de comparación, una onda alquilada de 1.6T en esta ruta cuesta {price}/mes. Las ópticas vienen después, desde el panel del enlace.",
|
||||||
"fiber_modals.from_city":"Desde {city}",
|
"fiber_modals.from_city":"Desde {city}",
|
||||||
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km es más de lo que alcanza cualquier óptica a toda velocidad.</b> Los transpondedores funcionarán en modo de larga distancia (1.2T, 800G o 400G por canal), o añade sitios regeneradores por el camino para recuperar la velocidad completa.",
|
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km es más de lo que alcanza cualquier óptica a toda velocidad.</b> Los transpondedores funcionarán en modo de larga distancia (1.2T, 800G o 400G por canal), o añade sitios regeneradores por el camino para recuperar la velocidad completa.",
|
||||||
"fiber_modals.lease_an_iru_price_mo_ready":"Alquilar una IRU <small>{price}/mes · lista en 30 días</small>",
|
"fiber_modals.lease_an_iru_price_mo_ready_n":"Alquilar un IRU <small>{price}/mes · lista en {n} días</small>",
|
||||||
"fiber_modals.level_n":"nivel {n}",
|
"fiber_modals.level_n":"nivel {n}",
|
||||||
"fiber_modals.no_dark_fiber_inside_the_uae":"No hay fibra oscura dentro de los EAU. Solo los dos operadores con licencia pueden tender fibra aquí, y solo venden ondas.",
|
"fiber_modals.no_dark_fiber_inside_the_uae":"No hay fibra oscura dentro de los EAU. Solo los dos operadores con licencia pueden tender fibra aquí, y solo venden ondas.",
|
||||||
"fiber_modals.no_install_fee_live_in_minutes":"Sin cuota de instalación, activo en minutos, facturado mensualmente. Más barato que una onda para poca capacidad, pero viaja por la fabric de otro, y esa fabric puede fallar.",
|
"fiber_modals.no_install_fee_live_in_minutes":"Sin cuota de instalación, activo en minutos, facturado mensualmente. Más barato que una onda para poca capacidad, pero viaja por la fabric de otro, y esa fabric puede fallar.",
|
||||||
|
|
@ -1889,6 +1889,7 @@
|
||||||
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) es libre de tránsito. Haces peering con todos los gigantes del planeta y no pagas a nadie por llegar a internet. Te llevó {days} días y {n} incidentes.",
|
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) es libre de tránsito. Haces peering con todos los gigantes del planeta y no pagas a nadie por llegar a internet. Te llevó {days} días y {n} incidentes.",
|
||||||
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG y compañía vienen cada año. Regístrate en la pestaña Tratos por $8k. Durante 45 días después, las redes selectivas con presencia en esa región solo piden la mitad del tráfico habitual antes de hacer peering contigo. A veces también ganas la rifa.",
|
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG y compañía vienen cada año. Regístrate en la pestaña Tratos por $8k. Durante 45 días después, las redes selectivas con presencia en esa región solo piden la mitad del tráfico habitual antes de hacer peering contigo. A veces también ganas la rifa.",
|
||||||
"help.once_auto_te_is_installed_you":"Una vez instalado Auto-TE, puedes programarlo desde la pestaña NOC. Las reglas incluyen <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> y <code>blackhole ddos</code>. Check hace una prueba en seco con tráfico real; Deploy lo hace de verdad, errores incluidos.",
|
"help.once_auto_te_is_installed_you":"Una vez instalado Auto-TE, puedes programarlo desde la pestaña NOC. Las reglas incluyen <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> y <code>blackhole ddos</code>. Check hace una prueba en seco con tráfico real; Deploy lo hace de verdad, errores incluidos.",
|
||||||
|
"help.one_game_four_doors_puzzles_are":"Un juego, cuatro puertas, y las reglas se eligen al empezar una red y quedan fijadas después. Los puzles son pequeños nudos que deshacer, sin reloj. Sandbox te da mil millones de dólares, todo desbloqueado (tu propio cable submarino incluido) y el caos que elijas, pero sin insignias. Normal viene de tres maneras: Congelación de cambios (pocas caídas, entregas en días, sin bandeja ni escasez), De guardia (el juego clásico) y BGP a las 3 de la mañana (más caídas y más largas, más DDoS). Los escenarios son retos hechos a mano con un objetivo y un plazo, y el reto semanal da a todos el mismo mundo durante una semana. Comparte tu resultado con la tarjeta del menú.",
|
||||||
"help.open_peers_with_anyone_selective":"Open hace peering con cualquiera. Selective quiere ver tráfico primero. Restrictive (los Tier 1) solo hace peering con gigantes, por PNIs. Paid significa justo eso. Las grandes redes selectivas también tienen sus rachas: en algunas ciudades rechazan peers nuevos durante unos meses, o solo aceptan PNIs, y de vez en cuando tumban una sesión que ya tenías. Prueba otra ciudad o un PNI, y vuelve a preguntar más tarde.",
|
"help.open_peers_with_anyone_selective":"Open hace peering con cualquiera. Selective quiere ver tráfico primero. Restrictive (los Tier 1) solo hace peering con gigantes, por PNIs. Paid significa justo eso. Las grandes redes selectivas también tienen sus rachas: en algunas ciudades rechazan peers nuevos durante unos meses, o solo aceptan PNIs, y de vez en cuando tumban una sesión que ya tenías. Prueba otra ciudad o un PNI, y vuelve a preguntar más tarde.",
|
||||||
"help.out_of_port_speed_bundle_up":"¿Te quedas sin velocidad de puerto? Agrupa hasta 8 puertos idénticos al mismo proveedor de tránsito, IX o PNI en un LAG. Cada miembro cuesta un puerto entero; el hash de flujos nunca es perfectamente uniforme, así que un paquete transporta cerca del 95 % de la suma.",
|
"help.out_of_port_speed_bundle_up":"¿Te quedas sin velocidad de puerto? Agrupa hasta 8 puertos idénticos al mismo proveedor de tránsito, IX o PNI en un LAG. Cada miembro cuesta un puerto entero; el hash de flujos nunca es perfectamente uniforme, así que un paquete transporta cerca del 95 % de la suma.",
|
||||||
"help.pni_lead_times":"Plazos de los PNI",
|
"help.pni_lead_times":"Plazos de los PNI",
|
||||||
|
|
@ -1897,7 +1898,6 @@
|
||||||
"help.reach_an_ix_over_a_fabric":"Llega a un IX por un circuito de fabric sin tener POP allí. Funciona, y el route server te sigue dando todas las redes abiertas, pero no se recomienda: el revendedor cobra 1,5× por el puerto y lo sobresuscribe al 80 %, la latencia viaja por la fabric, una caída de la fabric tumba todas las sesiones, y muchas redes selectivas rechazan de plano a los miembros remotos.",
|
"help.reach_an_ix_over_a_fabric":"Llega a un IX por un circuito de fabric sin tener POP allí. Funciona, y el route server te sigue dando todas las redes abiertas, pero no se recomienda: el revendedor cobra 1,5× por el puerto y lo sobresuscribe al 80 %, la latencia viaja por la fabric, una caída de la fabric tumba todas las sesiones, y muchas redes selectivas rechazan de plano a los miembros remotos.",
|
||||||
"help.routers_optics_and_new_builds_get":"Los routers, las ópticas y las obras nuevas se encarecen con los años, un 4 % anual tras los primeros seis meses, y de vez en cuando una escasez encarece mucho alguno durante un mes o dos. Lo que ya tienes conserva su precio. Los repuestos en el estante y un precio fijo anual desde la pestaña NOC amortiguan el golpe.",
|
"help.routers_optics_and_new_builds_get":"Los routers, las ópticas y las obras nuevas se encarecen con los años, un 4 % anual tras los primeros seis meses, y de vez en cuando una escasez encarece mucho alguno durante un mes o dos. Lo que ya tienes conserva su precio. Los repuestos en el estante y un precio fijo anual desde la pestaña NOC amortiguan el golpe.",
|
||||||
"help.rules_for_your_auto_te_controller":"Reglas para tu controlador Auto-TE: qué salidas preferir, cuáles evitar y cuándo desbordar hacia la siguiente. La ayuda del editor explica cada regla y trae scripts ya hechos.",
|
"help.rules_for_your_auto_te_controller":"Reglas para tu controlador Auto-TE: qué salidas preferir, cuáles evitar y cuándo desbordar hacia la siguiente. La ayuda del editor explica cada regla y trae scripts ya hechos.",
|
||||||
"help.sandbox_gives_you_a_billion_dollars":"El sandbox te da mil millones de dólares, todos los desbloqueos y ningún fallo, pero sin insignias. Los escenarios son desafíos hechos a mano con un objetivo y un plazo, y el desafío semanal da a todos el mismo mundo durante una semana. Comparte tu resultado con la tarjeta del menú.",
|
|
||||||
"help.share_my_network":"Compartir mi red",
|
"help.share_my_network":"Compartir mi red",
|
||||||
"help.some_customers_come_with_conditions":"Algunos clientes traen condiciones: sin Cogentle en ningún sitio, sin cables submarinos por los tiburones, dos routers, un generador, NetChill on-net, buen alcance a China con poca pérdida y más. Cada una paga un bono. Las incumplidas los ponen de mal humor hasta que lo arreglas o se van.",
|
"help.some_customers_come_with_conditions":"Algunos clientes traen condiciones: sin Cogentle en ningún sitio, sin cables submarinos por los tiburones, dos routers, un generador, NetChill on-net, buen alcance a China con poca pérdida y más. Cada una paga un bono. Las incumplidas los ponen de mal humor hasta que lo arreglas o se van.",
|
||||||
"help.some_routers_take_forever_to_boot":"Algunos routers tardan una eternidad en arrancar. La pestaña Infra muestra cuánto tarda el tuyo. Los de arranque lento alargan las caídas y convierten el cambio de un router en una caída de tres días. Los chasis grandes, sobre todo los que llevan un PacketOinker™ dentro, son lentos más a menudo. Los routers gemelos lo convierten en problema de otro.",
|
"help.some_routers_take_forever_to_boot":"Algunos routers tardan una eternidad en arrancar. La pestaña Infra muestra cuánto tarda el tuyo. Los de arranque lento alargan las caídas y convierten el cambio de un router en una caída de tres días. Los chasis grandes, sobre todo los que llevan un PacketOinker™ dentro, son lentos más a menudo. Los routers gemelos lo convierten en problema de otro.",
|
||||||
|
|
@ -2904,6 +2904,29 @@
|
||||||
"routing_and_routers.the_model_won_t_fit_why":"<b>El {model} no cabe.</b><br>{why}",
|
"routing_and_routers.the_model_won_t_fit_why":"<b>El {model} no cabe.</b><br>{why}",
|
||||||
"routing_and_routers.the_new_routers_in_city_are":"<b>Los routers nuevos de {city} aún se están montando en el rack.</b><br>Un cambio al día: prueba mañana.",
|
"routing_and_routers.the_new_routers_in_city_are":"<b>Los routers nuevos de {city} aún se están montando en el rack.</b><br>Un cambio al día: prueba mañana.",
|
||||||
"routing_and_routers.unplug_something_first_used_ports":"<b>Desconecta algo primero.</b><br>Hay {used} puertos en uso, y con un router menos solo hay {max}.",
|
"routing_and_routers.unplug_something_first_used_ports":"<b>Desconecta algo primero.</b><br>Hay {used} puertos en uso, y con un router menos solo hay {max}.",
|
||||||
|
"rules.a_billion_dollars_every_unlock_your":"Mil millones de dólares, todo desbloqueado, tu propio cable submarino.",
|
||||||
|
"rules.a_cut_now_and_then":"Algún corte de vez en cuando.",
|
||||||
|
"rules.bgp_at_3_a_m":"BGP a las 3 de la mañana",
|
||||||
|
"rules.change_freeze":"Congelación de cambios",
|
||||||
|
"rules.chaos_calm":"Tranquilo",
|
||||||
|
"rules.chaos_none":"Nada",
|
||||||
|
"rules.chaos_normal":"Normal",
|
||||||
|
"rules.chaos_spicy":"Picante",
|
||||||
|
"rules.everything_is_on_fire_and_it":"Todo está ardiendo, y te toca a ti.",
|
||||||
|
"rules.fewer_outages_pnis_and_builds_in":"Un tercio de las caídas, sin DDoS. PNI y obras en días. Sin bandeja de entrada, sin escasez, sin rutas agotadas.",
|
||||||
|
"rules.infinite_money_everything_unlocked_quick":"Dinero sin fin, todo desbloqueado, plazos cortos. Sin insignias.",
|
||||||
|
"rules.like_the_real_game":"Como el juego de verdad.",
|
||||||
|
"rules.more_and_longer_outages_more_ddos":"Casi el doble de caídas, la mitad más largas, el doble de DDoS. Todo activado.",
|
||||||
|
"rules.no_clock_no_bills_nothing_breaks":"Sin reloj, sin facturas, nada se rompe.",
|
||||||
|
"rules.nobody_touches_prod_even_the_backhoes":"Nadie toca producción. Hasta las excavadoras están de vacaciones.",
|
||||||
|
"rules.nothing_ever_breaks":"Nunca se rompe nada.",
|
||||||
|
"rules.on_call":"De guardia",
|
||||||
|
"rules.one_small_network_one_tricky_goal":"Una red pequeña, un objetivo con truco.",
|
||||||
|
"rules.puzzle":"Puzle",
|
||||||
|
"rules.real_lead_times_real_outages_a":"Plazos reales, caídas reales, una bandeja de peering llena. El juego clásico.",
|
||||||
|
"rules.rules_are_locked_for_this_network":"{rules}: las reglas están fijadas para esta red.",
|
||||||
|
"rules.the_real_thing_your_pager_has":"El juego de verdad. Tu busca tiene opiniones.",
|
||||||
|
"rules.your_pager_never_sleeps":"Tu busca no duerme nunca.",
|
||||||
"save.cash_in_the_bank":"{cash} en el banco",
|
"save.cash_in_the_bank":"{cash} en el banco",
|
||||||
"save.import_failed_err":"<b>Falló la importación.</b><br>{err}",
|
"save.import_failed_err":"<b>Falló la importación.</b><br>{err}",
|
||||||
"save.load_name":"¿Cargar {name}?",
|
"save.load_name":"¿Cargar {name}?",
|
||||||
|
|
@ -2961,6 +2984,7 @@
|
||||||
"scenarios.reach_45_of_the_internet_and":"Llega al 45 % de internet y sirve 300 Gbps",
|
"scenarios.reach_45_of_the_internet_and":"Llega al 45 % de internet y sirve 300 Gbps",
|
||||||
"scenarios.red_sea_crisis":"Crisis del Mar Rojo",
|
"scenarios.red_sea_crisis":"Crisis del Mar Rojo",
|
||||||
"scenarios.rio_from_scratch_carnaval_starts_in":"Río desde cero. El Carnaval empieza en 90 días y quiere 400 Gbps durante cinco días seguidos. Todo el mundo está mirando.",
|
"scenarios.rio_from_scratch_carnaval_starts_in":"Río desde cero. El Carnaval empieza en 90 días y quiere 400 Gbps durante cinco días seguidos. Todo el mundo está mirando.",
|
||||||
|
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Modo sandbox</b><br>Mil millones de dólares y todo desbloqueado. Caos: {chaos}. Construye el internet que siempre quisiste, y ten a mano una excavadora de repuesto.",
|
||||||
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modo sandbox</b><br>Mil millones de dólares, todos los desbloqueos y nada se rompe nunca. Construye el internet que siempre quisiste.",
|
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modo sandbox</b><br>Mil millones de dólares, todos los desbloqueos y nada se rompe nunca. Construye el internet que siempre quisiste.",
|
||||||
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brasil es un continente: cuarenta intercambios IX.brrr, miles de provedores, y el Amazonas entre tú y el norte.",
|
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brasil es un continente: cuarenta intercambios IX.brrr, miles de provedores, y el Amazonas entre tú y el norte.",
|
||||||
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seúl. Los eyeballs más rápidos y hambrientos de la Tierra, tránsito a cuatro veces el precio, y tres operadores históricos que te facturan cada gigabit que les mandas.",
|
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seúl. Los eyeballs más rápidos y hambrientos de la Tierra, tránsito a cuatro veces el precio, y tres operadores históricos que te facturan cada gigabit que les mandas.",
|
||||||
|
|
@ -3079,24 +3103,34 @@
|
||||||
"supply_chain.until_date_at_p":"hasta {date}, a +{p}",
|
"supply_chain.until_date_at_p":"hasta {date}, a +{p}",
|
||||||
"supply_chain.what_p_n_days_left":"{what} +{p} · quedan {n} días",
|
"supply_chain.what_p_n_days_left":"{what} +{p} · quedan {n} días",
|
||||||
"supply_chain.your_price_lock_covers_you_until":"Tu precio fijo te cubre hasta {date}.",
|
"supply_chain.your_price_lock_covers_you_until":"Tu precio fijo te cubre hasta {date}.",
|
||||||
|
"title.a_billion_dollars_and_every_toy":"Mil millones de dólares y todos los juguetes de la tienda.",
|
||||||
"title.anywhere_else":"En otro lugar",
|
"title.anywhere_else":"En otro lugar",
|
||||||
"title.asia_hub_great_peering_far_from":"Hub de Asia. Gran peering, lejos de casa.",
|
"title.asia_hub_great_peering_far_from":"Hub de Asia. Gran peering, lejos de casa.",
|
||||||
"title.back_to_my_network":"Volver a mi red",
|
"title.back_to_my_network":"Volver a mi red",
|
||||||
"title.big_hungry_market_few_providers":"Mercado enorme y hambriento, pocos proveedores.",
|
"title.big_hungry_market_few_providers":"Mercado enorme y hambriento, pocos proveedores.",
|
||||||
"title.build_an_internet_lay_fiber_between":"Construye un internet. Tiende fibra entre ciudades, compra tránsito, haz peering en intercambios, firma con empresas y mantén contentos a los eyeballs mientras retroexcavadoras, tiburones y fugas de rutas hacen lo posible por detenerte.",
|
"title.build_an_internet_lay_fiber_between":"Construye un internet. Tiende fibra entre ciudades, compra tránsito, haz peering en intercambios, firma con empresas y mantén contentos a los eyeballs mientras retroexcavadoras, tiburones y fugas de rutas hacen lo posible por detenerte.",
|
||||||
|
"title.chaos_in_your_sandbox":"Caos en tu sandbox",
|
||||||
"title.chat_on_signal":"Chatea en Signal",
|
"title.chat_on_signal":"Chatea en Signal",
|
||||||
"title.choose":"Elegir…",
|
"title.choose":"Elegir…",
|
||||||
"title.continue_name_date":"Continuar {name} · {date}",
|
"title.continue_name_date":"Continuar {name} · {date}",
|
||||||
"title.cookieless_stats_no_tracking":"Estadísticas sin cookies, sin rastreo",
|
"title.cookieless_stats_no_tracking":"Estadísticas sin cookies, sin rastreo",
|
||||||
"title.crossroads_of_europe_de_kicks_ix":"La encrucijada de Europa. DE-KICKS IX, tránsito barato.",
|
"title.crossroads_of_europe_de_kicks_ix":"La encrucijada de Europa. DE-KICKS IX, tránsito barato.",
|
||||||
|
"title.hand_built_crises_and_one_world":"Crisis hechas a mano, y cada semana un mismo mundo para todos.",
|
||||||
"title.hard_mode_pricey_everything":"Modo difícil. Todo carísimo, y la fauna te quiere muerto.",
|
"title.hard_mode_pricey_everything":"Modo difícil. Todo carísimo, y la fauna te quiere muerto.",
|
||||||
|
"title.how_much_trouble":"¿Cuántos problemas quieres?",
|
||||||
"title.huge_eyeball_market_pricey":"Mercado enorme de eyeballs. Vecinos caros.",
|
"title.huge_eyeball_market_pricey":"Mercado enorme de eyeballs. Vecinos caros.",
|
||||||
"title.n_more_cities_with_transit":{"one":"{n} ciudad más con tránsito a la venta","other":"{n} ciudades más con tránsito a la venta"},
|
"title.n_more_cities_with_transit":{"one":"{n} ciudad más con tránsito a la venta","other":"{n} ciudades más con tránsito a la venta"},
|
||||||
"title.name_your_network":"Ponle nombre a tu red",
|
"title.name_your_network":"Ponle nombre a tu red",
|
||||||
"title.new_in_series_of_tubes_v":"Novedades de Series of Tubes {v}",
|
"title.new_in_series_of_tubes_v":"Novedades de Series of Tubes {v}",
|
||||||
|
"title.one_network_one_knot_no_clock":"Una red, un nudo que deshacer. Sin reloj.",
|
||||||
|
"title.pick_a_door":"Elige una puerta",
|
||||||
"title.pick_your_home_city":"Elige tu ciudad de origen",
|
"title.pick_your_home_city":"Elige tu ciudad de origen",
|
||||||
"title.scenarios_amp_weekly_challenge":"Escenarios y desafío semanal →",
|
"title.puzzles":"Puzles",
|
||||||
|
"title.puzzles_are_coming_soon":"<b>Los puzles llegan pronto.</b><br>Todavía estamos atando los nudos.",
|
||||||
|
"title.rules_are_picked_once_and_locked":"Las reglas se eligen una vez y quedan fijadas para esta red. Nada de cambiar el trato a mitad de partida.",
|
||||||
|
"title.scenarios_amp_weekly":"Escenarios y semanal",
|
||||||
"title.source_on_github":"Código en GitHub",
|
"title.source_on_github":"Código en GitHub",
|
||||||
|
"title.the_real_game_climb_from_tier":"El juego de verdad: sube de Tier 3 a Tier 1.",
|
||||||
"title.your_network_name_was_saved_and":"Tu red {name} se guardó y te está esperando.",
|
"title.your_network_name_was_saved_and":"Tu red {name} se guardó y te está esperando.",
|
||||||
"traceroute.across_the_ix_switch":"a través del switch de {ix}",
|
"traceroute.across_the_ix_switch":"a través del switch de {ix}",
|
||||||
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
||||||
|
|
|
||||||
|
|
@ -1778,7 +1778,7 @@
|
||||||
"fiber_modals.for_comparison_a_leased_1_6t":"Pour comparer, une longueur d’onde 1.6T louée sur ce trajet coûte {price}/mois. Les optiques viennent ensuite, depuis le panneau du lien.",
|
"fiber_modals.for_comparison_a_leased_1_6t":"Pour comparer, une longueur d’onde 1.6T louée sur ce trajet coûte {price}/mois. Les optiques viennent ensuite, depuis le panneau du lien.",
|
||||||
"fiber_modals.from_city":"Depuis {city}",
|
"fiber_modals.from_city":"Depuis {city}",
|
||||||
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km, c’est plus long que la portée de n’importe quelle optique à plein débit.</b> Les transpondeurs tourneront en mode longue distance (1.2T, 800G ou 400G par canal), ou ajoute des sites de régénération en route pour retrouver le plein débit.",
|
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km, c’est plus long que la portée de n’importe quelle optique à plein débit.</b> Les transpondeurs tourneront en mode longue distance (1.2T, 800G ou 400G par canal), ou ajoute des sites de régénération en route pour retrouver le plein débit.",
|
||||||
"fiber_modals.lease_an_iru_price_mo_ready":"Louer un IRU <small>{price}/mois · prêt en 30 jours</small>",
|
"fiber_modals.lease_an_iru_price_mo_ready_n":"Louer un IRU <small>{price}/mois · prêt dans {n} jours</small>",
|
||||||
"fiber_modals.level_n":"niveau {n}",
|
"fiber_modals.level_n":"niveau {n}",
|
||||||
"fiber_modals.no_dark_fiber_inside_the_uae":"Pas de fibre noire aux Émirats. Seuls les deux opérateurs licenciés peuvent poser de la fibre ici, et ils ne vendent que des longueurs d’onde.",
|
"fiber_modals.no_dark_fiber_inside_the_uae":"Pas de fibre noire aux Émirats. Seuls les deux opérateurs licenciés peuvent poser de la fibre ici, et ils ne vendent que des longueurs d’onde.",
|
||||||
"fiber_modals.no_install_fee_live_in_minutes":"Pas de frais d’installation, actif en quelques minutes, facturé au mois. Moins cher qu’une longueur d’onde pour une petite capacité, mais ça passe par le fabric de quelqu’un d’autre, et ce fabric peut tomber en panne.",
|
"fiber_modals.no_install_fee_live_in_minutes":"Pas de frais d’installation, actif en quelques minutes, facturé au mois. Moins cher qu’une longueur d’onde pour une petite capacité, mais ça passe par le fabric de quelqu’un d’autre, et ce fabric peut tomber en panne.",
|
||||||
|
|
@ -1889,6 +1889,7 @@
|
||||||
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) est transit-free. Tu fais du peering avec tous les géants de la planète et tu ne paies personne pour atteindre Internet. Il t’a fallu {days} jours et {n} incidents.",
|
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) est transit-free. Tu fais du peering avec tous les géants de la planète et tu ne paies personne pour atteindre Internet. Il t’a fallu {days} jours et {n} incidents.",
|
||||||
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG et compagnie reviennent chaque année. Inscris-toi dans l’onglet Offres pour $8k. Pendant les 45 jours suivants, les réseaux sélectifs présents dans cette région ne demandent que la moitié du trafic habituel avant de faire du peering avec toi. Parfois, tu gagnes aussi la tombola.",
|
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG et compagnie reviennent chaque année. Inscris-toi dans l’onglet Offres pour $8k. Pendant les 45 jours suivants, les réseaux sélectifs présents dans cette région ne demandent que la moitié du trafic habituel avant de faire du peering avec toi. Parfois, tu gagnes aussi la tombola.",
|
||||||
"help.once_auto_te_is_installed_you":"Une fois Auto-TE installé, tu peux le programmer depuis l’onglet NOC. Parmi les règles : <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> et <code>blackhole ddos</code>. Vérifier fait un essai à blanc sur le trafic réel ; Déployer le rend réel, erreurs comprises.",
|
"help.once_auto_te_is_installed_you":"Une fois Auto-TE installé, tu peux le programmer depuis l’onglet NOC. Parmi les règles : <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> et <code>blackhole ddos</code>. Vérifier fait un essai à blanc sur le trafic réel ; Déployer le rend réel, erreurs comprises.",
|
||||||
|
"help.one_game_four_doors_puzzles_are":"Un jeu, quatre portes, et les règles se choisissent au démarrage d’un réseau puis restent verrouillées. Les casse-têtes sont de petits nœuds à défaire, sans horloge. Le bac à sable te donne un milliard de dollars, tout débloqué (ton propre câble sous-marin compris) et autant de chaos que tu veux, mais pas de badges. Normal existe en trois versions : Gel des changements (peu de pannes, livraisons en quelques jours, ni boîte de réception ni pénurie), D’astreinte (le jeu classique) et BGP à 3 h du matin (plus de pannes, plus longues, plus de DDoS). Les scénarios sont des défis faits main avec un objectif et une échéance, et le défi de la semaine donne à tous le même monde pendant une semaine. Partage ton résultat avec la carte du menu.",
|
||||||
"help.open_peers_with_anyone_selective":"Ouverte : peering avec tout le monde. Sélective : veut d’abord voir du trafic. Restrictive (les Tier 1) : peering uniquement avec les géants, via PNI. Payante : tout est dans le nom. Les gros réseaux sélectifs ont aussi leurs humeurs : dans certaines villes, ils refusent les nouveaux peers pendant quelques mois, ou n’acceptent que des PNI, et de temps en temps ils coupent une session que tu avais déjà. Essaie une autre ville ou un PNI, et redemande plus tard.",
|
"help.open_peers_with_anyone_selective":"Ouverte : peering avec tout le monde. Sélective : veut d’abord voir du trafic. Restrictive (les Tier 1) : peering uniquement avec les géants, via PNI. Payante : tout est dans le nom. Les gros réseaux sélectifs ont aussi leurs humeurs : dans certaines villes, ils refusent les nouveaux peers pendant quelques mois, ou n’acceptent que des PNI, et de temps en temps ils coupent une session que tu avais déjà. Essaie une autre ville ou un PNI, et redemande plus tard.",
|
||||||
"help.out_of_port_speed_bundle_up":"Port trop petit ? Regroupe jusqu’à 8 ports identiques vers le même fournisseur de transit, IX ou PNI en un LAG. Chaque membre coûte un port complet ; le hachage des flux n’est jamais parfaitement équilibré, donc un bundle transporte environ 95 % de la somme.",
|
"help.out_of_port_speed_bundle_up":"Port trop petit ? Regroupe jusqu’à 8 ports identiques vers le même fournisseur de transit, IX ou PNI en un LAG. Chaque membre coûte un port complet ; le hachage des flux n’est jamais parfaitement équilibré, donc un bundle transporte environ 95 % de la somme.",
|
||||||
"help.pni_lead_times":"Délais des PNI",
|
"help.pni_lead_times":"Délais des PNI",
|
||||||
|
|
@ -1897,7 +1898,6 @@
|
||||||
"help.reach_an_ix_over_a_fabric":"Rejoindre un IX via un circuit fabric sans POP sur place. Ça marche, et le route server te donne quand même tous les réseaux ouverts, mais c’est déconseillé : le revendeur facture le port 1,5× et le survend à 80 %, la latence dépend du fabric, une panne du fabric fait tomber toutes les sessions, et beaucoup de réseaux sélectifs refusent tout net les membres distants.",
|
"help.reach_an_ix_over_a_fabric":"Rejoindre un IX via un circuit fabric sans POP sur place. Ça marche, et le route server te donne quand même tous les réseaux ouverts, mais c’est déconseillé : le revendeur facture le port 1,5× et le survend à 80 %, la latence dépend du fabric, une panne du fabric fait tomber toutes les sessions, et beaucoup de réseaux sélectifs refusent tout net les membres distants.",
|
||||||
"help.routers_optics_and_new_builds_get":"Routeurs, optiques et nouvelles constructions coûtent plus cher avec les années, environ 4 % par an après les six premiers mois, et de temps en temps une pénurie rend l’un d’eux bien plus cher pendant un mois ou deux. Ce que vous possédez déjà garde son prix. Des pièces de rechange sur l’étagère et un blocage annuel des prix depuis l’onglet NOC amortissent le choc.",
|
"help.routers_optics_and_new_builds_get":"Routeurs, optiques et nouvelles constructions coûtent plus cher avec les années, environ 4 % par an après les six premiers mois, et de temps en temps une pénurie rend l’un d’eux bien plus cher pendant un mois ou deux. Ce que vous possédez déjà garde son prix. Des pièces de rechange sur l’étagère et un blocage annuel des prix depuis l’onglet NOC amortissent le choc.",
|
||||||
"help.rules_for_your_auto_te_controller":"Des règles pour votre contrôleur Auto-TE : quelles sorties préférer, lesquelles éviter et quand déborder sur la suivante. L’aide de l’éditeur explique chaque règle et propose des scripts tout prêts.",
|
"help.rules_for_your_auto_te_controller":"Des règles pour votre contrôleur Auto-TE : quelles sorties préférer, lesquelles éviter et quand déborder sur la suivante. L’aide de l’éditeur explique chaque règle et propose des scripts tout prêts.",
|
||||||
"help.sandbox_gives_you_a_billion_dollars":"Le bac à sable te donne un milliard de dollars, tout débloqué et zéro panne, mais pas de badges. Les scénarios sont des défis faits main avec un objectif et une échéance, et le défi de la semaine donne à tout le monde le même monde pendant une semaine. Partage ton résultat avec la carte du menu.",
|
|
||||||
"help.share_my_network":"Partager mon réseau",
|
"help.share_my_network":"Partager mon réseau",
|
||||||
"help.some_customers_come_with_conditions":"Certains clients viennent avec des conditions : pas de Cogentle nulle part, pas de câbles sous-marins à cause des requins, deux routeurs, un groupe électrogène, NetChill on-net, accès à la Chine avec peu de pertes, et plus encore. Chacune rapporte un bonus. Celles qui ne sont pas remplies les rendent grognons jusqu’à ce que tu corriges le tir ou qu’ils partent.",
|
"help.some_customers_come_with_conditions":"Certains clients viennent avec des conditions : pas de Cogentle nulle part, pas de câbles sous-marins à cause des requins, deux routeurs, un groupe électrogène, NetChill on-net, accès à la Chine avec peu de pertes, et plus encore. Chacune rapporte un bonus. Celles qui ne sont pas remplies les rendent grognons jusqu’à ce que tu corriges le tir ou qu’ils partent.",
|
||||||
"help.some_routers_take_forever_to_boot":"Certains routeurs mettent une éternité à démarrer. L’onglet Infra montre combien de temps met le tien. Les routeurs lents au boot font durer les crashs plus longtemps et transforment le remplacement d’un routeur unique en panne de trois jours. Les gros châssis, surtout ceux avec un PacketOinker™ dedans, sont plus souvent lents. Avec des routeurs jumeaux, ça devient le problème de quelqu’un d’autre.",
|
"help.some_routers_take_forever_to_boot":"Certains routeurs mettent une éternité à démarrer. L’onglet Infra montre combien de temps met le tien. Les routeurs lents au boot font durer les crashs plus longtemps et transforment le remplacement d’un routeur unique en panne de trois jours. Les gros châssis, surtout ceux avec un PacketOinker™ dedans, sont plus souvent lents. Avec des routeurs jumeaux, ça devient le problème de quelqu’un d’autre.",
|
||||||
|
|
@ -2904,6 +2904,29 @@
|
||||||
"routing_and_routers.the_model_won_t_fit_why":"<b>Le {model} ne rentre pas.</b><br>{why}",
|
"routing_and_routers.the_model_won_t_fit_why":"<b>Le {model} ne rentre pas.</b><br>{why}",
|
||||||
"routing_and_routers.the_new_routers_in_city_are":"<b>Les nouveaux routeurs de {city} sont encore en cours de montage en baie.</b><br>Un remplacement par jour : réessaie demain.",
|
"routing_and_routers.the_new_routers_in_city_are":"<b>Les nouveaux routeurs de {city} sont encore en cours de montage en baie.</b><br>Un remplacement par jour : réessaie demain.",
|
||||||
"routing_and_routers.unplug_something_first_used_ports":"<b>Débranche d’abord quelque chose.</b><br>{used} ports sont utilisés, et avec un routeur de moins tu n’en aurais que {max}.",
|
"routing_and_routers.unplug_something_first_used_ports":"<b>Débranche d’abord quelque chose.</b><br>{used} ports sont utilisés, et avec un routeur de moins tu n’en aurais que {max}.",
|
||||||
|
"rules.a_billion_dollars_every_unlock_your":"Un milliard de dollars, tout débloqué, ton propre câble sous-marin.",
|
||||||
|
"rules.a_cut_now_and_then":"Une coupure de temps en temps.",
|
||||||
|
"rules.bgp_at_3_a_m":"BGP à 3 h du matin",
|
||||||
|
"rules.change_freeze":"Gel des changements",
|
||||||
|
"rules.chaos_calm":"Calme",
|
||||||
|
"rules.chaos_none":"Aucun",
|
||||||
|
"rules.chaos_normal":"Normal",
|
||||||
|
"rules.chaos_spicy":"Épicé",
|
||||||
|
"rules.everything_is_on_fire_and_it":"Tout brûle, et c’est ton tour d’astreinte.",
|
||||||
|
"rules.fewer_outages_pnis_and_builds_in":"Un tiers des pannes, pas de DDoS. PNI et chantiers en quelques jours. Pas de boîte de réception, pas de pénurie, pas de routes épuisées.",
|
||||||
|
"rules.infinite_money_everything_unlocked_quick":"Argent infini, tout débloqué, délais courts. Pas de badges.",
|
||||||
|
"rules.like_the_real_game":"Comme le vrai jeu.",
|
||||||
|
"rules.more_and_longer_outages_more_ddos":"Presque deux fois plus de pannes, moitié plus longues, deux fois plus de DDoS. Tout activé.",
|
||||||
|
"rules.no_clock_no_bills_nothing_breaks":"Pas d’horloge, pas de factures, rien ne casse.",
|
||||||
|
"rules.nobody_touches_prod_even_the_backhoes":"Personne ne touche à la prod. Même les pelleteuses sont en vacances.",
|
||||||
|
"rules.nothing_ever_breaks":"Rien ne casse jamais.",
|
||||||
|
"rules.on_call":"D’astreinte",
|
||||||
|
"rules.one_small_network_one_tricky_goal":"Un petit réseau, un objectif retors.",
|
||||||
|
"rules.puzzle":"Casse-tête",
|
||||||
|
"rules.real_lead_times_real_outages_a":"De vrais délais, de vraies pannes, une boîte de peering pleine. Le jeu classique.",
|
||||||
|
"rules.rules_are_locked_for_this_network":"{rules} : les règles sont verrouillées pour ce réseau.",
|
||||||
|
"rules.the_real_thing_your_pager_has":"Le vrai jeu. Ton bipeur a des opinions.",
|
||||||
|
"rules.your_pager_never_sleeps":"Ton bipeur ne dort jamais.",
|
||||||
"save.cash_in_the_bank":"{cash} en banque",
|
"save.cash_in_the_bank":"{cash} en banque",
|
||||||
"save.import_failed_err":"<b>Échec de l’import.</b><br>{err}",
|
"save.import_failed_err":"<b>Échec de l’import.</b><br>{err}",
|
||||||
"save.load_name":"Charger {name} ?",
|
"save.load_name":"Charger {name} ?",
|
||||||
|
|
@ -2961,6 +2984,7 @@
|
||||||
"scenarios.reach_45_of_the_internet_and":"Couvre 45 % d’internet et sers 300 Gbps",
|
"scenarios.reach_45_of_the_internet_and":"Couvre 45 % d’internet et sers 300 Gbps",
|
||||||
"scenarios.red_sea_crisis":"Crise en mer Rouge",
|
"scenarios.red_sea_crisis":"Crise en mer Rouge",
|
||||||
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio en partant de zéro. Le Carnaval commence dans 90 jours et veut 400 Gbps pendant cinq jours d’affilée. Le monde entier regarde.",
|
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio en partant de zéro. Le Carnaval commence dans 90 jours et veut 400 Gbps pendant cinq jours d’affilée. Le monde entier regarde.",
|
||||||
|
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Mode bac à sable</b><br>Un milliard de dollars et tout débloqué. Chaos : {chaos}. Construis l’internet dont tu as toujours rêvé, et garde une pelleteuse de rechange sous la main.",
|
||||||
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Mode bac à sable</b><br>Un milliard de dollars, tout débloqué, et rien ne casse jamais. Construis l’Internet dont tu as toujours rêvé.",
|
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Mode bac à sable</b><br>Un milliard de dollars, tout débloqué, et rien ne casse jamais. Construis l’Internet dont tu as toujours rêvé.",
|
||||||
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Le Brésil est un continent : quarante IX.brrr, des milliers de provedores, et l’Amazonie entre toi et le nord.",
|
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Le Brésil est un continent : quarante IX.brrr, des milliers de provedores, et l’Amazonie entre toi et le nord.",
|
||||||
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Séoul. Les eyeballs les plus rapides et les plus voraces de la planète, du transit à quatre fois le prix, et trois opérateurs historiques qui te facturent chaque gigabit que tu leur envoies.",
|
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Séoul. Les eyeballs les plus rapides et les plus voraces de la planète, du transit à quatre fois le prix, et trois opérateurs historiques qui te facturent chaque gigabit que tu leur envoies.",
|
||||||
|
|
@ -3079,24 +3103,34 @@
|
||||||
"supply_chain.until_date_at_p":"jusqu’au {date}, à +{p}",
|
"supply_chain.until_date_at_p":"jusqu’au {date}, à +{p}",
|
||||||
"supply_chain.what_p_n_days_left":"{what} +{p} · encore {n} jours",
|
"supply_chain.what_p_n_days_left":"{what} +{p} · encore {n} jours",
|
||||||
"supply_chain.your_price_lock_covers_you_until":"Votre blocage des prix vous couvre jusqu’au {date}.",
|
"supply_chain.your_price_lock_covers_you_until":"Votre blocage des prix vous couvre jusqu’au {date}.",
|
||||||
|
"title.a_billion_dollars_and_every_toy":"Un milliard de dollars et tous les jouets du magasin.",
|
||||||
"title.anywhere_else":"Ailleurs",
|
"title.anywhere_else":"Ailleurs",
|
||||||
"title.asia_hub_great_peering_far_from":"Hub de l’Asie. Super peering, loin de chez soi.",
|
"title.asia_hub_great_peering_far_from":"Hub de l’Asie. Super peering, loin de chez soi.",
|
||||||
"title.back_to_my_network":"Retour à mon réseau",
|
"title.back_to_my_network":"Retour à mon réseau",
|
||||||
"title.big_hungry_market_few_providers":"Gros marché affamé, peu d’opérateurs.",
|
"title.big_hungry_market_few_providers":"Gros marché affamé, peu d’opérateurs.",
|
||||||
"title.build_an_internet_lay_fiber_between":"Construis un Internet. Pose de la fibre entre les villes, achète du transit, fais du peering aux IX, signe des entreprises et garde les eyeballs contents pendant que pelleteuses, requins et fuites de routes font tout pour t’arrêter.",
|
"title.build_an_internet_lay_fiber_between":"Construis un Internet. Pose de la fibre entre les villes, achète du transit, fais du peering aux IX, signe des entreprises et garde les eyeballs contents pendant que pelleteuses, requins et fuites de routes font tout pour t’arrêter.",
|
||||||
|
"title.chaos_in_your_sandbox":"Du chaos dans ton bac à sable",
|
||||||
"title.chat_on_signal":"Discuter sur Signal",
|
"title.chat_on_signal":"Discuter sur Signal",
|
||||||
"title.choose":"Choisir…",
|
"title.choose":"Choisir…",
|
||||||
"title.continue_name_date":"Continuer {name} · {date}",
|
"title.continue_name_date":"Continuer {name} · {date}",
|
||||||
"title.cookieless_stats_no_tracking":"Stats sans cookies, sans pistage",
|
"title.cookieless_stats_no_tracking":"Stats sans cookies, sans pistage",
|
||||||
"title.crossroads_of_europe_de_kicks_ix":"Carrefour de l’Europe. IX DE-KICKS, transit pas cher.",
|
"title.crossroads_of_europe_de_kicks_ix":"Carrefour de l’Europe. IX DE-KICKS, transit pas cher.",
|
||||||
|
"title.hand_built_crises_and_one_world":"Des crises faites main, et chaque semaine un même monde pour tous.",
|
||||||
"title.hard_mode_pricey_everything":"Mode difficile. Tout coûte cher, et la faune veut ta peau.",
|
"title.hard_mode_pricey_everything":"Mode difficile. Tout coûte cher, et la faune veut ta peau.",
|
||||||
|
"title.how_much_trouble":"Combien d’ennuis ?",
|
||||||
"title.huge_eyeball_market_pricey":"Énorme marché d’eyeballs. Voisins chers.",
|
"title.huge_eyeball_market_pricey":"Énorme marché d’eyeballs. Voisins chers.",
|
||||||
"title.n_more_cities_with_transit":{"one":"{n} autre ville où acheter du transit","other":"{n} autres villes où acheter du transit"},
|
"title.n_more_cities_with_transit":{"one":"{n} autre ville où acheter du transit","other":"{n} autres villes où acheter du transit"},
|
||||||
"title.name_your_network":"Nomme ton réseau",
|
"title.name_your_network":"Nomme ton réseau",
|
||||||
"title.new_in_series_of_tubes_v":"Nouveautés de Series of Tubes {v}",
|
"title.new_in_series_of_tubes_v":"Nouveautés de Series of Tubes {v}",
|
||||||
|
"title.one_network_one_knot_no_clock":"Un réseau, un nœud à défaire. Pas d’horloge.",
|
||||||
|
"title.pick_a_door":"Choisis une porte",
|
||||||
"title.pick_your_home_city":"Choisis ta ville de départ",
|
"title.pick_your_home_city":"Choisis ta ville de départ",
|
||||||
"title.scenarios_amp_weekly_challenge":"Scénarios et défi de la semaine →",
|
"title.puzzles":"Casse-têtes",
|
||||||
|
"title.puzzles_are_coming_soon":"<b>Les casse-têtes arrivent bientôt.</b><br>On est encore en train de nouer les nœuds.",
|
||||||
|
"title.rules_are_picked_once_and_locked":"Les règles se choisissent une fois et restent verrouillées pour ce réseau. Pas de renégociation en pleine partie.",
|
||||||
|
"title.scenarios_amp_weekly":"Scénarios & hebdo",
|
||||||
"title.source_on_github":"Code source sur GitHub",
|
"title.source_on_github":"Code source sur GitHub",
|
||||||
|
"title.the_real_game_climb_from_tier":"Le vrai jeu : grimpe de Tier 3 à Tier 1.",
|
||||||
"title.your_network_name_was_saved_and":"Ton réseau {name} a été sauvegardé et t’attend.",
|
"title.your_network_name_was_saved_and":"Ton réseau {name} a été sauvegardé et t’attend.",
|
||||||
"traceroute.across_the_ix_switch":"via le switch de {ix}",
|
"traceroute.across_the_ix_switch":"via le switch de {ix}",
|
||||||
"traceroute.as_path_path":"<b>AS path :</b> {path}",
|
"traceroute.as_path_path":"<b>AS path :</b> {path}",
|
||||||
|
|
|
||||||
|
|
@ -1778,7 +1778,7 @@
|
||||||
"fiber_modals.for_comparison_a_leased_1_6t":"Per confronto, una wave 1.6T in affitto su questa rotta costa {price}/mese. Le ottiche vengono dopo, dal pannello del link.",
|
"fiber_modals.for_comparison_a_leased_1_6t":"Per confronto, una wave 1.6T in affitto su questa rotta costa {price}/mese. Le ottiche vengono dopo, dal pannello del link.",
|
||||||
"fiber_modals.from_city":"Da {city}",
|
"fiber_modals.from_city":"Da {city}",
|
||||||
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km sono più di quanto qualsiasi ottica raggiunga a piena velocità.</b> I transponder andranno in modalità long-haul (1.2T, 800G o 400G per canale), oppure aggiungi siti di rigenerazione lungo il percorso per tornare alla piena velocità.",
|
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km sono più di quanto qualsiasi ottica raggiunga a piena velocità.</b> I transponder andranno in modalità long-haul (1.2T, 800G o 400G per canale), oppure aggiungi siti di rigenerazione lungo il percorso per tornare alla piena velocità.",
|
||||||
"fiber_modals.lease_an_iru_price_mo_ready":"Affitta un IRU <small>{price}/mese · pronta in 30 giorni</small>",
|
"fiber_modals.lease_an_iru_price_mo_ready_n":"Affitta un IRU <small>{price}/mese · pronta in {n} giorni</small>",
|
||||||
"fiber_modals.level_n":"livello {n}",
|
"fiber_modals.level_n":"livello {n}",
|
||||||
"fiber_modals.no_dark_fiber_inside_the_uae":"Niente dark fiber dentro gli Emirati. Qui solo i due operatori con licenza possono posare fibra, e vendono solo wave.",
|
"fiber_modals.no_dark_fiber_inside_the_uae":"Niente dark fiber dentro gli Emirati. Qui solo i due operatori con licenza possono posare fibra, e vendono solo wave.",
|
||||||
"fiber_modals.no_install_fee_live_in_minutes":"Nessun costo di attivazione, attivo in pochi minuti, fatturato a mese. Più economico di una wave per piccole capacità, ma viaggia sul fabric di qualcun altro, e quel fabric può guastarsi.",
|
"fiber_modals.no_install_fee_live_in_minutes":"Nessun costo di attivazione, attivo in pochi minuti, fatturato a mese. Più economico di una wave per piccole capacità, ma viaggia sul fabric di qualcun altro, e quel fabric può guastarsi.",
|
||||||
|
|
@ -1889,6 +1889,7 @@
|
||||||
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) è transit-free. Fai peering con ogni gigante del pianeta e non paghi nessuno per raggiungere internet. Ci hai messo {days} giorni e {n} incidenti.",
|
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) è transit-free. Fai peering con ogni gigante del pianeta e non paghi nessuno per raggiungere internet. Ci hai messo {days} giorni e {n} incidenti.",
|
||||||
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e compagnia tornano ogni anno. Iscriviti nella scheda Offerte per $8k. Nei 45 giorni successivi, le reti selective presenti in quella regione chiedono solo metà del traffico abituale prima di fare peering con te. A volte vinci pure la lotteria.",
|
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e compagnia tornano ogni anno. Iscriviti nella scheda Offerte per $8k. Nei 45 giorni successivi, le reti selective presenti in quella regione chiedono solo metà del traffico abituale prima di fare peering con te. A volte vinci pure la lotteria.",
|
||||||
"help.once_auto_te_is_installed_you":"Una volta installato Auto-TE, puoi programmarlo dalla scheda NOC. Tra le regole ci sono <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> e <code>blackhole ddos</code>. Check fa una prova a secco sul traffico reale; Deploy la rende vera, errori compresi.",
|
"help.once_auto_te_is_installed_you":"Una volta installato Auto-TE, puoi programmarlo dalla scheda NOC. Tra le regole ci sono <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> e <code>blackhole ddos</code>. Check fa una prova a secco sul traffico reale; Deploy la rende vera, errori compresi.",
|
||||||
|
"help.one_game_four_doors_puzzles_are":"Un gioco, quattro porte, e le regole si scelgono quando nasce una rete e poi restano bloccate. I rompicapi sono piccoli nodi da sciogliere, senza orologio. La sandbox ti dà un miliardo di dollari, tutto sbloccato (compreso il tuo cavo sottomarino) e tutto il caos che scegli, ma niente medaglie. Normale ha tre varianti: Change freeze (pochi guasti, consegne in pochi giorni, niente posta né carenze), Reperibile (il gioco classico) e BGP alle 3 di notte (guasti più frequenti e più lunghi, più DDoS). Gli scenari sono sfide fatte a mano con un obiettivo e una scadenza, e la sfida settimanale dà a tutti lo stesso mondo per una settimana. Condividi il risultato con la scheda nel menu.",
|
||||||
"help.open_peers_with_anyone_selective":"Open: fa peering con chiunque. Selective: vuole prima vedere traffico. Restrictive (i Tier 1): fa peering solo con i giganti, tramite PNI. Paid: esattamente quello che sembra, si paga. Le grandi reti selective hanno anche i loro umori: in certe città rifiutano nuovi peer per qualche mese, o accettano solo PNI, e ogni tanto abbattono una sessione che avevi già. Prova un’altra città o un PNI, e richiedi più avanti.",
|
"help.open_peers_with_anyone_selective":"Open: fa peering con chiunque. Selective: vuole prima vedere traffico. Restrictive (i Tier 1): fa peering solo con i giganti, tramite PNI. Paid: esattamente quello che sembra, si paga. Le grandi reti selective hanno anche i loro umori: in certe città rifiutano nuovi peer per qualche mese, o accettano solo PNI, e ogni tanto abbattono una sessione che avevi già. Prova un’altra città o un PNI, e richiedi più avanti.",
|
||||||
"help.out_of_port_speed_bundle_up":"Porte al limite? Raggruppa fino a 8 porte identiche verso lo stesso provider di transit, IX o PNI in un LAG. Ogni membro costa una porta intera; il flow hashing non è mai perfettamente uniforme, quindi un bundle trasporta circa il 95% della somma.",
|
"help.out_of_port_speed_bundle_up":"Porte al limite? Raggruppa fino a 8 porte identiche verso lo stesso provider di transit, IX o PNI in un LAG. Ogni membro costa una porta intera; il flow hashing non è mai perfettamente uniforme, quindi un bundle trasporta circa il 95% della somma.",
|
||||||
"help.pni_lead_times":"Tempi di consegna delle PNI",
|
"help.pni_lead_times":"Tempi di consegna delle PNI",
|
||||||
|
|
@ -1897,7 +1898,6 @@
|
||||||
"help.reach_an_ix_over_a_fabric":"Raggiungi un IX con un circuito su fabric senza avere un POP lì. Funziona, e il route server ti dà comunque tutte le reti aperte, ma è sconsigliato: il rivenditore ti fa pagare la porta 1,5× e la vende in oversubscription all’80%, la latenza dipende dal fabric, un disservizio del fabric fa cadere tutte le sessioni, e molte reti selective rifiutano i membri remoti senza appello.",
|
"help.reach_an_ix_over_a_fabric":"Raggiungi un IX con un circuito su fabric senza avere un POP lì. Funziona, e il route server ti dà comunque tutte le reti aperte, ma è sconsigliato: il rivenditore ti fa pagare la porta 1,5× e la vende in oversubscription all’80%, la latenza dipende dal fabric, un disservizio del fabric fa cadere tutte le sessioni, e molte reti selective rifiutano i membri remoti senza appello.",
|
||||||
"help.routers_optics_and_new_builds_get":"Router, ottiche e nuove costruzioni rincarano con gli anni, circa il 4% all’anno dopo i primi sei mesi, e ogni tanto una carenza ne fa rincarare uno parecchio per un mese o due. Quello che possiedi già mantiene il suo prezzo. Le scorte sullo scaffale e un blocco annuale dei prezzi dalla scheda NOC attutiscono il colpo.",
|
"help.routers_optics_and_new_builds_get":"Router, ottiche e nuove costruzioni rincarano con gli anni, circa il 4% all’anno dopo i primi sei mesi, e ogni tanto una carenza ne fa rincarare uno parecchio per un mese o due. Quello che possiedi già mantiene il suo prezzo. Le scorte sullo scaffale e un blocco annuale dei prezzi dalla scheda NOC attutiscono il colpo.",
|
||||||
"help.rules_for_your_auto_te_controller":"Regole per il tuo controller Auto-TE: quali uscite preferire, quali evitare e quando passare alla successiva. L’aiuto dell’editor spiega ogni regola e ha script pronti.",
|
"help.rules_for_your_auto_te_controller":"Regole per il tuo controller Auto-TE: quali uscite preferire, quali evitare e quando passare alla successiva. L’aiuto dell’editor spiega ogni regola e ha script pronti.",
|
||||||
"help.sandbox_gives_you_a_billion_dollars":"La Sandbox ti dà un miliardo di dollari, tutto sbloccato e nessun guasto, ma niente badge. Gli Scenari sono sfide costruite a mano con un obiettivo e una scadenza, e la sfida settimanale dà a tutti lo stesso mondo per una settimana. Condividi il tuo risultato con la card nel menu.",
|
|
||||||
"help.share_my_network":"Condividi la mia rete",
|
"help.share_my_network":"Condividi la mia rete",
|
||||||
"help.some_customers_come_with_conditions":"Alcuni clienti arrivano con delle condizioni: niente Cogentle da nessuna parte, niente cavi sottomarini per colpa degli squali, due router, un generatore, NetChill on-net, accesso alla Cina con poche perdite e altro. Ognuna paga un bonus. Quelle non rispettate li rendono scontrosi finché non rimedi o se ne vanno.",
|
"help.some_customers_come_with_conditions":"Alcuni clienti arrivano con delle condizioni: niente Cogentle da nessuna parte, niente cavi sottomarini per colpa degli squali, due router, un generatore, NetChill on-net, accesso alla Cina con poche perdite e altro. Ognuna paga un bonus. Quelle non rispettate li rendono scontrosi finché non rimedi o se ne vanno.",
|
||||||
"help.some_routers_take_forever_to_boot":"Alcuni router ci mettono una vita ad avviarsi. La scheda Infra mostra quanto ci mette il tuo. I router lenti al boot allungano i crash e trasformano la sostituzione di un router singolo in un disservizio di tre giorni. Gli chassis più grandi, soprattutto quelli con dentro un PacketOinker™, sono lenti più spesso. Con due router diventa un problema di qualcun altro.",
|
"help.some_routers_take_forever_to_boot":"Alcuni router ci mettono una vita ad avviarsi. La scheda Infra mostra quanto ci mette il tuo. I router lenti al boot allungano i crash e trasformano la sostituzione di un router singolo in un disservizio di tre giorni. Gli chassis più grandi, soprattutto quelli con dentro un PacketOinker™, sono lenti più spesso. Con due router diventa un problema di qualcun altro.",
|
||||||
|
|
@ -2904,6 +2904,29 @@
|
||||||
"routing_and_routers.the_model_won_t_fit_why":"<b>Il {model} non ci sta.</b><br>{why}",
|
"routing_and_routers.the_model_won_t_fit_why":"<b>Il {model} non ci sta.</b><br>{why}",
|
||||||
"routing_and_routers.the_new_routers_in_city_are":"<b>I nuovi router a {city} li stanno ancora montando nel rack.</b><br>Un cambio al giorno: riprova domani.",
|
"routing_and_routers.the_new_routers_in_city_are":"<b>I nuovi router a {city} li stanno ancora montando nel rack.</b><br>Un cambio al giorno: riprova domani.",
|
||||||
"routing_and_routers.unplug_something_first_used_ports":"<b>Prima stacca qualcosa.</b><br>Ci sono {used} porte in uso, e con un router in meno ne avresti solo {max}.",
|
"routing_and_routers.unplug_something_first_used_ports":"<b>Prima stacca qualcosa.</b><br>Ci sono {used} porte in uso, e con un router in meno ne avresti solo {max}.",
|
||||||
|
"rules.a_billion_dollars_every_unlock_your":"Un miliardo di dollari, tutto sbloccato, il tuo cavo sottomarino.",
|
||||||
|
"rules.a_cut_now_and_then":"Un taglio ogni tanto.",
|
||||||
|
"rules.bgp_at_3_a_m":"BGP alle 3 di notte",
|
||||||
|
"rules.change_freeze":"Change freeze",
|
||||||
|
"rules.chaos_calm":"Calmo",
|
||||||
|
"rules.chaos_none":"Nessuno",
|
||||||
|
"rules.chaos_normal":"Normale",
|
||||||
|
"rules.chaos_spicy":"Piccante",
|
||||||
|
"rules.everything_is_on_fire_and_it":"Va tutto a fuoco, e tocca a te.",
|
||||||
|
"rules.fewer_outages_pnis_and_builds_in":"Un terzo dei guasti, niente DDoS. PNI e cantieri in pochi giorni. Niente posta, niente carenze, niente rotte esaurite.",
|
||||||
|
"rules.infinite_money_everything_unlocked_quick":"Soldi infiniti, tutto sbloccato, consegne rapide. Niente medaglie.",
|
||||||
|
"rules.like_the_real_game":"Come il gioco vero.",
|
||||||
|
"rules.more_and_longer_outages_more_ddos":"Quasi il doppio dei guasti, lunghi una volta e mezza, il doppio dei DDoS. Tutto acceso.",
|
||||||
|
"rules.no_clock_no_bills_nothing_breaks":"Niente orologio, niente bollette, non si rompe niente.",
|
||||||
|
"rules.nobody_touches_prod_even_the_backhoes":"Nessuno tocca la produzione. Anche le ruspe sono in ferie.",
|
||||||
|
"rules.nothing_ever_breaks":"Non si rompe mai niente.",
|
||||||
|
"rules.on_call":"Reperibile",
|
||||||
|
"rules.one_small_network_one_tricky_goal":"Una piccola rete, un obiettivo insidioso.",
|
||||||
|
"rules.puzzle":"Rompicapo",
|
||||||
|
"rules.real_lead_times_real_outages_a":"Tempi di consegna veri, guasti veri, una casella di peering piena. Il gioco classico.",
|
||||||
|
"rules.rules_are_locked_for_this_network":"{rules}: le regole sono bloccate per questa rete.",
|
||||||
|
"rules.the_real_thing_your_pager_has":"Il gioco vero. Il tuo cercapersone ha delle opinioni.",
|
||||||
|
"rules.your_pager_never_sleeps":"Il tuo cercapersone non dorme mai.",
|
||||||
"save.cash_in_the_bank":"{cash} in cassa",
|
"save.cash_in_the_bank":"{cash} in cassa",
|
||||||
"save.import_failed_err":"<b>Importazione fallita.</b><br>{err}",
|
"save.import_failed_err":"<b>Importazione fallita.</b><br>{err}",
|
||||||
"save.load_name":"Caricare {name}?",
|
"save.load_name":"Caricare {name}?",
|
||||||
|
|
@ -2961,6 +2984,7 @@
|
||||||
"scenarios.reach_45_of_the_internet_and":"Raggiungi il 45% di internet e servi 300 Gbps",
|
"scenarios.reach_45_of_the_internet_and":"Raggiungi il 45% di internet e servi 300 Gbps",
|
||||||
"scenarios.red_sea_crisis":"Crisi nel Mar Rosso",
|
"scenarios.red_sea_crisis":"Crisi nel Mar Rosso",
|
||||||
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio da zero. Il Carnaval comincia tra 90 giorni e vuole 400 Gbps per cinque giorni di fila. Il mondo intero sta guardando.",
|
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio da zero. Il Carnaval comincia tra 90 giorni e vuole 400 Gbps per cinque giorni di fila. Il mondo intero sta guardando.",
|
||||||
|
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Modalità sandbox</b><br>Un miliardo di dollari e tutto sbloccato. Caos: {chaos}. Costruisci l’internet che hai sempre sognato, e tieni una ruspa di scorta a portata di mano.",
|
||||||
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modalità sandbox</b><br>Un miliardo di dollari, tutto sbloccato e non si rompe mai niente. Costruisci l’internet che hai sempre sognato.",
|
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modalità sandbox</b><br>Un miliardo di dollari, tutto sbloccato e non si rompe mai niente. Costruisci l’internet che hai sempre sognato.",
|
||||||
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Il Brasile è un continente: quaranta exchange IX.brrr, migliaia di provedores e l’Amazzonia tra te e il nord.",
|
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Il Brasile è un continente: quaranta exchange IX.brrr, migliaia di provedores e l’Amazzonia tra te e il nord.",
|
||||||
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Gli eyeball più veloci e affamati della Terra, transit a quattro volte il prezzo, e tre incumbent che ti fatturano ogni gigabit che gli mandi.",
|
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Gli eyeball più veloci e affamati della Terra, transit a quattro volte il prezzo, e tre incumbent che ti fatturano ogni gigabit che gli mandi.",
|
||||||
|
|
@ -3079,24 +3103,34 @@
|
||||||
"supply_chain.until_date_at_p":"fino al {date}, a +{p}",
|
"supply_chain.until_date_at_p":"fino al {date}, a +{p}",
|
||||||
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} giorni rimasti",
|
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} giorni rimasti",
|
||||||
"supply_chain.your_price_lock_covers_you_until":"Il tuo blocco dei prezzi ti copre fino al {date}.",
|
"supply_chain.your_price_lock_covers_you_until":"Il tuo blocco dei prezzi ti copre fino al {date}.",
|
||||||
|
"title.a_billion_dollars_and_every_toy":"Un miliardo di dollari e tutti i giocattoli del negozio.",
|
||||||
"title.anywhere_else":"Altrove",
|
"title.anywhere_else":"Altrove",
|
||||||
"title.asia_hub_great_peering_far_from":"Hub dell’Asia. Ottimo peering, lontano da casa.",
|
"title.asia_hub_great_peering_far_from":"Hub dell’Asia. Ottimo peering, lontano da casa.",
|
||||||
"title.back_to_my_network":"Torna alla mia rete",
|
"title.back_to_my_network":"Torna alla mia rete",
|
||||||
"title.big_hungry_market_few_providers":"Mercato grande e affamato, pochi provider.",
|
"title.big_hungry_market_few_providers":"Mercato grande e affamato, pochi provider.",
|
||||||
"title.build_an_internet_lay_fiber_between":"Costruisci un internet. Posa fibra tra le città, compra transit, fai peering agli exchange, metti sotto contratto le aziende e tieni contenti gli eyeball, mentre ruspe, squali e route leak fanno di tutto per fermarti.",
|
"title.build_an_internet_lay_fiber_between":"Costruisci un internet. Posa fibra tra le città, compra transit, fai peering agli exchange, metti sotto contratto le aziende e tieni contenti gli eyeball, mentre ruspe, squali e route leak fanno di tutto per fermarti.",
|
||||||
|
"title.chaos_in_your_sandbox":"Caos nella tua sandbox",
|
||||||
"title.chat_on_signal":"Chat su Signal",
|
"title.chat_on_signal":"Chat su Signal",
|
||||||
"title.choose":"Scegli…",
|
"title.choose":"Scegli…",
|
||||||
"title.continue_name_date":"Continua {name} · {date}",
|
"title.continue_name_date":"Continua {name} · {date}",
|
||||||
"title.cookieless_stats_no_tracking":"Statistiche senza cookie, nessun tracciamento",
|
"title.cookieless_stats_no_tracking":"Statistiche senza cookie, nessun tracciamento",
|
||||||
"title.crossroads_of_europe_de_kicks_ix":"Crocevia d’Europa. IX DE-KICKS, transit economico.",
|
"title.crossroads_of_europe_de_kicks_ix":"Crocevia d’Europa. IX DE-KICKS, transit economico.",
|
||||||
|
"title.hand_built_crises_and_one_world":"Crisi fatte a mano, e ogni settimana lo stesso mondo per tutti.",
|
||||||
"title.hard_mode_pricey_everything":"Modalità difficile. Tutto carissimo, e la fauna ti vuole morto.",
|
"title.hard_mode_pricey_everything":"Modalità difficile. Tutto carissimo, e la fauna ti vuole morto.",
|
||||||
|
"title.how_much_trouble":"Quanti guai vuoi?",
|
||||||
"title.huge_eyeball_market_pricey":"Enorme mercato di eyeball. Vicini costosi.",
|
"title.huge_eyeball_market_pricey":"Enorme mercato di eyeball. Vicini costosi.",
|
||||||
"title.n_more_cities_with_transit":{"one":"Ancora {n} città dove comprare transit","other":"Altre {n} città dove comprare transit"},
|
"title.n_more_cities_with_transit":{"one":"Ancora {n} città dove comprare transit","other":"Altre {n} città dove comprare transit"},
|
||||||
"title.name_your_network":"Dai un nome alla tua rete",
|
"title.name_your_network":"Dai un nome alla tua rete",
|
||||||
"title.new_in_series_of_tubes_v":"Novità di Series of Tubes {v}",
|
"title.new_in_series_of_tubes_v":"Novità di Series of Tubes {v}",
|
||||||
|
"title.one_network_one_knot_no_clock":"Una rete, un nodo da sciogliere. Niente orologio.",
|
||||||
|
"title.pick_a_door":"Scegli una porta",
|
||||||
"title.pick_your_home_city":"Scegli la tua città di partenza",
|
"title.pick_your_home_city":"Scegli la tua città di partenza",
|
||||||
"title.scenarios_amp_weekly_challenge":"Scenari e sfida settimanale →",
|
"title.puzzles":"Rompicapi",
|
||||||
|
"title.puzzles_are_coming_soon":"<b>I rompicapi arrivano presto.</b><br>Stiamo ancora annodando i nodi.",
|
||||||
|
"title.rules_are_picked_once_and_locked":"Le regole si scelgono una volta e restano bloccate per questa rete. Niente cambi di accordo a metà partita.",
|
||||||
|
"title.scenarios_amp_weekly":"Scenari e sfida settimanale",
|
||||||
"title.source_on_github":"Codice su GitHub",
|
"title.source_on_github":"Codice su GitHub",
|
||||||
|
"title.the_real_game_climb_from_tier":"Il gioco vero: sali da Tier 3 a Tier 1.",
|
||||||
"title.your_network_name_was_saved_and":"La tua rete {name} è stata salvata e ti sta aspettando.",
|
"title.your_network_name_was_saved_and":"La tua rete {name} è stata salvata e ti sta aspettando.",
|
||||||
"traceroute.across_the_ix_switch":"attraverso lo switch di {ix}",
|
"traceroute.across_the_ix_switch":"attraverso lo switch di {ix}",
|
||||||
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
||||||
|
|
|
||||||
|
|
@ -1778,7 +1778,7 @@
|
||||||
"fiber_modals.for_comparison_a_leased_1_6t":"Para comparar, uma wave alugada de 1.6T nesta rota sai {price}/mês. A óptica vem depois, pelo painel do link.",
|
"fiber_modals.for_comparison_a_leased_1_6t":"Para comparar, uma wave alugada de 1.6T nesta rota sai {price}/mês. A óptica vem depois, pelo painel do link.",
|
||||||
"fiber_modals.from_city":"De {city}",
|
"fiber_modals.from_city":"De {city}",
|
||||||
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km é mais do que qualquer óptico alcança em velocidade máxima.</b> Os transponders vão rodar em modo long-haul (1.2T, 800G ou 400G por canal), ou adicione sites de regeneração no caminho para recuperar a velocidade máxima.",
|
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km é mais do que qualquer óptico alcança em velocidade máxima.</b> Os transponders vão rodar em modo long-haul (1.2T, 800G ou 400G por canal), ou adicione sites de regeneração no caminho para recuperar a velocidade máxima.",
|
||||||
"fiber_modals.lease_an_iru_price_mo_ready":"Alugar um IRU <small>{price}/mês · pronto em 30 dias</small>",
|
"fiber_modals.lease_an_iru_price_mo_ready_n":"Alugar um IRU <small>{price}/mês · pronto em {n} dias</small>",
|
||||||
"fiber_modals.level_n":"nível {n}",
|
"fiber_modals.level_n":"nível {n}",
|
||||||
"fiber_modals.no_dark_fiber_inside_the_uae":"Nada de dark fiber dentro dos Emirados. Só as duas operadoras licenciadas podem passar fibra aqui, e elas só vendem waves.",
|
"fiber_modals.no_dark_fiber_inside_the_uae":"Nada de dark fiber dentro dos Emirados. Só as duas operadoras licenciadas podem passar fibra aqui, e elas só vendem waves.",
|
||||||
"fiber_modals.no_install_fee_live_in_minutes":"Sem taxa de instalação, no ar em minutos, cobrado por mês. Mais barato que uma wave para pouca capacidade, mas roda no fabric de outra pessoa, e esse fabric pode falhar.",
|
"fiber_modals.no_install_fee_live_in_minutes":"Sem taxa de instalação, no ar em minutos, cobrado por mês. Mais barato que uma wave para pouca capacidade, mas roda no fabric de outra pessoa, e esse fabric pode falhar.",
|
||||||
|
|
@ -1889,6 +1889,7 @@
|
||||||
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) é transit-free. Você faz peering com todos os gigantes do planeta e não paga ninguém para chegar à internet. Levou {days} dias e {n} incidentes.",
|
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) é transit-free. Você faz peering com todos os gigantes do planeta e não paga ninguém para chegar à internet. Levou {days} dias e {n} incidentes.",
|
||||||
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e a turma aparecem todo ano. Inscreva-se na aba Negócios por $8k. Nos 45 dias seguintes, redes seletivas presentes naquela região pedem só metade do tráfego de sempre antes de fazer peering com você. Às vezes você ainda ganha o sorteio.",
|
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e a turma aparecem todo ano. Inscreva-se na aba Negócios por $8k. Nos 45 dias seguintes, redes seletivas presentes naquela região pedem só metade do tráfego de sempre antes de fazer peering com você. Às vezes você ainda ganha o sorteio.",
|
||||||
"help.once_auto_te_is_installed_you":"Com o Auto-TE instalado, você pode programá-lo pela aba NOC. As regras incluem <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> e <code>blackhole ddos</code>. Verificar faz um dry run contra o tráfego real; Aplicar torna tudo real, erros incluídos.",
|
"help.once_auto_te_is_installed_you":"Com o Auto-TE instalado, você pode programá-lo pela aba NOC. As regras incluem <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> e <code>blackhole ddos</code>. Verificar faz um dry run contra o tráfego real; Aplicar torna tudo real, erros incluídos.",
|
||||||
|
"help.one_game_four_doors_puzzles_are":"Um jogo, quatro portas, e as regras são escolhidas quando uma rede começa e ficam travadas depois. Os quebra-cabeças são pequenos nós para desatar, sem relógio. A sandbox dá um bilhão de dólares, tudo desbloqueado (incluindo o seu próprio cabo submarino) e o caos que você escolher, mas sem medalhas. O Normal vem de três jeitos: Congelamento de mudanças (poucas falhas, entregas em dias, sem caixa de entrada nem escassez), De plantão (o jogo clássico) e BGP às 3 da manhã (mais falhas e mais longas, mais DDoS). Os cenários são desafios feitos à mão com um objetivo e um prazo, e o desafio semanal dá a todos o mesmo mundo durante uma semana. Compartilhe o seu resultado com o cartão no menu.",
|
||||||
"help.open_peers_with_anyone_selective":"Open faz peering com qualquer um. Selective quer ver tráfego antes. Restrictive (Tier 1s) só faz peering com gigantes, via PNI. Paid é exatamente isso. Redes seletivas grandes também têm seus humores: em algumas cidades recusam novos peers por alguns meses, ou só aceitam PNI, e de vez em quando derrubam uma sessão que você já tinha. Tente outra cidade ou um PNI, e peça de novo mais tarde.",
|
"help.open_peers_with_anyone_selective":"Open faz peering com qualquer um. Selective quer ver tráfego antes. Restrictive (Tier 1s) só faz peering com gigantes, via PNI. Paid é exatamente isso. Redes seletivas grandes também têm seus humores: em algumas cidades recusam novos peers por alguns meses, ou só aceitam PNI, e de vez em quando derrubam uma sessão que você já tinha. Tente outra cidade ou um PNI, e peça de novo mais tarde.",
|
||||||
"help.out_of_port_speed_bundle_up":"Sem velocidade de porta? Junte até 8 portas idênticas para o mesmo provedor de transit, IX ou PNI num LAG. Cada membro custa uma porta inteira; o hashing de fluxos nunca é perfeitamente uniforme, então o bundle carrega cerca de 95% da soma.",
|
"help.out_of_port_speed_bundle_up":"Sem velocidade de porta? Junte até 8 portas idênticas para o mesmo provedor de transit, IX ou PNI num LAG. Cada membro custa uma porta inteira; o hashing de fluxos nunca é perfeitamente uniforme, então o bundle carrega cerca de 95% da soma.",
|
||||||
"help.pni_lead_times":"Prazos de PNI",
|
"help.pni_lead_times":"Prazos de PNI",
|
||||||
|
|
@ -1897,7 +1898,6 @@
|
||||||
"help.reach_an_ix_over_a_fabric":"Chegue a um IX por um circuito de fabric sem ter POP lá. Funciona, e o route server ainda te dá todas as redes abertas, mas não é recomendado: o revendedor cobra 1,5× pela porta e faz oversubscription a 80%, a latência depende do fabric, uma queda do fabric derruba todas as sessões, e muitas redes seletivas recusam membros remotos na hora.",
|
"help.reach_an_ix_over_a_fabric":"Chegue a um IX por um circuito de fabric sem ter POP lá. Funciona, e o route server ainda te dá todas as redes abertas, mas não é recomendado: o revendedor cobra 1,5× pela porta e faz oversubscription a 80%, a latência depende do fabric, uma queda do fabric derruba todas as sessões, e muitas redes seletivas recusam membros remotos na hora.",
|
||||||
"help.routers_optics_and_new_builds_get":"Roteadores, ópticas e novas obras ficam mais caros com os anos, cerca de 4% ao ano depois dos primeiros seis meses, e de vez em quando uma falta deixa um deles bem mais caro por um ou dois meses. O que você já tem mantém o preço. Sobressalentes na prateleira e um congelamento anual de preços na aba NOC amortecem o golpe.",
|
"help.routers_optics_and_new_builds_get":"Roteadores, ópticas e novas obras ficam mais caros com os anos, cerca de 4% ao ano depois dos primeiros seis meses, e de vez em quando uma falta deixa um deles bem mais caro por um ou dois meses. O que você já tem mantém o preço. Sobressalentes na prateleira e um congelamento anual de preços na aba NOC amortecem o golpe.",
|
||||||
"help.rules_for_your_auto_te_controller":"Regras para o seu controlador Auto-TE: quais saídas preferir, quais evitar e quando passar para a próxima. A ajuda do editor explica cada regra e tem scripts prontos.",
|
"help.rules_for_your_auto_te_controller":"Regras para o seu controlador Auto-TE: quais saídas preferir, quais evitar e quando passar para a próxima. A ajuda do editor explica cada regra e tem scripts prontos.",
|
||||||
"help.sandbox_gives_you_a_billion_dollars":"O Sandbox te dá um bilhão de dólares, tudo desbloqueado e nenhuma falha, mas nada de medalhas. Cenários são desafios feitos à mão com uma meta e um prazo, e o desafio semanal dá a todo mundo o mesmo mundo por uma semana. Compartilhe seu resultado com o cartão no menu.",
|
|
||||||
"help.share_my_network":"Compartilhar minha rede",
|
"help.share_my_network":"Compartilhar minha rede",
|
||||||
"help.some_customers_come_with_conditions":"Alguns clientes vêm com condições: nada de Cogentle em lugar nenhum, nada de cabo submarino por causa dos tubarões, dois routers, um gerador, NetChill on-net, acesso à China com pouca perda e mais. Cada uma paga um bônus. As não atendidas deixam o cliente rabugento até você resolver ou ele ir embora.",
|
"help.some_customers_come_with_conditions":"Alguns clientes vêm com condições: nada de Cogentle em lugar nenhum, nada de cabo submarino por causa dos tubarões, dois routers, um gerador, NetChill on-net, acesso à China com pouca perda e mais. Cada uma paga um bônus. As não atendidas deixam o cliente rabugento até você resolver ou ele ir embora.",
|
||||||
"help.some_routers_take_forever_to_boot":"Alguns routers levam uma eternidade para dar boot. A aba Infra mostra quanto o seu demora. Os lentos fazem os crashes durarem mais e transformam a troca de um router único numa queda de três dias. Chassis maiores, principalmente qualquer coisa com um PacketOinker™ dentro, são lentos com mais frequência. Routers gêmeos fazem disso problema de outra pessoa.",
|
"help.some_routers_take_forever_to_boot":"Alguns routers levam uma eternidade para dar boot. A aba Infra mostra quanto o seu demora. Os lentos fazem os crashes durarem mais e transformam a troca de um router único numa queda de três dias. Chassis maiores, principalmente qualquer coisa com um PacketOinker™ dentro, são lentos com mais frequência. Routers gêmeos fazem disso problema de outra pessoa.",
|
||||||
|
|
@ -2904,6 +2904,29 @@
|
||||||
"routing_and_routers.the_model_won_t_fit_why":"<b>O {model} não cabe.</b><br>{why}",
|
"routing_and_routers.the_model_won_t_fit_why":"<b>O {model} não cabe.</b><br>{why}",
|
||||||
"routing_and_routers.the_new_routers_in_city_are":"<b>Os novos routers em {city} ainda estão sendo montados no rack.</b><br>Uma troca por dia: tente de novo amanhã.",
|
"routing_and_routers.the_new_routers_in_city_are":"<b>Os novos routers em {city} ainda estão sendo montados no rack.</b><br>Uma troca por dia: tente de novo amanhã.",
|
||||||
"routing_and_routers.unplug_something_first_used_ports":"<b>Desconecte algo primeiro.</b><br>Há {used} portas em uso, e com um router a menos só teria {max}.",
|
"routing_and_routers.unplug_something_first_used_ports":"<b>Desconecte algo primeiro.</b><br>Há {used} portas em uso, e com um router a menos só teria {max}.",
|
||||||
|
"rules.a_billion_dollars_every_unlock_your":"Um bilhão de dólares, tudo desbloqueado, o seu próprio cabo submarino.",
|
||||||
|
"rules.a_cut_now_and_then":"Um corte de vez em quando.",
|
||||||
|
"rules.bgp_at_3_a_m":"BGP às 3 da manhã",
|
||||||
|
"rules.change_freeze":"Congelamento de mudanças",
|
||||||
|
"rules.chaos_calm":"Calmo",
|
||||||
|
"rules.chaos_none":"Nenhum",
|
||||||
|
"rules.chaos_normal":"Normal",
|
||||||
|
"rules.chaos_spicy":"Apimentado",
|
||||||
|
"rules.everything_is_on_fire_and_it":"Está tudo pegando fogo, e o plantão é seu.",
|
||||||
|
"rules.fewer_outages_pnis_and_builds_in":"Um terço das falhas, sem DDoS. PNIs e obras em dias. Sem caixa de entrada, sem escassez, sem rotas esgotadas.",
|
||||||
|
"rules.infinite_money_everything_unlocked_quick":"Dinheiro sem fim, tudo desbloqueado, prazos curtos. Sem medalhas.",
|
||||||
|
"rules.like_the_real_game":"Como o jogo de verdade.",
|
||||||
|
"rules.more_and_longer_outages_more_ddos":"Quase o dobro de falhas, metade mais longas, o dobro de DDoS. Tudo ligado.",
|
||||||
|
"rules.no_clock_no_bills_nothing_breaks":"Sem relógio, sem contas, nada quebra.",
|
||||||
|
"rules.nobody_touches_prod_even_the_backhoes":"Ninguém mexe em produção. Até as retroescavadeiras estão de férias.",
|
||||||
|
"rules.nothing_ever_breaks":"Nada quebra nunca.",
|
||||||
|
"rules.on_call":"De plantão",
|
||||||
|
"rules.one_small_network_one_tricky_goal":"Uma rede pequena, um objetivo traiçoeiro.",
|
||||||
|
"rules.puzzle":"Quebra-cabeça",
|
||||||
|
"rules.real_lead_times_real_outages_a":"Prazos reais, falhas reais, uma caixa de peering cheia. O jogo clássico.",
|
||||||
|
"rules.rules_are_locked_for_this_network":"{rules}: as regras estão travadas para esta rede.",
|
||||||
|
"rules.the_real_thing_your_pager_has":"O jogo de verdade. O seu pager tem opiniões.",
|
||||||
|
"rules.your_pager_never_sleeps":"O seu pager nunca dorme.",
|
||||||
"save.cash_in_the_bank":"{cash} no banco",
|
"save.cash_in_the_bank":"{cash} no banco",
|
||||||
"save.import_failed_err":"<b>Falha na importação.</b><br>{err}",
|
"save.import_failed_err":"<b>Falha na importação.</b><br>{err}",
|
||||||
"save.load_name":"Carregar {name}?",
|
"save.load_name":"Carregar {name}?",
|
||||||
|
|
@ -2961,6 +2984,7 @@
|
||||||
"scenarios.reach_45_of_the_internet_and":"Alcance 45% da internet e atenda 300 Gbps",
|
"scenarios.reach_45_of_the_internet_and":"Alcance 45% da internet e atenda 300 Gbps",
|
||||||
"scenarios.red_sea_crisis":"Crise no Mar Vermelho",
|
"scenarios.red_sea_crisis":"Crise no Mar Vermelho",
|
||||||
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio do zero. O Carnaval começa em 90 dias e quer 400 Gbps por cinco dias seguidos. O mundo inteiro está assistindo.",
|
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio do zero. O Carnaval começa em 90 dias e quer 400 Gbps por cinco dias seguidos. O mundo inteiro está assistindo.",
|
||||||
|
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Modo sandbox</b><br>Um bilhão de dólares e tudo desbloqueado. Caos: {chaos}. Construa a internet que você sempre quis, e deixe uma retroescavadeira reserva à mão.",
|
||||||
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modo sandbox</b><br>Um bilhão de dólares, tudo desbloqueado e nada nunca quebra. Construa a internet que você sempre quis.",
|
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Modo sandbox</b><br>Um bilhão de dólares, tudo desbloqueado e nada nunca quebra. Construa a internet que você sempre quis.",
|
||||||
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. O Brasil é um continente: quarenta exchanges IX.brrr, milhares de provedores e a Amazônia entre você e o norte.",
|
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. O Brasil é um continente: quarenta exchanges IX.brrr, milhares de provedores e a Amazônia entre você e o norte.",
|
||||||
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Os eyeballs mais rápidos e famintos da Terra, transit a quatro vezes o preço, e três incumbentes que te cobram por cada gigabit que você manda.",
|
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. Os eyeballs mais rápidos e famintos da Terra, transit a quatro vezes o preço, e três incumbentes que te cobram por cada gigabit que você manda.",
|
||||||
|
|
@ -3079,24 +3103,34 @@
|
||||||
"supply_chain.until_date_at_p":"até {date}, a +{p}",
|
"supply_chain.until_date_at_p":"até {date}, a +{p}",
|
||||||
"supply_chain.what_p_n_days_left":"{what} +{p} · faltam {n} dias",
|
"supply_chain.what_p_n_days_left":"{what} +{p} · faltam {n} dias",
|
||||||
"supply_chain.your_price_lock_covers_you_until":"Seu congelamento de preços te cobre até {date}.",
|
"supply_chain.your_price_lock_covers_you_until":"Seu congelamento de preços te cobre até {date}.",
|
||||||
|
"title.a_billion_dollars_and_every_toy":"Um bilhão de dólares e todos os brinquedos da loja.",
|
||||||
"title.anywhere_else":"Outro lugar",
|
"title.anywhere_else":"Outro lugar",
|
||||||
"title.asia_hub_great_peering_far_from":"Hub da Ásia. Ótimo peering, longe de casa.",
|
"title.asia_hub_great_peering_far_from":"Hub da Ásia. Ótimo peering, longe de casa.",
|
||||||
"title.back_to_my_network":"Voltar para minha rede",
|
"title.back_to_my_network":"Voltar para minha rede",
|
||||||
"title.big_hungry_market_few_providers":"Mercado grande e faminto, poucos provedores.",
|
"title.big_hungry_market_few_providers":"Mercado grande e faminto, poucos provedores.",
|
||||||
"title.build_an_internet_lay_fiber_between":"Construa uma internet. Lance fibra entre cidades, compre transit, faça peering nos exchanges, feche contratos com empresas e mantenha os eyeballs felizes enquanto retroescavadeiras, tubarões e route leaks fazem de tudo para te parar.",
|
"title.build_an_internet_lay_fiber_between":"Construa uma internet. Lance fibra entre cidades, compre transit, faça peering nos exchanges, feche contratos com empresas e mantenha os eyeballs felizes enquanto retroescavadeiras, tubarões e route leaks fazem de tudo para te parar.",
|
||||||
|
"title.chaos_in_your_sandbox":"Caos na sua sandbox",
|
||||||
"title.chat_on_signal":"Chat no Signal",
|
"title.chat_on_signal":"Chat no Signal",
|
||||||
"title.choose":"Escolha…",
|
"title.choose":"Escolha…",
|
||||||
"title.continue_name_date":"Continuar {name} · {date}",
|
"title.continue_name_date":"Continuar {name} · {date}",
|
||||||
"title.cookieless_stats_no_tracking":"Estatísticas sem cookies, sem rastreamento",
|
"title.cookieless_stats_no_tracking":"Estatísticas sem cookies, sem rastreamento",
|
||||||
"title.crossroads_of_europe_de_kicks_ix":"Encruzilhada da Europa. IX DE-KICKS, transit barato.",
|
"title.crossroads_of_europe_de_kicks_ix":"Encruzilhada da Europa. IX DE-KICKS, transit barato.",
|
||||||
|
"title.hand_built_crises_and_one_world":"Crises feitas à mão, e toda semana o mesmo mundo para todos.",
|
||||||
"title.hard_mode_pricey_everything":"Modo difícil. Tudo caro, e a fauna quer te ver morto.",
|
"title.hard_mode_pricey_everything":"Modo difícil. Tudo caro, e a fauna quer te ver morto.",
|
||||||
|
"title.how_much_trouble":"Quanta encrenca?",
|
||||||
"title.huge_eyeball_market_pricey":"Mercado enorme de eyeballs. Vizinhos caros.",
|
"title.huge_eyeball_market_pricey":"Mercado enorme de eyeballs. Vizinhos caros.",
|
||||||
"title.n_more_cities_with_transit":{"one":"Mais {n} cidade com transit à venda","other":"Mais {n} cidades com transit à venda"},
|
"title.n_more_cities_with_transit":{"one":"Mais {n} cidade com transit à venda","other":"Mais {n} cidades com transit à venda"},
|
||||||
"title.name_your_network":"Dê um nome à sua rede",
|
"title.name_your_network":"Dê um nome à sua rede",
|
||||||
"title.new_in_series_of_tubes_v":"Novidades no Series of Tubes {v}",
|
"title.new_in_series_of_tubes_v":"Novidades no Series of Tubes {v}",
|
||||||
|
"title.one_network_one_knot_no_clock":"Uma rede, um nó para desatar. Sem relógio.",
|
||||||
|
"title.pick_a_door":"Escolha uma porta",
|
||||||
"title.pick_your_home_city":"Escolha sua cidade natal",
|
"title.pick_your_home_city":"Escolha sua cidade natal",
|
||||||
"title.scenarios_amp_weekly_challenge":"Cenários e desafio semanal →",
|
"title.puzzles":"Quebra-cabeças",
|
||||||
|
"title.puzzles_are_coming_soon":"<b>Os quebra-cabeças chegam em breve.</b><br>Ainda estamos dando os nós.",
|
||||||
|
"title.rules_are_picked_once_and_locked":"As regras são escolhidas uma vez e ficam travadas para esta rede. Nada de mudar o combinado no meio do jogo.",
|
||||||
|
"title.scenarios_amp_weekly":"Cenários e semanal",
|
||||||
"title.source_on_github":"Código no GitHub",
|
"title.source_on_github":"Código no GitHub",
|
||||||
|
"title.the_real_game_climb_from_tier":"O jogo de verdade: suba de Tier 3 a Tier 1.",
|
||||||
"title.your_network_name_was_saved_and":"Sua rede {name} foi salva e está te esperando.",
|
"title.your_network_name_was_saved_and":"Sua rede {name} foi salva e está te esperando.",
|
||||||
"traceroute.across_the_ix_switch":"pelo switch do {ix}",
|
"traceroute.across_the_ix_switch":"pelo switch do {ix}",
|
||||||
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ const HW_SHOCK={opt:{mul:1.5,n:N_('common.optics'),msg:N_('supply_chain.laser_sh
|
||||||
build:{mul:1.3,n:N_('supply_chain.new_fiber_and_cable_builds'),msg:N_('supply_chain.every_cable_ship_is_booked')}};
|
build:{mul:1.3,n:N_('supply_chain.new_fiber_and_cable_builds'),msg:N_('supply_chain.every_cable_ship_is_booked')}};
|
||||||
const hwTrend=d=>Math.min(HW_CAP,1+HW_YR*Math.max(0,(d-HW_FREE)/365));
|
const hwTrend=d=>Math.min(HW_CAP,1+HW_YR*Math.max(0,(d-HW_FREE)/365));
|
||||||
const hwShock=()=>{const s=S&&S.hw&&S.hw.shock;return s&&s.until>S.day?s:null;},hwLock=()=>{const l=S&&S.hw&&S.hw.lock;return l&&l.until>S.day?l:null;};
|
const hwShock=()=>{const s=S&&S.hw&&S.hw.shock;return s&&s.until>S.day?s:null;},hwLock=()=>{const l=S&&S.hw&&S.hw.lock;return l&&l.until>S.day?l:null;};
|
||||||
function hwMul(k){if(!S)return 1;const l=hwLock();if(l)return l.mul;const s=hwShock();return hwTrend(S.day)*(s&&s.k===k?s.mul:1);}
|
function hwMul(k){if(!S||!rule('market'))return 1;const l=hwLock();if(l)return l.mul;const s=hwShock();return hwTrend(S.day)*(s&&s.k===k?s.mul:1);}
|
||||||
// A lock costs a little more for a bigger network, and twice as much in the middle of a shortage.
|
// A lock costs a little more for a bigger network, and twice as much in the middle of a shortage.
|
||||||
const hwLockCost=()=>Math.round((80000+30000*Object.keys(S.pops).length)*(hwShock()?2:1)/1000)*1000;
|
const hwLockCost=()=>Math.round((80000+30000*Object.keys(S.pops).length)*(hwShock()?2:1)/1000)*1000;
|
||||||
function hwShockStart(){const k=pick(Object.keys(HW_SHOCK)),n=45+Math.floor(Math.random()*31);S.hw=S.hw||{};S.hw.shock={k,until:S.day+n,mul:HW_SHOCK[k].mul};
|
function hwShockStart(){const k=pick(Object.keys(HW_SHOCK)),n=45+Math.floor(Math.random()*31);S.hw=S.hw||{};S.hw.shock={k,until:S.day+n,mul:HW_SHOCK[k].mul};
|
||||||
toast(tr(HW_SHOCK[k].msg,{n})+(hwLock()?'<br>'+tr('supply_chain.your_price_lock_covers_you_until',{date:dateStr(hwLock().until)}):''),hwLock()?'':'bad');sfx('alert');}
|
toast(tr(HW_SHOCK[k].msg,{n})+(hwLock()?'<br>'+tr('supply_chain.your_price_lock_covers_you_until',{date:dateStr(hwLock().until)}):''),hwLock()?'':'bad');sfx('alert');}
|
||||||
function hwCard(){if(!S||(S.day<=HW_FREE&&!hwShock()&&!hwLock()))return '';const t=hwTrend(S.day),s=hwShock(),l=hwLock();
|
function hwCard(){if(!S||!rule('market')||(S.day<=HW_FREE&&!hwShock()&&!hwLock()))return '';const t=hwTrend(S.day),s=hwShock(),l=hwLock();
|
||||||
return `<div class="ibx"><div class="nm">📦 ${tr('common.supply_chain')}</div>
|
return `<div class="ibx"><div class="nm">📦 ${tr('common.supply_chain')}</div>
|
||||||
<div class="kv"><span>${tr('common.hardware_prices')}</span><b>${t>1.005?tr('supply_chain.p_since_you_started',{p:pct(t-1)}):tr('supply_chain.as_when_you_started')}</b></div>
|
<div class="kv"><span>${tr('common.hardware_prices')}</span><b>${t>1.005?tr('supply_chain.p_since_you_started',{p:pct(t-1)}):tr('supply_chain.as_when_you_started')}</b></div>
|
||||||
${s?`<div class="kv"><span>${tr('common.shortage')}</span><b>${tr('supply_chain.what_p_n_days_left',{what:tr(HW_SHOCK[s.k].n),p:pct(s.mul-1),n:s.until-S.day})}</b></div>`:''}
|
${s?`<div class="kv"><span>${tr('common.shortage')}</span><b>${tr('supply_chain.what_p_n_days_left',{what:tr(HW_SHOCK[s.k].n),p:pct(s.mul-1),n:s.until-S.day})}</b></div>`:''}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const OPT={
|
||||||
};
|
};
|
||||||
const dfLeaseMo=km=>Math.round(400+km*1.0);
|
const dfLeaseMo=km=>Math.round(400+km*1.0);
|
||||||
const dfBuildCost=km=>Math.round((25000+km*120)*hwMul('build'));
|
const dfBuildCost=km=>Math.round((25000+km*120)*hwMul('build'));
|
||||||
const dfBuildDays=km=>Math.round(120+km*0.25);
|
const dfBuildDays=km=>leadDays(Math.round(120+km*0.25)),IRU_DAYS=30;
|
||||||
const ampCount=km=>Math.max(0,Math.floor(km/AMP_EVERY));
|
const ampCount=km=>Math.max(0,Math.floor(km/AMP_EVERY));
|
||||||
const fmtCap=g=>g>=1000?(+(g/1000).toFixed(1))+'T':g+'G';
|
const fmtCap=g=>g>=1000?(+(g/1000).toFixed(1))+'T':g+'G';
|
||||||
const WAVECO=['Zay-No Fiber','Loomin’ Technologies','Clown Castle Fiber','Bolt Technology','youNetworks','G&T (Gin and Transit)'];
|
const WAVECO=['Zay-No Fiber','Loomin’ Technologies','Clown Castle Fiber','Bolt Technology','youNetworks','G&T (Gin and Transit)'];
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,8 @@ const LEVELS=[
|
||||||
// What each level asks for (peak Gbps, POPs, continents). Continents carry over to the levels above.
|
// What each level asks for (peak Gbps, POPs, continents). Continents carry over to the levels above.
|
||||||
const LV_REQ=[null,{pk:200,pops:3},{pk:1000,pops:6},{pk:3000,pops:10,reg:3},{pk:6000,pops:15,reg:4},{pk:9000,pops:20},{pk:12000,pops:25,reg:5},{pk:16000,pops:32},{pk:21000,pops:40,reg:6},{pk:26000,pops:50},{pk:33000,pops:60},{pk:40000,pops:70},{pk:50000,pops:80}];
|
const LV_REQ=[null,{pk:200,pops:3},{pk:1000,pops:6},{pk:3000,pops:10,reg:3},{pk:6000,pops:15,reg:4},{pk:9000,pops:20},{pk:12000,pops:25,reg:5},{pk:16000,pops:32},{pk:21000,pops:40,reg:6},{pk:26000,pops:50},{pk:33000,pops:60},{pk:40000,pops:70},{pk:50000,pops:80}];
|
||||||
const lvReg=i=>Math.max(0,...LV_REQ.slice(1,i+1).map(q=>q.reg||0));
|
const lvReg=i=>Math.max(0,...LV_REQ.slice(1,i+1).map(q=>q.reg||0));
|
||||||
const lvl=()=>(S&&S.lvl)||1;
|
// Open gates (sandbox, puzzles): every level's unlocks are there from the start.
|
||||||
|
const lvl=()=>S&&S.rules&&S.rules.gates==='open'?LEVELS.length:(S&&S.lvl)||1;
|
||||||
// Lower-case just the first word for mid-sentence use, so names like Tel-Mess or AGI keep their capitals.
|
// Lower-case just the first word for mid-sentence use, so names like Tel-Mess or AGI keep their capitals.
|
||||||
const lc1=t=>/^[A-Z][a-z]/.test(t)?t[0].toLowerCase()+t.slice(1):t;
|
const lc1=t=>/^[A-Z][a-z]/.test(t)?t[0].toLowerCase()+t.slice(1):t;
|
||||||
function custLevel(){const pops=Object.keys(S.pops).length,pk=S.stats.peak,rc=regionsCount();let lv=1;for(let i=1;i<LV_REQ.length;i++){const q=LV_REQ[i];if(pk>=q.pk&&pops>=q.pops&&rc>=lvReg(i))lv=i+1;else break;}return lv;}
|
function custLevel(){const pops=Object.keys(S.pops).length,pk=S.stats.peak,rc=regionsCount();let lv=1;for(let i=1;i<LV_REQ.length;i++){const q=LV_REQ[i];if(pk>=q.pk&&pops>=q.pops&&rc>=lvReg(i))lv=i+1;else break;}return lv;}
|
||||||
|
|
|
||||||
42
src/game/40-progress/30-rules.js
Normal file
42
src/game/40-progress/30-rules.js
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
/* ---------- The ruleset: one game, many doors ----------
|
||||||
|
Every network carries its own rules (S.rules), picked when it starts and locked from then on. Modes are presets of
|
||||||
|
these rules, not separate code: Normal comes as Change Freeze, On-call (the classic game) and BGP at 3 a.m.;
|
||||||
|
Sandbox and Puzzles are presets too. Saves without rules load as On-call, so nothing changes for them.
|
||||||
|
Scenarios and the weekly challenge run on On-call plus their own S.scn.rules (scnRule()). */
|
||||||
|
const RULE_DEF={clock:true,chaos:'normal',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder',mods:[]};
|
||||||
|
const RULE_OK={clock:[true,false],chaos:['none','calm','normal','spicy'],lead:['real','quick'],market:[true,false],inbox:[true,false],money:['normal','infinite'],gates:['ladder','open']};
|
||||||
|
// i: icon, n: name, d: the one-line joke, x: what is different, in small print.
|
||||||
|
const PRESETS={
|
||||||
|
freeze:{i:'🧊',n:tr('rules.change_freeze'),d:tr('rules.nobody_touches_prod_even_the_backhoes'),x:tr('rules.fewer_outages_pnis_and_builds_in'),clock:true,chaos:'calm',lead:'quick',market:false,inbox:false,money:'normal',gates:'ladder'},
|
||||||
|
oncall:{i:'📟',n:tr('rules.on_call'),d:tr('rules.the_real_thing_your_pager_has'),x:tr('rules.real_lead_times_real_outages_a'),clock:true,chaos:'normal',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder'},
|
||||||
|
bgp:{i:'🔥',n:tr('rules.bgp_at_3_a_m'),d:tr('rules.everything_is_on_fire_and_it'),x:tr('rules.more_and_longer_outages_more_ddos'),clock:true,chaos:'spicy',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder'},
|
||||||
|
sandbox:{i:'🏖️',n:tr('common.sandbox'),d:tr('rules.a_billion_dollars_every_unlock_your'),x:tr('rules.infinite_money_everything_unlocked_quick'),clock:true,chaos:'none',lead:'quick',market:true,inbox:true,money:'infinite',gates:'open'},
|
||||||
|
puzzle:{i:'🧩',n:tr('rules.puzzle'),d:tr('rules.one_small_network_one_tricky_goal'),x:tr('rules.no_clock_no_bills_nothing_breaks'),clock:false,chaos:'none',lead:'quick',market:false,inbox:false,money:'normal',gates:'open'},
|
||||||
|
};
|
||||||
|
const NORMAL_PRESETS=['freeze','oncall','bgp'];
|
||||||
|
// How often things break, against the classic game. Spicy outages also last half as long again.
|
||||||
|
const CHAOS={none:{i:'😴',n:tr('rules.chaos_none'),d:tr('rules.nothing_ever_breaks'),m:0},calm:{i:'🧊',n:tr('rules.chaos_calm'),d:tr('rules.a_cut_now_and_then'),m:0.35},normal:{i:'📟',n:tr('rules.chaos_normal'),d:tr('rules.like_the_real_game'),m:1},spicy:{i:'🔥',n:tr('rules.chaos_spicy'),d:tr('rules.your_pager_never_sleeps'),m:1.8}};
|
||||||
|
const SPICY_LONG=1.5,LEAD_QUICK=10;
|
||||||
|
function rule(k){const r=S&&S.rules;return r&&r[k]!==undefined?r[k]:RULE_DEF[k];}
|
||||||
|
function rulePreset(){const p=S&&S.rules&&S.rules.preset;return p&&Object.prototype.hasOwnProperty.call(PRESETS,p)?p:'oncall';}
|
||||||
|
function gatesOpen(){return rule('gates')==='open';}
|
||||||
|
function chaosMul(){const c=CHAOS[rule('chaos')];return c?c.m:1;}
|
||||||
|
// Days until something ordered arrives: as quoted, or a tenth of it (at least a day) with quick lead times.
|
||||||
|
function leadDays(n){return rule('lead')==='quick'?Math.max(1,Math.round(n/LEAD_QUICK)):n;}
|
||||||
|
// A fresh, valid rules object: the preset's values, with any valid overrides on top.
|
||||||
|
function makeRules(preset,o){const p=Object.prototype.hasOwnProperty.call(PRESETS,preset)?preset:'oncall',P=PRESETS[p],r={preset:p};o=o&&typeof o==='object'?o:{};
|
||||||
|
for(const k of Object.keys(RULE_OK)){const d=P[k]!==undefined?P[k]:RULE_DEF[k];r[k]=RULE_OK[k].includes(o[k])?o[k]:d;}
|
||||||
|
r.mods=Array.isArray(o.mods)?[...new Set(o.mods.filter(m=>typeof m==='string'&&/^[a-z0-9_-]{1,24}$/.test(m)))].slice(0,16):[];
|
||||||
|
return r;}
|
||||||
|
// What the HUD and the share card say about the rules. On-call says nothing: it is the game.
|
||||||
|
function ruleTag(){const p=rulePreset();if(S&&S.mode==='sandbox'){const c=CHAOS[rule('chaos')];return tr('common.sandbox')+(c&&rule('chaos')!=='none'?' '+c.i:'');}
|
||||||
|
return p==='oncall'||p==='sandbox'?'':PRESETS[p].i+' '+PRESETS[p].n;}
|
||||||
|
/* Spicy outages last longer: stretch a fresh incident, and whatever it holds down until the same day, by half. */
|
||||||
|
function stretchInc(i){if(rule('chaos')!=='spicy'||!i||!(i.until>S.day)||i.start!==S.day)return;const U=i.until,V=S.day+Math.ceil((U-S.day)*SPICY_LONG);if(V===U)return;i.until=V;
|
||||||
|
const f=(o,k)=>{if(o&&o[k]===U)o[k]=V;},E=S.ev;
|
||||||
|
for(const l of S.links){f(l,'cut');f(l,'eqDown');f(l,'deg');f(l.loss,'until');f(l.chFail,'until');}
|
||||||
|
for(const c in S.pops){const p=S.pops[c];f(p,'down');f(p,'ringcut');f(p,'hot');}
|
||||||
|
for(const t of S.transit){f(t,'down');f(t.lacp,'until');}for(const p of S.pni)f(p.lacp,'until');
|
||||||
|
for(const k of ['ixdown','fab'])if(E[k])for(const x in E[k])if(E[k][x]===U)E[k][x]=V;
|
||||||
|
if(E.ixlacp)for(const x in E.ixlacp)f(E.ixlacp[x],'until');
|
||||||
|
for(const k of ['leak','rpki','pmtud','ddos'])f(E[k],'until');}
|
||||||
|
|
@ -31,12 +31,14 @@ function weekly(){const {y,w}=isoWeek(new Date());let r=(y*100+w)*2654435761>>>0
|
||||||
const scnRule=k=>!!(S&&S.scn&&S.scn.rules&&S.scn.rules[k]);
|
const scnRule=k=>!!(S&&S.scn&&S.scn.rules&&S.scn.rules[k]);
|
||||||
function scnHof(){try{return JSON.parse(localStorage.getItem('sot-scn')||'{}')||{};}catch(e){return {};}}
|
function scnHof(){try{return JSON.parse(localStorage.getItem('sot-scn')||'{}')||{};}catch(e){return {};}}
|
||||||
function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,city,o];openModal(pitchHtml(true));return;}newGame(nm,city);S.mode=o.mode||'normal';
|
function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,city,o];openModal(pitchHtml(true));return;}newGame(nm,city);S.mode=o.mode||'normal';
|
||||||
if(S.mode==='sandbox'){S.cash=1e9;S.lvl=LEVELS.length;S.nextFail=1e9;S.nextEvent=1e9;}
|
// The rules are picked here and locked for the life of the network. Scenarios run on On-call plus their own rules.
|
||||||
|
{const pr=o.scn?'oncall':S.mode==='sandbox'?'sandbox':S.mode==='puzzle'?'puzzle':own(PRESETS,o.preset)&&o.preset!=='sandbox'&&o.preset!=='puzzle'?o.preset:'oncall';S.rules=makeRules(pr,o.scn?{}:o.rules);}
|
||||||
|
if(S.mode==='sandbox'){S.cash=1e9;S.lvl=LEVELS.length;if(!chaosMul()){S.nextFail=1e9;S.nextEvent=1e9;}}
|
||||||
if(o.scn){const sc=o.scn;S.scn={id:sc.id,rules:sc.rules||{},days:sc.days,name:sc.n||tr('features.weekly_challenge_key',{key:sc.key}),key:sc.key||null,mods:(sc.mods||[]).map(m=>m.id)};S.rng=(o.seed||hstr(sc.id))|0;S.mode='scenario';S.asn=200000+Math.floor(Math.random()*15000);
|
if(o.scn){const sc=o.scn;S.scn={id:sc.id,rules:sc.rules||{},days:sc.days,name:sc.n||tr('features.weekly_challenge_key',{key:sc.key}),key:sc.key||null,mods:(sc.mods||[]).map(m=>m.id)};S.rng=(o.seed||hstr(sc.id))|0;S.mode='scenario';S.asn=200000+Math.floor(Math.random()*15000);
|
||||||
if(sc.cash)S.cash=sc.cash;if(sc.setup)sc.setup();
|
if(sc.cash)S.cash=sc.cash;if(sc.setup)sc.setup();
|
||||||
for(const m of S.scn.mods){if(m==='pricey')S.priceMul=1.3;if(m==='poor')S.cash=100000;if(m==='chaos')S.scn.rules.chaos=true;if(m==='boom')S.scn.rules.boom=true;if(m==='dk')S.scn.rules.dkAll=true;if(m==='sharks')S.scn.rules.sharks=true;}}
|
for(const m of S.scn.mods){if(m==='pricey')S.priceMul=1.3;if(m==='poor')S.cash=100000;if(m==='chaos')S.scn.rules.chaos=true;if(m==='boom')S.scn.rules.boom=true;if(m==='dk')S.scn.rules.dkAll=true;if(m==='sharks')S.scn.rules.sharks=true;}}
|
||||||
// Every new network starts at ½ speed (#186), whatever the last one ran at: slow enough to look around, but things happen.
|
// Every new network starts at ½ speed (#186), whatever the last one ran at: slow enough to look around, but things happen.
|
||||||
UI.speed=UI.lastSpeed=0.5;UI.resumeSpeed=null;
|
UI.speed=UI.lastSpeed=rule('clock')?0.5:0;UI.resumeSpeed=null;
|
||||||
track('game_new');UI.started=true;closeModal();compute();cam.x=CITY[city].x;cam.y=CITY[city].y;cam.z=innerWidth<760?1.1:1.4;selectCity(city);
|
track('game_new');UI.started=true;closeModal();compute();cam.x=CITY[city].x;cam.y=CITY[city].y;cam.z=innerWidth<760?1.1:1.4;selectCity(city);
|
||||||
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${o.scn.goal?esc(o.scn.goal)+'.':tr('common.serve_as_much_traffic_as_you')} ${tr('scenarios.you_have_n_days',{n:S.scn.days})}`:S.mode==='sandbox'?tr('scenarios.sandbox_mode_a_billion_dollars_every'):tr('scenarios.welcome_name_the_ripe_ncc_assigned',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${o.scn.goal?esc(o.scn.goal)+'.':tr('common.serve_as_much_traffic_as_you')} ${tr('scenarios.you_have_n_days',{n:S.scn.days})}`:S.mode==='sandbox'?(chaosMul()?tr('scenarios.sandbox_mode_a_billion_dollars_chaos',{chaos:CHAOS[rule('chaos')].n}):tr('scenarios.sandbox_mode_a_billion_dollars_every')):tr('scenarios.welcome_name_the_ripe_ncc_assigned',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
||||||
renderAll();save();if(!S.scn&&S.mode!=='sandbox')tutorialStart();}
|
renderAll();save();if(!S.scn&&S.mode!=='sandbox'&&S.mode!=='puzzle')tutorialStart();}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ function shareCanvas(){const Wc=1200,Hc=630,cv=document.createElement('canvas');
|
||||||
g.restore();g.strokeStyle='#1E2640';g.lineWidth=5;g.strokeRect(mx,my,mw,mh);
|
g.restore();g.strokeStyle='#1E2640';g.lineWidth=5;g.strokeRect(mx,my,mw,mh);
|
||||||
// header
|
// header
|
||||||
g.fillStyle='#1E2640';g.font='900 54px "Baloo 2", sans-serif';g.textBaseline='top';g.fillText(S.name,40,28);
|
g.fillStyle='#1E2640';g.font='900 54px "Baloo 2", sans-serif';g.textBaseline='top';g.fillText(S.name,40,28);
|
||||||
g.font='800 26px Nunito, sans-serif';g.fillText(`AS${S.asn} · ${tierLabel()} · ${dateStr(S.day)}${S.mode==='sandbox'?' · '+tr('common.sandbox'):''}`,42,92);
|
g.font='800 26px Nunito, sans-serif';g.fillText(`AS${S.asn} · ${tierLabel()} · ${dateStr(S.day)}${ruleTag()?' · '+ruleTag():''}`,42,92);
|
||||||
// stats
|
// stats
|
||||||
const got=BADGES.filter(b=>S.ach&&S.ach[b.id]!==undefined),rk={l:0,e:1,r:2,c:3},top=got.slice().sort((a,b)=>rk[a.r]-rk[b.r]).slice(0,8);
|
const got=BADGES.filter(b=>S.ach&&S.ach[b.id]!==undefined),rk={l:0,e:1,r:2,c:3},top=got.slice().sort((a,b)=>rk[a.r]-rk[b.r]).slice(0,8);
|
||||||
const rows=[[tr('common.peak_traffic'),fmtG(S.stats.peak||0)],[tr('common.peered'),pct(R.peerShare||0)],[tr('common.pops'),tr('share_card.n_in_r_regions',{n:Object.keys(S.pops).length,r:regionsCount()})],[tr('common.links'),String(S.links.length)],[tr('common.customers'),String(S.biz.length)],[tr('common.incidents_survived'),String(S.stats.survived||0)],[tr('common.shark_bites'),String(S.stats.sharks||0)],[tr('common.badges'),`${got.length}/${BADGES.length}`]];
|
const rows=[[tr('common.peak_traffic'),fmtG(S.stats.peak||0)],[tr('common.peered'),pct(R.peerShare||0)],[tr('common.pops'),tr('share_card.n_in_r_regions',{n:Object.keys(S.pops).length,r:regionsCount()})],[tr('common.links'),String(S.links.length)],[tr('common.customers'),String(S.biz.length)],[tr('common.incidents_survived'),String(S.stats.survived||0)],[tr('common.shark_bites'),String(S.stats.sharks||0)],[tr('common.badges'),`${got.length}/${BADGES.length}`]];
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
function newGame(name,home){
|
function newGame(name,home){
|
||||||
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
|
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
|
||||||
ltv:2,t1v:3,auV:1,autoSales:false,autoRepair:false,seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},pairMet:{},
|
ltv:2,t1v:3,auV:1,autoSales:false,autoRepair:false,seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},pairMet:{},
|
||||||
done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,inbox:{items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0},hw:{}};
|
done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,inbox:{items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0},hw:{},rules:makeRules('oncall')};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ const pniBig=id=>{const n=NET[id];return n.type==='t1'||(n.type==='cdn'&&n.pol!=
|
||||||
const pniMin=id=>{const n=NET[id];return n.type==='t1'||(n.type==='cdn'&&n.pol!=='open')?1:0;};
|
const pniMin=id=>{const n=NET[id];return n.type==='t1'||(n.type==='cdn'&&n.pol!=='open')?1:0;};
|
||||||
const pniG1=id=>id==='dtk';
|
const pniG1=id=>id==='dtk';
|
||||||
// A beer with their peering coordinator at a conference halves the wait. It is how it really works.
|
// A beer with their peering coordinator at a conference halves the wait. It is how it really works.
|
||||||
const PNI_SLOW=0.15,pniLead=id=>{const n=pniBig(id)?(Math.random()<PNI_SLOW?180+Math.floor(Math.random()*186):30):14+Math.floor(Math.random()*29);return S.conf&&S.conf.until>S.day?Math.round(n/2):n;};
|
const PNI_SLOW=0.15,pniLead=id=>{const n=pniBig(id)?(Math.random()<PNI_SLOW?180+Math.floor(Math.random()*186):30):14+Math.floor(Math.random()*29);return leadDays(S.conf&&S.conf.until>S.day?Math.round(n/2):n);};
|
||||||
const pniG=p=>p.g1?1:PORT[p.tier].g,pniPN=p=>p.g1?'1G':PORT[p.tier].n,pniOn=p=>!(p.ready>S.day);
|
const pniG=p=>p.g1?1:PORT[p.tier].g,pniPN=p=>p.g1?'1G':PORT[p.tier].n,pniOn=p=>!(p.ready>S.day);
|
||||||
const pniEta=id=>pniBig(id)?tr('pnis.delivery_about_a_month_sometimes_6'):tr('pnis.delivery_2_to_6_weeks');
|
const pniEta=id=>pniBig(id)?tr('pnis.delivery_about_a_month_sometimes_6'):tr('pnis.delivery_2_to_6_weeks');
|
||||||
const PNI_G1_COST=1200,pniWhen=n=>n>=60?tr('pnis.their_team_quotes_m_months',{m:Math.round(n/30)}):tr('pnis.ready_in_about_n_days',{n});
|
const PNI_G1_COST=1200,pniWhen=n=>n>=60?tr('pnis.their_team_quotes_m_months',{m:Math.round(n/30)}):tr('pnis.ready_in_about_n_days',{n});
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const ibxOpen=()=>S.inbox?S.inbox.items.length:0,ibxUrgent=()=>S.inbox?S.inbox.i
|
||||||
const mpDown=(id,c)=>{const t=S.inbox&&S.inbox.down[id+'@'+c];return !!t&&t>S.day;};
|
const mpDown=(id,c)=>{const t=S.inbox&&S.inbox.down[id+'@'+c];return !!t&&t>S.day;};
|
||||||
const ibxWho=x=>x.net?NET[x.net].name:x.nm,ibxAsn=x=>x.net?NET[x.net].asn:x.asn;
|
const ibxWho=x=>x.net?NET[x.net].name:x.nm,ibxAsn=x=>x.net?NET[x.net].asn:x.asn;
|
||||||
function ibxLog(m,a){const I=ibx();I.log.unshift({d:S.day,m,a:a||{}});I.log.length=Math.min(I.log.length,40);}
|
function ibxLog(m,a){const I=ibx();I.log.unshift({d:S.day,m,a:a||{}});I.log.length=Math.min(I.log.length,40);}
|
||||||
function inboxDay(d){const I=ibx(),ixs=Object.keys(S.ixp);
|
function inboxDay(d){if(!rule('inbox'))return;const I=ibx(),ixs=Object.keys(S.ixp);
|
||||||
// new peering requests: more exchange ports, more mail
|
// new peering requests: more exchange ports, more mail
|
||||||
if(ixs.length&&Math.random()<Math.min(0.9,0.15*ixs.length)*({open:1,selective:0.7,closed:0}[ppol()])){const c=pick(ixs),set=ixSessions(c);
|
if(ixs.length&&Math.random()<Math.min(0.9,0.15*ixs.length)*({open:1,selective:0.7,closed:0}[ppol()])){const c=pick(ixs),set=ixSessions(c);
|
||||||
const real=ixMembers(c).filter(id=>{const n=NET[id];return !set.has(id)&&!merged(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006&&!I.items.some(x=>x.net===id&&x.ix===c);});
|
const real=ixMembers(c).filter(id=>{const n=NET[id];return !set.has(id)&&!merged(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006&&!I.items.some(x=>x.net===id&&x.ix===c);});
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
const SOLD_WIN=90,SOLD_WHY=[N_('sold_out.a_hyperscaler_bought_every_wave_of'),N_('sold_out.the_carrier_is_out_of_spectrum'),N_('sold_out.the_transponders_for_this_route_are'),N_('sold_out.the_capacity_is_available_in_the'),N_('sold_out.their_capacity_planner_is_on_holiday'),N_('sold_out.the_upgrade_is_planned_for_q3')];
|
const SOLD_WIN=90,SOLD_WHY=[N_('sold_out.a_hyperscaler_bought_every_wave_of'),N_('sold_out.the_carrier_is_out_of_spectrum'),N_('sold_out.the_transponders_for_this_route_are'),N_('sold_out.the_capacity_is_available_in_the'),N_('sold_out.their_capacity_planner_is_on_holiday'),N_('sold_out.the_upgrade_is_planned_for_q3')];
|
||||||
const soldP=tier=>Math.min(0.1,0.02+0.012*tier);
|
const soldP=tier=>Math.min(0.1,0.02+0.012*tier);
|
||||||
// Never in the first 90 days: a new network has enough on its plate. Never in the tutorial or a scenario's first quarter either.
|
// Never in the first 90 days: a new network has enough on its plate. Never in the tutorial or a scenario's first quarter either.
|
||||||
function soldOut(a,b,tier,via){if(!S||S.day<SOLD_WIN||S.tut)return null;const k=(a<b?a+b:b+a)+'|'+(via||'')+'|'+tier,off=hstr(k)%SOLD_WIN,ep=Math.floor((S.day+off)/SOLD_WIN),h=hstr(S.asn+'|'+k+'|'+ep);
|
function soldOut(a,b,tier,via){if(!S||S.day<SOLD_WIN||S.tut||!rule('market'))return null;const k=(a<b?a+b:b+a)+'|'+(via||'')+'|'+tier,off=hstr(k)%SOLD_WIN,ep=Math.floor((S.day+off)/SOLD_WIN),h=hstr(S.asn+'|'+k+'|'+ep);
|
||||||
if(h%1000>=soldP(tier)*1000)return null;return {why:SOLD_WHY[(h>>>10)%SOLD_WHY.length],until:(ep+1)*SOLD_WIN-off};}
|
if(h%1000>=soldP(tier)*1000)return null;return {why:SOLD_WHY[(h>>>10)%SOLD_WHY.length],until:(ep+1)*SOLD_WIN-off};}
|
||||||
function snubWhy(sn){const d=Math.max(1,sn.until-S.day);return sn.why+' '+trn('sold_out.they_will_reconsider_in_n_day',d);}
|
function snubWhy(sn){const d=Math.max(1,sn.until-S.day);return sn.why+' '+trn('sold_out.they_will_reconsider_in_n_day',d);}
|
||||||
// Paid-peering giants drop the fee for networks too big to ignore (freeLv: the customer level that does it).
|
// Paid-peering giants drop the fee for networks too big to ignore (freeLv: the customer level that does it).
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@ function sanitize(s){
|
||||||
s.ddosStarts=(Array.isArray(s.ddosStarts)?s.ddosStarts:attacks.map(a=>a.start)).filter(d=>typeof d==='number'||typeof d==='string').map(Number).filter(d=>Number.isFinite(d)&&d>s.day-7&&d<=s.day).sort((a,b)=>a-b).slice(-14);
|
s.ddosStarts=(Array.isArray(s.ddosStarts)?s.ddosStarts:attacks.map(a=>a.start)).filter(d=>typeof d==='number'||typeof d==='string').map(Number).filter(d=>Number.isFinite(d)&&d>s.day-7&&d<=s.day).sort((a,b)=>a-b).slice(-14);
|
||||||
s.auV=s.auV===1?1:0;if(s.auNews!==true)delete s.auNews;
|
s.auV=s.auV===1?1:0;if(s.auNews!==true)delete s.auNews;
|
||||||
if(s.merged){const o={};if(typeof s.merged==='object')for(const m of MERGERS)if(isFinite(s.merged[m.id]))o[m.id]=+s.merged[m.id];s.merged=Object.keys(o).length?o:undefined;}
|
if(s.merged){const o={};if(typeof s.merged==='object')for(const m of MERGERS)if(isFinite(s.merged[m.id]))o[m.id]=+s.merged[m.id];s.merged=Object.keys(o).length?o:undefined;}
|
||||||
|
// The rules (2.0): a save without them is the classic game, On-call (or a sandbox or puzzle, if it was one). Locked after the start.
|
||||||
|
{const r=s.rules&&typeof s.rules==='object'&&!Array.isArray(s.rules)?s.rules:{},p=s.mode==='sandbox'?'sandbox':s.mode==='puzzle'?'puzzle':own(PRESETS,r.preset)?r.preset:'oncall';s.rules=makeRules(p,own(PRESETS,r.preset)?r:{});}
|
||||||
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
|
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
|
||||||
return s;}
|
return s;}
|
||||||
function migrate(s){sanitize(s);
|
function migrate(s){sanitize(s);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function spawnMega(t,T,nm,mine){
|
||||||
if(t==='pairs'){const ls=S.links.filter(l=>l.kind==='df'&&l.own&&l.ready<=S.day&&!S.biz.some(b=>(b.type==='pairs'||b.type==='dfpair')&&b.link===l.id)&&!S.offers.some(o=>o.link===l.id));if(!ls.length)return;const l=pick(ls),n=100+50*Math.floor(Math.random()*7);
|
if(t==='pairs'){const ls=S.links.filter(l=>l.kind==='df'&&l.own&&l.ready<=S.day&&!S.biz.some(b=>(b.type==='pairs'||b.type==='dfpair')&&b.link===l.id)&&!S.offers.some(o=>o.link===l.id));if(!ls.length)return;const l=pick(ls),n=100+50*Math.floor(Math.random()*7);
|
||||||
S.offers.push({id:uid(),city:l.a,city2:l.b,link:l.id,what:tr('customers_and_events.n_fiber_pairs_in_your_a',{n,a:CITY[l.a].name,b:CITY[l.b].name}),name:nm(),type:t,bw:1,rate:Math.round(dfLeaseMo(l.km)*n*0.2),reqs:[],exp:S.day+30,mega:true});}
|
S.offers.push({id:uid(),city:l.a,city2:l.b,link:l.id,what:tr('customers_and_events.n_fiber_pairs_in_your_a',{n,a:CITY[l.a].name,b:CITY[l.b].name}),name:nm(),type:t,bw:1,rate:Math.round(dfLeaseMo(l.km)*n*0.2),reqs:[],exp:S.day+30,mega:true});}
|
||||||
}
|
}
|
||||||
function spawnSpecial(t){const T=BIZ_T[t],mine=Object.keys(S.pops),lv=S.lvl||1;
|
function spawnSpecial(t){const T=BIZ_T[t],mine=Object.keys(S.pops),lv=lvl();
|
||||||
const nm=()=>{const list=T.names.filter(n=>!S.usedNames.includes(n));const n=list.length?pick(list):pick(T.names);useName(n);return n;};
|
const nm=()=>{const list=T.names.filter(n=>!S.usedNames.includes(n));const n=list.length?pick(list):pick(T.names);useName(n);return n;};
|
||||||
if(T.mega){spawnMega(t,T,nm,mine);return;}
|
if(T.mega){spawnMega(t,T,nm,mine);return;}
|
||||||
if(T.event){const city=Math.random()<0.85&&mine.length?pick(mine):pick(OFFC);const bw=pick(T.opts.slice(0,Math.min(T.opts.length,lv+2)));const dur=3+Math.floor(Math.random()*5),start=S.day+12+Math.floor(Math.random()*14);
|
if(T.event){const city=Math.random()<0.85&&mine.length?pick(mine):pick(OFFC);const bw=pick(T.opts.slice(0,Math.min(T.opts.length,lv+2)));const dur=3+Math.floor(Math.random()*5),start=S.day+12+Math.floor(Math.random()*14);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* ---------- failures & events ---------- */
|
/* ---------- failures & events ---------- */
|
||||||
// A few badges read the incident text: callers whose message mentions a shark, anchor, crocodile or llama pass its English as en.
|
// A few badges read the incident text: callers whose message mentions a shark, anchor, crocodile or llama pass its English as en.
|
||||||
function addInc(o,en=o.msg||''){if(S.loans&&S.loans.some(l=>(l.covs||[]).includes('pizza'))){S.cash-=COVS.pizza.each;S.stats.pizza=(S.stats.pizza||0)+1;}o.id=uid();o.start=S.day;S.inc.push(o);S.stats.incidents++;S.stats.by=S.stats.by||{};S.stats.by[o.type]=(S.stats.by[o.type]||0)+1;if(/shark/i.test(en))S.stats.sharks=(S.stats.sharks||0)+1;const f=S.stats.f=S.stats.f||{};if(/anchor/i.test(en))f.anchor=1;if(/crocodile/i.test(en))f.croc=1;if(/beaver/i.test(en))f.beaver=1;if(/llama/i.test(en))f.llama=1;}
|
function addInc(o,en=o.msg||''){if(S.loans&&S.loans.some(l=>(l.covs||[]).includes('pizza'))){S.cash-=COVS.pizza.each;S.stats.pizza=(S.stats.pizza||0)+1;}o.id=uid();o.start=S.day;S.inc.push(o);S.stats.incidents++;S.stats.by=S.stats.by||{};S.stats.by[o.type]=(S.stats.by[o.type]||0)+1;if(/shark/i.test(en))S.stats.sharks=(S.stats.sharks||0)+1;const f=S.stats.f=S.stats.f||{};if(/anchor/i.test(en))f.anchor=1;if(/crocodile/i.test(en))f.croc=1;if(/beaver/i.test(en))f.beaver=1;if(/llama/i.test(en))f.llama=1;if(S.rules&&S.rules.chaos==='spicy')stretchInc(o);}
|
||||||
const HARMLESS=[
|
const HARMLESS=[
|
||||||
[tr('common.certificate_expired'),tr('incidents_and_ddos.the_tls_certificate_on_your_noc')],
|
[tr('common.certificate_expired'),tr('incidents_and_ddos.the_tls_certificate_on_your_noc')],
|
||||||
[tr('incidents_and_ddos.it_was_dns'),tr('incidents_and_ddos.someone_deleted_the_dns_record_for')],
|
[tr('incidents_and_ddos.it_was_dns'),tr('incidents_and_ddos.someone_deleted_the_dns_record_for')],
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ function fireFailure(){
|
||||||
if(S.transit.some(t=>!(t.down>S.day)))opts.push(['transit',3]);
|
if(S.transit.some(t=>!(t.down>S.day)))opts.push(['transit',3]);
|
||||||
if(Object.keys(S.ixp).length)opts.push(['ixloop',2]);
|
if(Object.keys(S.ixp).length)opts.push(['ixloop',2]);
|
||||||
if(S.transit.length&&S.day>60)opts.push(['leak',2]);
|
if(S.transit.length&&S.day>60)opts.push(['leak',2]);
|
||||||
// Spicy chaos or gaming customers put DDoS on its own, busier schedule (ddosTick); otherwise it stays one incident among many.
|
// Flood Season brings its own; Change Freeze (calm) has none. Spicy chaos or gaming customers put DDoS on its own,
|
||||||
if(S.day>40&&!scnRule('ddos')&&!ddosSpicy())opts.push(['ddos',2]);
|
// busier schedule (ddosTick) instead of this one, so it is never counted twice.
|
||||||
|
if(S.day>40&&!scnRule('ddos')&&!ddosOff()&&!ddosSpicy())opts.push(['ddos',2]);
|
||||||
if(fabsUsed.length)opts.push(['fabric',1.5]);
|
if(fabsUsed.length)opts.push(['fabric',1.5]);
|
||||||
const lit=S.links.filter(l=>l.kind==='df'&&dfCap(l)>0&&!linkDown(l));if(lit.length)opts.push(['amp',1.5+lit.length*0.3],['optic',1.5+lit.length*0.3]);
|
const lit=S.links.filter(l=>l.kind==='df'&&dfCap(l)>0&&!linkDown(l));if(lit.length)opts.push(['amp',1.5+lit.length*0.3],['optic',1.5+lit.length*0.3]);
|
||||||
opts.push(['funny',4]);
|
opts.push(['funny',4]);
|
||||||
|
|
@ -130,9 +131,11 @@ const ddosSizeMax=()=>ddosSizeMean()*(scnRule('ddos')?1.5:12/1.278);
|
||||||
function ddosSize(vec){const fl=scnRule('ddos'),r=Math.random(),roll=fl?1/3+r*2/3:(r<.98?.2+1.8*r/.98:8+4*(r-.98)/.02)/12;
|
function ddosSize(vec){const fl=scnRule('ddos'),r=Math.random(),roll=fl?1/3+r*2/3:(r<.98?.2+1.8*r/.98:8+4*(r-.98)/.02)/12;
|
||||||
const raw=ddosSizeMax()*(DDOS_VEC[vec].gaming?1/3:1)*roll;
|
const raw=ddosSizeMax()*(DDOS_VEC[vec].gaming?1/3:1)*roll;
|
||||||
return fl?Math.max(2,Math.floor(raw)):Math.max(0.001,Math.floor(raw*1000)/1000);}
|
return fl?Math.max(2,Math.floor(raw)):Math.max(0.001,Math.floor(raw*1000)/1000);}
|
||||||
|
// Calm (Change Freeze) and no chaos at all mean no attacks, gamers or not.
|
||||||
|
const ddosOff=()=>{const c=rule('chaos');return c==='calm'||c==='none';};
|
||||||
// More frequent attacks are opt-in: the spicy chaos setting, or hosting gamers (who attract them in real life).
|
// More frequent attacks are opt-in: the spicy chaos setting, or hosting gamers (who attract them in real life).
|
||||||
const ddosSpicy=()=>(typeof rule==='function'&&rule('chaos')==='spicy')||gamingCount()>0;
|
const ddosSpicy=()=>!ddosOff()&&(rule('chaos')==='spicy'||gamingCount()>0);
|
||||||
function ddosTick(){if(S.mode==='sandbox')return;if(scnRule('ddos')){let next=+S.scn.nextDdos||3,n=0;
|
function ddosTick(){if(ddosOff()&&!scnRule('ddos'))return;if(scnRule('ddos')){let next=+S.scn.nextDdos||3,n=0;
|
||||||
// Unless spicy, floods take turns as they always did: the next one waits until the last is over.
|
// Unless spicy, floods take turns as they always did: the next one waits until the last is over.
|
||||||
if(!ddosSpicy()&&ddosAll().length)return;
|
if(!ddosSpicy()&&ddosAll().length)return;
|
||||||
while(S.day>=next&&n++<2){ddosAttack(false);next+=floodGap();}S.scn.nextDdos=next<S.day?S.day+floodGap():next;}
|
while(S.day>=next&&n++<2){ddosAttack(false);next+=floodGap();}S.scn.nextDdos=next<S.day?S.day+floodGap():next;}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
function fireEvent(){
|
function fireEvent(){
|
||||||
const opts=['viral','price','grant'];
|
const opts=['viral','price','grant'];
|
||||||
if(S.day>50)opts.push('sanction','tariff','hijack','landban','shutdown','redsea','baltic');
|
if(S.day>50)opts.push('sanction','tariff','hijack','landban','shutdown','redsea','baltic');
|
||||||
if(S.day>HW_FREE&&!hwShock())opts.push('hwshock');
|
// Without a market (Change Freeze), no shortages and no trade war on optics.
|
||||||
|
if(!rule('market')&&opts.includes('tariff'))opts.splice(opts.indexOf('tariff'),1);
|
||||||
|
if(S.day>HW_FREE&&!hwShock()&&rule('market'))opts.push('hwshock');
|
||||||
if(S.day>90&&S.links.filter(l=>l.kind==='wave'&&!l.sub).length>=3)opts.push('ctrlplane');
|
if(S.day>90&&S.links.filter(l=>l.kind==='wave'&&!l.sub).length>=3)opts.push('ctrlplane');
|
||||||
if(Object.keys(S.pops).some(ruCity))opts.push('runet','runet');
|
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(S.pops.doh&&Object.keys(S.pops).some(c=>CITY[c].gcc||CITY[c].uae)&&!(S.ev.gulf>S.day))opts.push('gulf');
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* ---------- daily tick ---------- */
|
/* ---------- daily tick ---------- */
|
||||||
function dayTick(){
|
function dayTick(){
|
||||||
if(!S||S.lost)return;
|
if(!S||S.lost||!rule('clock'))return; // no clock (puzzles): no days, no bills, nothing fires
|
||||||
S.day++;
|
S.day++;
|
||||||
const d=S.day;
|
const d=S.day;
|
||||||
dkTick(d);ixPriceWar(d);inboxDay(d);pniDay(d);mergerDay(d);
|
dkTick(d);ixPriceWar(d);inboxDay(d);pniDay(d);mergerDay(d);
|
||||||
|
|
@ -33,7 +33,7 @@ function dayTick(){
|
||||||
{const top=custLevel();if(top>(S.lvl||1)){for(let lv=(S.lvl||1)+1;lv<=top;lv++){track('level_'+lv);toast(tr('day_tick.customer_level_lv_name_new_customers',{lv,name:LEVELS[lv-1].n,unlock:LEVELS[lv-1].unlock})+`<br><i>${esc(LEVELS[lv-1].q)}</i>`,'goal');}S.lvl=top;sfx('coin');}}
|
{const top=custLevel();if(top>(S.lvl||1)){for(let lv=(S.lvl||1)+1;lv<=top;lv++){track('level_'+lv);toast(tr('day_tick.customer_level_lv_name_new_customers',{lv,name:LEVELS[lv-1].n,unlock:LEVELS[lv-1].unlock})+`<br><i>${esc(LEVELS[lv-1].q)}</i>`,'goal');}S.lvl=top;sfx('coin');}}
|
||||||
for(const l of S.links){if(l.kind!=='df')continue;
|
for(const l of S.links){if(l.kind!=='df')continue;
|
||||||
if(l.ready===d){toast(`<b>${l.own?tr('day_tick.your_fiber_is_finished_a_b',{a:CITY[l.a].name,b:CITY[l.b].name}):tr('day_tick.dark_fiber_handed_over_a_b',{a:CITY[l.a].name,b:CITY[l.b].name})}</b><br>${(l.ch||[]).length?tr('day_tick.channels_are_lighting_up_now'):tr('day_tick.it_is_dark_add_optics_to')}`,'goal',[{l:tr('common.open'),act:'selLink',args:{id:l.id}}]);sfx('coin');}
|
if(l.ready===d){toast(`<b>${l.own?tr('day_tick.your_fiber_is_finished_a_b',{a:CITY[l.a].name,b:CITY[l.b].name}):tr('day_tick.dark_fiber_handed_over_a_b',{a:CITY[l.a].name,b:CITY[l.b].name})}</b><br>${(l.ch||[]).length?tr('day_tick.channels_are_lighting_up_now'):tr('day_tick.it_is_dark_add_optics_to')}`,'goal',[{l:tr('common.open'),act:'selLink',args:{id:l.id}}]);sfx('coin');}
|
||||||
if(l.own&&l.ready>d&&Math.random()<0.012){const extra=10+Math.floor(Math.random()*40);setCableReady(l,l.ready+extra);toast(tr('day_tick.construction_delay_n_days_why_a',{n:extra,why:pick(l.sub?SEA_DELAYS.map(x=>tr(x)):[tr('day_tick.archaeologists_found_a_roman'),tr('day_tick.a_protected_hamster_species_lives'),tr('day_tick.the_railway_changed_its_mind_about'),tr('day_tick.the_drilling_crew_hit_a_granite'),tr('day_tick.a_town_council_wants_a_public'),tr('day_tick.somebody_else_s_gas_main_was'),tr('day_tick.the_permit_office_lost_your_permit')]),a:CITY[l.a].name,b:CITY[l.b].name}),'bad');}}
|
if(l.own&&l.ready>d&&Math.random()<0.012){const extra=10+Math.floor(Math.random()*40);setCableReady(l,l.ready+leadDays(extra));toast(tr('day_tick.construction_delay_n_days_why_a',{n:leadDays(extra),why:pick(l.sub?SEA_DELAYS.map(x=>tr(x)):[tr('day_tick.archaeologists_found_a_roman'),tr('day_tick.a_protected_hamster_species_lives'),tr('day_tick.the_railway_changed_its_mind_about'),tr('day_tick.the_drilling_crew_hit_a_granite'),tr('day_tick.a_town_council_wants_a_public'),tr('day_tick.somebody_else_s_gas_main_was'),tr('day_tick.the_permit_office_lost_your_permit')]),a:CITY[l.a].name,b:CITY[l.b].name}),'bad');}}
|
||||||
// DDoS protection SLA: if a protected customer's own city is hit and still goes down, you pay out (once per attack).
|
// DDoS protection SLA: if a protected customer's own city is hit and still goes down, you pay out (once per attack).
|
||||||
for(const a of ddosAll()){
|
for(const a of ddosAll()){
|
||||||
for(const b of S.biz)if(b.type==='scrub'&&ddosCities(a).includes(b.city)&&!(a.sla||[]).includes(b.id)&&(a.id||b.slaFor!==a.start)&&sfOf(R,b.city)<0.85){
|
for(const b of S.biz)if(b.type==='scrub'&&ddosCities(a).includes(b.city)&&!(a.sla||[]).includes(b.id)&&(a.id||b.slaFor!==a.start)&&sfOf(R,b.city)<0.85){
|
||||||
|
|
@ -55,14 +55,15 @@ function dayTick(){
|
||||||
if(cands.length){cands.sort((a,b)=>(a.pol==='open'?0:1)-(b.pol==='open'?0:1)||b.share-a.share);const n=Math.random()<.6?cands[0]:pick(cands);m.members.push(n.id);toast(tr('day_tick.net_joined_ix_another_member_paying',{net:esc(n.name),ix:esc(m.name),fee:fmt$(MYIX_FEE)}),'good');sfx('coin');}
|
if(cands.length){cands.sort((a,b)=>(a.pol==='open'?0:1)-(b.pol==='open'?0:1)||b.share-a.share);const n=Math.random()<.6?cands[0]:pick(cands);m.members.push(n.id);toast(tr('day_tick.net_joined_ix_another_member_paying',{net:esc(n.name),ix:esc(m.name),fee:fmt$(MYIX_FEE)}),'good');sfx('coin');}
|
||||||
m.next=d+8+Math.floor(Math.random()*10);}}
|
m.next=d+8+Math.floor(Math.random()*10);}}
|
||||||
loanTick(d);
|
loanTick(d);
|
||||||
if(S.mode==='sandbox'&&S.cash<1e8)S.cash=1e9;
|
if(rule('money')==='infinite'&&S.cash<1e8)S.cash=1e9;
|
||||||
// offers
|
// offers
|
||||||
S.offers=S.offers.filter(o=>o.exp>d);
|
S.offers=S.offers.filter(o=>o.exp>d);
|
||||||
if(S.offers.length<5&&Math.random()<(0.05+0.01*(S.lvl||1))*(ppol()==='closed'?0.6:1)*(confSpOn()?SP_OFFERS:1))spawnOffer();
|
if(S.offers.length<5&&Math.random()<(0.05+0.01*(S.lvl||1))*(ppol()==='closed'?0.6:1)*(confSpOn()?SP_OFFERS:1))spawnOffer();
|
||||||
// failures & events
|
// failures & events
|
||||||
let dirty=false;
|
// Chaos (the rules) scales how often: calm waits about three times as long, spicy comes almost twice as often, none never.
|
||||||
if(d>=S.nextFail){dirty=true;fireFailure();const size=S.links.length+Object.keys(S.pops).length;S.nextFail=d+Math.round((Math.max(22,50-size*1.5)+Math.floor(Math.random()*25))*(scnRule('chaos')?0.5:1));}
|
let dirty=false;const cm=chaosMul();
|
||||||
if(d>=S.nextEvent){dirty=true;fireEvent();S.nextEvent=d+45+Math.floor(Math.random()*45);}
|
if(cm&&d>=S.nextFail){dirty=true;fireFailure();const size=S.links.length+Object.keys(S.pops).length;S.nextFail=d+Math.round((Math.max(22,50-size*1.5)+Math.floor(Math.random()*25))*(scnRule('chaos')?0.5:1)/cm);}
|
||||||
|
if(cm&&d>=S.nextEvent){dirty=true;fireEvent();S.nextEvent=d+Math.round((45+Math.floor(Math.random()*45))/cm);}
|
||||||
if(dirty)compute();
|
if(dirty)compute();
|
||||||
// payday floaters
|
// payday floaters
|
||||||
if(d%30===0){for(const c in S.pops){let v=(R.cityEye[c]*sfOf(R,c)*EYE_RATE)+S.biz.filter(b=>b.city===c).reduce((a,b)=>a+b.bw*b.rate,0);v=v-R.cityEye[c]*sfOf(R,c)*EYE_RATE*(1-(CITY[c].arpu||1));if(v>500)floater(CITY[c].x,CITY[c].y-30,'+'+fmt$(v),'#16A866');}sfx('coin');}
|
if(d%30===0){for(const c in S.pops){let v=(R.cityEye[c]*sfOf(R,c)*EYE_RATE)+S.biz.filter(b=>b.city===c).reduce((a,b)=>a+b.bw*b.rate,0);v=v-R.cityEye[c]*sfOf(R,c)*EYE_RATE*(1-(CITY[c].arpu||1));if(v>500)floater(CITY[c].x,CITY[c].y-30,'+'+fmt$(v),'#16A866');}sfx('coin');}
|
||||||
|
|
@ -77,7 +78,7 @@ function dayTick(){
|
||||||
if(d%10===0)save();
|
if(d%10===0)save();
|
||||||
}
|
}
|
||||||
function spawnOffer(){
|
function spawnOffer(){
|
||||||
const mine=spMine(Object.keys(S.pops)),lv=S.lvl||1;
|
const mine=spMine(Object.keys(S.pops)),lv=lvl();
|
||||||
const types=['dia','dia','game','host'];if(mine.length>=2)types.push('l2vpn','l2vpn');if(S.day>60)types.push('scrub');
|
const types=['dia','dia','game','host'];if(mine.length>=2)types.push('l2vpn','l2vpn');if(S.day>60)types.push('scrub');
|
||||||
if(lv>=2)types.push('isp','stream','edu','host','hft','bulk','event','event');if(mine.length>=3&&lv>=2)types.push('sdwan','sdwan');
|
if(lv>=2)types.push('isp','stream','edu','host','hft','bulk','event','event');if(mine.length>=3&&lv>=2)types.push('sdwan','sdwan');
|
||||||
if(S.links.some(l=>l.kind==='df'&&l.ready<=S.day))types.push('wwave','wwave');if(S.links.some(l=>l.kind==='df'&&l.own&&l.ready<=S.day))types.push('dfpair');if(lv>=3)types.push('gpu','gpu','onramp','onramp');if(lv>=4)types.push('ai','ai','hyper','hyper');
|
if(S.links.some(l=>l.kind==='df'&&l.ready<=S.day))types.push('wwave','wwave');if(S.links.some(l=>l.kind==='df'&&l.own&&l.ready<=S.day))types.push('dfpair');if(lv>=3)types.push('gpu','gpu','onramp','onramp');if(lv>=4)types.push('ai','ai','hyper','hyper');
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
function spend(c){if(S.cash<c){toast(tr('interface.not_enough_cash_wait_for_revenue'),'bad');sfx('err');return false;}S.cash-=c;sfx('build');return true;}
|
function spend(c){if(S.cash<c){toast(tr('interface.not_enough_cash_wait_for_revenue'),'bad');sfx('err');return false;}S.cash-=c;sfx('build');return true;}
|
||||||
const ACT={
|
const ACT={
|
||||||
linkCheck:({id})=>{const l=S.links.find(x=>x.id===id);if(!l||linkDown(l))return;linkCheckModal(l);},
|
linkCheck:({id})=>{const l=S.links.find(x=>x.id===id);if(!l||linkDown(l))return;linkCheckModal(l);},
|
||||||
speed:({v})=>{v=+v;if(![0,0.5,1,2,4,8].includes(v))return;if(v)UI.lastSpeed=v;UI.speed=v;renderHUD();},
|
speed:({v})=>{v=+v;if(![0,0.5,1,2,4,8].includes(v)||(S&&!rule('clock')&&v))return;if(v)UI.lastSpeed=v;UI.speed=v;renderHUD();},
|
||||||
help:()=>showHelp(),
|
help:()=>showHelp(),
|
||||||
dash:()=>{if(!S)return;const d=$('dash');d.hidden=!d.hidden;if(!d.hidden)renderDash();},
|
dash:()=>{if(!S)return;const d=$('dash');d.hidden=!d.hidden;if(!d.hidden)renderDash();},
|
||||||
dashClose:()=>{$('dash').hidden=true;},
|
dashClose:()=>{$('dash').hidden=true;},
|
||||||
|
|
@ -34,8 +34,8 @@ const ACT={
|
||||||
meetGo:({city})=>{if(!isCity(city))return;$('dash').hidden=true;ACT.focusCity({city});if(S.pops[city]){UI.tab='peer';renderPanel();}},
|
meetGo:({city})=>{if(!isCity(city))return;$('dash').hidden=true;ACT.focusCity({city});if(S.pops[city]){UI.tab='peer';renderPanel();}},
|
||||||
toggleLeft:()=>{UI.leftOpen=!UI.leftOpen;renderLeft();},
|
toggleLeft:()=>{UI.leftOpen=!UI.leftOpen;renderLeft();},
|
||||||
phoneTab:({t})=>{if(!['goals','deals','noc','nets'].includes(t))return;if($('modal').classList.contains('link-check'))closeModal();haptic(8);if(UI.leftOpen&&UI.left===t&&!UI.sel){UI.leftOpen=false;}else{UI.left=t;UI.leftOpen=true;UI.sel=null;renderPanel();}$('left').classList.remove('full');renderLeft();},
|
phoneTab:({t})=>{if(!['goals','deals','noc','nets'].includes(t))return;if($('modal').classList.contains('link-check'))closeModal();haptic(8);if(UI.leftOpen&&UI.left===t&&!UI.sel){UI.leftOpen=false;}else{UI.left=t;UI.leftOpen=true;UI.sel=null;renderPanel();}$('left').classList.remove('full');renderLeft();},
|
||||||
phonePlay:()=>{haptic(10);if(UI.speed){UI.lastSpeed=UI.speed;UI.speed=0;}else UI.speed=UI.lastSpeed||1;renderHUD();},
|
phonePlay:()=>{if(S&&!rule('clock'))return;haptic(10);if(UI.speed){UI.lastSpeed=UI.speed;UI.speed=0;}else UI.speed=UI.lastSpeed||1;renderHUD();},
|
||||||
phoneSpeed:()=>{haptic(8);const cur=UI.speed||UI.lastSpeed||1,i=SPEEDS.indexOf(cur),n=SPEEDS[(i+1)%SPEEDS.length];UI.speed=n;UI.lastSpeed=n;renderHUD();},
|
phoneSpeed:()=>{if(S&&!rule('clock'))return;haptic(8);const cur=UI.speed||UI.lastSpeed||1,i=SPEEDS.indexOf(cur),n=SPEEDS[(i+1)%SPEEDS.length];UI.speed=n;UI.lastSpeed=n;renderHUD();},
|
||||||
install:()=>{if(installEvt){installEvt.prompt();installEvt.userChoice.finally(()=>{installEvt=null;});return;}
|
install:()=>{if(installEvt){installEvt.prompt();installEvt.userChoice.finally(()=>{installEvt=null;});return;}
|
||||||
openModal(pitchHtml(false));},
|
openModal(pitchHtml(false));},
|
||||||
pitchSkip:()=>{const p=UI.pendGame;UI.pendGame=null;UI.pitched=true;if(p)beginGame(...p);else closeModal();},
|
pitchSkip:()=>{const p=UI.pendGame;UI.pendGame=null;UI.pitched=true;if(p)beginGame(...p);else closeModal();},
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Object.assign(ACT,{
|
Object.assign(ACT,{
|
||||||
dfMode:({m})=>{UI.lmode=m;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
dfMode:({m})=>{UI.lmode=m;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
seaPackage:({k})=>{if(!own(SUB_UPGRADES,k))return;UI['sea'+k]=!UI['sea'+k];if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
seaPackage:({k})=>{if(!own(SUB_UPGRADES,k))return;UI['sea'+k]=!UI['sea'+k];if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
subUpgrade:({id,k})=>{const l=S.links.find(l=>l.id===id);if(!l||l.kind!=='df'||!l.own||!l.sub||!own(SUB_UPGRADES,k)||lvl()<4||l['sub'+k]!==undefined)return;if(!spend(subUpgradeCost(l,k)))return;l.paid=(l.paid>0?l.paid:ownCabCost(l.km))+subUpgradeCost(l,k);l['sub'+k]=Math.max(S.day,l.ready||0)+SUB_UPGRADES[k].days;after();},
|
subUpgrade:({id,k})=>{const l=S.links.find(l=>l.id===id);if(!l||l.kind!=='df'||!l.own||!l.sub||!own(SUB_UPGRADES,k)||lvl()<4||l['sub'+k]!==undefined)return;if(!spend(subUpgradeCost(l,k)))return;l.paid=(l.paid>0?l.paid:ownCabCost(l.km))+subUpgradeCost(l,k);l['sub'+k]=Math.max(S.day,l.ready||0)+leadDays(SUB_UPGRADES[k].days);after();},
|
||||||
seaDesign:({v})=>{if(!own(SEA_DESIGNS,v))return;UI.seaDesign=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
seaDesign:({v})=>{if(!own(SEA_DESIGNS,v))return;UI.seaDesign=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
ownCab:()=>{UI.lmode='df';UI.dfSrc='cable';UI.seaDesign='standard';UI.seaterminal=UI.seaengineering=false;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
ownCab:()=>{UI.lmode='df';UI.dfSrc='cable';UI.seaDesign='standard';UI.seaterminal=UI.seaengineering=false;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
dfSrc:({v})=>{UI.dfSrc=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
dfSrc:({v})=>{UI.dfSrc=v;if(UI.pending)openLinkModal(UI.pending.a,UI.pending.b);},
|
||||||
|
|
@ -18,7 +18,7 @@ Object.assign(ACT,{
|
||||||
const up=(own?dfBuildCost(km):0)+DF_SYS[sys].cost+ampCount(km)*AMP_COST+(S.pops[b]?0:popCost(b));if(!spend(up))return;
|
const up=(own?dfBuildCost(km):0)+DF_SYS[sys].cost+ampCount(km)*AMP_COST+(S.pops[b]?0:popCost(b));if(!spend(up))return;
|
||||||
if(!S.pops[b])S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};
|
if(!S.pops[b])S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};
|
||||||
const sib=pairLinks(a,b).filter(l=>l.kind!=='vxc'),id=uid();
|
const sib=pairLinks(a,b).filter(l=>l.kind!=='vxc'),id=uid();
|
||||||
const l={id,a,b,kind:'df',own,sys,ch:[],km,sub:!!sc,cable:sc?sc.cid:null,mo:own?Math.round(km*0.15):dfLeaseMo(km),trench:sc?'cab:'+sc.cid:id,cut:0,day:S.day,ready:S.day+(own?dfBuildDays(km):30),spares:false};
|
const l={id,a,b,kind:'df',own,sys,ch:[],km,sub:!!sc,cable:sc?sc.cid:null,mo:own?Math.round(km*0.15):dfLeaseMo(km),trench:sc?'cab:'+sc.cid:id,cut:0,day:S.day,ready:S.day+(own?dfBuildDays(km):leadDays(IRU_DAYS)),spares:false};
|
||||||
S.links.push(l);closeModal();UI.sel={type:'link',id};
|
S.links.push(l);closeModal();UI.sel={type:'link',id};
|
||||||
toast(own?tr('fiber_and_hardware.groundbreaking_your_own_fiber_from_a',{a:CITY[a].name,b:CITY[b].name,n:dfBuildDays(km)}):tr('fiber_and_hardware.dark_fiber_iru_signed_a_b',{a:CITY[a].name,b:CITY[b].name}),'goal');after();},
|
toast(own?tr('fiber_and_hardware.groundbreaking_your_own_fiber_from_a',{a:CITY[a].name,b:CITY[b].name,n:dfBuildDays(km)}):tr('fiber_and_hardware.dark_fiber_iru_signed_a_b',{a:CITY[a].name,b:CITY[b].name}),'goal');after();},
|
||||||
regen:({id,d})=>{d=+d;const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||l.sub||(d!==1&&d!==-1))return;const n=(l.regen|0)+d;if(n<0||n>REGEN_MAX)return;
|
regen:({id,d})=>{d=+d;const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='df'||l.sub||(d!==1&&d!==-1))return;const n=(l.regen|0)+d;if(n<0||n>REGEN_MAX)return;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,13 @@
|
||||||
Object.assign(ACT,{
|
Object.assign(ACT,{
|
||||||
randomName:()=>{const input=$('nmIn');if(input)input.value=UI.nm=randomNetworkName(input.value);},
|
randomName:()=>{const input=$('nmIn');if(input)input.value=UI.nm=randomNetworkName(input.value);},
|
||||||
start:()=>{const nm=(($('nmIn')&&$('nmIn').value)||randomNetworkName()).slice(0,24);beginGame(nm,homeOk(UI.startCity)?UI.startCity:'fra',{mode:UI.mode==='sandbox'?'sandbox':'normal'});},
|
start:()=>{const nm=(($('nmIn')&&$('nmIn').value)||randomNetworkName()).slice(0,24),sb=UI.mode==='sandbox';
|
||||||
modeSet:({m})=>{UI.mode=m;document.querySelectorAll('.modeb').forEach(b=>b.classList.toggle('pink',b.dataset.m===m));document.querySelectorAll('.modeb').forEach(b=>b.classList.toggle('ghost',b.dataset.m!==m));},
|
beginGame(nm,homeOk(UI.startCity)?UI.startCity:'fra',sb?{mode:'sandbox',rules:{chaos:own(CHAOS,UI.sbChaos)?UI.sbChaos:'none'}}:{mode:'normal',preset:NORMAL_PRESETS.includes(UI.preset)?UI.preset:'oncall'});},
|
||||||
|
// Title-screen doors and their options toggle in place, so the name being typed and the city stay as they are.
|
||||||
|
modeSet:({m})=>{if(m!=='sandbox'&&m!=='normal')return;UI.mode=m;document.querySelectorAll('.door').forEach(b=>b.classList.toggle('on',b.dataset.door===m));const n=$('doorNormal'),x=$('doorSandbox');if(n)n.hidden=m!=='normal';if(x)x.hidden=m!=='sandbox';},
|
||||||
|
presetSet:({p})=>{if(!NORMAL_PRESETS.includes(p))return;UI.preset=p;ACT.modeSet({m:'normal'});document.querySelectorAll('.preset').forEach(b=>b.classList.toggle('on',b.dataset.preset===p));},
|
||||||
|
chaosSet:({c})=>{if(!own(CHAOS,c))return;UI.sbChaos=c;ACT.modeSet({m:'sandbox'});document.querySelectorAll('.chs').forEach(b=>b.classList.toggle('on',b.dataset.chaos===c));},
|
||||||
|
// Puzzles live in their own module; until it ships, the door says so.
|
||||||
|
puzzleDoor:()=>{UI.nm=(($('nmIn')&&$('nmIn').value)||UI.nm||randomNetworkName()).slice(0,24);if(typeof ACT.puzzleMenu==='function')ACT.puzzleMenu();else toast(tr('title.puzzles_are_coming_soon'),'goal');},
|
||||||
scenarios:()=>{UI.nm=(($('nmIn')&&$('nmIn').value)||UI.nm||(S&&S.name)||randomNetworkName()).slice(0,24);scenarioModal();},
|
scenarios:()=>{UI.nm=(($('nmIn')&&$('nmIn').value)||UI.nm||(S&&S.name)||randomNetworkName()).slice(0,24);scenarioModal();},
|
||||||
startScn:({id,sure})=>{const sc=SCN.find(x=>x.id===id);if(!sc)return;if(!sure&&S&&UI.started&&!S.lost&&!(S.scn&&(S.scn.done||S.scn.failed))){openModal(`<h2 style="font-size:26px">${tr('game_and_settings.start_name',{name:esc(sc.n)})}</h2><p class="tagline">${tr('game_and_settings.name_will_be_replaced_export_it',{name:esc(S.name)})}</p><div class="btns">${btn(tr('game_and_settings.start_the_scenario'),'startScn',{id,sure:1},'pink big')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost big')}</div>`);return;}beginGame(UI.nm||(S&&S.name)||randomNetworkName(),sc.city,{scn:sc});},
|
startScn:({id,sure})=>{const sc=SCN.find(x=>x.id===id);if(!sc)return;if(!sure&&S&&UI.started&&!S.lost&&!(S.scn&&(S.scn.done||S.scn.failed))){openModal(`<h2 style="font-size:26px">${tr('game_and_settings.start_name',{name:esc(sc.n)})}</h2><p class="tagline">${tr('game_and_settings.name_will_be_replaced_export_it',{name:esc(S.name)})}</p><div class="btns">${btn(tr('game_and_settings.start_the_scenario'),'startScn',{id,sure:1},'pink big')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost big')}</div>`);return;}beginGame(UI.nm||(S&&S.name)||randomNetworkName(),sc.city,{scn:sc});},
|
||||||
startWeekly:({sure}={})=>{if(!sure&&S&&UI.started&&!S.lost&&!(S.scn&&(S.scn.done||S.scn.failed))){openModal(`<h2 style="font-size:26px">${tr('game_and_settings.start_the_weekly_challenge')}</h2><p class="tagline">${tr('game_and_settings.name_will_be_replaced_export_it',{name:esc(S.name)})}</p><div class="btns">${btn(tr('game_and_settings.start_the_challenge'),'startWeekly',{sure:1},'pink big')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost big')}</div>`);return;}const wk=weekly();beginGame(UI.nm||(S&&S.name)||randomNetworkName(),wk.city,{scn:wk,seed:wk.seed});},
|
startWeekly:({sure}={})=>{if(!sure&&S&&UI.started&&!S.lost&&!(S.scn&&(S.scn.done||S.scn.failed))){openModal(`<h2 style="font-size:26px">${tr('game_and_settings.start_the_weekly_challenge')}</h2><p class="tagline">${tr('game_and_settings.name_will_be_replaced_export_it',{name:esc(S.name)})}</p><div class="btns">${btn(tr('game_and_settings.start_the_challenge'),'startWeekly',{sure:1},'pink big')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost big')}</div>`);return;}const wk=weekly();beginGame(UI.nm||(S&&S.name)||randomNetworkName(),wk.city,{scn:wk,seed:wk.seed});},
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ const SPEEDS=[0.5,1,2,4,8];
|
||||||
function renderTabbar(){const tb=$('tabbar');if(!tb||(pressing&&UI.ticking))return;if(!isPhone()||!S||!UI.started){tb.hidden=true;document.body.classList.remove('sheet-open');return;}tb.hidden=false;
|
function renderTabbar(){const tb=$('tabbar');if(!tb||(pressing&&UI.ticking))return;if(!isPhone()||!S||!UI.started){tb.hidden=true;document.body.classList.remove('sheet-open');return;}tb.hidden=false;
|
||||||
const open=UI.leftOpen&&!UI.sel,cur=UI.left||'goals',ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length;
|
const open=UI.leftOpen&&!UI.sel,cur=UI.left||'goals',ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length;
|
||||||
const tab=(k,ic,l,cnt,red)=>`<button class="${open&&cur===k?'on':''}" data-act="phoneTab" data-args='{"t":"${k}"}' aria-label="${esc(l)}"><span class="ic" aria-hidden="true">${ic}</span>${esc(l)}${cnt?`<span class="cnt${red?' red':''}">${cnt}</span>`:''}</button>`;
|
const tab=(k,ic,l,cnt,red)=>`<button class="${open&&cur===k?'on':''}" data-act="phoneTab" data-args='{"t":"${k}"}' aria-label="${esc(l)}"><span class="ic" aria-hidden="true">${ic}</span>${esc(l)}${cnt?`<span class="cnt${red?' red':''}">${cnt}</span>`:''}</button>`;
|
||||||
const h=`<button class="play${UI.speed?'':' paused'}" data-act="phonePlay" aria-label="${UI.speed?tr('common.pause'):tr('common.play')}"><span class="ic" aria-hidden="true">${UI.speed?'❚❚':'▶'}</span>${UI.speed?tr('common.pause'):tr('common.play')}</button>`+
|
const h=(rule('clock')?`<button class="play${UI.speed?'':' paused'}" data-act="phonePlay" aria-label="${UI.speed?tr('common.pause'):tr('common.play')}"><span class="ic" aria-hidden="true">${UI.speed?'❚❚':'▶'}</span>${UI.speed?tr('common.pause'):tr('common.play')}</button>`+
|
||||||
`<button data-act="phoneSpeed" aria-label="${tr('common.game_speed')}"><span class="ic" aria-hidden="true">${UI.speed===0.5?'½':(UI.lastSpeed||UI.speed||1)}×</span>${tr('common.speed')}</button>`+
|
`<button data-act="phoneSpeed" aria-label="${tr('common.game_speed')}"><span class="ic" aria-hidden="true">${UI.speed===0.5?'½':(UI.lastSpeed||UI.speed||1)}×</span>${tr('common.speed')}</button>`:'')+
|
||||||
(()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length||(UI.left==='noc'&&UI.leftOpen?'':logUnread())||'',S.inc.length>0)+tab('nets','🌐',tr('common.networks'),ibxOpen()||'',ibxUrgent()>0);
|
(()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length||(UI.left==='noc'&&UI.leftOpen?'':logUnread())||'',S.inc.length>0)+tab('nets','🌐',tr('common.networks'),ibxOpen()||'',ibxUrgent()>0);
|
||||||
if(h!==UI._tb){UI._tb=h;tb.innerHTML=h;}
|
if(h!==UI._tb){UI._tb=h;tb.innerHTML=h;}
|
||||||
document.body.classList.toggle('sheet-open',!!(UI.sel||UI.leftOpen));}
|
document.body.classList.toggle('sheet-open',!!(UI.sel||UI.leftOpen));}
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@ function fitHud(){const h=$('hud');if(!h)return;h.classList.remove('fit1','fit2'
|
||||||
const row=()=>{let m=0;for(const c of h.children)if(c.offsetParent)m=Math.max(m,c.offsetHeight);return m;};
|
const row=()=>{let m=0;for(const c of h.children)if(c.offsetParent)m=Math.max(m,c.offsetHeight);return m;};
|
||||||
for(const c of ['fit1','fit2','fit3']){if(h.offsetHeight<=row()*1.5)break;h.classList.add(c);}}
|
for(const c of ['fit1','fit2','fit3']){if(h.offsetHeight<=row()*1.5)break;h.classList.add(c);}}
|
||||||
function renderHUD(){
|
function renderHUD(){
|
||||||
for(const v of [0,0.5,1,2,4,8]){const b=$('sp'+v);if(b)b.classList.toggle('on',UI.speed===v);}
|
// No clock (puzzles): there is no time to speed up, so the speed buttons go.
|
||||||
|
{const ck=!S||rule('clock');for(const v of [0,0.5,1,2,4,8]){const b=$('sp'+v);if(b){b.classList.toggle('on',UI.speed===v);b.hidden=!ck;}}}
|
||||||
$('muteBtn').style.opacity=UI.muted?.4:1;
|
$('muteBtn').style.opacity=UI.muted?.4:1;
|
||||||
if(!S)return;
|
if(!S)return;
|
||||||
$('hName').textContent=S.name;$('hAsn').textContent='AS'+S.asn+(S.mode==='sandbox'?' · '+tr('common.sandbox'):S.scn?' · '+(scnName())+(S.scn.done||S.scn.failed?'':` · ${tr('ui.n_d_left',{n:Math.max(0,S.scn.days-S.day)})}`):'');
|
{const rt=ruleTag(),ha=$('hAsn');ha.title=rt?tr('rules.rules_are_locked_for_this_network',{rules:rt}):'';}
|
||||||
|
$('hName').textContent=S.name;$('hAsn').textContent='AS'+S.asn+(S.mode==='sandbox'||ruleTag()&&!S.scn?' · '+ruleTag():S.scn?' · '+(scnName())+(S.scn.done||S.scn.failed?'':` · ${tr('ui.n_d_left',{n:Math.max(0,S.scn.days-S.day)})}`):'');
|
||||||
$('hCash').textContent=fmt$(S.cash);$('hCash').style.color=S.cash<0?'var(--bad)':'';
|
$('hCash').textContent=fmt$(S.cash);$('hCash').style.color=S.cash<0?'var(--bad)':'';
|
||||||
const net=R.revMo-R.costMo;$('hRate').innerHTML=`<span class="${net>=0?'up':'down'}">${net>=0?'▲':'▼'} ${tr('common.price_mo',{price:fmt$(Math.abs(net))})}</span>`;
|
const net=R.revMo-R.costMo;$('hRate').innerHTML=`<span class="${net>=0?'up':'down'}">${net>=0?'▲':'▼'} ${tr('common.price_mo',{price:fmt$(Math.abs(net))})}</span>`;
|
||||||
$('hTraffic').textContent=`${fmtG(R.served)}`;
|
$('hTraffic').textContent=`${fmtG(R.served)}`;
|
||||||
|
|
@ -70,7 +72,7 @@ function renderLeft(){checkLayer();
|
||||||
if(!S.inc.length&&!hot.length&&!hotR.length&&!slow.length)h+=`<p class="empty">${tr('hud_and_panels.all_systems_green_enjoy_it_while')}</p>`;
|
if(!S.inc.length&&!hot.length&&!hotR.length&&!slow.length)h+=`<p class="empty">${tr('hud_and_panels.all_systems_green_enjoy_it_while')}</p>`;
|
||||||
h+=`<div class="kv" style="margin-top:8px"><span>${tr('hud_and_panels.incidents_so_far')}</span><b>${S.stats.incidents}</b></div><div class="kv"><span>${tr('hud_and_panels.survived_with_no_impact')}</span><b>${S.stats.survived}</b></div>`;
|
h+=`<div class="kv" style="margin-top:8px"><span>${tr('hud_and_panels.incidents_so_far')}</span><b>${S.stats.incidents}</b></div><div class="kv"><span>${tr('hud_and_panels.survived_with_no_impact')}</span><b>${S.stats.survived}</b></div>`;
|
||||||
}else{
|
}else{
|
||||||
if(Object.keys(S.ixp).length||ibxOpen()||(S.inbox&&S.inbox.bot)){const n=ibxOpen(),u=ibxUrgent();h+=`<div class="ibx ibxcard"><div class="nm">📬 ${tr('common.peering_inbox')} ${n?`<span class="cnt${u?' red':''}">${n}</span>`:''}</div><div class="meta">${S.inbox&&S.inbox.bot?tr('hud_and_panels.large_peering_model_is_on_it'):u?trn('hud_and_panels.n_session_is_down_on_its',u):n?trn('hud_and_panels.n_message_waiting_for_an_answer',n):tr('common.inbox_zero')}</div><div class="btns">${btn(tr('common.open_inbox'),'inbox',{},'sm')}</div></div>`;}
|
if(rule('inbox')&&(Object.keys(S.ixp).length||ibxOpen()||(S.inbox&&S.inbox.bot))){const n=ibxOpen(),u=ibxUrgent();h+=`<div class="ibx ibxcard"><div class="nm">📬 ${tr('common.peering_inbox')} ${n?`<span class="cnt${u?' red':''}">${n}</span>`:''}</div><div class="meta">${S.inbox&&S.inbox.bot?tr('hud_and_panels.large_peering_model_is_on_it'):u?trn('hud_and_panels.n_session_is_down_on_its',u):n?trn('hud_and_panels.n_message_waiting_for_an_answer',n):tr('common.inbox_zero')}</div><div class="btns">${btn(tr('common.open_inbox'),'inbox',{},'sm')}</div></div>`;}
|
||||||
h+=`<p class="lead">${tr('hud_and_panels.every_network_on_the_map_traffic')}</p>`;
|
h+=`<p class="lead">${tr('hud_and_panels.every_network_on_the_map_traffic')}</p>`;
|
||||||
{const nc=conns().length;if(nc)h+=`<div class="btns" style="margin-bottom:8px">${btn(tr('hud_and_panels.all_connections_n',{n:nc}),'connOpen',{},'pink sm')}</div>`;}
|
{const nc=conns().length;if(nc)h+=`<div class="btns" style="margin-bottom:8px">${btn(tr('hud_and_panels.all_connections_n',{n:nc}),'connOpen',{},'pink sm')}</div>`;}
|
||||||
const where=netWhereIdx(),tl=NETS.filter(n=>n.tail),tlOn=tl.filter(n=>where(n.id).some(x=>x[2]==='ix')).length;
|
const where=netWhereIdx(),tl=NETS.filter(n=>n.tail),tlOn=tl.filter(n=>where(n.id).some(x=>x[2]==='ix')).length;
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ function chinaSection(c){const st=S.cnLic?S.cnLic.state:'none',loss=S.ev.gfw>S.d
|
||||||
return h+`</section>`;}
|
return h+`</section>`;}
|
||||||
function subUpgradePanel(l){return `<h4 class="sub4">${tr('common.submarine_transmission')}</h4><p class="note">${tr('common.better_terminals_and_optical_tuning')}</p>`+Object.entries(SUB_UPGRADES).map(([k,U])=>{
|
function subUpgradePanel(l){return `<h4 class="sub4">${tr('common.submarine_transmission')}</h4><p class="note">${tr('common.better_terminals_and_optical_tuning')}</p>`+Object.entries(SUB_UPGRADES).map(([k,U])=>{
|
||||||
const at=l['sub'+k],done=subUpgradeReady(l,k),cost=subUpgradeCost(l,k),preview={...l,['sub'+k]:S.day};
|
const at=l['sub'+k],done=subUpgradeReady(l,k),cost=subUpgradeCost(l,k),preview={...l,['sub'+k]:S.day};
|
||||||
const status=done?tr('common.installed'):at!==undefined?tr('link_panels.ready_in_n_days',{n:Math.max(0,at-S.day)}):tr('link_panels.price_n_days',{price:fmt$(cost),n:U.days});
|
const status=done?tr('common.installed'):at!==undefined?tr('link_panels.ready_in_n_days',{n:Math.max(0,at-S.day)}):tr('link_panels.price_n_days',{price:fmt$(cost),n:leadDays(U.days)});
|
||||||
return `<div class="row"><div class="grow"><div class="nm">${tr(U.n)}</div><div class="meta">${status}</div><div class="meta">${tr('common.up_to_g_per_channel',{g:fmtG(submarineRate(preview))})}</div></div>${at===undefined?btn(tr('common.install'),'subUpgrade',{id:l.id,k},'sm',lvl()<4||S.cash<cost):''}</div>`;}).join('');}
|
return `<div class="row"><div class="grow"><div class="nm">${tr(U.n)}</div><div class="meta">${status}</div><div class="meta">${tr('common.up_to_g_per_channel',{g:fmtG(submarineRate(preview))})}</div></div>${at===undefined?btn(tr('common.install'),'subUpgrade',{id:l.id,k},'sm',lvl()<4||S.cash<cost):''}</div>`;}).join('');}
|
||||||
function dfPanel(l){
|
function dfPanel(l){
|
||||||
const load=R.load[l.id]||0,cap=dfCap(l),u=cap?load/cap:0,bld=l.ready>S.day,A=CITY[l.a].name,B=CITY[l.b].name,inc=S.inc.find(i=>i.ref===l.id||i.ref===(l.trench||l.id)),amps=ampCount(l.km),sysD=DF_SYS[l.sys];
|
const load=R.load[l.id]||0,cap=dfCap(l),u=cap?load/cap:0,bld=l.ready>S.day,A=CITY[l.a].name,B=CITY[l.b].name,inc=S.inc.find(i=>i.ref===l.id||i.ref===(l.trench||l.id)),amps=ampCount(l.km),sysD=DF_SYS[l.sys];
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ function leaseSwaps(){const by={};
|
||||||
const ws=ls.filter(l=>l.kind!=='df'),wmo=ws.reduce((s,l)=>s+(l.mo||0),0),sc=sub?subDfCable(a,b):null;x.iru=ls.find(l=>l.kind==='df');
|
const ws=ls.filter(l=>l.kind!=='df'),wmo=ws.reduce((s,l)=>s+(l.mo||0),0),sc=sub?subDfCable(a,b):null;x.iru=ls.find(l=>l.kind==='df');
|
||||||
if(ws.length&&x.iru){x.fit=litOn(x.iru,leaseCap(ws));if(x.fit.fits)x.lit=wmo;}
|
if(ws.length&&x.iru){x.fit=litOn(x.iru,leaseCap(ws));if(x.fit.fits)x.lit=wmo;}
|
||||||
else if(ws.length&&lvl()>=2&&(sub?sc:dfAllowed(a,b))){const km=sc?sc.km:kmBetween(a,b),sys=lvl()>=3?'roadm':'lite',wc=leaseCap(ws),op=swapOptics(km,wc,sub,sys);
|
else if(ws.length&&lvl()>=2&&(sub?sc:dfAllowed(a,b))){const km=sc?sc.km:kmBetween(a,b),sys=lvl()>=3?'roadm':'lite',wc=leaseCap(ws),op=swapOptics(km,wc,sub,sys);
|
||||||
if(op&&op.n<=DF_SYS[sys].max)x.opts.push(swapOpt('iru',DF_SYS[sys].cost+ampCount(km)*AMP_COST+op.up,dfLeaseMo(km)+ampCount(km)*AMP_MO+op.mo,30,wmo));}
|
if(op&&op.n<=DF_SYS[sys].max)x.opts.push(swapOpt('iru',DF_SYS[sys].cost+ampCount(km)*AMP_COST+op.up,dfLeaseMo(km)+ampCount(km)*AMP_MO+op.mo,leadDays(IRU_DAYS),wmo));}
|
||||||
// Dig on land, lay a cable between landing stations (even ones that share a landmass), or both.
|
// Dig on land, lay a cable between landing stations (even ones that share a landmass), or both.
|
||||||
const whys=[];for(const cab of [false,true]){if(cab?!seaCab(a,b):sub)continue;
|
const whys=[];for(const cab of [false,true]){if(cab?!seaCab(a,b):sub)continue;
|
||||||
const why=cab?ownCabWhy(a,b):!dfAllowed(a,b)?tr('lease_swaps.nobody_lets_you_dig_on_this'):lvl()<3?tr('lease_swaps.digging_your_own_fiber_unlocks_at'):'';
|
const why=cab?ownCabWhy(a,b):!dfAllowed(a,b)?tr('lease_swaps.nobody_lets_you_dig_on_this'):lvl()<3?tr('lease_swaps.digging_your_own_fiber_unlocks_at'):'';
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ function showTitle(){
|
||||||
<h1>Series<br>of <span>Tubes</span></h1></div>
|
<h1>Series<br>of <span>Tubes</span></h1></div>
|
||||||
<p class="tagline">${tr('title.build_an_internet_lay_fiber_between')}</p>${plugHtml(false)}${isPhone()?installRow():''}
|
<p class="tagline">${tr('title.build_an_internet_lay_fiber_between')}</p>${plugHtml(false)}${isPhone()?installRow():''}
|
||||||
${sv?`<div class="btns" style="margin-bottom:6px">${btn(tr('title.continue_name_date',{name:esc(sv.name),date:dateStr(sv.day)}),'cont',{},'pink big')}</div>`:''}
|
${sv?`<div class="btns" style="margin-bottom:6px">${btn(tr('title.continue_name_date',{name:esc(sv.name),date:dateStr(sv.day)}),'cont',{},'pink big')}</div>`:''}
|
||||||
|
${doorsHtml()}
|
||||||
<label class="f" for="nmIn">${tr('title.name_your_network')}</label><div class="network-name"><input class="t" id="nmIn" maxlength="24" value="${esc(UI.nm)}" autocomplete="off">${btn(tr('common.another_one'),'randomName',{},'ghost sm')}</div>
|
<label class="f" for="nmIn">${tr('title.name_your_network')}</label><div class="network-name"><input class="t" id="nmIn" maxlength="24" value="${esc(UI.nm)}" autocomplete="off">${btn(tr('common.another_one'),'randomName',{},'ghost sm')}</div>
|
||||||
<label class="f">${tr('title.pick_your_home_city')}</label><div class="starts homes">${starts.map(([c,d])=>`<button class="start ${UI.startCity===c?'on':''}" data-city="${c}" data-act="pickStart" data-args='{"city":"${c}"}'><b>${CITY[c].name}</b><span>${d}</span></button>`).join('')}<label class="start own ${START5.includes(UI.startCity)?'':'on'}" for="homeSel"><b>${tr('title.anywhere_else')}</b><span id="homeWhat">${homeWhat()}</span>${homePick()}</label></div>
|
<label class="f" id="homeLbl">${tr('title.pick_your_home_city')}</label><div class="starts homes">${starts.map(([c,d])=>`<button class="start ${UI.startCity===c?'on':''}" data-city="${c}" data-act="pickStart" data-args='{"city":"${c}"}'><b>${CITY[c].name}</b><span>${d}</span></button>`).join('')}<label class="start own ${START5.includes(UI.startCity)?'':'on'}" for="homeSel"><b>${tr('title.anywhere_else')}</b><span id="homeWhat">${homeWhat()}</span>${homePick()}</label></div>
|
||||||
<label class="f">${tr('common.mode')}</label><div class="btns">${[['normal',tr('common.normal')],['sandbox',tr('common.sandbox')]].map(([m,l])=>`<button class="b sm modeb ${(UI.mode||'normal')===m?'pink':'ghost'}" data-m="${m}" data-act="modeSet" data-args='{"m":"${m}"}'>${l}</button>`).join('')}${btn(tr('title.scenarios_amp_weekly_challenge'),'scenarios',{},'sm')}</div>
|
|
||||||
<label class="f" for="langTitle">${tr('common.language')}</label>${langPick('langTitle')}
|
<label class="f" for="langTitle">${tr('common.language')}</label>${langPick('langTitle')}
|
||||||
<div class="btns cta tcta" style="margin-top:16px">${btn(sv?tr('common.start_a_new_network'):tr('common.start_building'),'start',{},'big')}${btn(tr('common.how_to_play'),'help',{},'ghost')}${btn(tr('common.import_a_save'),'importPick',{},'ghost')}${btn(tr('common.settings'),'settings',{},'ghost')}</div><p class="ver">v${APP_VERSION} · <a href="https://github.com/fjaeckel/seriesoftubes" target="_blank" rel="noopener">${tr('title.source_on_github')}</a> · <a href="${SIGNAL}" target="_blank" rel="noopener">${tr('title.chat_on_signal')}</a> · ${tr('title.cookieless_stats_no_tracking')}</p>`);
|
<div class="btns cta tcta" style="margin-top:16px">${btn(sv?tr('common.start_a_new_network'):tr('common.start_building'),'start',{},'big')}${btn(tr('common.how_to_play'),'help',{},'ghost')}${btn(tr('common.import_a_save'),'importPick',{},'ghost')}${btn(tr('common.settings'),'settings',{},'ghost')}</div><p class="ver">v${APP_VERSION} · <a href="https://github.com/fjaeckel/seriesoftubes" target="_blank" rel="noopener">${tr('title.source_on_github')}</a> · <a href="${SIGNAL}" target="_blank" rel="noopener">${tr('title.chat_on_signal')}</a> · ${tr('title.cookieless_stats_no_tracking')}</p>`);
|
||||||
$('nmIn').addEventListener('input',e=>{UI.nm=e.target.value;});
|
$('nmIn').addEventListener('input',e=>{UI.nm=e.target.value;});
|
||||||
|
|
@ -33,3 +33,12 @@ function whatsNew(returning,force){
|
||||||
${returning&&S?`<p class="note">${tr('title.your_network_name_was_saved_and',{name:esc(S.name)})}</p>`:''}
|
${returning&&S?`<p class="note">${tr('title.your_network_name_was_saved_and',{name:esc(S.name)})}</p>`:''}
|
||||||
<div class="btns" style="margin-top:12px">${btn(UI.started?tr('title.back_to_my_network'):tr('common.got_it'),UI.started?'closeModal':'helpClose',{},'pink big')}${notesLong(RELEASE_NOTES)?'':`<a class="b ghost" href="https://github.com/fjaeckel/seriesoftubes/blob/main/CHANGELOG.md" target="_blank" rel="noopener">${tr('common.full_changelog')}</a>`}</div>`);
|
<div class="btns" style="margin-top:12px">${btn(UI.started?tr('title.back_to_my_network'):tr('common.got_it'),UI.started?'closeModal':'helpClose',{},'pink big')}${notesLong(RELEASE_NOTES)?'':`<a class="b ghost" href="https://github.com/fjaeckel/seriesoftubes/blob/main/CHANGELOG.md" target="_blank" rel="noopener">${tr('common.full_changelog')}</a>`}</div>`);
|
||||||
return true;}
|
return true;}
|
||||||
|
/* The four doors: one game, its rules picked here and locked for the network's life. Normal and Sandbox stay on this
|
||||||
|
screen (presets / chaos below), Puzzles and Scenarios open their own lists. Choices toggle in place (no re-render). */
|
||||||
|
const DOORS=[['puzzle','🧩',tr('title.puzzles'),tr('title.one_network_one_knot_no_clock')],['sandbox','🏖️',tr('common.sandbox'),tr('title.a_billion_dollars_and_every_toy')],['normal','📟',tr('common.normal'),tr('title.the_real_game_climb_from_tier')],['scn','🏆',tr('title.scenarios_amp_weekly'),tr('title.hand_built_crises_and_one_world')]];
|
||||||
|
const doorAct={puzzle:'puzzleDoor',sandbox:'modeSet',normal:'modeSet',scn:'scenarios'};
|
||||||
|
function doorsHtml(){const m=UI.mode==='sandbox'?'sandbox':'normal',pr=own(PRESETS,UI.preset)&&NORMAL_PRESETS.includes(UI.preset)?UI.preset:'oncall',ch=own(CHAOS,UI.sbChaos)?UI.sbChaos:'none';
|
||||||
|
return `<label class="f">${tr('title.pick_a_door')}</label><div class="doors">${DOORS.map(([k,i,n,d])=>`<button class="door${k===m?' on':''}" data-door="${k}" data-act="${doorAct[k]}" data-args='${k==='sandbox'||k==='normal'?`{"m":"${k}"}`:'{}'}'><i aria-hidden="true">${i}</i><b>${n}</b><span>${d}</span></button>`).join('')}</div>
|
||||||
|
<div id="doorNormal"${m==='normal'?'':' hidden'}><label class="f">${tr('title.how_much_trouble')}</label><div class="presets">${NORMAL_PRESETS.map(k=>{const P=PRESETS[k];return `<button class="preset${k===pr?' on':''}" data-preset="${k}" data-act="presetSet" data-args='{"p":"${k}"}'><i aria-hidden="true">${P.i}</i><b>${P.n}</b><span>${P.d}</span><small>${P.x}</small></button>`;}).join('')}</div></div>
|
||||||
|
<div id="doorSandbox"${m==='sandbox'?'':' hidden'}><label class="f">${tr('title.chaos_in_your_sandbox')}</label><div class="chaos">${Object.entries(CHAOS).map(([k,C])=>`<button class="chs${k===ch?' on':''}" data-chaos="${k}" data-act="chaosSet" data-args='{"c":"${k}"}'><i aria-hidden="true">${C.i}</i><b>${C.n}</b><span>${C.d}</span></button>`).join('')}</div></div>
|
||||||
|
<p class="note lockn">🔒 ${tr('title.rules_are_picked_once_and_locked')}</p>`;}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function showHelp(){
|
||||||
<dt>${tr('common.embedded_cache')}</dt><dd>${tr('help.a_cdn_s_server_in_your')}</dd>
|
<dt>${tr('common.embedded_cache')}</dt><dd>${tr('help.a_cdn_s_server_in_your')}</dd>
|
||||||
<dt>DE-KICKS</dt><dd>${tr('help.the_group_behind_several_big')}</dd><dt>${tr('common.remote_peering')}</dt><dd>${tr('help.reach_an_ix_over_a_fabric')}</dd><dt>${tr('common.peering_policy')}</dt><dd>${tr('help.open_peers_with_anyone_selective')}</dd>
|
<dt>DE-KICKS</dt><dd>${tr('help.the_group_behind_several_big')}</dd><dt>${tr('common.remote_peering')}</dt><dd>${tr('help.reach_an_ix_over_a_fabric')}</dd><dt>${tr('common.peering_policy')}</dt><dd>${tr('help.open_peers_with_anyone_selective')}</dd>
|
||||||
<dt>${tr('common.waves')}</dt><dd>${tr('help.your_fiber_links_are_leased_waves')}</dd><dt>${tr('common.95th_percentile')}</dt><dd>${tr('help.transit_bills_sample_your_usage')}</dd><dt>${tr('common.routers')}</dt><dd>${tr('help.each_pop_s_router_model_caps')}</dd><dt>${tr('common.dark_fiber')}</dt><dd>${tr('help.lease_an_iru_or_build_your')}</dd><dt>${tr('common.subsea_cables')}</dt><dd>${tr('help.subsea_waves_can_only_follow_cable')}</dd><dt>${tr('common.latency')}</dt><dd>${tr('help.every_link_has_latency_high')}</dd><dt>${tr('common.noc_dashboard')}</dt><dd>${tr('help.the_chart_button_at_the_top')}</dd><dt>${tr('common.asia')}</dt><dd>${tr('help.a_weird_underserved_market_transit')}</dd><dt>${tr('common.russia')}</dt><dd>${tr('help.moscow_needs_a_mandatory_government')}</dd><dt>${tr('help.events_chains_and_wholesale')}</dt><dd>${tr('help.event_networks_a_final_a_festival')}</dd><dt>${tr('common.bank')}</dt><dd>${tr('help.tap_your_cash_to_open_the')}</dd><dt>${tr('common.lags')}</dt><dd>${tr('help.out_of_port_speed_bundle_up')}</dd><dt>${tr('common.traffic_engineering')}</dt><dd>${tr('help.tap_a_link_to_see_which')}</dd><dt>${tr('common.china')}</dt><dd>${tr('help.mainland_china_needs_a_license_and')}</dd><dt>${tr('common.weird_requirements')}</dt><dd>${tr('help.some_customers_come_with_conditions')}</dd><dt>${tr('common.customer_levels')}</dt><dd>${tr('help.as_your_peak_traffic_and_footprint')}</dd><dt>${tr('help.l2vpn_ddos_protection')}</dt><dd>${tr('help.businesses_may_want_a_private')}</dd><dt>${tr('common.scrubbing_centers')}</dt><dd>${tr('help.build_one_in_as_many_pops')}</dd><dt>${tr('common.nni_fabrics')}</dt><dd>${tr('help.megapork_pocketfabric_and')}</dd>
|
<dt>${tr('common.waves')}</dt><dd>${tr('help.your_fiber_links_are_leased_waves')}</dd><dt>${tr('common.95th_percentile')}</dt><dd>${tr('help.transit_bills_sample_your_usage')}</dd><dt>${tr('common.routers')}</dt><dd>${tr('help.each_pop_s_router_model_caps')}</dd><dt>${tr('common.dark_fiber')}</dt><dd>${tr('help.lease_an_iru_or_build_your')}</dd><dt>${tr('common.subsea_cables')}</dt><dd>${tr('help.subsea_waves_can_only_follow_cable')}</dd><dt>${tr('common.latency')}</dt><dd>${tr('help.every_link_has_latency_high')}</dd><dt>${tr('common.noc_dashboard')}</dt><dd>${tr('help.the_chart_button_at_the_top')}</dd><dt>${tr('common.asia')}</dt><dd>${tr('help.a_weird_underserved_market_transit')}</dd><dt>${tr('common.russia')}</dt><dd>${tr('help.moscow_needs_a_mandatory_government')}</dd><dt>${tr('help.events_chains_and_wholesale')}</dt><dd>${tr('help.event_networks_a_final_a_festival')}</dd><dt>${tr('common.bank')}</dt><dd>${tr('help.tap_your_cash_to_open_the')}</dd><dt>${tr('common.lags')}</dt><dd>${tr('help.out_of_port_speed_bundle_up')}</dd><dt>${tr('common.traffic_engineering')}</dt><dd>${tr('help.tap_a_link_to_see_which')}</dd><dt>${tr('common.china')}</dt><dd>${tr('help.mainland_china_needs_a_license_and')}</dd><dt>${tr('common.weird_requirements')}</dt><dd>${tr('help.some_customers_come_with_conditions')}</dd><dt>${tr('common.customer_levels')}</dt><dd>${tr('help.as_your_peak_traffic_and_footprint')}</dd><dt>${tr('help.l2vpn_ddos_protection')}</dt><dd>${tr('help.businesses_may_want_a_private')}</dd><dt>${tr('common.scrubbing_centers')}</dt><dd>${tr('help.build_one_in_as_many_pops')}</dd><dt>${tr('common.nni_fabrics')}</dt><dd>${tr('help.megapork_pocketfabric_and')}</dd>
|
||||||
<dt>${tr('common.conferences')}</dt><dd>${tr('help.nanog_ripe_denog_and_friends_come')}</dd><dt>${tr('common.modes')}</dt><dd>${tr('help.sandbox_gives_you_a_billion_dollars')}</dd><dt>${tr('common.traceroute')}</dt><dd>${tr('help.tap_traceroute_on_any_of_your')}</dd><dt>${tr('common.badges')}</dt><dd>${tr('help.below_your_goals_sits_a_wall')}</dd><dt>${tr('common.the_giants')}</dt><dd>${tr('help.at_customer_level_3_and_4')}</dd><dt>RouteScript</dt><dd>${tr('help.once_auto_te_is_installed_you')}</dd><dt>Auto-TE</dt><dd>${tr('help.traffic_follows_the_shortest_path_by')}</dd><dt>${tr('common.metro_diversity')}</dt><dd>${tr('help.a_pop_is_one_building_until')}</dd><dt>${tr('common.wave_markets')}</dt><dd>${tr('help.what_a_wave_costs_depends_on')}</dd><dt>${tr('common.regional_quirks')}</dt><dd>${tr('help.in_the_gulf_saudi_pops_need')}</dd><dt>${tr('common.boot_times')}</dt><dd>${tr('help.some_routers_take_forever_to_boot')}</dd><dt>${tr('common.failures')}</dt><dd>${tr('help.things_break_all_the_time_fiber')}</dd>
|
<dt>${tr('common.conferences')}</dt><dd>${tr('help.nanog_ripe_denog_and_friends_come')}</dd><dt>${tr('common.modes')}</dt><dd>${tr('help.one_game_four_doors_puzzles_are')}</dd><dt>${tr('common.traceroute')}</dt><dd>${tr('help.tap_traceroute_on_any_of_your')}</dd><dt>${tr('common.badges')}</dt><dd>${tr('help.below_your_goals_sits_a_wall')}</dd><dt>${tr('common.the_giants')}</dt><dd>${tr('help.at_customer_level_3_and_4')}</dd><dt>RouteScript</dt><dd>${tr('help.once_auto_te_is_installed_you')}</dd><dt>Auto-TE</dt><dd>${tr('help.traffic_follows_the_shortest_path_by')}</dd><dt>${tr('common.metro_diversity')}</dt><dd>${tr('help.a_pop_is_one_building_until')}</dd><dt>${tr('common.wave_markets')}</dt><dd>${tr('help.what_a_wave_costs_depends_on')}</dd><dt>${tr('common.regional_quirks')}</dt><dd>${tr('help.in_the_gulf_saudi_pops_need')}</dd><dt>${tr('common.boot_times')}</dt><dd>${tr('help.some_routers_take_forever_to_boot')}</dd><dt>${tr('common.failures')}</dt><dd>${tr('help.things_break_all_the_time_fiber')}</dd>
|
||||||
<dt>RouteScript</dt><dd>${tr('help.rules_for_your_auto_te_controller')}</dd>
|
<dt>RouteScript</dt><dd>${tr('help.rules_for_your_auto_te_controller')}</dd>
|
||||||
</dl><h3 style="margin:16px 0 0">${tr('help.want_to_know_how_it_really')}</h3>${plugHtml(true)}${chatHtml()}${issueHtml()}</dl><div class="btns" style="margin-top:14px">${btn(UI.started?tr('common.back_to_the_map'):tr('common.got_it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('common.start_a_new_network'),'resetAsk',{},'ghost sm'):''}</div><div class="btns" style="margin-top:6px">${UI.started&&S&&!S.lost?btn(tr('common.export_save'),'exportSave',{},'ghost sm'):''}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}</div>`);
|
</dl><h3 style="margin:16px 0 0">${tr('help.want_to_know_how_it_really')}</h3>${plugHtml(true)}${chatHtml()}${issueHtml()}</dl><div class="btns" style="margin-top:14px">${btn(UI.started?tr('common.back_to_the_map'):tr('common.got_it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('common.start_a_new_network'),'resetAsk',{},'ghost sm'):''}</div><div class="btns" style="margin-top:6px">${UI.started&&S&&!S.lost?btn(tr('common.export_save'),'exportSave',{},'ghost sm'):''}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}</div>`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ function openLinkModal(a,b){
|
||||||
const mode=UI.lmode==='df'?'df':'wave',tabs=`<div class="seg" style="margin-top:8px">${btn(tr('link_modal.lease_a_wave'),'dfMode',{m:'wave'},mode==='wave'?'pink':'ghost')}${btn(tr('common.dark_fiber'),'dfMode',{m:'df'},mode==='df'?'pink':'ghost')}</div>`;
|
const mode=UI.lmode==='df'?'df':'wave',tabs=`<div class="seg" style="margin-top:8px">${btn(tr('link_modal.lease_a_wave'),'dfMode',{m:'wave'},mode==='wave'?'pink':'ghost')}${btn(tr('common.dark_fiber'),'dfMode',{m:'df'},mode==='df'?'pink':'ghost')}</div>`;
|
||||||
const head=`<div style="display:flex;align-items:center"><div><div class="eyebrow">${sub?tr('common.subsea_a6be'):tr('common.terrestrial_19e4')} · ${km.toLocaleString()} km</div><h2 style="font-size:26px">${CITY[a].name} → ${CITY[b].name}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>${tabs}`;
|
const head=`<div style="display:flex;align-items:center"><div><div class="eyebrow">${sub?tr('common.subsea_a6be'):tr('common.terrestrial_19e4')} · ${km.toLocaleString()} km</div><h2 style="font-size:26px">${CITY[a].name} → ${CITY[b].name}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>${tabs}`;
|
||||||
if(mode==='df'){openModal(head+dfModalBody(a,b,km,pop));return;}
|
if(mode==='df'){openModal(head+dfModalBody(a,b,km,pop));return;}
|
||||||
if(sub&&!cablesOk(a,b).length){const fr=[...new Set(CABLE_PAIRS.filter(c=>c.a===a||c.b===a).map(c=>CITY[c.a===a?c.b:c.a].name))],dry=[a,b].find(c=>!landing(c));openModal(head+`<p class="lead" style="margin-top:10px">${dry?tr('link_modal.no_subsea_cable_lands_in_city',{city:CITY[dry].name,near:CITY[nearLanding(dry)].name}):tr('link_modal.no_subsea_cable_lands_in_both',{a:CITY[a].name,b:CITY[b].name,list:fr.join(', ')})}</p>${S.won&&!ownCabWhy(a,b)?ownCabTeaser(a,b):''}`);return;}
|
if(sub&&!cablesOk(a,b).length){const fr=[...new Set(CABLE_PAIRS.filter(c=>c.a===a||c.b===a).map(c=>CITY[c.a===a?c.b:c.a].name))],dry=[a,b].find(c=>!landing(c));openModal(head+`<p class="lead" style="margin-top:10px">${dry?tr('link_modal.no_subsea_cable_lands_in_city',{city:CITY[dry].name,near:CITY[nearLanding(dry)].name}):tr('link_modal.no_subsea_cable_lands_in_both',{a:CITY[a].name,b:CITY[b].name,list:fr.join(', ')})}</p>${cabOpen()&&!ownCabWhy(a,b)?ownCabTeaser(a,b):''}`);return;}
|
||||||
if(isSub(a,b)&&S.ev.landban&&S.ev.landban.until>S.day&&[a,b].includes(S.ev.landban.city)){openModal(head+`<p class="lead" style="margin-top:10px">${tr('link_modal.the_landing_permit_dispute_in_city',{city:CITY[S.ev.landban.city].name,n:S.ev.landban.until-S.day})}</p>`);return;}
|
if(isSub(a,b)&&S.ev.landban&&S.ev.landban.until>S.day&&[a,b].includes(S.ev.landban.city)){openModal(head+`<p class="lead" style="margin-top:10px">${tr('link_modal.the_landing_permit_dispute_in_city',{city:CITY[S.ev.landban.city].name,n:S.ev.landban.until-S.day})}</p>`);return;}
|
||||||
if(uaePair(a,b)||andesPair(a,b)||rainPair(a,b)||borderPair(a,b))route+=`<p class="note" style="margin-top:8px">${landWhy(a,b)}</p>`;
|
if(uaePair(a,b)||andesPair(a,b)||rainPair(a,b)||borderPair(a,b))route+=`<p class="note" style="margin-top:8px">${landWhy(a,b)}</p>`;
|
||||||
route+=`<p class="note" style="margin-top:6px">📈 ${esc(marketNote(a,b,sub))}</p>`;
|
route+=`<p class="note" style="margin-top:6px">📈 ${esc(marketNote(a,b,sub))}</p>`;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const nearLanding=c=>CITIES.filter(x=>x.id!==c&&landing(x.id)).sort((x,y)=>kmBet
|
||||||
const ownCabKm=(a,b)=>seaRoutes(a,b)[0]?.km||Infinity;
|
const ownCabKm=(a,b)=>seaRoutes(a,b)[0]?.km||Infinity;
|
||||||
const ownCabCost=km=>Math.round((2*OWNCAB_LAND+km*OWNCAB_KM+DF_SYS.roadm.cost)*hwMul('build'));
|
const ownCabCost=km=>Math.round((2*OWNCAB_LAND+km*OWNCAB_KM+DF_SYS.roadm.cost)*hwMul('build'));
|
||||||
const ownCabMo=km=>Math.round(km*OWNCAB_OM)+ampCount(km)*AMP_MO;
|
const ownCabMo=km=>Math.round(km*OWNCAB_OM)+ampCount(km)*AMP_MO;
|
||||||
const ownCabDays=km=>Math.round(300+km*0.05);
|
const ownCabDays=km=>leadDays(Math.round(300+km*0.05));
|
||||||
// Marine routing uses the same coastline as the map, in geographic coordinates.
|
// Marine routing uses the same coastline as the map, in geographic coordinates.
|
||||||
// A quarter-degree grid keeps narrow passages open; edges are checked against
|
// A quarter-degree grid keeps narrow passages open; edges are checked against
|
||||||
// coastline segments as well as water cells, so diagonal steps cannot cut land.
|
// coastline segments as well as water cells, so diagonal steps cannot cut land.
|
||||||
|
|
@ -179,7 +179,7 @@ function seaQuote(a,b,design='standard',upgrades={}){
|
||||||
const base=routes[0]?.km||Infinity,km=route?.km||Infinity;
|
const base=routes[0]?.km||Infinity,km=route?.km||Infinity;
|
||||||
// Higher survey and permitting costs dominate any savings from shorter glass.
|
// Higher survey and permitting costs dominate any savings from shorter glass.
|
||||||
let cost=Math.round(ownCabCost(Math.max(base,km))*D.cost),days=Math.round(ownCabDays(Math.max(base,km))*D.time);
|
let cost=Math.round(ownCabCost(Math.max(base,km))*D.cost),days=Math.round(ownCabDays(Math.max(base,km))*D.time);
|
||||||
for(const k of Object.keys(SUB_UPGRADES))if(upgrades[k]){cost+=subUpgradeCost({km},k);days+=SUB_UPGRADES[k].days;}
|
for(const k of Object.keys(SUB_UPGRADES))if(upgrades[k]){cost+=subUpgradeCost({km},k);days+=leadDays(SUB_UPGRADES[k].days);}
|
||||||
const ms=linkLat({a,b,kind:'df',own:true,sub:true,km,seaDesign:design});
|
const ms=linkLat({a,b,kind:'df',own:true,sub:true,km,seaDesign:design});
|
||||||
return {km,cost,days,ms,pts:route?.pts,shore:route?.shore,cor:!!cor&&route===cor};
|
return {km,cost,days,ms,pts:route?.pts,shore:route?.shore,cor:!!cor&&route===cor};
|
||||||
}
|
}
|
||||||
|
|
@ -190,15 +190,17 @@ const seaCab=(a,b)=>isSub(a,b)||(landing(a)&&landing(b)&&cablesFor(a,b).length>0
|
||||||
// one still being laid returns most of the part not laid yet, a working one is yours for good.
|
// one still being laid returns most of the part not laid yet, a working one is yours for good.
|
||||||
const cabBack=l=>{if(!l||l.kind!=='df'||!l.own||!l.sub)return 0;const c=l.paid>0?l.paid:ownCabCost(l.km);if(!subNeed(l.km))return c;
|
const cabBack=l=>{if(!l||l.kind!=='df'||!l.own||!l.sub)return 0;const c=l.paid>0?l.paid:ownCabCost(l.km);if(!subNeed(l.km))return c;
|
||||||
if(l.ready>S.day){const tot=Math.max(1,l.ready-(l.day||0));return Math.round(c*0.75*Math.min(1,(l.ready-S.day)/tot));}return 0;};
|
if(l.ready>S.day){const tot=Math.max(1,l.ready-(l.day||0));return Math.round(c*0.75*Math.min(1,(l.ready-S.day)/tot));}return 0;};
|
||||||
|
// Your own subsea cable is a Tier 1 privilege, or a sandbox toy (open gates).
|
||||||
|
const cabOpen=()=>!!S.won||gatesOpen();
|
||||||
function ownCabWhy(a,b){if(!seaCab(a,b))return tr('own_cable.this_route_is_on_land_build');
|
function ownCabWhy(a,b){if(!seaCab(a,b))return tr('own_cable.this_route_is_on_land_build');
|
||||||
if(!S.won)return tr('own_cable.laying_your_own_subsea_cable_is');
|
if(!cabOpen())return tr('own_cable.laying_your_own_subsea_cable_is');
|
||||||
for(const c of [a,b])if(!landing(c))return tr('own_cable.city_has_no_cable_landing_station',{city:CITY[c].name});
|
for(const c of [a,b])if(!landing(c))return tr('own_cable.city_has_no_cable_landing_station',{city:CITY[c].name});
|
||||||
if(cnCity(a)||cnCity(b))return tr('own_cable.nobody_gives_a_foreign_network_a');
|
if(cnCity(a)||cnCity(b))return tr('own_cable.nobody_gives_a_foreign_network_a');
|
||||||
if(!seaReady(a,b))return tr('own_cable.surveying_a_sea_route');
|
if(!seaReady(a,b))return tr('own_cable.surveying_a_sea_route');
|
||||||
const routes=seaRoutes(a,b);if(!routes.length)return tr('own_cable.no_navigable_sea_route_connects');
|
const routes=seaRoutes(a,b);if(!routes.length)return tr('own_cable.no_navigable_sea_route_connects');
|
||||||
const km=Math.min(...routes.map(r=>r.km));if(!subNeed(km))return tr('own_cable.km_km_is_more_than_any',{km:km.toLocaleString(),max:Math.round(SUB_MAXKM()).toLocaleString()});
|
const km=Math.min(...routes.map(r=>r.km));if(!subNeed(km))return tr('own_cable.km_km_is_more_than_any',{km:km.toLocaleString(),max:Math.round(SUB_MAXKM()).toLocaleString()});
|
||||||
return '';}
|
return '';}
|
||||||
function ownCabTeaser(a,b){const why=ownCabWhy(a,b);return `<div class="btns" style="margin-top:8px">${btn(S.won?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},S.won&&!why?'pink':'ghost',!!why)}</div>${why&&S.won?`<p class="note" ${seaSurveyAttr(a,b)}>${esc(why)}</p>`:''}`;}
|
function ownCabTeaser(a,b){const why=ownCabWhy(a,b);return `<div class="btns" style="margin-top:8px">${btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},cabOpen()&&!why?'pink':'ghost',!!why)}</div>${why&&cabOpen()?`<p class="note" ${seaSurveyAttr(a,b)}>${esc(why)}</p>`:''}`;}
|
||||||
function ownCabBody(a,b,pop){const why=ownCabWhy(a,b);if(why)return `<p class="lead" style="margin-top:10px" ${seaSurveyAttr(a,b)}>${esc(why)}</p>${btn(tr('common.back'),'dfSrc',{v:'lease'},'ghost sm')}`;
|
function ownCabBody(a,b,pop){const why=ownCabWhy(a,b);if(why)return `<p class="lead" style="margin-top:10px" ${seaSurveyAttr(a,b)}>${esc(why)}</p>${btn(tr('common.back'),'dfSrc',{v:'lease'},'ghost sm')}`;
|
||||||
const design=own(SEA_DESIGNS,UI.seaDesign)?UI.seaDesign:'standard',upgrades={terminal:!!UI.seaterminal,engineering:!!UI.seaengineering},q=seaQuote(a,b,design,upgrades),{km,cost,days}=q,lack=seaLack(km,upgrades),mo=ownCabMo(km),wt=subMaxTier(km),w=Math.round(waveMo(km,true,wt)*waveMarket(a,b,true).m),save=10*w*LT[4].g/LT[wt].g-mo,pay=save>0?Math.ceil(cost/save):0;
|
const design=own(SEA_DESIGNS,UI.seaDesign)?UI.seaDesign:'standard',upgrades={terminal:!!UI.seaterminal,engineering:!!UI.seaengineering},q=seaQuote(a,b,design,upgrades),{km,cost,days}=q,lack=seaLack(km,upgrades),mo=ownCabMo(km),wt=subMaxTier(km),w=Math.round(waveMo(km,true,wt)*waveMarket(a,b,true).m),save=10*w*LT[4].g/LT[wt].g-mo,pay=save>0?Math.ceil(cost/save):0;
|
||||||
return `<p class="lead" style="margin-top:8px">${tr('own_cable.your_very_own_subsea_cable_a')}</p>
|
return `<p class="lead" style="margin-top:8px">${tr('own_cable.your_very_own_subsea_cable_a')}</p>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ function dfModalBody(a,b,km,pop){
|
||||||
const up=(src==='build'?dfBuildCost(km):0)+DF_SYS[sys].cost+amps*AMP_COST+pop,mo=(src==='build'?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO;
|
const up=(src==='build'?dfBuildCost(km):0)+DF_SYS[sys].cost+amps*AMP_COST+pop,mo=(src==='build'?Math.round(km*0.15):dfLeaseMo(km))+amps*AMP_MO;
|
||||||
const w=Math.round(waveMo(km,false,4));
|
const w=Math.round(waveMo(km,false,4));
|
||||||
return `<p class="lead" style="margin-top:8px">${tr('fiber_modals.a_fiber_pair_of_your_own',{km:AMP_EVERY})}</p>
|
return `<p class="lead" style="margin-top:8px">${tr('fiber_modals.a_fiber_pair_of_your_own',{km:AMP_EVERY})}</p>
|
||||||
<h4 class="sub4">${tr('common.the_glass')}</h4><div class="seg">${btn(tr('fiber_modals.lease_an_iru_price_mo_ready',{price:fmt$(dfLeaseMo(km))}),'dfSrc',{v:'lease'},src==='lease'?'pink':'ghost')}${sc?btn(S.won?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):btn(lvl()>=3?tr('fiber_modals.build_your_own_price_n_days',{price:fmt$(dfBuildCost(km)),n:dfBuildDays(km)}):tr('fiber_modals.build_your_own_level_3'),'dfSrc',{v:'build'},src==='build'?'pink':'ghost',lvl()<3)}${sea?btn(S.won?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):''}</div>${sc?`<p class="note">${tr('fiber_modals.a_fiber_pair_on_cable_km',{cable:esc(CAB[sc.cid].name),km:sc.km.toLocaleString()})}</p>`:''}
|
<h4 class="sub4">${tr('common.the_glass')}</h4><div class="seg">${btn(tr('fiber_modals.lease_an_iru_price_mo_ready_n',{price:fmt$(dfLeaseMo(km)),n:leadDays(IRU_DAYS)}),'dfSrc',{v:'lease'},src==='lease'?'pink':'ghost')}${sc?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):btn(lvl()>=3?tr('fiber_modals.build_your_own_price_n_days',{price:fmt$(dfBuildCost(km)),n:dfBuildDays(km)}):tr('fiber_modals.build_your_own_level_3'),'dfSrc',{v:'build'},src==='build'?'pink':'ghost',lvl()<3)}${sea?btn(cabOpen()?tr('modals.lay_your_own_subsea_cable'):tr('modals.your_own_subsea_cable_tier_1'),'ownCab',{},'ghost',!!ownCabWhy(a,b)):''}</div>${sc?`<p class="note">${tr('fiber_modals.a_fiber_pair_on_cable_km',{cable:esc(CAB[sc.cid].name),km:sc.km.toLocaleString()})}</p>`:''}
|
||||||
${src==='build'?`<p class="note">${tr('fiber_modals.your_own_trench_almost_no_rent')}</p>`:''}
|
${src==='build'?`<p class="note">${tr('fiber_modals.your_own_trench_almost_no_rent')}</p>`:''}
|
||||||
<h4 class="sub4">${tr('common.line_system')}</h4><div class="seg">${Object.keys(DF_SYS).map(k=>btn(`${DF_SYS[k].n} <small>${DF_SYS[k].lvl>lvl()?tr('fiber_modals.level_n',{n:DF_SYS[k].lvl}):fmt$(DF_SYS[k].cost)}</small>`,'dfSys',{v:k},sys===k?'pink':'ghost',DF_SYS[k].lvl>lvl())).join('')}</div>
|
<h4 class="sub4">${tr('common.line_system')}</h4><div class="seg">${Object.keys(DF_SYS).map(k=>btn(`${DF_SYS[k].n} <small>${DF_SYS[k].lvl>lvl()?tr('fiber_modals.level_n',{n:DF_SYS[k].lvl}):fmt$(DF_SYS[k].cost)}</small>`,'dfSys',{v:k},sys===k?'pink':'ghost',DF_SYS[k].lvl>lvl())).join('')}</div>
|
||||||
<p class="note">${esc(DF_SYS[sys].blurb)} ${trn('fiber_modals.plus_n_in_line_amplifier_price',amps,{price:fmt$(AMP_COST),mo:fmt$(AMP_MO)})}</p>${km>reachOn(OPT.tp16.reach,!!sc)?`<p class="note">${tr('fiber_modals.km_km_is_longer_than_any',{km:km.toLocaleString()})}</p>`:''}
|
<p class="note">${esc(DF_SYS[sys].blurb)} ${trn('fiber_modals.plus_n_in_line_amplifier_price',amps,{price:fmt$(AMP_COST),mo:fmt$(AMP_MO)})}</p>${km>reachOn(OPT.tp16.reach,!!sc)?`<p class="note">${tr('fiber_modals.km_km_is_longer_than_any',{km:km.toLocaleString()})}</p>`:''}
|
||||||
|
|
|
||||||
|
|
@ -38,5 +38,5 @@ cv.addEventListener('pointerup',endPtr);cv.addEventListener('pointercancel',canc
|
||||||
const ZMIN=0.35,ZMAX=16;
|
const ZMIN=0.35,ZMAX=16;
|
||||||
function zoomAt(mx,my,f){const wx=cam.x+(mx-CW/2)/cam.z,wy=cam.y+(my-CH/2)/cam.z;cam.z=clamp(cam.z*f,ZMIN,ZMAX);cam.x=wx-(mx-CW/2)/cam.z;cam.y=wy-(my-CH/2)/cam.z;wrapCam();}
|
function zoomAt(mx,my,f){const wx=cam.x+(mx-CW/2)/cam.z,wy=cam.y+(my-CH/2)/cam.z;cam.z=clamp(cam.z*f,ZMIN,ZMAX);cam.x=wx-(mx-CW/2)/cam.z;cam.y=wy-(my-CH/2)/cam.z;wrapCam();}
|
||||||
cv.addEventListener('wheel',e=>{e.preventDefault();zoomAt(e.clientX,e.clientY,Math.exp(-e.deltaY*0.0015));},{passive:false});
|
cv.addEventListener('wheel',e=>{e.preventDefault();zoomAt(e.clientX,e.clientY,Math.exp(-e.deltaY*0.0015));},{passive:false});
|
||||||
addEventListener('keydown',e=>{if(e.key==='Enter'&&e.target.id==='metIn'){ACT.metricSet({id:e.target.dataset.id});return;}if(e.target.closest&&e.target.closest('input,textarea,select,[contenteditable]'))return;if(e.ctrlKey||e.metaKey||e.altKey)return;if(e.code==='Space'&&e.target.closest&&e.target.closest('button,a'))return;if(e.code==='Space'){e.preventDefault();UI.speed=UI.speed?0:1;renderHUD();}if(e.key==='0')ACT.speed({v:0.5});if(e.key==='1')ACT.speed({v:1});if(e.key==='2')ACT.speed({v:2});if(e.key==='3')ACT.speed({v:4});if(e.key==='4')ACT.speed({v:8});if(e.key==='Escape'&&!$('bankBox').hidden){$('bankBox').hidden=true;return;}if(e.key==='Escape'&&!$('dash').hidden){$('dash').hidden=true;return;}if(e.key==='Escape'){if(!$('modal').hidden){if(S&&UI.started&&!S.lost)closeModal();}else{UI.sel=null;renderPanel();}}});
|
addEventListener('keydown',e=>{if(e.key==='Enter'&&e.target.id==='metIn'){ACT.metricSet({id:e.target.dataset.id});return;}if(e.target.closest&&e.target.closest('input,textarea,select,[contenteditable]'))return;if(e.ctrlKey||e.metaKey||e.altKey)return;if(e.code==='Space'&&e.target.closest&&e.target.closest('button,a'))return;if(e.code==='Space'&&(!S||rule('clock'))){e.preventDefault();UI.speed=UI.speed?0:1;renderHUD();}if(e.key==='0')ACT.speed({v:0.5});if(e.key==='1')ACT.speed({v:1});if(e.key==='2')ACT.speed({v:2});if(e.key==='3')ACT.speed({v:4});if(e.key==='4')ACT.speed({v:8});if(e.key==='Escape'&&!$('bankBox').hidden){$('bankBox').hidden=true;return;}if(e.key==='Escape'&&!$('dash').hidden){$('dash').hidden=true;return;}if(e.key==='Escape'){if(!$('modal').hidden){if(S&&UI.started&&!S.lost)closeModal();}else{UI.sel=null;renderPanel();}}});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ let PD={t:0,b:null};
|
||||||
document.addEventListener('pointerdown',e=>{PD={t:performance.now(),b:e.target.closest('[data-act]')};},true);
|
document.addEventListener('pointerdown',e=>{PD={t:performance.now(),b:e.target.closest('[data-act]')};},true);
|
||||||
function tapOk(e,b){if(!e.isTrusted||!PD.t||e.detail===0)return true;const now=performance.now();if(now-PD.t>4000)return true;
|
function tapOk(e,b){if(!e.isTrusted||!PD.t||e.detail===0)return true;const now=performance.now();if(now-PD.t>4000)return true;
|
||||||
if(PD.b!==b)return false;if((UI.layerAt||0)>PD.t)return false;const ts=b.closest('.toast');if(ts&&PD.t-(+ts.dataset.born||0)<500)return false;return true;}
|
if(PD.b!==b)return false;if((UI.layerAt||0)>PD.t)return false;const ts=b.closest('.toast');if(ts&&PD.t-(+ts.dataset.born||0)<500)return false;return true;}
|
||||||
document.addEventListener('click',e=>{const b=e.target.closest('[data-act]');if(!b||b.disabled)return;if(!$('modal').hidden&&!b.closest('#modal'))return;if(!tapOk(e,b))return;audioInit();const fn=ACT[b.dataset.act];if(!fn)return;if(!S&&!['start','randomName','pickStart','cont','help','helpClose','newgame','mute','animSet','soundSet','langSet','closeModal','speed','bankClose','whatsNewShow','updateNow','updateLater','importPick','importGo','modeSet','scenarios','startScn','startWeekly','settings','settingsClose','prefSet','vpSet','install','pitchSkip'].includes(b.dataset.act))return;let a={};try{a=JSON.parse(b.dataset.args||'{}');}catch(_){}fn(a);});
|
document.addEventListener('click',e=>{const b=e.target.closest('[data-act]');if(!b||b.disabled)return;if(!$('modal').hidden&&!b.closest('#modal'))return;if(!tapOk(e,b))return;audioInit();const fn=ACT[b.dataset.act];if(!fn)return;if(!S&&!['start','randomName','pickStart','cont','help','helpClose','newgame','mute','animSet','soundSet','langSet','closeModal','speed','bankClose','whatsNewShow','updateNow','updateLater','importPick','importGo','modeSet','presetSet','chaosSet','puzzleDoor','puzzleMenu','scenarios','startScn','startWeekly','settings','settingsClose','prefSet','vpSet','install','pitchSkip'].includes(b.dataset.act))return;let a={};try{a=JSON.parse(b.dataset.args||'{}');}catch(_){}fn(a);});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1779,7 +1779,7 @@
|
||||||
"fiber_modals.for_comparison_a_leased_1_6t":"For comparison, a leased 1.6T wave on this route is {price}/mo. Optics come next, from the link panel.",
|
"fiber_modals.for_comparison_a_leased_1_6t":"For comparison, a leased 1.6T wave on this route is {price}/mo. Optics come next, from the link panel.",
|
||||||
"fiber_modals.from_city":"From {city}",
|
"fiber_modals.from_city":"From {city}",
|
||||||
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km is longer than any optic reaches at full speed.</b> Transponders will run in long-haul mode (1.2T, 800G or 400G per channel), or add regen sites along the way to get full speed back.",
|
"fiber_modals.km_km_is_longer_than_any":"<b>{km} km is longer than any optic reaches at full speed.</b> Transponders will run in long-haul mode (1.2T, 800G or 400G per channel), or add regen sites along the way to get full speed back.",
|
||||||
"fiber_modals.lease_an_iru_price_mo_ready":"Lease an IRU <small>{price}/mo · ready in 30 days</small>",
|
"fiber_modals.lease_an_iru_price_mo_ready_n":"Lease an IRU <small>{price}/mo · ready in {n} days</small>",
|
||||||
"fiber_modals.level_n":"level {n}",
|
"fiber_modals.level_n":"level {n}",
|
||||||
"fiber_modals.no_dark_fiber_inside_the_uae":"No dark fiber inside the UAE. Only the two licensed operators may run fiber here, and they only sell waves.",
|
"fiber_modals.no_dark_fiber_inside_the_uae":"No dark fiber inside the UAE. Only the two licensed operators may run fiber here, and they only sell waves.",
|
||||||
"fiber_modals.no_install_fee_live_in_minutes":"No install fee, live in minutes, billed monthly. Cheaper than a wave for small capacity, but it rides someone else's fabric, and that fabric can fail.",
|
"fiber_modals.no_install_fee_live_in_minutes":"No install fee, live in minutes, billed monthly. Cheaper than a wave for small capacity, but it rides someone else's fabric, and that fabric can fail.",
|
||||||
|
|
@ -1890,6 +1890,7 @@
|
||||||
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) is transit-free. You peer with every giant on the planet and pay nobody to reach the internet. Took you {days} days and {n} incidents.",
|
"help.name_as_asn_is_transit_free":"{name} (AS{asn}) is transit-free. You peer with every giant on the planet and pay nobody to reach the internet. Took you {days} days and {n} incidents.",
|
||||||
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG and friends come round every year. Register in the Deals tab for $8k. For 45 days after, selective networks with a presence in that region need only half the usual traffic before they peer with you. Sometimes you also win the raffle.",
|
"help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG and friends come round every year. Register in the Deals tab for $8k. For 45 days after, selective networks with a presence in that region need only half the usual traffic before they peer with you. Sometimes you also win the raffle.",
|
||||||
"help.once_auto_te_is_installed_you":"Once Auto-TE is installed, you can program it from the NOC tab. Rules include <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> and <code>blackhole ddos</code>. Check runs a dry run against live traffic; Deploy makes it real, mistakes included.",
|
"help.once_auto_te_is_installed_you":"Once Auto-TE is installed, you can program it from the NOC tab. Rules include <code>spill at 80%</code>, <code>prefer pni for goggle</code>, <code>avoid transit for netchill</code>, <code>cap transit cogentle at 20 gbps</code>, <code>drain paris</code>, <code>avoid link fra-ams</code> and <code>blackhole ddos</code>. Check runs a dry run against live traffic; Deploy makes it real, mistakes included.",
|
||||||
|
"help.one_game_four_doors_puzzles_are":"One game, four doors, and the rules are picked when a network starts and locked after that. Puzzles are small knots to untie, with no clock. Sandbox gives you a billion dollars, every unlock (your own subsea cable included) and as much chaos as you pick, but no badges. Normal comes three ways: Change Freeze (few outages, deliveries in days, no inbox or shortages), On-call (the classic game) and BGP at 3 a.m. (more and longer outages, more DDoS). Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.",
|
||||||
"help.open_peers_with_anyone_selective":"Open peers with anyone. Selective wants to see traffic first. Restrictive (Tier 1s) only peers with giants, over PNIs. Paid means exactly that. Big selective networks also have moods: in some cities they refuse new peers for a few months, or only take PNIs, and now and then they tear down a session you already had. Try another city or a PNI, and ask again later.",
|
"help.open_peers_with_anyone_selective":"Open peers with anyone. Selective wants to see traffic first. Restrictive (Tier 1s) only peers with giants, over PNIs. Paid means exactly that. Big selective networks also have moods: in some cities they refuse new peers for a few months, or only take PNIs, and now and then they tear down a session you already had. Try another city or a PNI, and ask again later.",
|
||||||
"help.out_of_port_speed_bundle_up":"Out of port speed? Bundle up to 8 identical ports to the same transit provider, IX or PNI into a LAG. Each member costs a full port; flow hashing is never perfectly even, so a bundle carries about 95% of the sum.",
|
"help.out_of_port_speed_bundle_up":"Out of port speed? Bundle up to 8 identical ports to the same transit provider, IX or PNI into a LAG. Each member costs a full port; flow hashing is never perfectly even, so a bundle carries about 95% of the sum.",
|
||||||
"help.pni_lead_times":"PNI lead times",
|
"help.pni_lead_times":"PNI lead times",
|
||||||
|
|
@ -1898,7 +1899,6 @@
|
||||||
"help.reach_an_ix_over_a_fabric":"Reach an IX over a fabric circuit without a POP there. It works, and the route server still gets you every open network, but it is discouraged: the reseller charges 1.5× for the port and oversubscribes it to 80%, latency rides the fabric, one fabric outage drops every session, and many selective networks refuse remote members outright.",
|
"help.reach_an_ix_over_a_fabric":"Reach an IX over a fabric circuit without a POP there. It works, and the route server still gets you every open network, but it is discouraged: the reseller charges 1.5× for the port and oversubscribes it to 80%, latency rides the fabric, one fabric outage drops every session, and many selective networks refuse remote members outright.",
|
||||||
"help.routers_optics_and_new_builds_get":"Routers, optics and new builds get dearer over the years, about 4% a year after the first six months, and now and then a shortage makes one of them a lot dearer for a month or two. What you already own keeps its price. Spares on the shelf and a yearly price lock from the NOC tab soften the blow.",
|
"help.routers_optics_and_new_builds_get":"Routers, optics and new builds get dearer over the years, about 4% a year after the first six months, and now and then a shortage makes one of them a lot dearer for a month or two. What you already own keeps its price. Spares on the shelf and a yearly price lock from the NOC tab soften the blow.",
|
||||||
"help.rules_for_your_auto_te_controller":"Rules for your Auto-TE controller: which exits to prefer, which to avoid, and when to spill onto the next one. The editor’s help explains every rule and has ready-made scripts.",
|
"help.rules_for_your_auto_te_controller":"Rules for your Auto-TE controller: which exits to prefer, which to avoid, and when to spill onto the next one. The editor’s help explains every rule and has ready-made scripts.",
|
||||||
"help.sandbox_gives_you_a_billion_dollars":"Sandbox gives you a billion dollars, every unlock and no failures, but no badges. Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.",
|
|
||||||
"help.share_my_network":"Share my network",
|
"help.share_my_network":"Share my network",
|
||||||
"help.some_customers_come_with_conditions":"Some customers come with conditions: no Cogentle anywhere, no subsea cables because of sharks, two routers, a generator, NetChill on-net, low-loss China reach and more. Each pays a bonus. Unmet ones make them grumpy until you fix it or they leave.",
|
"help.some_customers_come_with_conditions":"Some customers come with conditions: no Cogentle anywhere, no subsea cables because of sharks, two routers, a generator, NetChill on-net, low-loss China reach and more. Each pays a bonus. Unmet ones make them grumpy until you fix it or they leave.",
|
||||||
"help.some_routers_take_forever_to_boot":"Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.",
|
"help.some_routers_take_forever_to_boot":"Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.",
|
||||||
|
|
@ -2905,6 +2905,29 @@
|
||||||
"routing_and_routers.the_model_won_t_fit_why":"<b>The {model} won't fit.</b><br>{why}",
|
"routing_and_routers.the_model_won_t_fit_why":"<b>The {model} won't fit.</b><br>{why}",
|
||||||
"routing_and_routers.the_new_routers_in_city_are":"<b>The new routers in {city} are still being racked.</b><br>One swap a day: try again tomorrow.",
|
"routing_and_routers.the_new_routers_in_city_are":"<b>The new routers in {city} are still being racked.</b><br>One swap a day: try again tomorrow.",
|
||||||
"routing_and_routers.unplug_something_first_used_ports":"<b>Unplug something first.</b><br>{used} ports are in use, and one router fewer only has {max}.",
|
"routing_and_routers.unplug_something_first_used_ports":"<b>Unplug something first.</b><br>{used} ports are in use, and one router fewer only has {max}.",
|
||||||
|
"rules.a_billion_dollars_every_unlock_your":"A billion dollars, every unlock, your own subsea cable.",
|
||||||
|
"rules.a_cut_now_and_then":"A cut now and then.",
|
||||||
|
"rules.bgp_at_3_a_m":"BGP at 3 a.m.",
|
||||||
|
"rules.change_freeze":"Change Freeze",
|
||||||
|
"rules.chaos_calm":"Calm",
|
||||||
|
"rules.chaos_none":"None",
|
||||||
|
"rules.chaos_normal":"Normal",
|
||||||
|
"rules.chaos_spicy":"Spicy",
|
||||||
|
"rules.everything_is_on_fire_and_it":"Everything is on fire, and it's your turn.",
|
||||||
|
"rules.fewer_outages_pnis_and_builds_in":"A third of the outages, no DDoS. PNIs and builds in days. No inbox, no shortages, no sold-out routes.",
|
||||||
|
"rules.infinite_money_everything_unlocked_quick":"Endless money, everything unlocked, quick lead times. No badges.",
|
||||||
|
"rules.like_the_real_game":"Like the real game.",
|
||||||
|
"rules.more_and_longer_outages_more_ddos":"Almost twice the outages, half as long again, twice the DDoS. Everything on.",
|
||||||
|
"rules.no_clock_no_bills_nothing_breaks":"No clock, no bills, nothing breaks.",
|
||||||
|
"rules.nobody_touches_prod_even_the_backhoes":"Nobody touches prod. Even the backhoes are on holiday.",
|
||||||
|
"rules.nothing_ever_breaks":"Nothing ever breaks.",
|
||||||
|
"rules.on_call":"On-call",
|
||||||
|
"rules.one_small_network_one_tricky_goal":"One small network, one tricky goal.",
|
||||||
|
"rules.puzzle":"Puzzle",
|
||||||
|
"rules.real_lead_times_real_outages_a":"Real lead times, real outages, a full peering inbox. The classic game.",
|
||||||
|
"rules.rules_are_locked_for_this_network":"{rules}: rules are locked for this network.",
|
||||||
|
"rules.the_real_thing_your_pager_has":"The real thing. Your pager has opinions.",
|
||||||
|
"rules.your_pager_never_sleeps":"Your pager never sleeps.",
|
||||||
"save.cash_in_the_bank":"{cash} in the bank",
|
"save.cash_in_the_bank":"{cash} in the bank",
|
||||||
"save.import_failed_err":"<b>Import failed.</b><br>{err}",
|
"save.import_failed_err":"<b>Import failed.</b><br>{err}",
|
||||||
"save.load_name":"Load {name}?",
|
"save.load_name":"Load {name}?",
|
||||||
|
|
@ -2962,6 +2985,7 @@
|
||||||
"scenarios.reach_45_of_the_internet_and":"Reach 45% of the internet and serve 300 Gbps",
|
"scenarios.reach_45_of_the_internet_and":"Reach 45% of the internet and serve 300 Gbps",
|
||||||
"scenarios.red_sea_crisis":"Red Sea Crisis",
|
"scenarios.red_sea_crisis":"Red Sea Crisis",
|
||||||
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio from scratch. Carnaval starts in 90 days and wants 400 Gbps for five days straight. The whole world is watching.",
|
"scenarios.rio_from_scratch_carnaval_starts_in":"Rio from scratch. Carnaval starts in 90 days and wants 400 Gbps for five days straight. The whole world is watching.",
|
||||||
|
"scenarios.sandbox_mode_a_billion_dollars_chaos":"<b>Sandbox mode</b><br>A billion dollars and every unlock. Chaos: {chaos}. Build the internet you always wanted, and keep a spare backhoe handy.",
|
||||||
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Sandbox mode</b><br>A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.",
|
"scenarios.sandbox_mode_a_billion_dollars_every":"<b>Sandbox mode</b><br>A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.",
|
||||||
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brazil is a continent: forty IX.brrr exchanges, thousands of provedores, and the Amazon between you and the north.",
|
"scenarios.sao_paulo_brazil_is_a_continent":"São Paulo. Brazil is a continent: forty IX.brrr exchanges, thousands of provedores, and the Amazon between you and the north.",
|
||||||
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. The fastest, hungriest eyeballs on Earth, transit at four times the price, and three incumbents who bill you for every gigabit you send them.",
|
"scenarios.seoul_the_fastest_hungriest_eyeballs":"Seoul. The fastest, hungriest eyeballs on Earth, transit at four times the price, and three incumbents who bill you for every gigabit you send them.",
|
||||||
|
|
@ -3080,24 +3104,34 @@
|
||||||
"supply_chain.until_date_at_p":"until {date}, at +{p}",
|
"supply_chain.until_date_at_p":"until {date}, at +{p}",
|
||||||
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} days left",
|
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} days left",
|
||||||
"supply_chain.your_price_lock_covers_you_until":"Your price lock covers you until {date}.",
|
"supply_chain.your_price_lock_covers_you_until":"Your price lock covers you until {date}.",
|
||||||
|
"title.a_billion_dollars_and_every_toy":"A billion dollars and every toy in the shop.",
|
||||||
"title.anywhere_else":"Anywhere else",
|
"title.anywhere_else":"Anywhere else",
|
||||||
"title.asia_hub_great_peering_far_from":"Asia hub. Great peering, far from home.",
|
"title.asia_hub_great_peering_far_from":"Asia hub. Great peering, far from home.",
|
||||||
"title.back_to_my_network":"Back to my network",
|
"title.back_to_my_network":"Back to my network",
|
||||||
"title.big_hungry_market_few_providers":"Big hungry market, few providers.",
|
"title.big_hungry_market_few_providers":"Big hungry market, few providers.",
|
||||||
"title.build_an_internet_lay_fiber_between":"Build an internet. Lay fiber between cities, buy transit, peer at exchanges, sign up businesses, and keep the eyeballs happy while backhoes, sharks and route leaks do their best to stop you.",
|
"title.build_an_internet_lay_fiber_between":"Build an internet. Lay fiber between cities, buy transit, peer at exchanges, sign up businesses, and keep the eyeballs happy while backhoes, sharks and route leaks do their best to stop you.",
|
||||||
|
"title.chaos_in_your_sandbox":"Chaos in your sandbox",
|
||||||
"title.chat_on_signal":"Chat on Signal",
|
"title.chat_on_signal":"Chat on Signal",
|
||||||
"title.choose":"Choose…",
|
"title.choose":"Choose…",
|
||||||
"title.continue_name_date":"Continue {name} · {date}",
|
"title.continue_name_date":"Continue {name} · {date}",
|
||||||
"title.cookieless_stats_no_tracking":"Cookieless stats, no tracking",
|
"title.cookieless_stats_no_tracking":"Cookieless stats, no tracking",
|
||||||
"title.crossroads_of_europe_de_kicks_ix":"Crossroads of Europe. DE-KICKS IX, cheap transit.",
|
"title.crossroads_of_europe_de_kicks_ix":"Crossroads of Europe. DE-KICKS IX, cheap transit.",
|
||||||
|
"title.hand_built_crises_and_one_world":"Hand-built crises, and one world for everyone each week.",
|
||||||
"title.hard_mode_pricey_everything":"Hard mode. Pricey everything, and the wildlife wants you dead.",
|
"title.hard_mode_pricey_everything":"Hard mode. Pricey everything, and the wildlife wants you dead.",
|
||||||
|
"title.how_much_trouble":"How much trouble?",
|
||||||
"title.huge_eyeball_market_pricey":"Huge eyeball market. Pricey neighbours.",
|
"title.huge_eyeball_market_pricey":"Huge eyeball market. Pricey neighbours.",
|
||||||
"title.n_more_cities_with_transit":{"one":"{n} more city with transit to buy","other":"{n} more cities with transit to buy"},
|
"title.n_more_cities_with_transit":{"one":"{n} more city with transit to buy","other":"{n} more cities with transit to buy"},
|
||||||
"title.name_your_network":"Name your network",
|
"title.name_your_network":"Name your network",
|
||||||
"title.new_in_series_of_tubes_v":"New in Series of Tubes {v}",
|
"title.new_in_series_of_tubes_v":"New in Series of Tubes {v}",
|
||||||
|
"title.one_network_one_knot_no_clock":"One network, one knot to untie. No clock.",
|
||||||
|
"title.pick_a_door":"Pick a door",
|
||||||
"title.pick_your_home_city":"Pick your home city",
|
"title.pick_your_home_city":"Pick your home city",
|
||||||
"title.scenarios_amp_weekly_challenge":"Scenarios & weekly challenge →",
|
"title.puzzles":"Puzzles",
|
||||||
|
"title.puzzles_are_coming_soon":"<b>Puzzles are coming soon.</b><br>The knots are still being tied.",
|
||||||
|
"title.rules_are_picked_once_and_locked":"The rules are picked once and locked for this network. No changing the deal mid-game.",
|
||||||
|
"title.scenarios_amp_weekly":"Scenarios & weekly",
|
||||||
"title.source_on_github":"Source on GitHub",
|
"title.source_on_github":"Source on GitHub",
|
||||||
|
"title.the_real_game_climb_from_tier":"The real game: climb from Tier 3 to Tier 1.",
|
||||||
"title.your_network_name_was_saved_and":"Your network {name} was saved and is waiting for you.",
|
"title.your_network_name_was_saved_and":"Your network {name} was saved and is waiting for you.",
|
||||||
"traceroute.across_the_ix_switch":"across the {ix} switch",
|
"traceroute.across_the_ix_switch":"across the {ix} switch",
|
||||||
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
"traceroute.as_path_path":"<b>AS path:</b> {path}",
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,23 @@ input.t{width:100%;box-sizing:border-box;border:3px solid var(--ink);border-radi
|
||||||
.start b{font-family:var(--display);font-size:17px;display:block}
|
.start b{font-family:var(--display);font-size:17px;display:block}
|
||||||
.start span{font-size:12px;color:var(--ink2);line-height:1.3;display:block}
|
.start span{font-size:12px;color:var(--ink2);line-height:1.3;display:block}
|
||||||
/* Home cities: compact tiles stacked in one column, the dropdown for any other city last. */
|
/* Home cities: compact tiles stacked in one column, the dropdown for any other city last. */
|
||||||
|
/* Title screen doors (modes), Normal's presets and Sandbox's chaos: chunky sticker tiles, one tap each. */
|
||||||
|
.doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
|
||||||
|
.door,.preset,.chs{position:relative;border:3px solid var(--ink);border-radius:16px;background:var(--paper);box-shadow:0 4px 0 var(--ink);cursor:pointer;text-align:left;padding:9px 11px 8px;display:flex;flex-direction:column;gap:1px;min-width:0;transition:transform .08s ease,box-shadow .08s ease}
|
||||||
|
.door:active,.preset:active,.chs:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
|
||||||
|
.door i,.preset i,.chs i{font-style:normal;font-size:26px;line-height:1.1}
|
||||||
|
.door b,.preset b,.chs b{font-family:var(--display);font-size:18px;line-height:1.1}
|
||||||
|
.door span,.preset span,.chs span{font-size:12.5px;color:var(--ink2);line-height:1.3}
|
||||||
|
.door.on,.preset.on,.chs.on{background:#FFE3F0;border-color:var(--me);box-shadow:0 4px 0 var(--me)}
|
||||||
|
.door.on::after,.preset.on::after,.chs.on::after{content:"✓";position:absolute;top:6px;right:9px;font:900 15px var(--display);color:var(--me)}
|
||||||
|
.door[data-door=puzzle],.door[data-door=scn]{background:var(--soft)}
|
||||||
|
.presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
|
||||||
|
.preset small{font-size:11px;color:var(--ink2);line-height:1.3;margin-top:4px;border-top:2px dashed var(--line);padding-top:4px}
|
||||||
|
.preset[data-preset=bgp].on{background:#FFE9D6;border-color:#FF6A2B;box-shadow:0 4px 0 #FF6A2B}.preset[data-preset=bgp].on::after{color:#FF6A2B}
|
||||||
|
.preset[data-preset=freeze].on{background:#E2F5FF;border-color:var(--sea2);box-shadow:0 4px 0 var(--sea2)}.preset[data-preset=freeze].on::after{color:var(--sea2)}
|
||||||
|
.chaos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
|
||||||
|
.chs{padding:7px 8px 6px}.chs i{font-size:20px}.chs b{font-size:15px}.chs span{font-size:11px}
|
||||||
|
.lockn{margin:8px 0 0}
|
||||||
.starts.homes{display:flex;flex-direction:column;gap:6px}
|
.starts.homes{display:flex;flex-direction:column;gap:6px}
|
||||||
.homes .start{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:2px;padding:6px 12px;box-shadow:0 2px 0 var(--ink)}
|
.homes .start{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:2px;padding:6px 12px;box-shadow:0 2px 0 var(--ink)}
|
||||||
.homes .start.on{box-shadow:0 2px 0 var(--me)}
|
.homes .start.on{box-shadow:0 2px 0 var(--me)}
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,12 @@ button,.chip,.b,a{touch-action:manipulation;-webkit-tap-highlight-color:transpar
|
||||||
#modal .cta{position:sticky;bottom:calc(-16px - env(safe-area-inset-bottom,0px));z-index:1;background:var(--paper);margin:12px -16px 0 !important;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:2px solid var(--line)}
|
#modal .cta{position:sticky;bottom:calc(-16px - env(safe-area-inset-bottom,0px));z-index:1;background:var(--paper);margin:12px -16px 0 !important;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:2px solid var(--line)}
|
||||||
.title-art h1{font-size:34px}.title-art svg{width:54px;height:54px}
|
.title-art h1{font-size:34px}.title-art svg{width:54px;height:54px}
|
||||||
.tagline{font-size:13.5px;margin:8px 0 10px}
|
.tagline{font-size:13.5px;margin:8px 0 10px}
|
||||||
|
.door{padding:7px 9px 6px}.door i{font-size:22px}.door b{font-size:16px}.door span{font-size:11.5px}
|
||||||
|
.presets{grid-template-columns:1fr;gap:6px}
|
||||||
|
.preset{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;padding:6px 10px}
|
||||||
|
.preset i{grid-row:1/4;font-size:24px}.preset b{font-size:16px}.preset span,.preset small{grid-column:2}
|
||||||
|
.preset small{border-top:0;padding-top:0;margin-top:1px}
|
||||||
|
.chaos{grid-template-columns:repeat(2,minmax(0,1fr))}
|
||||||
#modal .card{box-sizing:border-box;width:100%;max-height:calc(100% - env(safe-area-inset-top,0px) - 24px);border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-bottom:0}
|
#modal .card{box-sizing:border-box;width:100%;max-height:calc(100% - env(safe-area-inset-top,0px) - 24px);border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-bottom:0}
|
||||||
#dash{padding:calc(env(safe-area-inset-top,0px) + 6px) 0 0}
|
#dash{padding:calc(env(safe-area-inset-top,0px) + 6px) 0 0}
|
||||||
#dash>.card{border-radius:20px 20px 0 0;min-height:100%}
|
#dash>.card{border-radius:20px 20px 0 0;min-height:100%}
|
||||||
|
|
@ -72,6 +78,8 @@ button,.chip,.b,a{touch-action:manipulation;-webkit-tap-highlight-color:transpar
|
||||||
#left,#panel{left:auto !important;right:0 !important;width:min(440px,58%) !important;top:calc(env(safe-area-inset-top,0px) + 50px) !important;max-height:none !important;border-radius:20px 0 0 0 !important;border-right:0 !important}
|
#left,#panel{left:auto !important;right:0 !important;width:min(440px,58%) !important;top:calc(env(safe-area-inset-top,0px) + 50px) !important;max-height:none !important;border-radius:20px 0 0 0 !important;border-right:0 !important}
|
||||||
#left.full,#panel.full{width:min(640px,80%) !important}
|
#left.full,#panel.full{width:min(640px,80%) !important}
|
||||||
#tabbar button .ic{font-size:16px}
|
#tabbar button .ic{font-size:16px}
|
||||||
|
.doors{grid-template-columns:repeat(4,minmax(0,1fr))}.chaos{grid-template-columns:repeat(4,minmax(0,1fr))}
|
||||||
|
.presets{grid-template-columns:repeat(3,minmax(0,1fr))}.preset{display:flex}
|
||||||
body.sheet-open #coach{bottom:calc(var(--tabbar) + 8px);left:8px;transform:none;width:calc(42% - 16px)}
|
body.sheet-open #coach{bottom:calc(var(--tabbar) + 8px);left:8px;transform:none;width:calc(42% - 16px)}
|
||||||
}
|
}
|
||||||
/* Installed as an app: no browser chrome, so leave room for the notch and the home indicator. */
|
/* Installed as an app: no browser chrome, so leave room for the notch and the home indicator. */
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ const { load, seed } = require('./harness');
|
||||||
|
|
||||||
test('daily DDoS spawns share one routing calculation and score their first active day', () => {
|
test('daily DDoS spawns share one routing calculation and score their first active day', () => {
|
||||||
const { ev, errors } = load();
|
const { ev, errors } = load();
|
||||||
// The busier DDoS schedule needs spicy chaos (or gaming customers): stand in for the chaos rule here.
|
// The busier DDoS schedule needs spicy chaos (BGP at 3 a.m.) or gaming customers.
|
||||||
ev("window.rule=k=>k==='chaos'?'spicy':undefined;ACT.start({});S.cash=1e9;S.day=50;S.nextFail=1e9;S.nextEvent=1e9;ACT.launchBB({city:'fra'});S.pops.fra.bb.d=200;ACT.buyTransit({city:'fra',net:'cog',tier:1});compute();window.__compute=compute;window.__random=Math.random;window.__computes=0;compute=()=>{window.__computes++;window.__compute()};Math.random=()=>0;dayTick();compute=window.__compute;Math.random=window.__random");
|
ev("ACT.start({});S.rules=makeRules('bgp');S.cash=1e9;S.day=50;S.nextFail=1e9;S.nextEvent=1e9;ACT.launchBB({city:'fra'});S.pops.fra.bb.d=200;ACT.buyTransit({city:'fra',net:'cog',tier:1});compute();window.__compute=compute;window.__random=Math.random;window.__computes=0;compute=()=>{window.__computes++;window.__compute()};Math.random=()=>0;dayTick();compute=window.__compute;Math.random=window.__random");
|
||||||
assert.equal(ev('ddosAll().length'), 2, 'both daily spawn opportunities were used');
|
assert.equal(ev('ddosAll().length'), 2, 'both daily spawn opportunities were used');
|
||||||
assert.equal(ev('window.__computes'), 1, 'daily spawns do not reroute the whole network individually');
|
assert.equal(ev('window.__computes'), 1, 'daily spawns do not reroute the whole network individually');
|
||||||
assert.ok(ev('ddosAll().every(a=>a.worst===ddosSf(a))'), 'first-day service is recorded after routing');
|
assert.ok(ev('ddosAll().every(a=>a.worst===ddosSf(a))'), 'first-day service is recorded after routing');
|
||||||
|
|
@ -794,7 +794,7 @@ test('DDoS frequency rises with level and signed gaming customers, with a rollin
|
||||||
ev("S.offers=Array.from({length:50},()=>({type:'game'}));S.biz=[];S.lvl=1");
|
ev("S.offers=Array.from({length:50},()=>({type:'game'}));S.biz=[];S.lvl=1");
|
||||||
assert.equal(ev('ddosRate()'), base, 'unsigned offers do not attract attacks');
|
assert.equal(ev('ddosRate()'), base, 'unsigned offers do not attract attacks');
|
||||||
// Force every random spawn opportunity (with spicy chaos on), then verify each rolling seven-day window.
|
// Force every random spawn opportunity (with spicy chaos on), then verify each rolling seven-day window.
|
||||||
ev("window.rule=k=>k==='chaos'?'spicy':undefined;");
|
ev("S.rules=makeRules('bgp');");
|
||||||
ev('window.__starts=[];window.__oldRandom=Math.random;Math.random=()=>0');
|
ev('window.__starts=[];window.__oldRandom=Math.random;Math.random=()=>0');
|
||||||
for (let day = 50; day < 66; day++) {
|
for (let day = 50; day < 66; day++) {
|
||||||
ev(`S.day=${day};ddosTick();window.__starts.push(...ddosAll().filter(a=>a.start===S.day).map(a=>a.start))`);
|
ev(`S.day=${day};ddosTick();window.__starts.push(...ddosAll().filter(a=>a.start===S.day).map(a=>a.start))`);
|
||||||
|
|
@ -1006,7 +1006,7 @@ test('RackNet and TeamSpooked require signed gaming customers, bypass Flowspec,
|
||||||
|
|
||||||
test('normal DDoS starts average half an attack per week without gaming and never exceed a seven-per-week expected rate', () => {
|
test('normal DDoS starts average half an attack per week without gaming and never exceed a seven-per-week expected rate', () => {
|
||||||
const { ev, errors } = load();
|
const { ev, errors } = load();
|
||||||
ev("window.rule=k=>k==='chaos'?'spicy':undefined;ACT.start({});S.day=50");
|
ev("ACT.start({});S.rules=makeRules('bgp');S.day=50");
|
||||||
const checks = JSON.parse(ev(`
|
const checks = JSON.parse(ev(`
|
||||||
const oldAttack=ddosAttack,oldRandom=Math.random,out=[];
|
const oldAttack=ddosAttack,oldRandom=Math.random,out=[];
|
||||||
try {
|
try {
|
||||||
|
|
@ -1121,18 +1121,23 @@ test('the busier DDoS schedule needs spicy chaos or gaming customers; otherwise
|
||||||
ev("ACT.start({});S.cash=1e9;S.day=50;S.lvl=13;S.biz=[];S.nextFail=1e9;S.nextEvent=1e9");
|
ev("ACT.start({});S.cash=1e9;S.day=50;S.lvl=13;S.biz=[];S.nextFail=1e9;S.nextEvent=1e9");
|
||||||
const ticks = () => ev("(()=>{const old=Math.random,oa=ddosAttack;let n=0;ddosAttack=()=>{n++};Math.random=()=>0;try{for(let i=0;i<30;i++)ddosTick();}finally{Math.random=old;ddosAttack=oa;}return n;})()");
|
const ticks = () => ev("(()=>{const old=Math.random,oa=ddosAttack;let n=0;ddosAttack=()=>{n++};Math.random=()=>0;try{for(let i=0;i<30;i++)ddosTick();}finally{Math.random=old;ddosAttack=oa;}return n;})()");
|
||||||
assert.equal(ticks(), 0, 'no spicy chaos, no gamers: no extra schedule');
|
assert.equal(ticks(), 0, 'no spicy chaos, no gamers: no extra schedule');
|
||||||
// DDoS stays one of the regular incidents instead: fireFailure can still roll one.
|
|
||||||
// DDoS stays one of the regular incidents instead: some roll of fireFailure() still starts one.
|
// DDoS stays one of the regular incidents instead: some roll of fireFailure() still starts one.
|
||||||
assert.ok(ev("(()=>{const old=Math.random;try{for(let i=0;i<200;i++){const r=i/200;Math.random=()=>r;S.ev.ddos=null;S.ev.ddosMore=[];S.ddosStarts=[];fireFailure();if(ddosAll().length)return true;}return false;}finally{Math.random=old;}})()"), 'fireFailure can start an attack');
|
assert.ok(ev("(()=>{const old=Math.random;try{for(let i=0;i<200;i++){const r=i/200;Math.random=()=>r;S.ev.ddos=null;S.ev.ddosMore=[];S.ddosStarts=[];fireFailure();if(ddosAll().length)return true;}return false;}finally{Math.random=old;}})()"), 'fireFailure can start an attack');
|
||||||
ev("S.ev.ddos=null;S.ev.ddosMore=[];S.ddosStarts=[];S.inc=[]");
|
ev("S.ev.ddos=null;S.ev.ddosMore=[];S.ddosStarts=[];S.inc=[]");
|
||||||
ev("S.biz=[{type:'game',city:'fra',bw:5,rate:1,reqs:[]}]");
|
ev("S.biz=[{type:'game',city:'fra',bw:5,rate:1,reqs:[]}]");
|
||||||
assert.ok(ticks() > 0, 'gaming customers bring their own attacks');
|
assert.ok(ticks() > 0, 'gaming customers bring their own attacks');
|
||||||
ev("S.biz=[];window.rule=k=>k==='chaos'?'spicy':'calm'");
|
ev("S.biz=[];S.rules=makeRules('bgp')");
|
||||||
assert.ok(ticks() > 0, 'spicy chaos brings more attacks');
|
assert.ok(ticks() > 0, 'spicy chaos brings more attacks');
|
||||||
ev("window.rule=k=>k==='chaos'?'calm':undefined");
|
ev("S.rules=makeRules('freeze')");
|
||||||
assert.equal(ticks(), 0, 'any other chaos setting keeps them as on main');
|
assert.equal(ticks(), 0, 'Change Freeze has no attacks on either schedule');
|
||||||
|
ev("S.biz=[{type:'game',city:'fra',bw:5,rate:1,reqs:[]}]");
|
||||||
|
assert.equal(ticks(), 0, 'not even with gamers');
|
||||||
|
assert.ok(ev("(()=>{const old=Math.random;try{for(let i=0;i<200;i++){const r=i/200;Math.random=()=>r;S.ev.ddos=null;S.ev.ddosMore=[];S.ddosStarts=[];fireFailure();if(ddosAll().length)return false;}return true;}finally{Math.random=old;S.inc=[];}})()"), 'and fireFailure never rolls one');
|
||||||
|
ev("S.rules=makeRules('bgp');S.biz=[]");
|
||||||
|
assert.ok(ev("(()=>{const old=Math.random;try{for(let i=0;i<200;i++){const r=i/200;Math.random=()=>r;S.ev.ddos=null;S.ev.ddosMore=[];S.ddosStarts=[];fireFailure();if(ddosAll().length)return false;}return true;}finally{Math.random=old;S.inc=[];}})()"), 'spicy attacks come from their own schedule only, never twice');
|
||||||
|
ev("S.rules=makeRules('oncall')");
|
||||||
// Flood Season, not spicy: one flood at a time, 3 to 7 days apart, however old the scenario is.
|
// Flood Season, not spicy: one flood at a time, 3 to 7 days apart, however old the scenario is.
|
||||||
ev("delete window.rule;ACT.startScn({id:'flood',sure:1});S.biz=[]");
|
ev("ACT.startScn({id:'flood',sure:1});S.biz=[]");
|
||||||
const gaps = JSON.parse(ev("(()=>{const o=[];for(const d of [0,1000])for(const r of [0,0.999]){S.day=d;const old=Math.random;Math.random=()=>r;o.push(floodGap());Math.random=old;}return JSON.stringify(o);})()"));
|
const gaps = JSON.parse(ev("(()=>{const o=[];for(const d of [0,1000])for(const r of [0,0.999]){S.day=d;const old=Math.random;Math.random=()=>r;o.push(floodGap());Math.random=old;}return JSON.stringify(o);})()"));
|
||||||
assert.deepEqual(gaps, [3, 7, 3, 7]);
|
assert.deepEqual(gaps, [3, 7, 3, 7]);
|
||||||
ev("S.scn.nextDdos=S.day;ddosTick()");
|
ev("S.scn.nextDdos=S.day;ddosTick()");
|
||||||
|
|
|
||||||
|
|
@ -484,8 +484,8 @@ test('Flood Season keeps attacking and escalating after both success and timeout
|
||||||
const before = ev('S.day');
|
const before = ev('S.day');
|
||||||
ev('S.scn.nextDdos=S.day+1;S.day+=8;dayTick()');
|
ev('S.scn.nextDdos=S.day+1;S.day+=8;dayTick()');
|
||||||
assert.ok(ev('ddosAll().at(-1).start') > before, 'subsequent attacks keep coming');
|
assert.ok(ev('ddosAll().at(-1).start') > before, 'subsequent attacks keep coming');
|
||||||
// Escalating frequency belongs to spicy chaos (stood in for here); calmer games keep the old 3 to 7 days.
|
// Escalating frequency belongs to spicy chaos; calmer games keep the old 3 to 7 days.
|
||||||
ev("window.rule=k=>k==='chaos'?'spicy':undefined");
|
ev("S.rules.chaos='spicy'");
|
||||||
const gaps = JSON.parse(ev('const old=Math.random;Math.random=()=>0.5;S.day=0;const early=floodGap();S.day=1000;const late=floodGap();Math.random=old;JSON.stringify([early,late])'));
|
const gaps = JSON.parse(ev('const old=Math.random;Math.random=()=>0.5;S.day=0;const early=floodGap();S.day=1000;const late=floodGap();Math.random=old;JSON.stringify([early,late])'));
|
||||||
assert.ok(gaps[1] < gaps[0], 'frequency keeps increasing with scenario age');
|
assert.ok(gaps[1] < gaps[0], 'frequency keeps increasing with scenario age');
|
||||||
const sizes = JSON.parse(ev('const old=Math.random;Math.random=()=>0.9;S.day=0;ddosAttack();const early=ddosAll().at(-1).gbps;S.day=1000;ddosAttack();const late=ddosAll().at(-1).gbps;Math.random=old;JSON.stringify([early,late])'));
|
const sizes = JSON.parse(ev('const old=Math.random;Math.random=()=>0.9;S.day=0;ddosAttack();const early=ddosAll().at(-1).gbps;S.day=1000;ddosAttack();const late=ddosAll().at(-1).gbps;Math.random=old;JSON.stringify([early,late])'));
|
||||||
|
|
|
||||||
191
tests/rules.test.js
Normal file
191
tests/rules.test.js
Normal file
|
|
@ -0,0 +1,191 @@
|
||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const { load } = require('./harness');
|
||||||
|
|
||||||
|
const start = (ev, o) => ev(`beginGame('Rule Testers','fra',${JSON.stringify(o)});if(UI.pendGame)ACT.pitchSkip()`);
|
||||||
|
// Days of a quiet-ish network until n failures have fired, on a fixed seed.
|
||||||
|
const fails = (ev, days) => { ev("S.cash=1e9;ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});__reseed(4242)"); ev(`for(let i=0;i<${days};i++)dayTick()`); return ev('S.inc.length+S.stats.survived+(S.stats.incidents||0)'); };
|
||||||
|
|
||||||
|
test('an old save without rules loads as On-call, a sandbox save as Sandbox', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip()");
|
||||||
|
const old = JSON.parse(ev('JSON.stringify(S)')); delete old.rules;
|
||||||
|
ev(`S=migrate(JSON.parse(${JSON.stringify(JSON.stringify(old))}))`);
|
||||||
|
assert.equal(ev('rulePreset()'), 'oncall');
|
||||||
|
assert.deepEqual(JSON.parse(ev('JSON.stringify(S.rules)')), JSON.parse(ev("JSON.stringify(makeRules('oncall'))")));
|
||||||
|
assert.equal(ev("rule('chaos')"), 'normal');
|
||||||
|
assert.equal(ev('chaosMul()'), 1);
|
||||||
|
old.mode = 'sandbox';
|
||||||
|
ev(`S=migrate(JSON.parse(${JSON.stringify(JSON.stringify(old))}))`);
|
||||||
|
assert.equal(ev('rulePreset()'), 'sandbox');
|
||||||
|
assert.equal(ev("rule('money')"), 'infinite');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('rules survive save and load, and junk is repaired', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal', preset: 'bgp' });
|
||||||
|
assert.equal(ev('rulePreset()'), 'bgp');
|
||||||
|
ev("const t=JSON.stringify(packSave(S));S=migrate(JSON.parse(t))");
|
||||||
|
assert.equal(ev('rulePreset()'), 'bgp');
|
||||||
|
assert.equal(ev("rule('chaos')"), 'spicy');
|
||||||
|
ev("S.rules={preset:'freeze',chaos:'apocalypse',lead:42,market:'yes',mods:['ok',7,'<b>']};sanitize(S)");
|
||||||
|
assert.equal(ev('rulePreset()'), 'freeze');
|
||||||
|
assert.equal(ev("rule('chaos')"), 'calm', 'a bad value falls back to the preset');
|
||||||
|
assert.equal(ev("rule('lead')"), 'quick');
|
||||||
|
assert.equal(ev("rule('market')"), false);
|
||||||
|
assert.deepEqual(JSON.parse(ev('JSON.stringify(S.rules.mods)')), ['ok']);
|
||||||
|
ev("S.rules={preset:'nope'};sanitize(S)");
|
||||||
|
assert.equal(ev('rulePreset()'), 'oncall');
|
||||||
|
ev("S.rules='hello';sanitize(S)");
|
||||||
|
assert.equal(ev('rulePreset()'), 'oncall');
|
||||||
|
// a scenario always runs on On-call, whatever was asked for
|
||||||
|
ev("beginGame('X','nyc',{scn:SCN.find(s=>s.id==='spat'),preset:'freeze'})");
|
||||||
|
assert.equal(ev('rulePreset()'), 'oncall');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the title screen: four doors, three Normal presets, a chaos picker for Sandbox, at 360 px', () => {
|
||||||
|
const { ev, dom, errors } = load();
|
||||||
|
const doc = dom.window.document;
|
||||||
|
ev('window.innerWidth=360;showTitle()');
|
||||||
|
assert.equal(doc.querySelectorAll('#modal .door').length, 4);
|
||||||
|
assert.equal(doc.querySelectorAll('#modal .preset').length, 3);
|
||||||
|
assert.equal(doc.querySelectorAll('#modal .chs').length, 4);
|
||||||
|
assert.equal(doc.getElementById('doorSandbox').hidden, true);
|
||||||
|
assert.ok(doc.querySelector('.preset[data-preset=oncall].on'), 'On-call is the default');
|
||||||
|
doc.querySelector('.preset[data-preset=freeze]').click();
|
||||||
|
assert.ok(doc.querySelector('.preset[data-preset=freeze].on'));
|
||||||
|
doc.querySelector('.door[data-door=sandbox]').click();
|
||||||
|
assert.equal(doc.getElementById('doorSandbox').hidden, false);
|
||||||
|
assert.equal(doc.getElementById('doorNormal').hidden, true);
|
||||||
|
doc.querySelector('.chs[data-chaos=spicy]').click();
|
||||||
|
doc.querySelector('.door[data-door=puzzle]').click();
|
||||||
|
assert.match(doc.getElementById('toasts').textContent, /coming soon/, 'puzzles are not here yet');
|
||||||
|
doc.querySelector('.door[data-door=normal]').click();
|
||||||
|
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip()");
|
||||||
|
assert.equal(ev('rulePreset()'), 'freeze');
|
||||||
|
assert.match(ev("document.getElementById('hAsn').textContent"), /Change Freeze/);
|
||||||
|
assert.match(ev("document.getElementById('hAsn').title"), /locked/);
|
||||||
|
ev('showTitle()');
|
||||||
|
doc.querySelector('.door[data-door=sandbox]').click();
|
||||||
|
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip()");
|
||||||
|
assert.equal(ev('S.mode'), 'sandbox');
|
||||||
|
assert.equal(ev("rule('chaos')"), 'spicy', 'the sandbox remembers the chaos it was given');
|
||||||
|
ev('showTitle()');
|
||||||
|
doc.querySelector('.door[data-door=scn]').click();
|
||||||
|
assert.match(doc.getElementById('modalCard').textContent, /Weekly challenge/);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('On-call shows no extra tag; the share card names other presets', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal' });
|
||||||
|
assert.equal(ev('ruleTag()'), '');
|
||||||
|
assert.match(ev("document.getElementById('hAsn').textContent"), /^AS\d+$/);
|
||||||
|
start(ev, { mode: 'normal', preset: 'bgp' });
|
||||||
|
assert.match(ev('ruleTag()'), /BGP at 3/);
|
||||||
|
ev('ACT.share()');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Sandbox lays its own subsea cable without being Tier 1, and passes the level gates', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'sandbox' });
|
||||||
|
assert.equal(ev('gatesOpen()'), true);
|
||||||
|
assert.equal(ev('S.won'), false);
|
||||||
|
assert.equal(ev('lvl()'), ev('LEVELS.length'));
|
||||||
|
ev("ACT.buildPop({city:'lon'});ACT.buildPop({city:'nyc'});compute()");
|
||||||
|
assert.equal(ev("ownCabWhy('lon','nyc')"), '');
|
||||||
|
ev("UI.lmode='df';UI.via=null;openLinkModal('lon','nyc');ACT.ownCab()");
|
||||||
|
assert.match(ev("document.getElementById('modalCard').textContent"), /frankly rude amount of money/);
|
||||||
|
ev('ACT.orderCable()');
|
||||||
|
assert.ok(ev("S.links.some(l=>l.own&&l.sub)"), 'the cable is being laid');
|
||||||
|
// and the normal game still says Tier 1 only
|
||||||
|
start(ev, { mode: 'normal' });
|
||||||
|
assert.match(ev("ownCabWhy('lon','nyc')"), /Tier 1/);
|
||||||
|
assert.equal(ev('lvl()'), 1);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Sandbox chaos: none by default, but it can be asked for', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'sandbox' });
|
||||||
|
assert.equal(ev("rule('chaos')"), 'none');
|
||||||
|
ev('S.cash=5;for(let i=0;i<150;i++)dayTick()');
|
||||||
|
assert.equal(ev('S.stats.incidents'), 0);
|
||||||
|
assert.ok(ev('S.cash') >= 1e8);
|
||||||
|
start(ev, { mode: 'sandbox', rules: { chaos: 'spicy' } });
|
||||||
|
assert.equal(ev("rule('chaos')"), 'spicy');
|
||||||
|
ev("ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});for(let i=0;i<200;i++)dayTick()");
|
||||||
|
assert.ok(ev('S.stats.incidents') > 0, 'spicy sandboxes break');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Change Freeze breaks less than On-call, BGP at 3 a.m. more, on the same seed', () => {
|
||||||
|
const n = {};
|
||||||
|
for (const p of ['freeze', 'oncall', 'bgp']) {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal', preset: p });
|
||||||
|
n[p] = fails(ev, 720);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
}
|
||||||
|
assert.ok(n.freeze < n.oncall, `freeze ${n.freeze} < on-call ${n.oncall}`);
|
||||||
|
assert.ok(n.bgp > n.oncall, `bgp ${n.bgp} > on-call ${n.oncall}`);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('chaos stretches spicy outages and leaves On-call ones alone', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal', preset: 'bgp' });
|
||||||
|
ev("S.day=10;S.pops.fra.down=12;addInc({type:'crash',ref:'fra',until:12,msg:'x',cost:0})");
|
||||||
|
assert.equal(ev('S.inc[0].until'), 13);
|
||||||
|
assert.equal(ev('S.pops.fra.down'), 13, 'what it holds down lasts as long');
|
||||||
|
start(ev, { mode: 'normal' });
|
||||||
|
ev("S.day=10;S.pops.fra.down=12;addInc({type:'crash',ref:'fra',until:12,msg:'x',cost:0})");
|
||||||
|
assert.equal(ev('S.inc[0].until'), 12);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('quick lead times: PNIs, dark fiber and own builds arrive in days (#151)', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal', preset: 'freeze' });
|
||||||
|
ev("S.cash=1e9;S.lvl=4;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:1})");
|
||||||
|
const p = JSON.parse(ev("JSON.stringify(S.pni.find(x=>x.net==='nfx'))"));
|
||||||
|
assert.ok(p && p.ready - ev('S.day') <= 37, `PNI in days (${p && p.ready - ev('S.day')})`);
|
||||||
|
assert.ok(ev('dfBuildDays(500)') <= 40);
|
||||||
|
assert.equal(ev('leadDays(30)'), 3);
|
||||||
|
// On-call: as quoted
|
||||||
|
start(ev, { mode: 'normal' });
|
||||||
|
assert.equal(ev('leadDays(30)'), 30);
|
||||||
|
assert.equal(ev('dfBuildDays(500)'), 245);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Change Freeze: no peering inbox, no hardware market, no sold-out routes', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal', preset: 'freeze' });
|
||||||
|
ev("S.cash=1e9;ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<60;i++)inboxDay(S.day+i)");
|
||||||
|
assert.equal(ev('S.inbox.items.length+S.inbox.seq'), 0, 'no mail');
|
||||||
|
ev('S.day=2000');
|
||||||
|
assert.equal(ev("hwMul('rt')"), 1, 'no inflation');
|
||||||
|
assert.equal(ev("hwCard()"), '');
|
||||||
|
assert.equal(ev("[0,1,2,3,4,5,6].some(t=>CITIES.slice(0,60).some(c=>soldOut('fra',c.id,t)))"), false);
|
||||||
|
start(ev, { mode: 'normal' });
|
||||||
|
ev('S.day=2000');
|
||||||
|
assert.ok(ev("hwMul('rt')") > 1, 'On-call keeps the market');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('no clock: dayTick advances no days, sends no bills, and the speed buttons hide', () => {
|
||||||
|
const { ev, errors } = load();
|
||||||
|
start(ev, { mode: 'normal' });
|
||||||
|
ev("S.rules=makeRules('puzzle');S.mode='puzzle';const c=S.cash;window.__c=c;for(let i=0;i<50;i++)dayTick();renderHUD()");
|
||||||
|
assert.equal(ev('S.day'), 0);
|
||||||
|
assert.equal(ev('S.cash'), ev('__c'));
|
||||||
|
assert.equal(ev("document.getElementById('sp1').hidden"), true);
|
||||||
|
ev("ACT.speed({v:4})");
|
||||||
|
assert.notEqual(ev('UI.speed'), 4);
|
||||||
|
ev("window.innerWidth=360;renderTabbar()");
|
||||||
|
assert.equal(ev("!!document.querySelector('#tabbar [data-act=phonePlay]')"), false);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue