Rent low-orbit satellite capacity from Starblink (#83)
A Starblink gateway on a teleport at a POP on your fiber (level 5, within 56 degrees of the equator) rents LEO circuits of 5 to 50 Gbps to small islands and remote towns within 1,200 km: a bent pipe 550 km up, about 30 ms round trip, 3% of the service counted as bad, and no selective network refuses it. LEO puts GEO and MEO circuits on the same pair on standby and waits beside a cable. The gateway's Infra section shows its POP's forwarding load and the fiber out of the city, the islands' bottleneck. A rare solar storm (and Pie's own) puts LEO in safe mode for a day or two. Once your own crust carries traffic Starblink sells nothing new. Rule O8. Hooks for island Wi-Fi: leoReachLL, leoKmLL, leoMsLL.
This commit is contained in:
parent
08eb349d87
commit
7967a29083
25 changed files with 692 additions and 46 deletions
|
|
@ -95,4 +95,5 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one
|
||||||
| O4 | Through space with lasers, light travels at c in vacuum (about 1.47 times glass), up and down at the shell's height; orbit never carries traffic between cities under 3,000 km apart and only latency-routed circuits fly: IP traffic, bulk and scenic circuits stay on fiber. | Real constellations win only on long routes, and their capacity is small. |
|
| O4 | Through space with lasers, light travels at c in vacuum (about 1.47 times glass), up and down at the shell's height; orbit never carries traffic between cities under 3,000 km apart and only latency-routed circuits fly: IP traffic, bulk and scenic circuits stay on fiber. | Real constellations win only on long routes, and their capacity is small. |
|
||||||
| O5 | Launches fail only with chaos on (`rule('chaos')`), and never in the first 90 days after the unlock; heavy test flights explode by design, not by chance. Orbit incidents and geopolitical spats (`pieChaos()`) follow the same rule. | Like F1: learn the thing before it punishes you. |
|
| O5 | Launches fail only with chaos on (`rule('chaos')`), and never in the first 90 days after the unlock; heavy test flights explode by design, not by chance. Orbit incidents and geopolitical spats (`pieChaos()`) follow the same rule. | Like F1: learn the thing before it punishes you. |
|
||||||
| O7 | A fresh Tier 1 cannot afford a full Shortcrust from its first year's money: even a big network's yearly profit plus the largest loan a bank would offer (and the Ex-Im Pie Bank's most) stays below the cheapest full build (`pieFullCost('short')`). And a full lasered Shortcrust, played through the game loop on the big-network save by a sensible policy (reusable rockets, two pads, no launches past the crust's size except replacements, safe mode in storms, dishes grown with demand at well-served POPs, every orbit offer signed), pays back on its own books (`S.pie.book`: every launch, replacement, dish, licence and running cost against orbit income) in 5 to 10 years, never sooner; government money (the Rural Digital Pie Fund, Pitcairn's satellite grant) brings that forward by at most two years, never under four (`tests/pie-balance.test.js`; `PIE_BALANCE_YEARS=10` prints the long run). | Obscenely expensive is the joke and the goal; a constellation in year one would be a cheat code. |
|
| O7 | A fresh Tier 1 cannot afford a full Shortcrust from its first year's money: even a big network's yearly profit plus the largest loan a bank would offer (and the Ex-Im Pie Bank's most) stays below the cheapest full build (`pieFullCost('short')`). And a full lasered Shortcrust, played through the game loop on the big-network save by a sensible policy (reusable rockets, two pads, no launches past the crust's size except replacements, safe mode in storms, dishes grown with demand at well-served POPs, every orbit offer signed), pays back on its own books (`S.pie.book`: every launch, replacement, dish, licence and running cost against orbit income) in 5 to 10 years, never sooner; government money (the Rural Digital Pie Fund, Pitcairn's satellite grant) brings that forward by at most two years, never under four (`tests/pie-balance.test.js`; `PIE_BALANCE_YEARS=10` prints the long run). | Obscenely expensive is the joke and the goal; a constellation in year one would be a cheat code. |
|
||||||
|
| O8 | Rented LEO (Starblink, #83) reaches only within `SAT_ORB.leo.km` of a gateway under its shell (`SAT_ORB.leo.lat`) at a POP on your fiber (the mainland, or an island with a lit wired link or transit); once a crust of your own carries traffic it sells nothing new (no gateway, circuit or growth), while circuits already rented keep running; and every size costs more per Gbps than any subsea wave over its whole reach. | A bent pipe is regional; the rented tier must not undercut your own constellation; and a cable stays the better buy wherever one can go. |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ All notable changes to this project are documented here. The project follows
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- Rent low-orbit satellite capacity from Starblink from level 5: islands near your fiber get circuits at about 30 ms round trip (#83). Host a Starblink gateway at a teleport on your fiber, then rent 5 to 50 Gbps to small islands and remote towns within 1,200 km of it. Users hardly notice the lag, and selective networks peer over it as over a cable; next to a cable it waits on standby, and a GEO or MEO circuit to the same island waits on standby beside it. Every island behind a gateway leans on that POP's routers and fiber, which its teleport section now shows, and a rare solar storm puts the circuits in safe mode for a day or two. Once your own constellation carries traffic, Starblink sells you nothing new.
|
||||||
- A POP you mark as a micro POP, medium POP or regional hub now keeps that kind's routers when you also have a build standard (#315). Its router model and count come from its kind: "Bring everything up now" and your intern no longer swap its routers or add more to meet the build standard, while the standard's other targets still apply there. The POP's router section says so.
|
- A POP you mark as a micro POP, medium POP or regional hub now keeps that kind's routers when you also have a build standard (#315). Its router model and count come from its kind: "Bring everything up now" and your intern no longer swap its routers or add more to meet the build standard, while the standard's other targets still apply there. The POP's router section says so.
|
||||||
- Send to another device now gives a multiplayer network its session link, on copies of the game you host yourself (#263). The link carries on with the network in the session on the other device, and pasting it under From another device opens it there too; the save file stays a copy that plays on alone.
|
- Send to another device now gives a multiplayer network its session link, on copies of the game you host yourself (#263). The link carries on with the network in the session on the other device, and pasting it under From another device opens it there too; the save file stays a copy that plays on alone.
|
||||||
- Buy it and sign no longer spends money on an offer your IPv4 space cannot take (#150). The button only shows once the deal's address block fits.
|
- Buy it and sign no longer spends money on an offer your IPv4 space cannot take (#150). The button only shows once the deal's address block fits.
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ in `pieV` saves. Remote cities (Pitcairn, Arctic) servable from orbit.
|
||||||
Rapid Unscheduled Disassembly, booster falls over, solar storm (safe mode), food fight (debris, rare,
|
Rapid Unscheduled Disassembly, booster falls over, solar storm (safe mode), food fight (debris, rare,
|
||||||
Space Roomba fix), rain fade, backhoe at the dish, astronomers (VisorSat), Founder posts at 3 a.m.,
|
Space Roomba fix), rain fade, backhoe at the dish, astronomers (VisorSat), Founder posts at 3 a.m.,
|
||||||
chaos monkey snips a laser link.
|
chaos monkey snips a laser link.
|
||||||
|
A solar storm also puts Starblink, the rented LEO tier at your teleports (#83), in safe mode for a day or two.
|
||||||
|
|
||||||
## Geopolitical spats (cartoon, even-handed, countries as data, never real leaders)
|
## Geopolitical spats (cartoon, even-handed, countries as data, never real leaders)
|
||||||
|
|
||||||
|
|
@ -112,6 +113,8 @@ open, paused when hidden, capped frame budget, fewer dots on phones. Final look
|
||||||
O1 gate, O2 half-baked carries nothing / capacity <= dishes, O3 disconnected dish no transit, O4 vacuum
|
O1 gate, O2 half-baked carries nothing / capacity <= dishes, O3 disconnected dish no transit, O4 vacuum
|
||||||
latency, never beats fiber < 3000 km, O5 chaos + 90 quiet days, O6 rideshare <= demand,
|
latency, never beats fiber < 3000 km, O5 chaos + 90 quiet days, O6 rideshare <= demand,
|
||||||
O7 fresh Tier 1 cannot afford a full Shortcrust in year 1; full constellation never pays back < 5 years.
|
O7 fresh Tier 1 cannot afford a full Shortcrust in year 1; full constellation never pays back < 5 years.
|
||||||
|
O8 (the rented LEO tier, #83): Starblink sells no new gateway, circuit or growth once a crust of yours carries
|
||||||
|
traffic; circuits already rented keep running, billed with the teleports, never on `S.pie.book`.
|
||||||
|
|
||||||
## Every change
|
## Every change
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,8 @@ const SEND = [
|
||||||
'teDeploy',
|
'teDeploy',
|
||||||
'teToggle',
|
'teToggle',
|
||||||
'teleBuild',
|
'teleBuild',
|
||||||
|
'teleLeo',
|
||||||
|
'teleLeoRm',
|
||||||
'teleRm',
|
'teleRm',
|
||||||
'teleTrk',
|
'teleTrk',
|
||||||
'togglePrem',
|
'togglePrem',
|
||||||
|
|
@ -429,6 +431,7 @@ const CONFIRM = {
|
||||||
rmScrub: 'scrub:{city}',
|
rmScrub: 'scrub:{city}',
|
||||||
rmSite: 'site{city}',
|
rmSite: 'site{city}',
|
||||||
salesFire: 'salesFire',
|
salesFire: 'salesFire',
|
||||||
|
teleLeoRm: 'leo:{city}',
|
||||||
teleRm: 'tele:{city}',
|
teleRm: 'tele:{city}',
|
||||||
};
|
};
|
||||||
// The UI.confirm key a preset act's first click writes (null for 'arg' acts and acts that do not confirm).
|
// The UI.confirm key a preset act's first click writes (null for 'arg' acts and acts that do not confirm).
|
||||||
|
|
|
||||||
|
|
@ -4778,16 +4778,33 @@
|
||||||
"satellites.cancel_n_circuits_first":{"one":"Kündige zuerst seine Satellitenverbindung.","other":"Kündige zuerst seine {n} Satellitenverbindungen."},
|
"satellites.cancel_n_circuits_first":{"one":"Kündige zuerst seine Satellitenverbindung.","other":"Kündige zuerst seine {n} Satellitenverbindungen."},
|
||||||
"satellites.choose":"Wählen",
|
"satellites.choose":"Wählen",
|
||||||
"satellites.circuit_ordered":{"one":"<b>{cap} auf {bird} bestellt.</b> {a} ⇄ {b} wird ausgerichtet und getestet: läuft in {n} Tag.","other":"<b>{cap} auf {bird} bestellt.</b> {a} ⇄ {b} wird ausgerichtet und getestet: läuft in {n} Tagen."},
|
"satellites.circuit_ordered":{"one":"<b>{cap} auf {bird} bestellt.</b> {a} ⇄ {b} wird ausgerichtet und getestet: läuft in {n} Tag.","other":"<b>{cap} auf {bird} bestellt.</b> {a} ⇄ {b} wird ausgerichtet und getestet: läuft in {n} Tagen."},
|
||||||
|
"satellites.close_the_leo_gateway":"LEO-Gateway schließen",
|
||||||
"satellites.close_the_teleport":"Teleport schließen",
|
"satellites.close_the_teleport":"Teleport schließen",
|
||||||
"satellites.costs_row":"Teleports und Satelliten",
|
"satellites.costs_row":"Teleports und Satelliten",
|
||||||
"satellites.geo_dishes":"GEO-Schüsseln",
|
"satellites.geo_dishes":"GEO-Schüsseln",
|
||||||
"satellites.geo_dishes_and_meo_tracking":"GEO-Schüsseln und MEO-Nachführantennen",
|
"satellites.geo_dishes_and_meo_tracking":"GEO-Schüsseln und MEO-Nachführantennen",
|
||||||
"satellites.geo_users_notice":"Aus 36.000 km Höhe dauert die Runde etwa 600 ms: Videocalls und Games ruckeln, und die Nutzer werten {p} des Service als schlecht.",
|
"satellites.geo_users_notice":"Aus 36.000 km Höhe dauert die Runde etwa 600 ms: Videocalls und Games ruckeln, und die Nutzer werten {p} des Service als schlecht.",
|
||||||
"satellites.grow_to":"Auf {cap} vergrößern",
|
"satellites.grow_to":"Auf {cap} vergrößern",
|
||||||
|
"satellites.host_leo_gateway_cost_mo":"LEO-Gateway <small>{cost} + {mo}/Monat</small>",
|
||||||
"satellites.in_view_list":"In Sicht: {list}.",
|
"satellites.in_view_list":"In Sicht: {list}.",
|
||||||
"satellites.it_waits_on_standby":"Zwischen den beiden hast du schon einen Link: Der Satellit wartet im Standby und trägt Traffic nur, wenn dieser Link ausfällt.",
|
"satellites.it_waits_on_standby":"Zwischen den beiden hast du schon einen Link: Der Satellit wartet im Standby und trägt Traffic nur, wenn dieser Link ausfällt.",
|
||||||
"satellites.its_blurb":"Klassische C- und Ku-Band-Strahlen, die einen ganzen Ozean abdecken. Zuverlässig, überall, und so bepreist.",
|
"satellites.its_blurb":"Klassische C- und Ku-Band-Strahlen, die einen ganzen Ozean abdecken. Zuverlässig, überall, und so bepreist.",
|
||||||
"satellites.kac_blurb":"Ka-Band-Spotbeams über dem Westpazifik: das billigste Gbps im Orbit, wenn deine Insel unter einem Beam liegt.",
|
"satellites.kac_blurb":"Ka-Band-Spotbeams über dem Westpazifik: das billigste Gbps im Orbit, wenn deine Insel unter einem Beam liegt.",
|
||||||
|
"satellites.leo_backhaul":"Glasfaser und Kabel aus {city} hinaus",
|
||||||
|
"satellites.leo_bottleneck":"{city} ist voll: Jede Insel hinter diesem Gateway wird mit ausgebremst. Stell hier mehr Router, eine größere Wave oder Transit hin.",
|
||||||
|
"satellites.leo_comes_at_level":"Kapazität im niedrigen Orbit (etwa 30 ms hin und zurück) kommt auf Level {lv}.",
|
||||||
|
"satellites.leo_gateway":"LEO-Gateway",
|
||||||
|
"satellites.leo_gateway_closed":"Das LEO-Gateway in {city} ist geschlossen.",
|
||||||
|
"satellites.leo_gateway_unwired":"Keine Glasfaser von dir verlässt {city} mehr: Die Inseln hinter diesem Gateway erreichen den Rest deines Netzes über einen weiteren Satelliten.",
|
||||||
|
"satellites.leo_gateway_up":"<b>{prov}-Gateway in {city} läuft.</b> Ihre Antennen auf deinem Dach: Miete von hier aus Kapazität im niedrigen Orbit zu Inseln im Umkreis von {km} km.",
|
||||||
|
"satellites.leo_landing":"Landet hier aus dem Orbit",
|
||||||
|
"satellites.leo_needs_fiber":"Ein LEO-Gateway muss an deiner Glasfaser hängen: {city} erreicht den Rest deines Netzes nur per Satellit. Lande dort zuerst ein Kabel oder eine Wave an, oder kauf Transit.",
|
||||||
|
"satellites.leo_no_rivals":"{prov} verkauft einer konkurrierenden Konstellation keine Kapazität, und deine fliegt schon: Stell stattdessen eine Pie-Schüssel auf die Insel.",
|
||||||
|
"satellites.leo_out_of_reach":"{prov} ist eine Bent Pipe: Ein Satellit muss dein Gateway und die Insel gleichzeitig sehen, also liegen sie höchstens {km} km auseinander. Von {a} nach {b} sind es {d} km.",
|
||||||
|
"satellites.leo_safe_mode_n_days":{"one":"Safe Mode wegen eines Sonnensturms: wieder da in {n} Tag.","other":"Safe Mode wegen eines Sonnensturms: wieder da in {n} Tagen."},
|
||||||
|
"satellites.leo_shell_misses_city":"{prov} erreicht {city} nicht: Seine Schalen decken {lat}° beiderseits des Äquators ab.",
|
||||||
|
"satellites.leo_storm_msg":"Ein geomagnetischer Sturm: {prov} schickt seine Satelliten in den Safe Mode. Deine LEO-Verbindungen tragen nichts, bis er vorbei ist; Verbindungen im Standby und Kabel übernehmen, was sie können.",
|
||||||
|
"satellites.leo_users_notice":"Bent Pipe aus 550 km Höhe, etwa 30 ms hin und zurück: Die Nutzer merken kaum etwas ({p} des Service gilt als schlecht), und selektive Netze peeren mit dir wie über ein Kabel. Sie landet an deinem Gateway in {city}: Wenn die Router oder die Glasfaser dieses POPs voll sind, wird jede Insel dahinter langsamer.",
|
||||||
"satellites.meo_comes_at_level":"Der MEO-Ring (etwa 130 ms hin und zurück) kommt auf Level {lv}.",
|
"satellites.meo_comes_at_level":"Der MEO-Ring (etwa 130 ms hin und zurück) kommt auf Level {lv}.",
|
||||||
"satellites.meo_ring_misses_city":"Der MEO-Ring sieht {city} nicht: Er deckt {lat}° beiderseits des Äquators ab.",
|
"satellites.meo_ring_misses_city":"Der MEO-Ring sieht {city} nicht: Er deckt {lat}° beiderseits des Äquators ab.",
|
||||||
"satellites.meo_users_notice":"Viel näher am Boden, etwa 130 ms hin und zurück: Die Nutzer merken kaum etwas ({p} des Service gilt als schlecht).",
|
"satellites.meo_users_notice":"Viel näher am Boden, etwa 130 ms hin und zurück: Die Nutzer merken kaum etwas ({p} des Service gilt als schlecht).",
|
||||||
|
|
@ -4796,7 +4813,9 @@
|
||||||
"satellites.ms_round_trip":"{ms} ms hin und zurück",
|
"satellites.ms_round_trip":"{ms} ms hin und zurück",
|
||||||
"satellites.n_birds_see_both":{"one":"{n} Satellit sieht beide","other":"{n} Satelliten sehen beide"},
|
"satellites.n_birds_see_both":{"one":"{n} Satellit sieht beide","other":"{n} Satelliten sehen beide"},
|
||||||
"satellites.n_circuits_go_on_standby":{"one":"Deine Satellitenverbindung zwischen {a} und {b} geht neben dem neuen Link in Standby: Sie trägt Traffic nur, wenn dieser Link ausfällt.","other":"Deine {n} Satellitenverbindungen zwischen {a} und {b} gehen neben dem neuen Link in Standby: Sie tragen Traffic nur, wenn dieser Link ausfällt."},
|
"satellites.n_circuits_go_on_standby":{"one":"Deine Satellitenverbindung zwischen {a} und {b} geht neben dem neuen Link in Standby: Sie trägt Traffic nur, wenn dieser Link ausfällt.","other":"Deine {n} Satellitenverbindungen zwischen {a} und {b} gehen neben dem neuen Link in Standby: Sie tragen Traffic nur, wenn dieser Link ausfällt."},
|
||||||
|
"satellites.n_in_leo_reach":{"one":"{n} Insel oder abgelegener Ort im Umkreis von {km} km um dieses Gateway.","other":"{n} Inseln und abgelegene Orte im Umkreis von {km} km um dieses Gateway."},
|
||||||
"satellites.n_places_in_reach":{"one":"{n} Insel oder abgelegener Ort in Reichweite auf deinem Level.","other":"{n} Inseln und abgelegene Orte in Reichweite auf deinem Level."},
|
"satellites.n_places_in_reach":{"one":"{n} Insel oder abgelegener Ort in Reichweite auf deinem Level.","other":"{n} Inseln und abgelegene Orte in Reichweite auf deinem Level."},
|
||||||
|
"satellites.needs_leo_gateway":"LEO-Kapazität braucht ein Gateway an deinem Teleport in {city}.",
|
||||||
"satellites.needs_tracking_antennas":"Der MEO-Ring braucht Nachführantennen an deinem Teleport in {city}.",
|
"satellites.needs_tracking_antennas":"Der MEO-Ring braucht Nachführantennen an deinem Teleport in {city}.",
|
||||||
"satellites.new_pop_cost":"neuer POP {cost}",
|
"satellites.new_pop_cost":"neuer POP {cost}",
|
||||||
"satellites.no_bird_sees_both":"Kein Satellit im Angebot sieht {a} und {b} zugleich.",
|
"satellites.no_bird_sees_both":"Kein Satellit im Angebot sieht {a} und {b} zugleich.",
|
||||||
|
|
@ -4820,9 +4839,11 @@
|
||||||
"satellites.rent_satellite_capacity":"Satellitenkapazität mieten",
|
"satellites.rent_satellite_capacity":"Satellitenkapazität mieten",
|
||||||
"satellites.satellite_capacity":"Satellitenkapazität",
|
"satellites.satellite_capacity":"Satellitenkapazität",
|
||||||
"satellites.satellites":"Satelliten",
|
"satellites.satellites":"Satelliten",
|
||||||
|
"satellites.sbk_blurb":"Tausende kleine Satelliten in 550 km Höhe, etwa 30 ms hin und zurück: der erste Satellit, über den sich deine Nutzer nicht beschweren. Alle paar Sekunden blinken sie von einem Satelliten zum nächsten; niemand merkt es.",
|
||||||
"satellites.sea_americas":"Amerika",
|
"satellites.sea_americas":"Amerika",
|
||||||
"satellites.sea_atlantic":"Atlantik",
|
"satellites.sea_atlantic":"Atlantik",
|
||||||
"satellites.sea_indian":"Indischer Ozean",
|
"satellites.sea_indian":"Indischer Ozean",
|
||||||
|
"satellites.sea_leo":"bis 56° um den Äquator, 550 km hoch",
|
||||||
"satellites.sea_pacific":"Pazifik",
|
"satellites.sea_pacific":"Pazifik",
|
||||||
"satellites.sea_tropics":"bis 50° um den Äquator",
|
"satellites.sea_tropics":"bis 50° um den Äquator",
|
||||||
"satellites.sea_west_pacific":"Westpazifik",
|
"satellites.sea_west_pacific":"Westpazifik",
|
||||||
|
|
@ -4835,6 +4856,7 @@
|
||||||
"satellites.tracking_antennas_up":"<b>Nachführantennen in {city} laufen.</b> Sie folgen dem MEO-Ring über den Himmel.",
|
"satellites.tracking_antennas_up":"<b>Nachführantennen in {city} laufen.</b> Sie folgen dem MEO-Ring über den Himmel.",
|
||||||
"satellites.up_in_n_days":{"one":"läuft in {n} Tag","other":"läuft in {n} Tagen"},
|
"satellites.up_in_n_days":{"one":"läuft in {n} Tag","other":"läuft in {n} Tagen"},
|
||||||
"satellites.users_notice_geo_meo":"Die Nutzer merken die Verzögerung: Breitband über GEO zählt als halber Service, über MEO fast als ganzer. Ein Kabel gewinnt immer, deine Router schicken Traffic also nur nach oben, wenn es keinen anderen Weg gibt.",
|
"satellites.users_notice_geo_meo":"Die Nutzer merken die Verzögerung: Breitband über GEO zählt als halber Service, über MEO fast als ganzer. Ein Kabel gewinnt immer, deine Router schicken Traffic also nur nach oben, wenn es keinen anderen Weg gibt.",
|
||||||
|
"satellites.users_notice_leo":"Über LEO, etwa 30 ms hin und zurück, merken die Nutzer kaum etwas, und selektive Netze peeren wie über ein Kabel. Neben einem Kabel wartet die Verbindung im Standby.",
|
||||||
"satellites.users_ride_a_satellite":"Nutzer hängen am Satelliten",
|
"satellites.users_ride_a_satellite":"Nutzer hängen am Satelliten",
|
||||||
"satellites.via_bird":"über {bird}",
|
"satellites.via_bird":"über {bird}",
|
||||||
"satellites.who_a_satellite_serves":"Satelliten bedienen kleine Inseln und abgelegene Orte, die derselbe Satellit sieht wie dein Teleport. Wähle das Ziel.",
|
"satellites.who_a_satellite_serves":"Satelliten bedienen kleine Inseln und abgelegene Orte, die derselbe Satellit sieht wie dein Teleport. Wähle das Ziel.",
|
||||||
|
|
|
||||||
|
|
@ -4776,16 +4776,33 @@
|
||||||
"satellites.cancel_n_circuits_first":{"one":"Primero cancela su circuito satelital.","other":"Primero cancela sus {n} circuitos satelitales."},
|
"satellites.cancel_n_circuits_first":{"one":"Primero cancela su circuito satelital.","other":"Primero cancela sus {n} circuitos satelitales."},
|
||||||
"satellites.choose":"Elegir",
|
"satellites.choose":"Elegir",
|
||||||
"satellites.circuit_ordered":{"one":"<b>{cap} en {bird} pedidos.</b> {a} ⇄ {b} se está apuntando y probando: listo en {n} día.","other":"<b>{cap} en {bird} pedidos.</b> {a} ⇄ {b} se está apuntando y probando: listo en {n} días."},
|
"satellites.circuit_ordered":{"one":"<b>{cap} en {bird} pedidos.</b> {a} ⇄ {b} se está apuntando y probando: listo en {n} día.","other":"<b>{cap} en {bird} pedidos.</b> {a} ⇄ {b} se está apuntando y probando: listo en {n} días."},
|
||||||
|
"satellites.close_the_leo_gateway":"Cerrar el gateway LEO",
|
||||||
"satellites.close_the_teleport":"Cerrar el teleport",
|
"satellites.close_the_teleport":"Cerrar el teleport",
|
||||||
"satellites.costs_row":"Teleports y satélites",
|
"satellites.costs_row":"Teleports y satélites",
|
||||||
"satellites.geo_dishes":"Antenas GEO",
|
"satellites.geo_dishes":"Antenas GEO",
|
||||||
"satellites.geo_dishes_and_meo_tracking":"Antenas GEO y antenas de seguimiento MEO",
|
"satellites.geo_dishes_and_meo_tracking":"Antenas GEO y antenas de seguimiento MEO",
|
||||||
"satellites.geo_users_notice":"Desde 36.000 km de altura la ida y vuelta tarda unos 600 ms: las videollamadas y los juegos se traban, y los usuarios cuentan {p} del servicio como malo.",
|
"satellites.geo_users_notice":"Desde 36.000 km de altura la ida y vuelta tarda unos 600 ms: las videollamadas y los juegos se traban, y los usuarios cuentan {p} del servicio como malo.",
|
||||||
"satellites.grow_to":"Ampliar a {cap}",
|
"satellites.grow_to":"Ampliar a {cap}",
|
||||||
|
"satellites.host_leo_gateway_cost_mo":"Gateway LEO <small>{cost} + {mo}/mes</small>",
|
||||||
"satellites.in_view_list":"A la vista: {list}.",
|
"satellites.in_view_list":"A la vista: {list}.",
|
||||||
"satellites.it_waits_on_standby":"Ya tienes un enlace entre estas dos: el satélite espera en reserva y solo lleva tráfico cuando ese enlace cae.",
|
"satellites.it_waits_on_standby":"Ya tienes un enlace entre estas dos: el satélite espera en reserva y solo lleva tráfico cuando ese enlace cae.",
|
||||||
"satellites.its_blurb":"Haces de banda C y Ku de toda la vida que cubren un océano entero. Fiables, en todas partes, y con precio a juego.",
|
"satellites.its_blurb":"Haces de banda C y Ku de toda la vida que cubren un océano entero. Fiables, en todas partes, y con precio a juego.",
|
||||||
"satellites.kac_blurb":"Haces puntuales en banda Ka sobre el Pacífico occidental: el Gbps más barato en órbita, si tu isla queda bajo un haz.",
|
"satellites.kac_blurb":"Haces puntuales en banda Ka sobre el Pacífico occidental: el Gbps más barato en órbita, si tu isla queda bajo un haz.",
|
||||||
|
"satellites.leo_backhaul":"Fibra y cables que salen de {city}",
|
||||||
|
"satellites.leo_bottleneck":"{city} está lleno: cada isla detrás de este gateway se frena con él. Pon aquí más routers, una wave más grande o tránsito.",
|
||||||
|
"satellites.leo_comes_at_level":"La capacidad en órbita baja (unos 30 ms de ida y vuelta) llega en el nivel {lv}.",
|
||||||
|
"satellites.leo_gateway":"Gateway LEO",
|
||||||
|
"satellites.leo_gateway_closed":"El gateway LEO de {city} está cerrado.",
|
||||||
|
"satellites.leo_gateway_unwired":"Ya no sale ninguna fibra tuya de {city}: las islas detrás de este gateway llegan al resto de tu red por otro satélite.",
|
||||||
|
"satellites.leo_gateway_up":"<b>Gateway de {prov} en marcha en {city}.</b> Sus antenas en tu tejado: alquila desde aquí capacidad en órbita baja hacia islas a menos de {km} km.",
|
||||||
|
"satellites.leo_landing":"Aterriza aquí desde la órbita",
|
||||||
|
"satellites.leo_needs_fiber":"Un gateway LEO tiene que estar sobre tu fibra: {city} solo llega al resto de tu red por satélite. Primero lleva allí un cable o una wave, o compra tránsito.",
|
||||||
|
"satellites.leo_no_rivals":"{prov} no vende capacidad a una constelación rival, y la tuya ya vuela: pon una antena-tarta en la isla.",
|
||||||
|
"satellites.leo_out_of_reach":"{prov} es un bent pipe: un satélite tiene que ver tu gateway y la isla a la vez, así que pueden estar como mucho a {km} km. De {a} a {b} hay {d} km.",
|
||||||
|
"satellites.leo_safe_mode_n_days":{"one":"Modo seguro por una tormenta solar: vuelve en {n} día.","other":"Modo seguro por una tormenta solar: vuelve en {n} días."},
|
||||||
|
"satellites.leo_shell_misses_city":"{prov} no llega a {city}: sus capas cubren {lat}° a cada lado del ecuador.",
|
||||||
|
"satellites.leo_storm_msg":"Una tormenta geomagnética: {prov} pone sus satélites en modo seguro. Tus circuitos LEO no llevan nada hasta que pase; los circuitos en reserva y los cables llevan lo que pueden.",
|
||||||
|
"satellites.leo_users_notice":"Bent pipe desde 550 km de altura, unos 30 ms de ida y vuelta: los usuarios apenas lo notan ({p} del servicio cuenta como malo), y las redes selectivas hacen peering contigo como por un cable. Aterriza en tu gateway de {city}: cuando los routers o la fibra de ese POP se llenan, cada isla detrás se frena.",
|
||||||
"satellites.meo_comes_at_level":"El anillo MEO (unos 130 ms de ida y vuelta) llega en el nivel {lv}.",
|
"satellites.meo_comes_at_level":"El anillo MEO (unos 130 ms de ida y vuelta) llega en el nivel {lv}.",
|
||||||
"satellites.meo_ring_misses_city":"El anillo MEO no ve {city}: cubre {lat}° a cada lado del ecuador.",
|
"satellites.meo_ring_misses_city":"El anillo MEO no ve {city}: cubre {lat}° a cada lado del ecuador.",
|
||||||
"satellites.meo_users_notice":"Mucho más cerca del suelo, unos 130 ms de ida y vuelta: los usuarios apenas lo notan ({p} del servicio cuenta como malo).",
|
"satellites.meo_users_notice":"Mucho más cerca del suelo, unos 130 ms de ida y vuelta: los usuarios apenas lo notan ({p} del servicio cuenta como malo).",
|
||||||
|
|
@ -4794,7 +4811,9 @@
|
||||||
"satellites.ms_round_trip":"{ms} ms de ida y vuelta",
|
"satellites.ms_round_trip":"{ms} ms de ida y vuelta",
|
||||||
"satellites.n_birds_see_both":{"one":"{n} satélite ve los dos","other":"{n} satélites ven los dos"},
|
"satellites.n_birds_see_both":{"one":"{n} satélite ve los dos","other":"{n} satélites ven los dos"},
|
||||||
"satellites.n_circuits_go_on_standby":{"one":"Tu circuito satelital entre {a} y {b} pasa a reserva junto al nuevo enlace: solo lleva tráfico cuando ese enlace cae.","other":"Tus {n} circuitos satelitales entre {a} y {b} pasan a reserva junto al nuevo enlace: solo llevan tráfico cuando ese enlace cae."},
|
"satellites.n_circuits_go_on_standby":{"one":"Tu circuito satelital entre {a} y {b} pasa a reserva junto al nuevo enlace: solo lleva tráfico cuando ese enlace cae.","other":"Tus {n} circuitos satelitales entre {a} y {b} pasan a reserva junto al nuevo enlace: solo llevan tráfico cuando ese enlace cae."},
|
||||||
|
"satellites.n_in_leo_reach":{"one":"{n} isla o pueblo remoto a menos de {km} km de este gateway.","other":"{n} islas y pueblos remotos a menos de {km} km de este gateway."},
|
||||||
"satellites.n_places_in_reach":{"one":"{n} isla o pueblo remoto a tu alcance en tu nivel.","other":"{n} islas y pueblos remotos a tu alcance en tu nivel."},
|
"satellites.n_places_in_reach":{"one":"{n} isla o pueblo remoto a tu alcance en tu nivel.","other":"{n} islas y pueblos remotos a tu alcance en tu nivel."},
|
||||||
|
"satellites.needs_leo_gateway":"La capacidad LEO necesita un gateway en tu teleport de {city}.",
|
||||||
"satellites.needs_tracking_antennas":"El anillo MEO necesita antenas de seguimiento en tu teleport de {city}.",
|
"satellites.needs_tracking_antennas":"El anillo MEO necesita antenas de seguimiento en tu teleport de {city}.",
|
||||||
"satellites.new_pop_cost":"POP nuevo {cost}",
|
"satellites.new_pop_cost":"POP nuevo {cost}",
|
||||||
"satellites.no_bird_sees_both":"Ningún satélite a la venta ve a la vez {a} y {b}.",
|
"satellites.no_bird_sees_both":"Ningún satélite a la venta ve a la vez {a} y {b}.",
|
||||||
|
|
@ -4818,9 +4837,11 @@
|
||||||
"satellites.rent_satellite_capacity":"Alquilar capacidad satelital",
|
"satellites.rent_satellite_capacity":"Alquilar capacidad satelital",
|
||||||
"satellites.satellite_capacity":"Capacidad satelital",
|
"satellites.satellite_capacity":"Capacidad satelital",
|
||||||
"satellites.satellites":"Satélites",
|
"satellites.satellites":"Satélites",
|
||||||
|
"satellites.sbk_blurb":"Miles de satélites pequeños a 550 km de altura, unos 30 ms de ida y vuelta: el primer satélite del que tus usuarios no se quejarán. Saltan de un satélite al siguiente cada pocos segundos; nadie lo nota.",
|
||||||
"satellites.sea_americas":"Américas",
|
"satellites.sea_americas":"Américas",
|
||||||
"satellites.sea_atlantic":"Atlántico",
|
"satellites.sea_atlantic":"Atlántico",
|
||||||
"satellites.sea_indian":"Océano Índico",
|
"satellites.sea_indian":"Océano Índico",
|
||||||
|
"satellites.sea_leo":"hasta 56° del ecuador, a 550 km de altura",
|
||||||
"satellites.sea_pacific":"Pacífico",
|
"satellites.sea_pacific":"Pacífico",
|
||||||
"satellites.sea_tropics":"hasta 50° del ecuador",
|
"satellites.sea_tropics":"hasta 50° del ecuador",
|
||||||
"satellites.sea_west_pacific":"Pacífico occidental",
|
"satellites.sea_west_pacific":"Pacífico occidental",
|
||||||
|
|
@ -4833,6 +4854,7 @@
|
||||||
"satellites.tracking_antennas_up":"<b>Antenas de seguimiento en marcha en {city}.</b> Siguen el anillo MEO por el cielo.",
|
"satellites.tracking_antennas_up":"<b>Antenas de seguimiento en marcha en {city}.</b> Siguen el anillo MEO por el cielo.",
|
||||||
"satellites.up_in_n_days":{"one":"listo en {n} día","other":"listo en {n} días"},
|
"satellites.up_in_n_days":{"one":"listo en {n} día","other":"listo en {n} días"},
|
||||||
"satellites.users_notice_geo_meo":"Los usuarios notan el retardo: la banda ancha por GEO cuenta como medio servicio, por MEO casi como el servicio entero. Un cable siempre gana, así que tus routers solo mandan tráfico arriba cuando no hay otro camino.",
|
"satellites.users_notice_geo_meo":"Los usuarios notan el retardo: la banda ancha por GEO cuenta como medio servicio, por MEO casi como el servicio entero. Un cable siempre gana, así que tus routers solo mandan tráfico arriba cuando no hay otro camino.",
|
||||||
|
"satellites.users_notice_leo":"Por LEO, unos 30 ms de ida y vuelta, los usuarios apenas lo notan, y las redes selectivas hacen peering como por un cable. Junto a un cable espera en reserva.",
|
||||||
"satellites.users_ride_a_satellite":"usuarios vía satélite",
|
"satellites.users_ride_a_satellite":"usuarios vía satélite",
|
||||||
"satellites.via_bird":"vía {bird}",
|
"satellites.via_bird":"vía {bird}",
|
||||||
"satellites.who_a_satellite_serves":"Los satélites sirven a islas pequeñas y pueblos remotos que ve el mismo satélite que tu teleport. Elige el destino.",
|
"satellites.who_a_satellite_serves":"Los satélites sirven a islas pequeñas y pueblos remotos que ve el mismo satélite que tu teleport. Elige el destino.",
|
||||||
|
|
|
||||||
|
|
@ -4776,16 +4776,33 @@
|
||||||
"satellites.cancel_n_circuits_first":{"one":"Résilie d’abord son circuit satellite.","other":"Résilie d’abord ses {n} circuits satellite."},
|
"satellites.cancel_n_circuits_first":{"one":"Résilie d’abord son circuit satellite.","other":"Résilie d’abord ses {n} circuits satellite."},
|
||||||
"satellites.choose":"Choisir",
|
"satellites.choose":"Choisir",
|
||||||
"satellites.circuit_ordered":{"one":"<b>{cap} sur {bird} commandé.</b> {a} ⇄ {b} est en cours de pointage et de test : en service dans {n} jour.","other":"<b>{cap} sur {bird} commandé.</b> {a} ⇄ {b} est en cours de pointage et de test : en service dans {n} jours."},
|
"satellites.circuit_ordered":{"one":"<b>{cap} sur {bird} commandé.</b> {a} ⇄ {b} est en cours de pointage et de test : en service dans {n} jour.","other":"<b>{cap} sur {bird} commandé.</b> {a} ⇄ {b} est en cours de pointage et de test : en service dans {n} jours."},
|
||||||
|
"satellites.close_the_leo_gateway":"Fermer la passerelle LEO",
|
||||||
"satellites.close_the_teleport":"Fermer le téléport",
|
"satellites.close_the_teleport":"Fermer le téléport",
|
||||||
"satellites.costs_row":"Téléports et satellites",
|
"satellites.costs_row":"Téléports et satellites",
|
||||||
"satellites.geo_dishes":"Paraboles GEO",
|
"satellites.geo_dishes":"Paraboles GEO",
|
||||||
"satellites.geo_dishes_and_meo_tracking":"Paraboles GEO et antennes de poursuite MEO",
|
"satellites.geo_dishes_and_meo_tracking":"Paraboles GEO et antennes de poursuite MEO",
|
||||||
"satellites.geo_users_notice":"Depuis 36 000 km d’altitude, l’aller-retour prend environ 600 ms : visios et jeux saccadent, et les utilisateurs comptent {p} du service comme mauvais.",
|
"satellites.geo_users_notice":"Depuis 36 000 km d’altitude, l’aller-retour prend environ 600 ms : visios et jeux saccadent, et les utilisateurs comptent {p} du service comme mauvais.",
|
||||||
"satellites.grow_to":"Passer à {cap}",
|
"satellites.grow_to":"Passer à {cap}",
|
||||||
|
"satellites.host_leo_gateway_cost_mo":"Passerelle LEO <small>{cost} + {mo}/mois</small>",
|
||||||
"satellites.in_view_list":"En vue : {list}.",
|
"satellites.in_view_list":"En vue : {list}.",
|
||||||
"satellites.it_waits_on_standby":"Tu as déjà un lien entre ces deux villes : le satellite attend en réserve et ne porte du trafic que quand ce lien tombe.",
|
"satellites.it_waits_on_standby":"Tu as déjà un lien entre ces deux villes : le satellite attend en réserve et ne porte du trafic que quand ce lien tombe.",
|
||||||
"satellites.its_blurb":"De bons vieux faisceaux en bande C et Ku qui couvrent tout un océan. Fiables, partout, et facturés en conséquence.",
|
"satellites.its_blurb":"De bons vieux faisceaux en bande C et Ku qui couvrent tout un océan. Fiables, partout, et facturés en conséquence.",
|
||||||
"satellites.kac_blurb":"Des spots en bande Ka sur le Pacifique occidental : le Gbps le moins cher en orbite, si ton île est sous un spot.",
|
"satellites.kac_blurb":"Des spots en bande Ka sur le Pacifique occidental : le Gbps le moins cher en orbite, si ton île est sous un spot.",
|
||||||
|
"satellites.leo_backhaul":"Fibre et câbles qui sortent de {city}",
|
||||||
|
"satellites.leo_bottleneck":"{city} est plein : chaque île derrière cette passerelle ralentit avec. Ajoute ici des routeurs, une wave plus grosse ou du transit.",
|
||||||
|
"satellites.leo_comes_at_level":"La capacité en orbite basse (environ 30 ms aller-retour) arrive au niveau {lv}.",
|
||||||
|
"satellites.leo_gateway":"Passerelle LEO",
|
||||||
|
"satellites.leo_gateway_closed":"La passerelle LEO de {city} est fermée.",
|
||||||
|
"satellites.leo_gateway_unwired":"Plus aucune fibre à toi ne sort de {city} : les îles derrière cette passerelle rejoignent le reste de ton réseau par un autre satellite.",
|
||||||
|
"satellites.leo_gateway_up":"<b>Passerelle {prov} en service à {city}.</b> Leurs antennes sur ton toit : loue d’ici de la capacité en orbite basse vers les îles à moins de {km} km.",
|
||||||
|
"satellites.leo_landing":"Arrive ici depuis l’orbite",
|
||||||
|
"satellites.leo_needs_fiber":"Une passerelle LEO doit être sur ta fibre : {city} ne rejoint le reste de ton réseau que par satellite. Amène-y d’abord un câble ou une wave, ou achète du transit.",
|
||||||
|
"satellites.leo_no_rivals":"{prov} ne vend pas de capacité à une constellation rivale, et la tienne vole déjà : mets plutôt une antenne-tarte sur l’île.",
|
||||||
|
"satellites.leo_out_of_reach":"{prov} est un bent pipe : un satellite doit voir ta passerelle et l’île en même temps, donc elles sont à {km} km au plus l’une de l’autre. De {a} à {b}, il y a {d} km.",
|
||||||
|
"satellites.leo_safe_mode_n_days":{"one":"Mode sans échec pendant une tempête solaire : de retour dans {n} jour.","other":"Mode sans échec pendant une tempête solaire : de retour dans {n} jours."},
|
||||||
|
"satellites.leo_shell_misses_city":"{prov} n’atteint pas {city} : ses couches couvrent {lat}° de part et d’autre de l’équateur.",
|
||||||
|
"satellites.leo_storm_msg":"Une tempête géomagnétique : {prov} met ses satellites en mode sans échec. Tes circuits LEO ne portent rien jusqu’à ce qu’elle passe ; les circuits en réserve et les câbles prennent ce qu’ils peuvent.",
|
||||||
|
"satellites.leo_users_notice":"Bent pipe depuis 550 km d’altitude, environ 30 ms aller-retour : les utilisateurs le remarquent à peine ({p} du service compte comme mauvais), et les réseaux sélectifs font du peering avec toi comme par un câble. Il arrive à ta passerelle de {city} : quand les routeurs ou la fibre de ce POP sont pleins, chaque île derrière ralentit.",
|
||||||
"satellites.meo_comes_at_level":"L’anneau MEO (environ 130 ms aller-retour) arrive au niveau {lv}.",
|
"satellites.meo_comes_at_level":"L’anneau MEO (environ 130 ms aller-retour) arrive au niveau {lv}.",
|
||||||
"satellites.meo_ring_misses_city":"L’anneau MEO ne voit pas {city} : il couvre {lat}° de part et d’autre de l’équateur.",
|
"satellites.meo_ring_misses_city":"L’anneau MEO ne voit pas {city} : il couvre {lat}° de part et d’autre de l’équateur.",
|
||||||
"satellites.meo_users_notice":"Bien plus près du sol, environ 130 ms aller-retour : les utilisateurs le remarquent à peine ({p} du service compte comme mauvais).",
|
"satellites.meo_users_notice":"Bien plus près du sol, environ 130 ms aller-retour : les utilisateurs le remarquent à peine ({p} du service compte comme mauvais).",
|
||||||
|
|
@ -4794,7 +4811,9 @@
|
||||||
"satellites.ms_round_trip":"{ms} ms aller-retour",
|
"satellites.ms_round_trip":"{ms} ms aller-retour",
|
||||||
"satellites.n_birds_see_both":{"one":"{n} satellite voit les deux","other":"{n} satellites voient les deux"},
|
"satellites.n_birds_see_both":{"one":"{n} satellite voit les deux","other":"{n} satellites voient les deux"},
|
||||||
"satellites.n_circuits_go_on_standby":{"one":"Ton circuit satellite entre {a} et {b} passe en réserve à côté du nouveau lien : il ne porte du trafic que quand ce lien tombe.","other":"Tes {n} circuits satellite entre {a} et {b} passent en réserve à côté du nouveau lien : ils ne portent du trafic que quand ce lien tombe."},
|
"satellites.n_circuits_go_on_standby":{"one":"Ton circuit satellite entre {a} et {b} passe en réserve à côté du nouveau lien : il ne porte du trafic que quand ce lien tombe.","other":"Tes {n} circuits satellite entre {a} et {b} passent en réserve à côté du nouveau lien : ils ne portent du trafic que quand ce lien tombe."},
|
||||||
|
"satellites.n_in_leo_reach":{"one":"{n} île ou ville isolée à moins de {km} km de cette passerelle.","other":"{n} îles et villes isolées à moins de {km} km de cette passerelle."},
|
||||||
"satellites.n_places_in_reach":{"one":"{n} île ou ville isolée à portée à ton niveau.","other":"{n} îles et villes isolées à portée à ton niveau."},
|
"satellites.n_places_in_reach":{"one":"{n} île ou ville isolée à portée à ton niveau.","other":"{n} îles et villes isolées à portée à ton niveau."},
|
||||||
|
"satellites.needs_leo_gateway":"La capacité LEO a besoin d’une passerelle à ton téléport de {city}.",
|
||||||
"satellites.needs_tracking_antennas":"L’anneau MEO a besoin d’antennes de poursuite à ton téléport de {city}.",
|
"satellites.needs_tracking_antennas":"L’anneau MEO a besoin d’antennes de poursuite à ton téléport de {city}.",
|
||||||
"satellites.new_pop_cost":"nouveau POP {cost}",
|
"satellites.new_pop_cost":"nouveau POP {cost}",
|
||||||
"satellites.no_bird_sees_both":"Aucun satellite en vente ne voit à la fois {a} et {b}.",
|
"satellites.no_bird_sees_both":"Aucun satellite en vente ne voit à la fois {a} et {b}.",
|
||||||
|
|
@ -4818,9 +4837,11 @@
|
||||||
"satellites.rent_satellite_capacity":"Louer de la capacité satellite",
|
"satellites.rent_satellite_capacity":"Louer de la capacité satellite",
|
||||||
"satellites.satellite_capacity":"Capacité satellite",
|
"satellites.satellite_capacity":"Capacité satellite",
|
||||||
"satellites.satellites":"Satellites",
|
"satellites.satellites":"Satellites",
|
||||||
|
"satellites.sbk_blurb":"Des milliers de petits satellites à 550 km d’altitude, environ 30 ms aller-retour : le premier satellite dont tes utilisateurs ne se plaindront pas. Ils clignent d’un satellite au suivant toutes les quelques secondes ; personne ne le remarque.",
|
||||||
"satellites.sea_americas":"Amériques",
|
"satellites.sea_americas":"Amériques",
|
||||||
"satellites.sea_atlantic":"Atlantique",
|
"satellites.sea_atlantic":"Atlantique",
|
||||||
"satellites.sea_indian":"Océan Indien",
|
"satellites.sea_indian":"Océan Indien",
|
||||||
|
"satellites.sea_leo":"jusqu’à 56° de l’équateur, à 550 km d’altitude",
|
||||||
"satellites.sea_pacific":"Pacifique",
|
"satellites.sea_pacific":"Pacifique",
|
||||||
"satellites.sea_tropics":"jusqu’à 50° de l’équateur",
|
"satellites.sea_tropics":"jusqu’à 50° de l’équateur",
|
||||||
"satellites.sea_west_pacific":"Pacifique occidental",
|
"satellites.sea_west_pacific":"Pacifique occidental",
|
||||||
|
|
@ -4833,6 +4854,7 @@
|
||||||
"satellites.tracking_antennas_up":"<b>Antennes de poursuite en service à {city}.</b> Elles suivent l’anneau MEO dans le ciel.",
|
"satellites.tracking_antennas_up":"<b>Antennes de poursuite en service à {city}.</b> Elles suivent l’anneau MEO dans le ciel.",
|
||||||
"satellites.up_in_n_days":{"one":"en service dans {n} jour","other":"en service dans {n} jours"},
|
"satellites.up_in_n_days":{"one":"en service dans {n} jour","other":"en service dans {n} jours"},
|
||||||
"satellites.users_notice_geo_meo":"Les utilisateurs sentent le délai : le haut débit par GEO compte pour la moitié du service, par MEO presque pour tout. Un câble gagne toujours, donc tes routeurs n’envoient du trafic là-haut que s’il n’y a pas d’autre chemin.",
|
"satellites.users_notice_geo_meo":"Les utilisateurs sentent le délai : le haut débit par GEO compte pour la moitié du service, par MEO presque pour tout. Un câble gagne toujours, donc tes routeurs n’envoient du trafic là-haut que s’il n’y a pas d’autre chemin.",
|
||||||
|
"satellites.users_notice_leo":"Par LEO, environ 30 ms aller-retour, les utilisateurs le remarquent à peine, et les réseaux sélectifs font du peering comme par un câble. À côté d’un câble, il attend en réserve.",
|
||||||
"satellites.users_ride_a_satellite":"utilisateurs sur satellite",
|
"satellites.users_ride_a_satellite":"utilisateurs sur satellite",
|
||||||
"satellites.via_bird":"via {bird}",
|
"satellites.via_bird":"via {bird}",
|
||||||
"satellites.who_a_satellite_serves":"Les satellites desservent les petites îles et les villes isolées que voit le même satellite que ton téléport. Choisis la destination.",
|
"satellites.who_a_satellite_serves":"Les satellites desservent les petites îles et les villes isolées que voit le même satellite que ton téléport. Choisis la destination.",
|
||||||
|
|
|
||||||
|
|
@ -4776,16 +4776,33 @@
|
||||||
"satellites.cancel_n_circuits_first":{"one":"Prima disdici il suo circuito satellitare.","other":"Prima disdici i suoi {n} circuiti satellitari."},
|
"satellites.cancel_n_circuits_first":{"one":"Prima disdici il suo circuito satellitare.","other":"Prima disdici i suoi {n} circuiti satellitari."},
|
||||||
"satellites.choose":"Scegli",
|
"satellites.choose":"Scegli",
|
||||||
"satellites.circuit_ordered":{"one":"<b>{cap} su {bird} ordinati.</b> {a} ⇄ {b} si sta puntando e testando: attivo tra {n} giorno.","other":"<b>{cap} su {bird} ordinati.</b> {a} ⇄ {b} si sta puntando e testando: attivo tra {n} giorni."},
|
"satellites.circuit_ordered":{"one":"<b>{cap} su {bird} ordinati.</b> {a} ⇄ {b} si sta puntando e testando: attivo tra {n} giorno.","other":"<b>{cap} su {bird} ordinati.</b> {a} ⇄ {b} si sta puntando e testando: attivo tra {n} giorni."},
|
||||||
|
"satellites.close_the_leo_gateway":"Chiudi il gateway LEO",
|
||||||
"satellites.close_the_teleport":"Chiudi il teleport",
|
"satellites.close_the_teleport":"Chiudi il teleport",
|
||||||
"satellites.costs_row":"Teleport e satelliti",
|
"satellites.costs_row":"Teleport e satelliti",
|
||||||
"satellites.geo_dishes":"Parabole GEO",
|
"satellites.geo_dishes":"Parabole GEO",
|
||||||
"satellites.geo_dishes_and_meo_tracking":"Parabole GEO e antenne a inseguimento MEO",
|
"satellites.geo_dishes_and_meo_tracking":"Parabole GEO e antenne a inseguimento MEO",
|
||||||
"satellites.geo_users_notice":"Da 36.000 km di quota il giro dura circa 600 ms: videochiamate e giochi scattano, e gli utenti contano {p} del servizio come pessimo.",
|
"satellites.geo_users_notice":"Da 36.000 km di quota il giro dura circa 600 ms: videochiamate e giochi scattano, e gli utenti contano {p} del servizio come pessimo.",
|
||||||
"satellites.grow_to":"Porta a {cap}",
|
"satellites.grow_to":"Porta a {cap}",
|
||||||
|
"satellites.host_leo_gateway_cost_mo":"Gateway LEO <small>{cost} + {mo}/mese</small>",
|
||||||
"satellites.in_view_list":"In vista: {list}.",
|
"satellites.in_view_list":"In vista: {list}.",
|
||||||
"satellites.it_waits_on_standby":"Tra queste due hai già un link: il satellite aspetta in standby e porta traffico solo quando quel link cade.",
|
"satellites.it_waits_on_standby":"Tra queste due hai già un link: il satellite aspetta in standby e porta traffico solo quando quel link cade.",
|
||||||
"satellites.its_blurb":"I classici fasci in banda C e Ku che coprono un oceano intero. Affidabili, ovunque, e con il prezzo che ne consegue.",
|
"satellites.its_blurb":"I classici fasci in banda C e Ku che coprono un oceano intero. Affidabili, ovunque, e con il prezzo che ne consegue.",
|
||||||
"satellites.kac_blurb":"Spot beam in banda Ka sul Pacifico occidentale: il Gbps più economico in orbita, se la tua isola sta sotto un fascio.",
|
"satellites.kac_blurb":"Spot beam in banda Ka sul Pacifico occidentale: il Gbps più economico in orbita, se la tua isola sta sotto un fascio.",
|
||||||
|
"satellites.leo_backhaul":"Fibra e cavi in uscita da {city}",
|
||||||
|
"satellites.leo_bottleneck":"{city} è pieno: ogni isola dietro questo gateway rallenta con lui. Aggiungi qui router, una wave più grande o transit.",
|
||||||
|
"satellites.leo_comes_at_level":"La capacità in orbita bassa (circa 30 ms andata e ritorno) arriva al livello {lv}.",
|
||||||
|
"satellites.leo_gateway":"Gateway LEO",
|
||||||
|
"satellites.leo_gateway_closed":"Il gateway LEO di {city} è chiuso.",
|
||||||
|
"satellites.leo_gateway_unwired":"Nessuna tua fibra esce più da {city}: le isole dietro questo gateway raggiungono il resto della tua rete con un altro satellite.",
|
||||||
|
"satellites.leo_gateway_up":"<b>Gateway {prov} attivo a {city}.</b> Le loro antenne sul tuo tetto: noleggia da qui capacità in orbita bassa verso le isole entro {km} km.",
|
||||||
|
"satellites.leo_landing":"Atterra qui dall’orbita",
|
||||||
|
"satellites.leo_needs_fiber":"Un gateway LEO deve stare sulla tua fibra: {city} raggiunge il resto della tua rete solo via satellite. Prima porta lì un cavo o una wave, o compra transit.",
|
||||||
|
"satellites.leo_no_rivals":"{prov} non vende capacità a una costellazione rivale, e la tua vola già: metti piuttosto una parabola-torta sull’isola.",
|
||||||
|
"satellites.leo_out_of_reach":"{prov} è un bent pipe: un satellite deve vedere il tuo gateway e l’isola insieme, quindi possono distare al massimo {km} km. Da {a} a {b} ci sono {d} km.",
|
||||||
|
"satellites.leo_safe_mode_n_days":{"one":"Modalità sicura per una tempesta solare: torna tra {n} giorno.","other":"Modalità sicura per una tempesta solare: torna tra {n} giorni."},
|
||||||
|
"satellites.leo_shell_misses_city":"{prov} non arriva a {city}: i suoi gusci coprono {lat}° a nord e a sud dell’equatore.",
|
||||||
|
"satellites.leo_storm_msg":"Una tempesta geomagnetica: {prov} mette i suoi satelliti in modalità sicura. I tuoi circuiti LEO non portano niente finché non passa; i circuiti in standby e i cavi prendono quello che possono.",
|
||||||
|
"satellites.leo_users_notice":"Bent pipe da 550 km di quota, circa 30 ms andata e ritorno: gli utenti se ne accorgono appena ({p} del servizio conta come pessimo), e le reti selettive fanno peering con te come su un cavo. Atterra al tuo gateway di {city}: quando i router o la fibra di quel POP si riempiono, ogni isola dietro rallenta.",
|
||||||
"satellites.meo_comes_at_level":"L’anello MEO (circa 130 ms andata e ritorno) arriva al livello {lv}.",
|
"satellites.meo_comes_at_level":"L’anello MEO (circa 130 ms andata e ritorno) arriva al livello {lv}.",
|
||||||
"satellites.meo_ring_misses_city":"L’anello MEO non vede {city}: copre {lat}° a nord e a sud dell’equatore.",
|
"satellites.meo_ring_misses_city":"L’anello MEO non vede {city}: copre {lat}° a nord e a sud dell’equatore.",
|
||||||
"satellites.meo_users_notice":"Molto più vicino a terra, circa 130 ms andata e ritorno: gli utenti se ne accorgono appena ({p} del servizio conta come pessimo).",
|
"satellites.meo_users_notice":"Molto più vicino a terra, circa 130 ms andata e ritorno: gli utenti se ne accorgono appena ({p} del servizio conta come pessimo).",
|
||||||
|
|
@ -4794,7 +4811,9 @@
|
||||||
"satellites.ms_round_trip":"{ms} ms andata e ritorno",
|
"satellites.ms_round_trip":"{ms} ms andata e ritorno",
|
||||||
"satellites.n_birds_see_both":{"one":"{n} satellite vede entrambe","other":"{n} satelliti vedono entrambe"},
|
"satellites.n_birds_see_both":{"one":"{n} satellite vede entrambe","other":"{n} satelliti vedono entrambe"},
|
||||||
"satellites.n_circuits_go_on_standby":{"one":"Il tuo circuito satellitare tra {a} e {b} va in standby accanto al nuovo link: porta traffico solo quando quel link cade.","other":"I tuoi {n} circuiti satellitari tra {a} e {b} vanno in standby accanto al nuovo link: portano traffico solo quando quel link cade."},
|
"satellites.n_circuits_go_on_standby":{"one":"Il tuo circuito satellitare tra {a} e {b} va in standby accanto al nuovo link: porta traffico solo quando quel link cade.","other":"I tuoi {n} circuiti satellitari tra {a} e {b} vanno in standby accanto al nuovo link: portano traffico solo quando quel link cade."},
|
||||||
|
"satellites.n_in_leo_reach":{"one":"{n} isola o città remota entro {km} km da questo gateway.","other":"{n} isole e città remote entro {km} km da questo gateway."},
|
||||||
"satellites.n_places_in_reach":{"one":"{n} isola o città remota a portata al tuo livello.","other":"{n} isole e città remote a portata al tuo livello."},
|
"satellites.n_places_in_reach":{"one":"{n} isola o città remota a portata al tuo livello.","other":"{n} isole e città remote a portata al tuo livello."},
|
||||||
|
"satellites.needs_leo_gateway":"La capacità LEO vuole un gateway al tuo teleport di {city}.",
|
||||||
"satellites.needs_tracking_antennas":"L’anello MEO vuole antenne a inseguimento al tuo teleport di {city}.",
|
"satellites.needs_tracking_antennas":"L’anello MEO vuole antenne a inseguimento al tuo teleport di {city}.",
|
||||||
"satellites.new_pop_cost":"nuovo POP {cost}",
|
"satellites.new_pop_cost":"nuovo POP {cost}",
|
||||||
"satellites.no_bird_sees_both":"Nessun satellite in vendita vede insieme {a} e {b}.",
|
"satellites.no_bird_sees_both":"Nessun satellite in vendita vede insieme {a} e {b}.",
|
||||||
|
|
@ -4818,9 +4837,11 @@
|
||||||
"satellites.rent_satellite_capacity":"Noleggia capacità satellitare",
|
"satellites.rent_satellite_capacity":"Noleggia capacità satellitare",
|
||||||
"satellites.satellite_capacity":"Capacità satellitare",
|
"satellites.satellite_capacity":"Capacità satellitare",
|
||||||
"satellites.satellites":"Satelliti",
|
"satellites.satellites":"Satelliti",
|
||||||
|
"satellites.sbk_blurb":"Migliaia di piccoli satelliti a 550 km di quota, circa 30 ms andata e ritorno: il primo satellite di cui i tuoi utenti non si lamenteranno. Saltano da un satellite all’altro ogni pochi secondi; nessuno se ne accorge.",
|
||||||
"satellites.sea_americas":"Americhe",
|
"satellites.sea_americas":"Americhe",
|
||||||
"satellites.sea_atlantic":"Atlantico",
|
"satellites.sea_atlantic":"Atlantico",
|
||||||
"satellites.sea_indian":"Oceano Indiano",
|
"satellites.sea_indian":"Oceano Indiano",
|
||||||
|
"satellites.sea_leo":"entro 56° dall’equatore, a 550 km di quota",
|
||||||
"satellites.sea_pacific":"Pacifico",
|
"satellites.sea_pacific":"Pacifico",
|
||||||
"satellites.sea_tropics":"entro 50° dall’equatore",
|
"satellites.sea_tropics":"entro 50° dall’equatore",
|
||||||
"satellites.sea_west_pacific":"Pacifico occidentale",
|
"satellites.sea_west_pacific":"Pacifico occidentale",
|
||||||
|
|
@ -4833,6 +4854,7 @@
|
||||||
"satellites.tracking_antennas_up":"<b>Antenne a inseguimento attive a {city}.</b> Seguono l’anello MEO nel cielo.",
|
"satellites.tracking_antennas_up":"<b>Antenne a inseguimento attive a {city}.</b> Seguono l’anello MEO nel cielo.",
|
||||||
"satellites.up_in_n_days":{"one":"attivo tra {n} giorno","other":"attivo tra {n} giorni"},
|
"satellites.up_in_n_days":{"one":"attivo tra {n} giorno","other":"attivo tra {n} giorni"},
|
||||||
"satellites.users_notice_geo_meo":"Gli utenti sentono il ritardo: la banda larga via GEO conta come mezzo servizio, via MEO quasi come tutto. Un cavo vince sempre, quindi i tuoi router mandano traffico lassù solo se non c’è altra strada.",
|
"satellites.users_notice_geo_meo":"Gli utenti sentono il ritardo: la banda larga via GEO conta come mezzo servizio, via MEO quasi come tutto. Un cavo vince sempre, quindi i tuoi router mandano traffico lassù solo se non c’è altra strada.",
|
||||||
|
"satellites.users_notice_leo":"Via LEO, circa 30 ms andata e ritorno, gli utenti se ne accorgono appena, e le reti selettive fanno peering come su un cavo. Accanto a un cavo aspetta in standby.",
|
||||||
"satellites.users_ride_a_satellite":"utenti via satellite",
|
"satellites.users_ride_a_satellite":"utenti via satellite",
|
||||||
"satellites.via_bird":"via {bird}",
|
"satellites.via_bird":"via {bird}",
|
||||||
"satellites.who_a_satellite_serves":"I satelliti servono piccole isole e città remote che lo stesso satellite vede insieme al tuo teleport. Scegli la destinazione.",
|
"satellites.who_a_satellite_serves":"I satelliti servono piccole isole e città remote che lo stesso satellite vede insieme al tuo teleport. Scegli la destinazione.",
|
||||||
|
|
|
||||||
|
|
@ -4776,16 +4776,33 @@
|
||||||
"satellites.cancel_n_circuits_first":{"one":"Cancele primeiro o circuito de satélite dele.","other":"Cancele primeiro os {n} circuitos de satélite dele."},
|
"satellites.cancel_n_circuits_first":{"one":"Cancele primeiro o circuito de satélite dele.","other":"Cancele primeiro os {n} circuitos de satélite dele."},
|
||||||
"satellites.choose":"Escolher",
|
"satellites.choose":"Escolher",
|
||||||
"satellites.circuit_ordered":{"one":"<b>{cap} no {bird} encomendados.</b> {a} ⇄ {b} está sendo apontado e testado: no ar em {n} dia.","other":"<b>{cap} no {bird} encomendados.</b> {a} ⇄ {b} está sendo apontado e testado: no ar em {n} dias."},
|
"satellites.circuit_ordered":{"one":"<b>{cap} no {bird} encomendados.</b> {a} ⇄ {b} está sendo apontado e testado: no ar em {n} dia.","other":"<b>{cap} no {bird} encomendados.</b> {a} ⇄ {b} está sendo apontado e testado: no ar em {n} dias."},
|
||||||
|
"satellites.close_the_leo_gateway":"Fechar o gateway LEO",
|
||||||
"satellites.close_the_teleport":"Fechar o teleporto",
|
"satellites.close_the_teleport":"Fechar o teleporto",
|
||||||
"satellites.costs_row":"Teleportos e satélites",
|
"satellites.costs_row":"Teleportos e satélites",
|
||||||
"satellites.geo_dishes":"Antenas GEO",
|
"satellites.geo_dishes":"Antenas GEO",
|
||||||
"satellites.geo_dishes_and_meo_tracking":"Antenas GEO e antenas de rastreamento MEO",
|
"satellites.geo_dishes_and_meo_tracking":"Antenas GEO e antenas de rastreamento MEO",
|
||||||
"satellites.geo_users_notice":"De 36.000 km de altura a ida e volta leva uns 600 ms: chamadas de vídeo e jogos travam, e os usuários contam {p} do serviço como ruim.",
|
"satellites.geo_users_notice":"De 36.000 km de altura a ida e volta leva uns 600 ms: chamadas de vídeo e jogos travam, e os usuários contam {p} do serviço como ruim.",
|
||||||
"satellites.grow_to":"Aumentar para {cap}",
|
"satellites.grow_to":"Aumentar para {cap}",
|
||||||
|
"satellites.host_leo_gateway_cost_mo":"Gateway LEO <small>{cost} + {mo}/mês</small>",
|
||||||
"satellites.in_view_list":"À vista: {list}.",
|
"satellites.in_view_list":"À vista: {list}.",
|
||||||
"satellites.it_waits_on_standby":"Você já tem um link entre as duas: o satélite espera de reserva e só leva tráfego quando esse link cai.",
|
"satellites.it_waits_on_standby":"Você já tem um link entre as duas: o satélite espera de reserva e só leva tráfego quando esse link cai.",
|
||||||
"satellites.its_blurb":"Feixes clássicos em banda C e Ku que cobrem um oceano inteiro. Confiáveis, em todo lugar, e com preço à altura.",
|
"satellites.its_blurb":"Feixes clássicos em banda C e Ku que cobrem um oceano inteiro. Confiáveis, em todo lugar, e com preço à altura.",
|
||||||
"satellites.kac_blurb":"Feixes pontuais em banda Ka sobre o Pacífico ocidental: o Gbps mais barato em órbita, se a sua ilha estiver debaixo de um feixe.",
|
"satellites.kac_blurb":"Feixes pontuais em banda Ka sobre o Pacífico ocidental: o Gbps mais barato em órbita, se a sua ilha estiver debaixo de um feixe.",
|
||||||
|
"satellites.leo_backhaul":"Fibra e cabos que saem de {city}",
|
||||||
|
"satellites.leo_bottleneck":"{city} está cheio: cada ilha atrás deste gateway fica lenta junto. Ponha aqui mais roteadores, uma wave maior ou trânsito.",
|
||||||
|
"satellites.leo_comes_at_level":"A capacidade em órbita baixa (uns 30 ms de ida e volta) chega no nível {lv}.",
|
||||||
|
"satellites.leo_gateway":"Gateway LEO",
|
||||||
|
"satellites.leo_gateway_closed":"O gateway LEO em {city} foi fechado.",
|
||||||
|
"satellites.leo_gateway_unwired":"Nenhuma fibra sua sai mais de {city}: as ilhas atrás deste gateway chegam ao resto da sua rede por outro satélite.",
|
||||||
|
"satellites.leo_gateway_up":"<b>Gateway da {prov} no ar em {city}.</b> As antenas deles no seu telhado: alugue daqui capacidade em órbita baixa para ilhas a até {km} km.",
|
||||||
|
"satellites.leo_landing":"Pousando aqui vindo da órbita",
|
||||||
|
"satellites.leo_needs_fiber":"Um gateway LEO precisa ficar na sua fibra: {city} só chega ao resto da sua rede por satélite. Leve primeiro um cabo ou uma wave até lá, ou compre trânsito.",
|
||||||
|
"satellites.leo_no_rivals":"A {prov} não vende capacidade para uma constelação rival, e a sua já está voando: ponha uma antena-torta na ilha.",
|
||||||
|
"satellites.leo_out_of_reach":"A {prov} é um bent pipe: um satélite precisa ver o seu gateway e a ilha ao mesmo tempo, então eles podem estar a no máximo {km} km. De {a} a {b} são {d} km.",
|
||||||
|
"satellites.leo_safe_mode_n_days":{"one":"Modo seguro por uma tempestade solar: volta em {n} dia.","other":"Modo seguro por uma tempestade solar: volta em {n} dias."},
|
||||||
|
"satellites.leo_shell_misses_city":"A {prov} não alcança {city}: as camadas dela cobrem {lat}° de cada lado do equador.",
|
||||||
|
"satellites.leo_storm_msg":"Uma tempestade geomagnética: a {prov} põe os satélites em modo seguro. Seus circuitos LEO não levam nada até ela passar; os circuitos de reserva e os cabos levam o que podem.",
|
||||||
|
"satellites.leo_users_notice":"Bent pipe a 550 km de altura, uns 30 ms de ida e volta: os usuários mal percebem ({p} do serviço conta como ruim), e as redes seletivas fazem peering com você como por um cabo. Ele pousa no seu gateway em {city}: quando os roteadores ou a fibra desse POP enchem, cada ilha atrás dele fica lenta.",
|
||||||
"satellites.meo_comes_at_level":"O anel MEO (uns 130 ms de ida e volta) chega no nível {lv}.",
|
"satellites.meo_comes_at_level":"O anel MEO (uns 130 ms de ida e volta) chega no nível {lv}.",
|
||||||
"satellites.meo_ring_misses_city":"O anel MEO não vê {city}: ele cobre {lat}° de cada lado do equador.",
|
"satellites.meo_ring_misses_city":"O anel MEO não vê {city}: ele cobre {lat}° de cada lado do equador.",
|
||||||
"satellites.meo_users_notice":"Muito mais perto do chão, uns 130 ms de ida e volta: os usuários mal percebem ({p} do serviço conta como ruim).",
|
"satellites.meo_users_notice":"Muito mais perto do chão, uns 130 ms de ida e volta: os usuários mal percebem ({p} do serviço conta como ruim).",
|
||||||
|
|
@ -4794,7 +4811,9 @@
|
||||||
"satellites.ms_round_trip":"{ms} ms de ida e volta",
|
"satellites.ms_round_trip":"{ms} ms de ida e volta",
|
||||||
"satellites.n_birds_see_both":{"one":"{n} satélite vê as duas","other":"{n} satélites veem as duas"},
|
"satellites.n_birds_see_both":{"one":"{n} satélite vê as duas","other":"{n} satélites veem as duas"},
|
||||||
"satellites.n_circuits_go_on_standby":{"one":"Seu circuito de satélite entre {a} e {b} fica de reserva ao lado do novo link: só leva tráfego quando esse link cai.","other":"Seus {n} circuitos de satélite entre {a} e {b} ficam de reserva ao lado do novo link: só levam tráfego quando esse link cai."},
|
"satellites.n_circuits_go_on_standby":{"one":"Seu circuito de satélite entre {a} e {b} fica de reserva ao lado do novo link: só leva tráfego quando esse link cai.","other":"Seus {n} circuitos de satélite entre {a} e {b} ficam de reserva ao lado do novo link: só levam tráfego quando esse link cai."},
|
||||||
|
"satellites.n_in_leo_reach":{"one":"{n} ilha ou cidade remota a até {km} km deste gateway.","other":"{n} ilhas e cidades remotas a até {km} km deste gateway."},
|
||||||
"satellites.n_places_in_reach":{"one":"{n} ilha ou cidade remota ao alcance no seu nível.","other":"{n} ilhas e cidades remotas ao alcance no seu nível."},
|
"satellites.n_places_in_reach":{"one":"{n} ilha ou cidade remota ao alcance no seu nível.","other":"{n} ilhas e cidades remotas ao alcance no seu nível."},
|
||||||
|
"satellites.needs_leo_gateway":"A capacidade LEO precisa de um gateway no seu teleporto em {city}.",
|
||||||
"satellites.needs_tracking_antennas":"O anel MEO precisa de antenas de rastreamento no seu teleporto em {city}.",
|
"satellites.needs_tracking_antennas":"O anel MEO precisa de antenas de rastreamento no seu teleporto em {city}.",
|
||||||
"satellites.new_pop_cost":"POP novo {cost}",
|
"satellites.new_pop_cost":"POP novo {cost}",
|
||||||
"satellites.no_bird_sees_both":"Nenhum satélite à venda vê {a} e {b} ao mesmo tempo.",
|
"satellites.no_bird_sees_both":"Nenhum satélite à venda vê {a} e {b} ao mesmo tempo.",
|
||||||
|
|
@ -4818,9 +4837,11 @@
|
||||||
"satellites.rent_satellite_capacity":"Alugar capacidade de satélite",
|
"satellites.rent_satellite_capacity":"Alugar capacidade de satélite",
|
||||||
"satellites.satellite_capacity":"Capacidade de satélite",
|
"satellites.satellite_capacity":"Capacidade de satélite",
|
||||||
"satellites.satellites":"Satélites",
|
"satellites.satellites":"Satélites",
|
||||||
|
"satellites.sbk_blurb":"Milhares de satélites pequenos a 550 km de altura, uns 30 ms de ida e volta: o primeiro satélite do qual seus usuários não vão reclamar. Eles piscam de um satélite para o próximo a cada poucos segundos; ninguém percebe.",
|
||||||
"satellites.sea_americas":"Américas",
|
"satellites.sea_americas":"Américas",
|
||||||
"satellites.sea_atlantic":"Atlântico",
|
"satellites.sea_atlantic":"Atlântico",
|
||||||
"satellites.sea_indian":"Oceano Índico",
|
"satellites.sea_indian":"Oceano Índico",
|
||||||
|
"satellites.sea_leo":"até 56° do equador, a 550 km de altura",
|
||||||
"satellites.sea_pacific":"Pacífico",
|
"satellites.sea_pacific":"Pacífico",
|
||||||
"satellites.sea_tropics":"até 50° do equador",
|
"satellites.sea_tropics":"até 50° do equador",
|
||||||
"satellites.sea_west_pacific":"Pacífico ocidental",
|
"satellites.sea_west_pacific":"Pacífico ocidental",
|
||||||
|
|
@ -4833,6 +4854,7 @@
|
||||||
"satellites.tracking_antennas_up":"<b>Antenas de rastreamento no ar em {city}.</b> Elas seguem o anel MEO pelo céu.",
|
"satellites.tracking_antennas_up":"<b>Antenas de rastreamento no ar em {city}.</b> Elas seguem o anel MEO pelo céu.",
|
||||||
"satellites.up_in_n_days":{"one":"no ar em {n} dia","other":"no ar em {n} dias"},
|
"satellites.up_in_n_days":{"one":"no ar em {n} dia","other":"no ar em {n} dias"},
|
||||||
"satellites.users_notice_geo_meo":"Os usuários sentem o atraso: banda larga por GEO conta como meio serviço, por MEO quase como o serviço inteiro. Um cabo sempre ganha, então seus roteadores só mandam tráfego para cima quando não há outro caminho.",
|
"satellites.users_notice_geo_meo":"Os usuários sentem o atraso: banda larga por GEO conta como meio serviço, por MEO quase como o serviço inteiro. Um cabo sempre ganha, então seus roteadores só mandam tráfego para cima quando não há outro caminho.",
|
||||||
|
"satellites.users_notice_leo":"Por LEO, uns 30 ms de ida e volta, os usuários mal percebem, e as redes seletivas fazem peering como por um cabo. Ao lado de um cabo, ele espera de reserva.",
|
||||||
"satellites.users_ride_a_satellite":"usuários via satélite",
|
"satellites.users_ride_a_satellite":"usuários via satélite",
|
||||||
"satellites.via_bird":"via {bird}",
|
"satellites.via_bird":"via {bird}",
|
||||||
"satellites.who_a_satellite_serves":"Satélites atendem ilhas pequenas e cidades remotas que o mesmo satélite vê junto com o seu teleporto. Escolha o destino.",
|
"satellites.who_a_satellite_serves":"Satélites atendem ilhas pequenas e cidades remotas que o mesmo satélite vê junto com o seu teleporto. Escolha o destino.",
|
||||||
|
|
|
||||||
|
|
@ -175,14 +175,19 @@ const API_CMD={
|
||||||
quote:a=>({setup:TRK_COST,monthly:TRK_MO,blocked:[teleOf(a.city)===2?'this teleport has tracking antennas already':trkWhy(a.city)].filter(Boolean)}),
|
quote:a=>({setup:TRK_COST,monthly:TRK_MO,blocked:[teleOf(a.city)===2?'this teleport has tracking antennas already':trkWhy(a.city)].filter(Boolean)}),
|
||||||
doc:'Add tracking antennas to a teleport, so it can work the MEO ring (about 130 ms round trip instead of GEO\'s 600). Only within 50 degrees of the equator, where the ring is in view.'},
|
doc:'Add tracking antennas to a teleport, so it can work the MEO ring (about 130 ms round trip instead of GEO\'s 600). Only within 50 degrees of the equator, where the ring is in view.'},
|
||||||
teleRm:{args:[['city','cityId']],confirm:'double',watch:['pops.#city'],
|
teleRm:{args:[['city','cityId']],confirm:'double',watch:['pops.#city'],
|
||||||
doc:'Close a teleport. Refused while circuits still start there.'},
|
doc:'Close a teleport (and its LEO gateway). Refused while circuits still start there.'},
|
||||||
|
teleLeo:{args:[['city','cityId']],watch:['pops.#city'],
|
||||||
|
quote:a=>({setup:LEO_GW_COST,monthly:LEO_GW_MO,blocked:[leoGw(a.city)?'there is a LEO gateway here already':leoGwWhy(a.city)].filter(Boolean)}),
|
||||||
|
doc:'Host a Starblink LEO gateway at your teleport (level 5, a POP on your fiber or with transit, within 56 degrees of the equator): LEO circuits from it reach small islands and remote towns within 1,200 km, about 30 ms round trip. Refused once your own constellation carries traffic.'},
|
||||||
|
teleLeoRm:{args:[['city','cityId']],confirm:'double',watch:['pops.#city'],
|
||||||
|
doc:'Close a LEO gateway. Refused while LEO circuits still start there.'},
|
||||||
buySat:{args:[['a','cityId'],['b','cityId'],['bird','satBird'],['g','satG']],
|
buySat:{args:[['a','cityId'],['b','cityId'],['bird','satBird'],['g','satG']],
|
||||||
quote:a=>{const ok=own(SATS,a.bird),mo=ok?satMo(a.bird,+a.g):0;return {setup:mo+(S.pops[a.b]||!CITY[a.b]?0:popCost(a.b)),monthly:mo,days:ok?leadDays(SAT_ORB[SATS[a.bird].orb].days):0,blocked:[satWhy(a.a,a.b,a.bird,+a.g)].filter(Boolean)};},
|
quote:a=>{const ok=own(SATS,a.bird),mo=ok?satMo(a.bird,+a.g):0;return {setup:mo+(S.pops[a.b]||!CITY[a.b]?0:popCost(a.b)),monthly:mo,days:ok?leadDays(SAT_ORB[SATS[a.bird].orb].days):0,blocked:[satWhy(a.a,a.b,a.bird,+a.g)].filter(Boolean)};},
|
||||||
doc:'Rent a satellite circuit from your teleport in a to b (a small island or a remote town) on a bird that sees both: GEO 1-10 Gbps, MEO 2-20 with tracking antennas. The first month up front; builds a POP at b if there is none. Next to an existing link between the two it goes on standby, as backup; a link built later between the two puts it on standby too. Cancel with rmLink.'},
|
doc:'Rent a satellite circuit from your teleport in a to b (a small island or a remote town) on a bird that sees both: GEO 1-10 Gbps, MEO 2-20 with tracking antennas, LEO 5-50 from a LEO gateway within 1,200 km (about 30 ms round trip; it puts GEO and MEO circuits on the same pair on standby, and one ordered beside it waits on standby). The first month up front; builds a POP at b if there is none. Next to an existing link between the two it goes on standby, as backup; a link built later between the two puts it on standby too. Cancel with rmLink.'},
|
||||||
satSize:{args:[['id','entityId'],['g','satG']],watch:['links.#id'],
|
satSize:{args:[['id','entityId'],['g','satG']],watch:['links.#id'],
|
||||||
quote:a=>{const l=S.links.find(x=>x.id===a.id&&x.kind==='sat'),g=+a.g,ok=!!l&&g!==l.g&&SAT_ORB[SATS[l.bird].orb].g.includes(g),mo=ok?satMo(l.bird,g):0;
|
quote:a=>{const l=S.links.find(x=>x.id===a.id&&x.kind==='sat'),g=+a.g,ok=!!l&&g!==l.g&&SAT_ORB[SATS[l.bird].orb].g.includes(g),mo=ok?satMo(l.bird,g):0;
|
||||||
return {setup:ok&&g>l.g?mo:0,monthly:mo,blocked:!l?['not a satellite circuit']:ok?[]:[tr('satellites.no_such_circuit')]};},
|
return {setup:ok&&g>l.g?mo:0,monthly:mo,blocked:!l?['not a satellite circuit']:ok?[g>l.g&&leoLink(l)?leoGrowWhy(l):''].filter(Boolean):[tr('satellites.no_such_circuit')]};},
|
||||||
doc:'Resize a satellite circuit on the same bird. A bigger one pays its new month up front.'},
|
doc:'Resize a satellite circuit on the same bird. A bigger one pays its new month up front; a LEO circuit grows only while its gateway is on your fiber and your own constellation carries nothing.'},
|
||||||
/* ---------- dark fiber and own cable ---------- */
|
/* ---------- dark fiber and own cable ---------- */
|
||||||
orderDf:{args:[['a','cityId'],['b','cityId'],['source','dfSource'],['system','systemId']],
|
orderDf:{args:[['a','cityId'],['b','cityId'],['source','dfSource'],['system','systemId']],
|
||||||
bindsUI:['pending','dfSrc','dfSys'],bind:a=>{UI.pending={a:a.a,b:a.b};UI.dfSrc=a.source;UI.dfSys=a.system;},
|
bindsUI:['pending','dfSrc','dfSys'],bind:a=>{UI.pending={a:a.a,b:a.b};UI.dfSrc=a.source;UI.dfSys=a.system;},
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const API_STATE_DOC={
|
||||||
t1v:{type:'integer',doc:'Level at which Tier 1 transit was offered.'},
|
t1v:{type:'integer',doc:'Level at which Tier 1 transit was offered.'},
|
||||||
auV:{type:'integer',doc:'Australia content level gate.'},
|
auV:{type:'integer',doc:'Australia content level gate.'},
|
||||||
seen:{type:'array',doc:'Network ids the deals panel has already shown. Vestigial: written by newGame, read nowhere.'},
|
seen:{type:'array',doc:'Network ids the deals panel has already shown. Vestigial: written by newGame, read nowhere.'},
|
||||||
pops:{type:'map',doc:'Your POPs by city id: day opened, broadband (bb: d, its demand in Gbps; v6, the share of its homes that are IPv6-only behind NAT64, absent for dual stack; v6e, the day a swap to IPv6-only finishes, while it runs), ad boost, downtime, routers, generator, second site, teleport (tele: 1 GEO dishes, 2 with MEO tracking antennas).'},
|
pops:{type:'map',doc:'Your POPs by city id: day opened, broadband (bb: d, its demand in Gbps; v6, the share of its homes that are IPv6-only behind NAT64, absent for dual stack; v6e, the day a swap to IPv6-only finishes, while it runs), ad boost, downtime, routers, generator, second site, teleport (tele: 1 GEO dishes, 2 with MEO tracking antennas), a Starblink LEO gateway on it (leo: 1).'},
|
||||||
links:{type:'array',doc:'Your links: waves, dark fiber (df), own cables, fabric circuits (vxc), express lightpaths (xp: via lists the dark fibers it rides from a, ch its optics) and rented satellite circuits (sat: bird, g Gbps, km of radio path, ready day), each with an entity id.'},
|
links:{type:'array',doc:'Your links: waves, dark fiber (df), own cables, fabric circuits (vxc), express lightpaths (xp: via lists the dark fibers it rides from a, ch its optics) and rented satellite circuits (sat: bird, g Gbps, km of radio path, ready day), each with an entity id.'},
|
||||||
transit:{type:'array',doc:'Transit ports: city, net, tier, LAG members, port history for 95th-percentile billing.'},
|
transit:{type:'array',doc:'Transit ports: city, net, tier, LAG members, port history for 95th-percentile billing.'},
|
||||||
ixp:{type:'map',doc:'IX ports by exchange city; tier per port (may exceed 1 with LAG members in ixn).'},
|
ixp:{type:'map',doc:'IX ports by exchange city; tier per port (may exceed 1 with LAG members in ixn).'},
|
||||||
|
|
@ -42,7 +42,7 @@ const API_STATE_DOC={
|
||||||
ach:{type:'map',doc:'Badges earned this game, by badge id → day.'},
|
ach:{type:'map',doc:'Badges earned this game, by badge id → day.'},
|
||||||
inc:{type:'array',doc:'Open incidents: type, what they hit, until when, optional rush-repair price.'},
|
inc:{type:'array',doc:'Open incidents: type, what they hit, until when, optional rush-repair price.'},
|
||||||
ddosStarts:{type:'array',doc:'The days the attacks of the last week started; at most 14 a week.'},
|
ddosStarts:{type:'array',doc:'The days the attacks of the last week started; at most 14 a week.'},
|
||||||
ev:{type:'map',doc:'Live world events: the running DDoS, route leaks, fabric failures, price shocks.'},
|
ev:{type:'map',doc:'Live world events: the running DDoS, route leaks, fabric failures, price shocks, a solar storm (sky: the day LEO circuits leave safe mode).'},
|
||||||
stats:{type:'map',doc:'Counters: incidents survived, loans taken, sharks, conferences attended, peak traffic…'},
|
stats:{type:'map',doc:'Counters: incidents survived, loans taken, sharks, conferences attended, peak traffic…'},
|
||||||
log:{type:'array',doc:'The NOC notification feed, newest first, capped at 60; identical notices within a minute fold with a count.'},
|
log:{type:'array',doc:'The NOC notification feed, newest first, capped at 60; identical notices within a minute fold with a count.'},
|
||||||
nextFail:{type:'integer',doc:'The day the next failure fires.'},
|
nextFail:{type:'integer',doc:'The day the next failure fires.'},
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,27 @@
|
||||||
the early answer to "no cable lands there", and the warm backup for an island hanging on one cable. Geostationary
|
the early answer to "no cable lands there", and the warm backup for an island hanging on one cable. Geostationary
|
||||||
birds (GEO, 35,786 km up) see a whole ocean from one dish: no build, dear per Gbps, about 600 ms there and back. A
|
birds (GEO, 35,786 km up) see a whole ocean from one dish: no build, dear per Gbps, about 600 ms there and back. A
|
||||||
medium-orbit ring over the equator (MEO, 8,062 km up) gets that down to about 130 ms, but a teleport needs tracking
|
medium-orbit ring over the equator (MEO, 8,062 km up) gets that down to about 130 ms, but a teleport needs tracking
|
||||||
antennas to follow its satellites across the sky. Your own constellation (LEO, Pie in the Sky) comes much later.
|
antennas to follow its satellites across the sky. A rented low-orbit constellation (LEO, 550 km up, from level 5) is
|
||||||
|
a bent pipe: one satellite sees a gateway at your teleport and an island at once, so it reaches only the region round
|
||||||
|
the gateway, at about 30 ms. Your own constellation (Pie in the Sky) comes later still.
|
||||||
The providers are vendors, like the fabrics: they sell you capacity, they are not networks you route to. */
|
The providers are vendors, like the fabrics: they sell you capacity, they are not networks you route to. */
|
||||||
// h: km up; proc: ms of modems and error correction each way; loss: the share of a city's service its users stop counting
|
// h: km up; proc: ms of modems and error correction each way; loss: the share of a city's service its users stop counting
|
||||||
// once their traffic rides it (half for GEO, like any haul past 50 ms; MEO feels almost like fiber); days: to point and
|
// once their traffic rides it (half for GEO, like any haul past 50 ms; MEO feels almost like fiber); days: to point and
|
||||||
// commission a new circuit; lv: the level it unlocks at; g: the sizes sold (Gbps). A MEO ring covers |lat| <= lat, and a
|
// commission a new circuit; lv: the level it unlocks at; g: the sizes sold (Gbps). A MEO ring or LEO shell covers
|
||||||
// circuit's two ends must see the same satellite at once: at most km apart, and at least el degrees above both horizons
|
// |lat| <= lat (LEO's 53 degree shell reaches a few degrees past its inclination, as pieCovers does), and a circuit's two
|
||||||
// (what a ground terminal needs to clear the trees; far north, two ends 7,000 km apart lose it below the horizon).
|
// ends must see the same satellite at once: at most km apart (LEO: a bent pipe, no lasers on a rented tier), and at least
|
||||||
|
// el degrees above both horizons (what a ground terminal needs to clear the trees; far north, two ends 7,000 km apart lose
|
||||||
|
// a MEO satellite below the horizon). loss is also how satEdges/satAfter tell the orbits apart, so no two may share one.
|
||||||
const SAT_ORB={
|
const SAT_ORB={
|
||||||
geo:{n:'GEO',h:35786,proc:25,loss:0.5,days:10,lv:2,g:[1,2,5,10]},
|
geo:{n:'GEO',h:35786,proc:25,loss:0.5,days:10,lv:2,g:[1,2,5,10]},
|
||||||
meo:{n:'MEO',h:8062,proc:7,loss:0.08,days:21,lv:3,g:[2,5,10,20],lat:50,km:7500,el:5},
|
meo:{n:'MEO',h:8062,proc:7,loss:0.08,days:21,lv:3,g:[2,5,10,20],lat:50,km:7500,el:5},
|
||||||
|
leo:{n:'LEO',h:550,proc:10,loss:0.03,days:14,lv:5,g:[5,10,20,50],lat:56,km:1200,el:25},
|
||||||
};
|
};
|
||||||
// pg: dollars a month for the first Gbps; bigger circuits cost less per Gbps (satMo).
|
// pg: dollars a month for the first Gbps; bigger circuits cost less per Gbps (satMo).
|
||||||
const SAT_PROV={
|
const SAT_PROV={
|
||||||
its:{n:'Intelsplat',col:'#2F8CFF',pg:2500,blurb:tr('satellites.its_blurb')},
|
its:{n:'Intelsplat',col:'#2F8CFF',pg:2500,blurb:tr('satellites.its_blurb')},
|
||||||
kac:{n:'Kacophony',col:'#FF8A3D',pg:1400,blurb:tr('satellites.kac_blurb')},
|
kac:{n:'Kacophony',col:'#FF8A3D',pg:1400,blurb:tr('satellites.kac_blurb')},
|
||||||
|
sbk:{n:'Starblink',col:'#7C5CFF',pg:1000,blurb:tr('satellites.sbk_blurb')},
|
||||||
sesa:{n:'SESame',col:'#16A866',pg:2000,blurb:tr('satellites.sesa_blurb')},
|
sesa:{n:'SESame',col:'#16A866',pg:2000,blurb:tr('satellites.sesa_blurb')},
|
||||||
};
|
};
|
||||||
// The birds. A GEO sits over the equator at lon; r is how far its beams reach, in degrees of arc from the point under it
|
// The birds. A GEO sits over the equator at lon; r is how far its beams reach, in degrees of arc from the point under it
|
||||||
|
|
@ -29,9 +35,13 @@ const SATS={
|
||||||
kac1:{n:'Kacophony-1',p:'kac',orb:'geo',lon:150,r:50,sea:N_('satellites.sea_west_pacific')},
|
kac1:{n:'Kacophony-1',p:'kac',orb:'geo',lon:150,r:50,sea:N_('satellites.sea_west_pacific')},
|
||||||
gx19:{n:'Intelsplat 19',p:'its',orb:'geo',lon:-97,r:72,sea:N_('satellites.sea_americas')},
|
gx19:{n:'Intelsplat 19',p:'its',orb:'geo',lon:-97,r:72,sea:N_('satellites.sea_americas')},
|
||||||
o3b:{n:'O3bservant',p:'sesa',orb:'meo',sea:N_('satellites.sea_tropics')},
|
o3b:{n:'O3bservant',p:'sesa',orb:'meo',sea:N_('satellites.sea_tropics')},
|
||||||
|
sb53:{n:'Starblink Shell 53',p:'sbk',orb:'leo',sea:N_('satellites.sea_leo')},
|
||||||
};
|
};
|
||||||
// The teleport itself (dishes, a building, the licences), and the MEO tracking antennas it may add.
|
// The teleport itself (dishes, a building, the licences), and the MEO tracking antennas it may add.
|
||||||
const TPORT_COST=90000,TPORT_MO=2500,TRK_COST=250000,TRK_MO=3000;
|
const TPORT_COST=90000,TPORT_MO=2500,TRK_COST=250000,TRK_MO=3000;
|
||||||
|
// The rented LEO tier: its one bird, the gateway Starblink puts on your teleport's roof, and its solar storms (a weight
|
||||||
|
// among the failures, and the most days one may last).
|
||||||
|
const LEO_BIRD='sb53',LEO_GW_COST=400000,LEO_GW_MO=8000,LEO_STORM_W=1,LEO_STORM_MAX=3;
|
||||||
// Who a satellite serves: a small island off the big continents, or a remote town anywhere, never a big city's market.
|
// Who a satellite serves: a small island off the big continents, or a remote town anywhere, never a big city's market.
|
||||||
const SAT_MAIN=['af','am','eu','oc','sa'],SAT_ISLE_P=150,SAT_TOWN_P=5;
|
const SAT_MAIN=['af','am','eu','oc','sa'],SAT_ISLE_P=150,SAT_TOWN_P=5;
|
||||||
const SAT_RE=6371,SAT_C=300;
|
const SAT_RE=6371,SAT_C=300;
|
||||||
|
|
@ -42,16 +52,29 @@ function satSlant(arc,h){const Q=SAT_RE+h,a=arc*Math.PI/180;return Math.sqrt(SAT
|
||||||
// How high above a dish's horizon that satellite stands, in degrees (negative: below it, behind the Earth).
|
// How high above a dish's horizon that satellite stands, in degrees (negative: below it, behind the Earth).
|
||||||
function satElev(arc,h){const a=arc*Math.PI/180;return Math.atan2(Math.cos(a)-SAT_RE/(SAT_RE+h),Math.sin(a))*180/Math.PI;}
|
function satElev(arc,h){const a=arc*Math.PI/180;return Math.atan2(Math.cos(a)-SAT_RE/(SAT_RE+h),Math.sin(a))*180/Math.PI;}
|
||||||
// The longitude the bird sits over for a circuit: a GEO's slot; a MEO ring's satellite halfway between the two ends.
|
// The longitude the bird sits over for a circuit: a GEO's slot; a MEO ring's satellite halfway between the two ends.
|
||||||
|
// LEO does not use it: its satellite flies over the midpoint of the two ends, not over the equator.
|
||||||
function satLon(id,a,b){const B=SATS[id];if(B.orb==='geo')return B.lon;const r=Math.PI/180,A=CITY[a],C=CITY[b];
|
function satLon(id,a,b){const B=SATS[id];if(B.orb==='geo')return B.lon;const r=Math.PI/180,A=CITY[a],C=CITY[b];
|
||||||
return Math.atan2(Math.sin(A.lon*r)+Math.sin(C.lon*r),Math.cos(A.lon*r)+Math.cos(C.lon*r))/r;}
|
return Math.atan2(Math.sin(A.lon*r)+Math.sin(C.lon*r),Math.cos(A.lon*r)+Math.cos(C.lon*r))/r;}
|
||||||
// Whether bird id sees city c.
|
// Whether bird id sees city c.
|
||||||
function satSees(id,c){const B=SATS[id],C=CITY[c];if(!B||!C)return false;return B.orb==='meo'?Math.abs(C.lat)<=SAT_ORB.meo.lat:satArc(0,B.lon,C.lat,C.lon)<=B.r;}
|
function satSees(id,c){const B=SATS[id],C=CITY[c];if(!B||!C)return false;return B.orb==='geo'?satArc(0,B.lon,C.lat,C.lon)<=B.r:Math.abs(C.lat)<=SAT_ORB[B.orb].lat;}
|
||||||
function satPairOk(id,a,b){if(a===b||!satSees(id,a)||!satSees(id,b))return false;if(SATS[id].orb!=='meo')return true;const O=SAT_ORB.meo;
|
// Whether one satellite of bird id sees both ends at once: a GEO sees them from its slot; a MEO or LEO satellite has to
|
||||||
if(kmBetween(a,b)>O.km)return false;const lon=satLon(id,a,b);return [a,b].every(c=>satElev(satArc(0,lon,CITY[c].lat,CITY[c].lon),O.h)>=O.el);}
|
// be within km of both and high enough above both horizons (LEO's flies over the midpoint).
|
||||||
|
function satPairOk(id,a,b){if(a===b||!satSees(id,a)||!satSees(id,b))return false;const B=SATS[id];if(B.orb==='geo')return true;const O=SAT_ORB[B.orb];
|
||||||
|
if(kmBetween(a,b)>O.km)return false;
|
||||||
|
if(B.orb==='leo')return satElev(satArc(CITY[a].lat,CITY[a].lon,CITY[b].lat,CITY[b].lon)/2,O.h)>=O.el;
|
||||||
|
const lon=satLon(id,a,b);return [a,b].every(c=>satElev(satArc(0,lon,CITY[c].lat,CITY[c].lon),O.h)>=O.el);}
|
||||||
// The radio path: up from one dish and down to the other, the km the signal really travels. It is the link's km, so the
|
// The radio path: up from one dish and down to the other, the km the signal really travels. It is the link's km, so the
|
||||||
// routers' metric (pairW) sees a satellite as the long way round it is, and a cable wins whenever there is one.
|
// routers' metric (pairW) sees a satellite as the long way round it is, and a cable wins whenever there is one.
|
||||||
function satKm(id,a,b){const h=SAT_ORB[SATS[id].orb].h,lon=satLon(id,a,b),A=CITY[a],C=CITY[b];
|
function satKm(id,a,b){const h=SAT_ORB[SATS[id].orb].h,A=CITY[a],C=CITY[b];
|
||||||
return Math.round(satSlant(satArc(0,lon,A.lat,A.lon),h)+satSlant(satArc(0,lon,C.lat,C.lon),h));}
|
if(SATS[id].orb==='leo')return Math.round(2*satSlant(satArc(A.lat,A.lon,C.lat,C.lon)/2,h));
|
||||||
|
const lon=satLon(id,a,b);return Math.round(satSlant(satArc(0,lon,A.lat,A.lon),h)+satSlant(satArc(0,lon,C.lat,C.lon),h));}
|
||||||
|
/* LEO from a gateway to any point on the globe (a zone of islands, not a city): pure, they read only the catalog and
|
||||||
|
CITY. c: the gateway's city id; lat, lon: the far end in degrees. leoArcLL: the arc between them in degrees; leoKmLL:
|
||||||
|
the radio path in km (up to the satellite over the midpoint and down again); leoMsLL: one way in ms, the modems
|
||||||
|
included. Whether a gateway may serve that point today is leoReachLL (60-features/45-teleports.js). */
|
||||||
|
const leoArcLL=(c,lat,lon)=>satArc(CITY[c].lat,CITY[c].lon,lat,lon);
|
||||||
|
const leoKmLL=(c,lat,lon)=>Math.round(2*satSlant(leoArcLL(c,lat,lon)/2,SAT_ORB.leo.h));
|
||||||
|
const leoMsLL=(c,lat,lon)=>leoKmLL(c,lat,lon)/SAT_C+SAT_ORB.leo.proc;
|
||||||
// One way: the radio path at the speed of light in vacuum, plus the modems at both ends.
|
// One way: the radio path at the speed of light in vacuum, plus the modems at both ends.
|
||||||
const satLat=l=>l.km/SAT_C+SAT_ORB[SATS[l.bird].orb].proc;
|
const satLat=l=>l.km/SAT_C+SAT_ORB[SATS[l.bird].orb].proc;
|
||||||
const satMo=(id,g)=>Math.round(SAT_PROV[SATS[id].p].pg*Math.pow(g,0.85)/10)*10;
|
const satMo=(id,g)=>Math.round(SAT_PROV[SATS[id].p].pg*Math.pow(g,0.85)/10)*10;
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function stretchInc(i){if(rule('chaos')!=='spicy'||!i||!(i.until>S.day)||i.start
|
||||||
else if(['crash','power','oops','cleaner','maint','shutdown'].includes(T))f(S.pops[r],'down');
|
else if(['crash','power','oops','cleaner','maint','shutdown'].includes(T))f(S.pops[r],'down');
|
||||||
else if(T==='ring')f(S.pops[r],'ringcut');else if(T==='ac')f(S.pops[r],'hot');
|
else if(T==='ring')f(S.pops[r],'ringcut');else if(T==='ac')f(S.pops[r],'hot');
|
||||||
else if(T==='transit'||T==='prepend')f(S.transit.find(t=>t.id===r),'down');
|
else if(T==='transit'||T==='prepend')f(S.transit.find(t=>t.id===r),'down');
|
||||||
else if(T==='ixloop'&&E.ixdown)f(E.ixdown,r);else if(T==='fabric'&&E.fab)f(E.fab,r);
|
else if(T==='ixloop'&&E.ixdown)f(E.ixdown,r);else if(T==='fabric'&&E.fab)f(E.fab,r);else if(T==='leostorm')f(E,'sky');
|
||||||
else if(T==='lacp'){const [k,...x]=String(r).split(':'),id=x.join(':');f(k==='ix'?E.ixlacp&&E.ixlacp[id]:(k==='t'?S.transit:S.pni).find(o=>o.id===id)?.lacp,'until');}
|
else if(T==='lacp'){const [k,...x]=String(r).split(':'),id=x.join(':');f(k==='ix'?E.ixlacp&&E.ixlacp[id]:(k==='t'?S.transit:S.pni).find(o=>o.id===id)?.lacp,'until');}
|
||||||
else if(T==='rpki'||T==='hijack')f(E.rpki,'until');else if(T==='leak'||T==='pmtud')f(E[T],'until');else if(T==='krroute'||T==='depeer')f(E,T);
|
else if(T==='rpki'||T==='hijack')f(E.rpki,'until');else if(T==='leak'||T==='pmtud')f(E[T],'until');else if(T==='krroute'||T==='depeer')f(E,T);
|
||||||
else if(T==='ddos')f(ddosAll(S,false).find(a=>a.id===i.atk),'until');}
|
else if(T==='ddos')f(ddosAll(S,false).find(a=>a.id===i.atk),'until');}
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,18 @@ function trkWhy(c){const O=SAT_ORB.meo;if(lvl()<O.lv)return tr('satellites.orbit
|
||||||
if(!isCity(c)||!teleOf(c))return tr('satellites.no_teleport_in_city',{city:isCity(c)?CITY[c].name:'?'});
|
if(!isCity(c)||!teleOf(c))return tr('satellites.no_teleport_in_city',{city:isCity(c)?CITY[c].name:'?'});
|
||||||
if(!teleSees(c).some(id=>SATS[id].orb==='meo'))return tr('satellites.meo_ring_misses_city',{city:CITY[c].name,lat:O.lat});
|
if(!teleSees(c).some(id=>SATS[id].orb==='meo'))return tr('satellites.meo_ring_misses_city',{city:CITY[c].name,lat:O.lat});
|
||||||
return '';}
|
return '';}
|
||||||
// The birds that see both ends of a circuit: GEO first, then the cheapest.
|
// The birds that see both ends of a circuit, by orbit (GEO, MEO, LEO: SAT_ORB's order), then the cheapest.
|
||||||
function satBirds(a,b){return Object.keys(SATS).filter(id=>satPairOk(id,a,b)).sort((x,y)=>(SATS[x].orb>SATS[y].orb)-(SATS[x].orb<SATS[y].orb)||SAT_PROV[SATS[x].p].pg-SAT_PROV[SATS[y].p].pg);}
|
const SAT_ORD=Object.keys(SAT_ORB);
|
||||||
|
function satBirds(a,b){return Object.keys(SATS).filter(id=>satPairOk(id,a,b)).sort((x,y)=>SAT_ORD.indexOf(SATS[x].orb)-SAT_ORD.indexOf(SATS[y].orb)||SAT_PROV[SATS[x].p].pg-SAT_PROV[SATS[y].p].pg);}
|
||||||
// Why a circuit from teleport a to b over bird id (g Gbps, when given) cannot be ordered; '' when it can.
|
// Why a circuit from teleport a to b over bird id (g Gbps, when given) cannot be ordered; '' when it can.
|
||||||
function satWhy(a,b,id,g){const B=own(SATS,id)?SATS[id]:null;if(!B||!isCity(a)||!isCity(b)||a===b)return tr('satellites.no_such_circuit');const O=SAT_ORB[B.orb];
|
function satWhy(a,b,id,g){const B=own(SATS,id)?SATS[id]:null;if(!B||!isCity(a)||!isCity(b)||a===b)return tr('satellites.no_such_circuit');const O=SAT_ORB[B.orb];
|
||||||
if(lvl()<O.lv)return tr('satellites.orbit_unlocks_at_level',{orb:O.n,lv:O.lv});
|
if(lvl()<O.lv)return tr('satellites.orbit_unlocks_at_level',{orb:O.n,lv:O.lv});
|
||||||
if(!teleOf(a))return tr('satellites.no_teleport_in_city',{city:CITY[a].name});
|
if(!teleOf(a))return tr('satellites.no_teleport_in_city',{city:CITY[a].name});
|
||||||
if(B.orb==='meo'&&teleOf(a)<2)return tr('satellites.needs_tracking_antennas',{city:CITY[a].name});
|
if(B.orb==='meo'&&teleOf(a)<2)return tr('satellites.needs_tracking_antennas',{city:CITY[a].name});
|
||||||
|
if(B.orb==='leo'){if(!leoGw(a))return tr('satellites.needs_leo_gateway',{city:CITY[a].name});if(!satWired(a))return tr('satellites.leo_needs_fiber',{city:CITY[a].name});if(leoRival())return tr('satellites.leo_no_rivals',{prov:SAT_PROV[B.p].n});}
|
||||||
if(!satRemote(b))return tr('satellites.not_remote',{city:CITY[b].name});
|
if(!satRemote(b))return tr('satellites.not_remote',{city:CITY[b].name});
|
||||||
if(!satPairOk(id,a,b))return tr('satellites.out_of_footprint',{bird:B.n,a:CITY[a].name,b:CITY[b].name});
|
if(!satPairOk(id,a,b))return B.orb==='leo'&&satSees(id,a)&&satSees(id,b)?tr('satellites.leo_out_of_reach',{prov:SAT_PROV[B.p].n,km:O.km.toLocaleString(),a:CITY[a].name,b:CITY[b].name,d:kmBetween(a,b).toLocaleString()})
|
||||||
|
:tr('satellites.out_of_footprint',{bird:B.n,a:CITY[a].name,b:CITY[b].name});
|
||||||
if(g!==undefined&&!O.g.includes(g))return tr('satellites.no_such_circuit');
|
if(g!==undefined&&!O.g.includes(g))return tr('satellites.no_such_circuit');
|
||||||
const nt=noTalk(a,b);if(nt)return tr(nt);
|
const nt=noTalk(a,b);if(nt)return tr(nt);
|
||||||
if(!S.pops[b]){if(!cityOn(b))return popOffWhy(b);if(cnCity(b)&&!cnOk())return tr('pops_transit_ix.you_need_a_license_first_foreign');}
|
if(!S.pops[b]){if(!cityOn(b))return popOffWhy(b);if(cnCity(b)&&!cnOk())return tr('pops_transit_ix.you_need_a_license_first_foreign');}
|
||||||
|
|
@ -40,16 +43,56 @@ const satFrom=b=>satRemote(b)?teleCities().filter(a=>a!==b&&satBirds(a,b).length
|
||||||
// it, as one ordered next to a link does, and the player hears about it. Without this the pair's load is shared with orbit.
|
// it, as one ordered next to a link does, and the player hears about it. Without this the pair's load is shared with orbit.
|
||||||
function satBeside(a,b){const ls=pairLinks(a,b).filter(l=>l.kind==='sat'&&!l.standby);for(const l of ls)l.standby=true;
|
function satBeside(a,b){const ls=pairLinks(a,b).filter(l=>l.kind==='sat'&&!l.standby);for(const l of ls)l.standby=true;
|
||||||
if(ls.length)toast(trn('satellites.n_circuits_go_on_standby',ls.length,{a:CITY[a].name,b:CITY[b].name}));return ls.length;}
|
if(ls.length)toast(trn('satellites.n_circuits_go_on_standby',ls.length,{a:CITY[a].name,b:CITY[b].name}));return ls.length;}
|
||||||
/* An island or remote town that only satellites join to the rest of your network: its fastest circuit (null when a wave,
|
/* A wired link that is built and lit: a wave, a lit fiber, a cable, a fabric circuit. What is built counts, never today's
|
||||||
a lit fiber, a cable or a pie dish reaches it too). What is built and lit counts, never today's cuts: a selective peer
|
cuts. A fiber or cable with no optics of its own yet carries nothing (an express only passes through a city's ROADM,
|
||||||
judges what you built, not this week's repair (50-peering-policy.js). A fiber or cable with no optics of its own yet
|
and is a link of its own where it ends). */
|
||||||
carries nothing (an express only passes through a city's ROADM, and is a link of its own where it ends). */
|
const wiredLink=l=>l.kind!=='sat'&&!(l.ready>S.day)&&(l.kind!=='df'||(l.ch||[]).length>0);
|
||||||
function satOnly(c){if(!satRemote(c)||!S.pops[c]||S.pie&&(S.pie.dishes||[]).some(x=>x.city===c))return null;let best=null;
|
/* An island or remote town that only satellites join to the rest of your network: its fastest commissioned circuit, or
|
||||||
|
its fastest one being pointed when none is up yet (null when a wired link or a pie dish reaches it too). A selective
|
||||||
|
peer judges what you built, not this week's repair (50-peering-policy.js), and a circuit still being pointed does not
|
||||||
|
change its verdict while another is up. */
|
||||||
|
function satOnly(c){if(!satRemote(c)||!S.pops[c]||S.pie&&(S.pie.dishes||[]).some(x=>x.city===c))return null;let best=null,up=null;
|
||||||
for(const l of S.links){if(l.a!==c&&l.b!==c)continue;
|
for(const l of S.links){if(l.a!==c&&l.b!==c)continue;
|
||||||
if(l.kind!=='sat'){if(!(l.ready>S.day)&&(l.kind!=='df'||(l.ch||[]).length))return null;continue;}if(!best||satLat(l)<satLat(best))best=l;}
|
if(l.kind!=='sat'){if(wiredLink(l))return null;continue;}if(!best||satLat(l)<satLat(best))best=l;if(!(l.ready>S.day)&&(!up||satLat(l)<satLat(up)))up=l;}
|
||||||
return best;}
|
return up||best;}
|
||||||
|
/* Whether the POP at c reaches the internet without another satellite: a mainland city always does; an island or remote
|
||||||
|
town with a lit wired link of yours, or a transit port (someone's cable). An exchange port or a PNI alone does not. */
|
||||||
|
function satWired(c){if(!own(S.pops,c))return false;if(!satRemote(c))return true;if(S.transit.some(t=>t.city===c))return true;
|
||||||
|
for(const l of S.links)if((l.a===c||l.b===c)&&wiredLink(l))return true;return false;}
|
||||||
|
// A Starblink gateway at the teleport in c (S.pops[c].leo).
|
||||||
|
const leoGw=c=>own(S.pops,c)&&S.pops[c].leo===1&&teleOf(c)>0;
|
||||||
|
// Your own constellation carries traffic (Pie in the Sky, at least 40% coverage, safe mode or not): Starblink sells a
|
||||||
|
// rival nothing new. Circuits already rented keep running.
|
||||||
|
const leoRival=()=>!!(S&&S.pie)&&Object.keys(CRUSTS).some(id=>pieCarry(id)>0);
|
||||||
|
// Why no LEO gateway can go up at c; '' when it can.
|
||||||
|
function leoGwWhy(c){const O=SAT_ORB.leo;if(!isCity(c)||!own(S.pops,c))return tr('satellites.no_pop_in_city',{city:isCity(c)?CITY[c].name:'?'});
|
||||||
|
if(lvl()<O.lv)return tr('satellites.orbit_unlocks_at_level',{orb:O.n,lv:O.lv});
|
||||||
|
if(!teleOf(c))return tr('satellites.no_teleport_in_city',{city:CITY[c].name});
|
||||||
|
if(Math.abs(CITY[c].lat)>O.lat)return tr('satellites.leo_shell_misses_city',{prov:SAT_PROV.sbk.n,city:CITY[c].name,lat:O.lat});
|
||||||
|
if(!satWired(c))return tr('satellites.leo_needs_fiber',{city:CITY[c].name});
|
||||||
|
if(leoRival())return tr('satellites.leo_no_rivals',{prov:SAT_PROV.sbk.n});
|
||||||
|
return '';}
|
||||||
|
// Why LEO circuit l cannot get bigger; '' when it can (shrinking always works).
|
||||||
|
function leoGrowWhy(l){const a=l.a;if(!leoGw(a))return tr('satellites.needs_leo_gateway',{city:CITY[a].name});
|
||||||
|
if(!satWired(a))return tr('satellites.leo_needs_fiber',{city:CITY[a].name});
|
||||||
|
if(leoRival())return tr('satellites.leo_no_rivals',{prov:SAT_PROV.sbk.n});return '';}
|
||||||
|
// A LEO circuit, and one a solar storm holds in safe mode (S.ev.sky: the day it passes).
|
||||||
|
const leoLink=l=>l.kind==='sat'&&own(SATS,l.bird)&&SATS[l.bird].orb==='leo';
|
||||||
|
const leoStorm=()=>S.ev.sky>S.day;
|
||||||
|
const leoDown=l=>leoStorm()&&leoLink(l);
|
||||||
|
// A storm can only find circuits in the sky: a commissioned LEO circuit (failureRun, and Pie's own storms).
|
||||||
|
const leoLive=()=>S.links.some(l=>leoLink(l)&&!(l.ready>S.day));
|
||||||
|
// A solar storm: Starblink puts its satellites in safe mode for 1 or 2 days (days: how many, when the caller knows).
|
||||||
|
function leoStormGo(days){S.ev.sky=S.day+(days||1+Math.floor(Math.random()*2));
|
||||||
|
addInc({type:'leostorm',ref:'sbk',until:S.ev.sky,msg:tr('satellites.leo_storm_msg',{prov:SAT_PROV.sbk.n}),cost:0});}
|
||||||
|
/* WISP hook: whether the gateway at city c may carry LEO to the point lat, lon (a zone, not a city id) today. It reads S
|
||||||
|
and changes nothing: a gateway on your fiber, your level, no flying constellation of yours, both ends under the shell
|
||||||
|
and at most SAT_ORB.leo.km apart. Pair it with leoKmLL/leoMsLL (10-catalog/75-satellites.js), satMo(LEO_BIRD,g) for
|
||||||
|
the rent, SAT_ORB.leo.loss for what users notice, and leoStorm() for the storm. */
|
||||||
|
function leoReachLL(c,lat,lon){const O=SAT_ORB.leo;if(!leoGw(c)||lvl()<O.lv||!satWired(c)||leoRival())return false;
|
||||||
|
if(Math.abs(CITY[c].lat)>O.lat||!(Math.abs(lat)<=O.lat))return false;return leoArcLL(c,lat,lon)*Math.PI/180*SAT_RE<=O.km;}
|
||||||
// What the teleports and their circuits cost a month (R.cost.sat).
|
// What the teleports and their circuits cost a month (R.cost.sat).
|
||||||
function satMoAll(){let m=0;for(const c in S.pops){const t=teleOf(c);if(t)m+=TPORT_MO+(t>1?TRK_MO:0);}for(const l of S.links)if(l.kind==='sat')m+=l.mo||0;return m;}
|
function satMoAll(){let m=0;for(const c in S.pops){const t=teleOf(c);if(t)m+=TPORT_MO+(t>1?TRK_MO:0)+(S.pops[c].leo===1?LEO_GW_MO:0);}for(const l of S.links)if(l.kind==='sat')m+=l.mo||0;return m;}
|
||||||
/* compute(): what users notice on the edges a satellite circuit is on. sv: the losses of the orbits there; sx: the edge's
|
/* compute(): what users notice on the edges a satellite circuit is on. sv: the losses of the orbits there; sx: the edge's
|
||||||
latency is the satellite's (no cable carries ahead of it), so it is no haul to transit on the ground. Returns how many
|
latency is the satellite's (no cable carries ahead of it), so it is no haul to transit on the ground. Returns how many
|
||||||
edges there were, for compute() to know a satellite is in the picture at all. */
|
edges there were, for compute() to know a satellite is in the picture at all. */
|
||||||
|
|
@ -72,10 +115,12 @@ function satAfter(SE,LATP,SATU){for(const e of SE){const ld=e.ld||0;if(!e.sa||ld
|
||||||
for(const [ci,x] of e.sa){let p=0;for(let j=0;j<v.length;j++)p+=sh[j]*x[1+j];LATP[ci]+=p;SATU[ci]+=all*x[0];}}}
|
for(const [ci,x] of e.sa){let p=0;for(let j=0;j<v.length;j++)p+=sh[j]*x[1+j];LATP[ci]+=p;SATU[ci]+=all*x[0];}}}
|
||||||
// The share of city c's served traffic that rode a satellite in r (0 to 1).
|
// The share of city c's served traffic that rode a satellite in r (0 to 1).
|
||||||
const satShare=(r,c)=>r&&r.satU&&r.citySrv&&r.citySrv[c]>0?Math.min(1,(r.satU[c]||0)/r.citySrv[c]):0;
|
const satShare=(r,c)=>r&&r.satU&&r.citySrv&&r.citySrv[c]>0?Math.min(1,(r.satU[c]||0)/r.citySrv[c]):0;
|
||||||
// Saves: a teleport is 1 or 2; a circuit needs a known bird that sees both POPs, a teleport able to work it, a size it sells.
|
// Saves: a teleport is 1 or 2, a LEO gateway 1 on a teleport; a circuit needs a known bird that sees both POPs, a teleport
|
||||||
|
// able to work it (MEO: tracking antennas; LEO: the gateway), a size it sells. The storm's day stays a key once it is one.
|
||||||
function satSanitize(s){
|
function satSanitize(s){
|
||||||
for(const c of Object.keys(s.pops)){const p=s.pops[c];if(p.tele!==undefined&&p.tele!==1&&p.tele!==2)delete p.tele;}
|
for(const c of Object.keys(s.pops)){const p=s.pops[c];if(p.tele!==undefined&&p.tele!==1&&p.tele!==2)delete p.tele;if(p.leo!==undefined&&(p.leo!==1||!p.tele))delete p.leo;}
|
||||||
|
if(s.ev&&s.ev.sky!==undefined)s.ev.sky=int(s.ev.sky,0,s.day+LEO_STORM_MAX,0);
|
||||||
s.links=s.links.filter(l=>{if(l.kind!=='sat')return true;const B=typeof l.bird==='string'&&own(SATS,l.bird)?SATS[l.bird]:null,p=s.pops[l.a];
|
s.links=s.links.filter(l=>{if(l.kind!=='sat')return true;const B=typeof l.bird==='string'&&own(SATS,l.bird)?SATS[l.bird]:null,p=s.pops[l.a];
|
||||||
if(!B||!p||!p.tele||B.orb==='meo'&&p.tele<2||!s.pops[l.b]||!satPairOk(l.bird,l.a,l.b))return false;
|
if(!B||!p||!p.tele||B.orb==='meo'&&p.tele<2||B.orb==='leo'&&p.leo!==1||!s.pops[l.b]||!satPairOk(l.bird,l.a,l.b))return false;
|
||||||
const G=SAT_ORB[B.orb].g;if(!G.includes(l.g))l.g=G.reduce((x,v)=>v<=num(l.g,0)?v:x,G[0]);
|
const G=SAT_ORB[B.orb].g;if(!G.includes(l.g))l.g=G.reduce((x,v)=>v<=num(l.g,0)?v:x,G[0]);
|
||||||
l.km=satKm(l.bird,l.a,l.b);l.sub=true;l.ready=num(l.ready,0);l.day=Math.min(s.day,Math.max(0,num(l.day,s.day)));for(const k of ['tier','cable','trench','mult','border','premium','vt','prov','own','sys','ch'])delete l[k];return true;});}
|
l.km=satKm(l.bird,l.a,l.b);l.sub=true;l.ready=num(l.ready,0);l.day=Math.min(s.day,Math.max(0,num(l.day,s.day)));for(const k of ['tier','cable','trench','mult','border','premium','vt','prov','own','sys','ch'])delete l[k];return true;});}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ const gulfPair=(a,b)=>!!((CITY[a].qa&&(CITY[b].gcc||CITY[b].uae))||(CITY[b].qa&&
|
||||||
const borderShut=l=>S.ev.runet>S.day&&ruCity(l.a)!==ruCity(l.b)?'runet':S.ev.gulf>S.day&&gulfPair(l.a,l.b)?'gulf':'';
|
const borderShut=l=>S.ev.runet>S.day&&ruCity(l.a)!==ruCity(l.b)?'runet':S.ev.gulf>S.day&&gulfPair(l.a,l.b)?'gulf':'';
|
||||||
// Cut, or cut off by an event between its two countries, whatever runs on it (an express asks this of each fiber it rides).
|
// Cut, or cut off by an event between its two countries, whatever runs on it (an express asks this of each fiber it rides).
|
||||||
function linkCut(l){return l.cut>S.day||!!borderShut(l);}
|
function linkCut(l){return l.cut>S.day||!!borderShut(l);}
|
||||||
function linkDown(l){return linkCut(l)||(l.kind==='vxc'&&!!S.ev.fab&&S.ev.fab[l.prov]>S.day)||(l.kind==='df'&&!dfOn(l))||(l.kind==='xp'&&xpDown(l))||(l.kind==='sat'&&l.ready>S.day);}
|
function linkDown(l){return linkCut(l)||(l.kind==='vxc'&&!!S.ev.fab&&S.ev.fab[l.prov]>S.day)||(l.kind==='df'&&!dfOn(l))||(l.kind==='xp'&&xpDown(l))||(l.kind==='sat'&&(l.ready>S.day||leoDown(l)));}
|
||||||
function remoteCities(){return [...new Set(S.links.filter(l=>l.kind==='vxc').flatMap(l=>[l.a,l.b]))].filter(c=>!S.pops[c]);}
|
function remoteCities(){return [...new Set(S.links.filter(l=>l.kind==='vxc').flatMap(l=>[l.a,l.b]))].filter(c=>!S.pops[c]);}
|
||||||
function nniUsed(c,prov){return S.links.filter(l=>l.kind==='vxc'&&l.prov===prov&&(l.a===c||l.b===c)).reduce((a,l)=>a+VXC[l.vt].g,0)+S.biz.filter(b=>BIZ_T[b.type].nni&&b.prov===prov&&b.city===c).reduce((a,b)=>a+b.bw,0);}
|
function nniUsed(c,prov){return S.links.filter(l=>l.kind==='vxc'&&l.prov===prov&&(l.a===c||l.b===c)).reduce((a,l)=>a+VXC[l.vt].g,0)+S.biz.filter(b=>BIZ_T[b.type].nni&&b.prov===prov&&b.city===c).reduce((a,b)=>a+b.bw,0);}
|
||||||
// Monthly price of one connection; compute() sums these, the connections overview lists them.
|
// Monthly price of one connection; compute() sums these, the connections overview lists them.
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ function* failureRun(only){
|
||||||
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]);
|
||||||
if(fabsUsed.length)opts.push(['fabric',1.5]);
|
if(fabsUsed.length)opts.push(['fabric',1.5]);
|
||||||
|
// A geomagnetic storm: rare, and only while a LEO circuit of yours is in the sky.
|
||||||
|
if(!leoStorm()&&leoLive())opts.push(['leostorm',LEO_STORM_W]);
|
||||||
// Amp huts and ROADMs carry every channel in the glass, the expresses' too; an optic of its own needs a channel of its own.
|
// Amp huts and ROADMs carry every channel in the glass, the expresses' too; an optic of its own needs a channel of its own.
|
||||||
const lit=S.links.filter(l=>l.kind==='df'&&dfCap(l)>0&&!linkDown(l)),amps=lit.concat(bare);if(amps.length)opts.push(['amp',1.5+amps.length*0.3]);if(lit.length)opts.push(['optic',1.5+lit.length*0.3]);
|
const lit=S.links.filter(l=>l.kind==='df'&&dfCap(l)>0&&!linkDown(l)),amps=lit.concat(bare);if(amps.length)opts.push(['amp',1.5+amps.length*0.3]);if(lit.length)opts.push(['optic',1.5+lit.length*0.3]);
|
||||||
// Two vendors' idea of the same protocol: the higher the backbone runs, the more often they disagree.
|
// Two vendors' idea of the same protocol: the higher the backbone runs, the more often they disagree.
|
||||||
|
|
@ -121,6 +123,7 @@ function* failureRun(only){
|
||||||
}else if(type==='fabric'){
|
}else if(type==='fabric'){
|
||||||
const f=pick(fabsUsed);S.ev.fab=S.ev.fab||{};S.ev.fab[f]=S.day+2+Math.floor(Math.random()*3);
|
const f=pick(fabsUsed);S.ev.fab=S.ev.fab||{};S.ev.fab[f]=S.day+2+Math.floor(Math.random()*3);
|
||||||
addInc({type,ref:f,until:S.ev.fab[f],msg:tr('failures.fabric_is_having_a_bad_day',{fabric:FAB[f].name}),cost:0});
|
addInc({type,ref:f,until:S.ev.fab[f],msg:tr('failures.fabric_is_having_a_bad_day',{fabric:FAB[f].name}),cost:0});
|
||||||
|
}else if(type==='leostorm'){leoStormGo();
|
||||||
}else if(type==='ddos'){ddosAttack(false);yield;yield* ddosNewsRun();return;
|
}else if(type==='ddos'){ddosAttack(false);yield;yield* ddosNewsRun();return;
|
||||||
}
|
}
|
||||||
// This failure's incident, kept before the routing: the player may repair it (or another) while the worker routes.
|
// This failure's incident, kept before the routing: the player may repair it (or another) while the worker routes.
|
||||||
|
|
@ -134,7 +137,7 @@ function* failureRun(only){
|
||||||
}
|
}
|
||||||
const gamingCount=()=>S.biz.reduce((n,b)=>n+(BIZ_T[b.type]?.gaming?1:0),0);
|
const gamingCount=()=>S.biz.reduce((n,b)=>n+(BIZ_T[b.type]?.gaming?1:0),0);
|
||||||
const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')];
|
const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')];
|
||||||
function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),interop:tr('core.interop_failure'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||pieIncTitle(t)||tr('common.incident');}
|
function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),interop:tr('core.interop_failure'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut'),leostorm:tr('pie_inc.t_storm')}[t]||pieIncTitle(t)||tr('common.incident');}
|
||||||
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label','interop'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
|
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label','interop'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
|
||||||
function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;}
|
function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;}
|
||||||
// Remove an incident, then restore each affected thing to whatever other incidents still hold it down.
|
// Remove an incident, then restore each affected thing to whatever other incidents still hold it down.
|
||||||
|
|
@ -149,6 +152,7 @@ function clearInc(i){
|
||||||
else if(T==='leak'){S.ev.leak=null;}
|
else if(T==='leak'){S.ev.leak=null;}
|
||||||
else if(T==='ddos'){const a=ddosAll(S,false).find(a=>i.atk?a.id===i.atk:a.city===i.ref&&(a.start===undefined||a.start===i.start));if(a){ddosDone(a);ddosDrop(a);}}
|
else if(T==='ddos'){const a=ddosAll(S,false).find(a=>i.atk?a.id===i.atk:a.city===i.ref&&(a.start===undefined||a.start===i.start));if(a){ddosDone(a);ddosDrop(a);}}
|
||||||
else if(T==='fabric'){if(S.ev.fab)S.ev.fab[i.ref]=remainUntil(x=>x.type==='fabric'&&x.ref===i.ref);}
|
else if(T==='fabric'){if(S.ev.fab)S.ev.fab[i.ref]=remainUntil(x=>x.type==='fabric'&&x.ref===i.ref);}
|
||||||
|
else if(T==='leostorm'){S.ev.sky=remainUntil(x=>x.type==='leostorm');}
|
||||||
else if(T==='mtu'){const l=S.links.find(x=>x.id===i.ref);if(l)l.deg=remainUntil(x=>x.type==='mtu'&&x.ref===i.ref);}
|
else if(T==='mtu'){const l=S.links.find(x=>x.id===i.ref);if(l)l.deg=remainUntil(x=>x.type==='mtu'&&x.ref===i.ref);}
|
||||||
else if(T==='loss'){const l=S.links.find(x=>x.id===i.ref);if(l&&!S.inc.some(x=>x.type==='loss'&&x.ref===i.ref))l.loss=null;}
|
else if(T==='loss'){const l=S.links.find(x=>x.id===i.ref);if(l&&!S.inc.some(x=>x.type==='loss'&&x.ref===i.ref))l.loss=null;}
|
||||||
else if(T==='lacp'){if(!S.inc.some(x=>x.type==='lacp'&&x.ref===i.ref)){const [k,...r]=String(i.ref).split(':'),id=r.join(':');if(k==='ix'){if(S.ev.ixlacp)delete S.ev.ixlacp[id];}else{const o=(k==='t'?S.transit:S.pni).find(x=>x.id===id);if(o)o.lacp=null;}}}
|
else if(T==='lacp'){if(!S.inc.some(x=>x.type==='lacp'&&x.ref===i.ref)){const [k,...r]=String(i.ref).split(':'),id=r.join(':');if(k==='ix'){if(S.ev.ixlacp)delete S.ev.ixlacp[id];}else{const o=(k==='t'?S.transit:S.pni).find(x=>x.id===id);if(o)o.lacp=null;}}}
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,9 @@ function pieIncFire(k){const P=S.pie;if(!P||!P.co)return false;const d=S.day;
|
||||||
const crs=f=>Object.keys(CRUSTS).filter(f);
|
const crs=f=>Object.keys(CRUSTS).filter(f);
|
||||||
if(k==='storm'){const c=crs(id=>pieLive(id)>0&&!pieIncOf('piestorm',id));if(!c.length)return false;const cr=pick(c),f=+(PIE_HIT/5+Math.random()*PIE_HIT*4/5).toFixed(3);
|
if(k==='storm'){const c=crs(id=>pieLive(id)>0&&!pieIncOf('piestorm',id));if(!c.length)return false;const cr=pick(c),f=+(PIE_HIT/5+Math.random()*PIE_HIT*4/5).toFixed(3);
|
||||||
const i=pieAdd({type:'piestorm',ref:cr,until:d+7,f,lost:0,cost:0,msg:tr('pie_inc.storm_msg',{crust:tr(CRUSTS[cr].n),p:pct(f)})});pieFounder(N_('pie.fp_storm'),{c:cr});pieStormBite(i);
|
const i=pieAdd({type:'piestorm',ref:cr,until:d+7,f,lost:0,cost:0,msg:tr('pie_inc.storm_msg',{crust:tr(CRUSTS[cr].n),p:pct(f)})});pieFounder(N_('pie.fp_storm'),{c:cr});pieStormBite(i);
|
||||||
|
// One sun: Starblink's satellites go to safe mode in the same storm (the rented LEO circuits you still have), for a
|
||||||
|
// day or two as the storm is weak or strong, so no dice are thrown that a sky without them would not throw.
|
||||||
|
if(!leoStorm()&&leoLive()){leoStormGo(f>=PIE_HIT*0.6?2:1);const x=S.inc[S.inc.length-1];toast(`<b>🛰️ ${incTitle('leostorm')}</b><br>${esc(x.msg)}`,'bad',[],incOpen(x));}
|
||||||
pieIncToast(i,tr('pie_inc.storm_press'),P.safe?[]:[{l:tr('pie_inc.safe_now'),act:'pieSafe',args:{}}]);return true;}
|
pieIncToast(i,tr('pie_inc.storm_press'),P.safe?[]:[{l:tr('pie_inc.safe_now'),act:'pieSafe',args:{}}]);return true;}
|
||||||
if(k==='food'){const c=crs(id=>pieLive(id)>=100&&!pieIncOf('piefood',id));if(!c.length)return false;const cr=pick(c),n=pieLose(cr,PIE_HIT/2+Math.random()*PIE_HIT/2);
|
if(k==='food'){const c=crs(id=>pieLive(id)>=100&&!pieIncOf('piefood',id));if(!c.length)return false;const cr=pick(c),n=pieLose(cr,PIE_HIT/2+Math.random()*PIE_HIT/2);
|
||||||
const i=pieAdd({type:'piefood',ref:cr,until:d+360,cost:piePrice(PIE_ROOMBA),fix:tr('pie_inc.food_fix'),msg:tr('pie_inc.food_msg',{crust:tr(CRUSTS[cr].n),n,p:pct(PIE_FOOD_MUL)})});
|
const i=pieAdd({type:'piefood',ref:cr,until:d+360,cost:piePrice(PIE_ROOMBA),fix:tr('pie_inc.food_fix'),msg:tr('pie_inc.food_msg',{crust:tr(CRUSTS[cr].n),n,p:pct(PIE_FOOD_MUL)})});
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
// Teleports and satellite capacity (#83): build the gateway, rent circuits on its birds, resize them. Cancel is rmLink.
|
// Teleports and satellite capacity (#83): build the gateway, rent circuits on its birds, resize them. Cancel is rmLink.
|
||||||
|
// A Starblink gateway on a teleport sells LEO circuits from there (teleLeo, teleLeoRm).
|
||||||
Object.assign(ACT,{
|
Object.assign(ACT,{
|
||||||
teleBuild:({city})=>{const p=S.pops[city];if(!p||teleOf(city))return;
|
teleBuild:({city})=>{const p=S.pops[city];if(!p||teleOf(city))return;
|
||||||
const why=teleWhy(city);if(why){toast(why,'bad');sfx('err');return;}
|
const why=teleWhy(city);if(why){toast(why,'bad');sfx('err');return;}
|
||||||
|
|
@ -10,18 +11,28 @@ Object.assign(ACT,{
|
||||||
teleRm:({city})=>{const p=S.pops[city];if(!p||!teleOf(city))return;const n=S.links.filter(l=>l.kind==='sat'&&l.a===city).length;
|
teleRm:({city})=>{const p=S.pops[city];if(!p||!teleOf(city))return;const n=S.links.filter(l=>l.kind==='sat'&&l.a===city).length;
|
||||||
if(n){toast(trn('satellites.cancel_n_circuits_first',n),'bad');sfx('err');return;}
|
if(n){toast(trn('satellites.cancel_n_circuits_first',n),'bad');sfx('err');return;}
|
||||||
if(UI.confirm!=='tele:'+city){UI.confirm='tele:'+city;renderPanel();return;}
|
if(UI.confirm!=='tele:'+city){UI.confirm='tele:'+city;renderPanel();return;}
|
||||||
delete p.tele;UI.confirm=null;toast(tr('satellites.teleport_closed',{city:CITY[city].name}));after();},
|
delete p.tele;delete p.leo;UI.confirm=null;toast(tr('satellites.teleport_closed',{city:CITY[city].name}));after();},
|
||||||
|
teleLeo:({city})=>{if(!own(S.pops,city)||leoGw(city))return;const why=leoGwWhy(city);if(why){toast(why,'bad');sfx('err');return;}
|
||||||
|
if(!spend(LEO_GW_COST))return;S.pops[city].leo=1;toast(tr('satellites.leo_gateway_up',{prov:SAT_PROV.sbk.n,city:CITY[city].name,km:SAT_ORB.leo.km.toLocaleString()}),'good');after();},
|
||||||
|
// Closing the gateway asks twice, and never while LEO circuits still start there.
|
||||||
|
teleLeoRm:({city})=>{if(!leoGw(city))return;const n=S.links.filter(l=>l.a===city&&leoLink(l)).length;
|
||||||
|
if(n){toast(trn('satellites.cancel_n_circuits_first',n),'bad');sfx('err');return;}
|
||||||
|
if(UI.confirm!=='leo:'+city){UI.confirm='leo:'+city;renderPanel();return;}
|
||||||
|
delete S.pops[city].leo;UI.confirm=null;toast(tr('satellites.leo_gateway_closed',{city:CITY[city].name}));after();},
|
||||||
satOpen:({a,b})=>satModal(a,b),
|
satOpen:({a,b})=>satModal(a,b),
|
||||||
// Rent a circuit from teleport a to b: the first month up front, like a wave; a POP at b comes with it if there is none.
|
// Rent a circuit from teleport a to b: the first month up front, like a wave; a POP at b comes with it if there is none.
|
||||||
// Next to a link you already have between the two, it goes on standby: the backup that carries only when the cable is down.
|
// Next to a link you already have between the two, it goes on standby: the backup that carries only when the cable is down.
|
||||||
buySat:({a,b,bird,g})=>{g=+g;const why=satWhy(a,b,bird,g);if(why){toast(why,'bad');sfx('err');return;}
|
buySat:({a,b,bird,g})=>{g=+g;const why=satWhy(a,b,bird,g);if(why){toast(why,'bad');sfx('err');return;}
|
||||||
if(!portGate(a,1)||!portGate(b,1))return;const mo=satMo(bird,g),pop=!S.pops[b];if(!spend(mo+(pop?popCost(b):0)))return;
|
if(!portGate(a,1)||!portGate(b,1))return;const mo=satMo(bird,g),pop=!S.pops[b];if(!spend(mo+(pop?popCost(b):0)))return;
|
||||||
if(pop){S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};popStdApply(b);}
|
if(pop){S.pops[b]={day:S.day,bb:null,boost:0,down:0,routers:1,gen:false,rgen:0};popStdApply(b);}
|
||||||
const sb=pairLinks(a,b).some(l=>l.kind!=='sat'),n=leadDays(SAT_ORB[SATS[bird].orb].days),id=uid();
|
// One satellite a pair: LEO puts the GEO and MEO circuits there on standby, and one ordered beside LEO waits on standby.
|
||||||
|
const lo=SATS[bird].orb==='leo',sb=pairLinks(a,b).some(l=>l.kind!=='sat'||!lo&&!l.standby&&leoLink(l));if(lo&&!sb)satBeside(a,b);
|
||||||
|
const n=leadDays(SAT_ORB[SATS[bird].orb].days),id=uid();
|
||||||
S.links.push({id,a,b,kind:'sat',bird,g,km:satKm(bird,a,b),sub:true,mo,cut:0,day:S.day,ready:S.day+n,...(sb?{standby:true}:{})});
|
S.links.push({id,a,b,kind:'sat',bird,g,km:satKm(bird,a,b),sub:true,mo,cut:0,day:S.day,ready:S.day+n,...(sb?{standby:true}:{})});
|
||||||
closeModal();UI.sel={type:'link',id};
|
closeModal();UI.sel={type:'link',id};
|
||||||
toast(trn('satellites.circuit_ordered',n,{cap:fmtCap(g),bird:esc(SATS[bird].n),a:CITY[a].name,b:CITY[b].name})+(sb?' '+tr('satellites.on_standby_beside_your_link'):''),'good');after();},
|
toast(trn('satellites.circuit_ordered',n,{cap:fmtCap(g),bird:esc(SATS[bird].n),a:CITY[a].name,b:CITY[b].name})+(sb?' '+tr('satellites.on_standby_beside_your_link'):''),'good');after();},
|
||||||
// Bigger or smaller on the same bird: a bigger one pays its new month up front, as a wave upgrade does.
|
// Bigger or smaller on the same bird: a bigger one pays its new month up front, as a wave upgrade does.
|
||||||
satSize:({id,g})=>{g=+g;const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='sat'||g===l.g||!SAT_ORB[SATS[l.bird].orb].g.includes(g))return;
|
satSize:({id,g})=>{g=+g;const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='sat'||g===l.g||!SAT_ORB[SATS[l.bird].orb].g.includes(g))return;
|
||||||
|
if(g>l.g&&leoLink(l)){const w=leoGrowWhy(l);if(w){toast(w,'bad');sfx('err');return;}}
|
||||||
const mo=satMo(l.bird,g);if(g>l.g&&!spend(mo))return;l.g=g;l.mo=mo;sfx('click');after();},
|
const mo=satMo(l.bird,g);if(g>l.g&&!spend(mo))return;l.g=g;l.mo=mo;sfx('click');after();},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ const satLogo=P=>`<span class="logo" style="--c:${P.col}">${esc(P.n.slice(0,2).t
|
||||||
const satRtt=(id,a,b)=>Math.round(2*satLat({bird:id,km:satKm(id,a,b)}));
|
const satRtt=(id,a,b)=>Math.round(2*satLat({bird:id,km:satKm(id,a,b)}));
|
||||||
const satModalHead=(eye,title)=>`<div style="display:flex;align-items:center"><div><div class="eyebrow">🛰️ ${eye}</div><h2 style="font-size:24px">${title}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
const satModalHead=(eye,title)=>`<div style="display:flex;align-items:center"><div><div class="eyebrow">🛰️ ${eye}</div><h2 style="font-size:24px">${title}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
||||||
// In a city's facts: its own users' traffic rides a satellite today (R.satU), and they count part of the service as bad (sfOf, R.latF).
|
// In a city's facts: its own users' traffic rides a satellite today (R.satU), and they count part of the service as bad (sfOf, R.latF).
|
||||||
const satFact=c=>R&&R.latF&&R.latF[c]<1&&R.satU&&R.satU[c]>1e-3?`<span class="fact bad">🛰️ ${tr('satellites.users_ride_a_satellite')}</span>`:'';
|
// Over LEO alone they hardly notice, so the chip is a plain one.
|
||||||
|
const satFact=c=>R&&R.latF&&R.latF[c]<1&&R.satU&&R.satU[c]>1e-3?`<span class="fact${R.latF[c]>=1-SAT_ORB.leo.loss-1e-9?'':' bad'}">🛰️ ${tr('satellites.users_ride_a_satellite')}</span>`:'';
|
||||||
// The birds a dish at c sees, in words.
|
// The birds a dish at c sees, in words.
|
||||||
const satInView=c=>{const ids=teleSees(c);return ids.length?tr('satellites.in_view_list',{list:ids.map(id=>`<b>${esc(SATS[id].n)}</b> (${tr(SATS[id].sea)})`).join(', ')}):tr('satellites.no_bird_sees_this_city');};
|
const satInView=c=>{const ids=teleSees(c);return ids.length?tr('satellites.in_view_list',{list:ids.map(id=>`<b>${esc(SATS[id].n)}</b> (${tr(SATS[id].sea)})`).join(', ')}):tr('satellites.no_bird_sees_this_city');};
|
||||||
// In a POP's Infra tab: its teleport (build it, what it sees, its circuits), and the teleports that can reach it.
|
// In a POP's Infra tab: its teleport (build it, what it sees, its circuits), and the teleports that can reach it.
|
||||||
|
|
@ -16,13 +17,30 @@ function teleHtml(c){if(pzOn())return '';const t=teleOf(c),from=satFrom(c),open=
|
||||||
for(const l of out){const u=capOf(l)?(R.load[l.id]||0)/capOf(l):0;
|
for(const l of out){const u=capOf(l)?(R.load[l.id]||0)/capOf(l):0;
|
||||||
h+=`<div class="row"><div class="grow"><div class="nm">→ ${CITY[l.b].name}${l.standby?' <span class="tag st">'+tr('common.standby')+'</span>':''}</div><div class="meta">${capName(l)} · ${esc(satName(l))}${l.ready>S.day?' · '+tr('city_panel.ready_in_n_d',{n:l.ready-S.day}):''} · ${tr('common.price_mo',{price:fmt$(l.mo)})}</div><div class="bar ${barCls(u)}"><i style="width:${Math.min(100,u*100)}%"></i></div></div>${btn(tr('common.open'),'selLink',{id:l.id},'ghost sm')}</div>`;}
|
h+=`<div class="row"><div class="grow"><div class="nm">→ ${CITY[l.b].name}${l.standby?' <span class="tag st">'+tr('common.standby')+'</span>':''}</div><div class="meta">${capName(l)} · ${esc(satName(l))}${l.ready>S.day?' · '+tr('city_panel.ready_in_n_d',{n:l.ready-S.day}):''} · ${tr('common.price_mo',{price:fmt$(l.mo)})}</div><div class="bar ${barCls(u)}"><i style="width:${Math.min(100,u*100)}%"></i></div></div>${btn(tr('common.open'),'selLink',{id:l.id},'ghost sm')}</div>`;}
|
||||||
h+=`<div class="btns">${btn(tr('satellites.rent_satellite_capacity'),'satOpen',{a:c},'pink sm')}${t===1&&lvl()>=SAT_ORB.meo.lv&&meo?btn(tr('satellites.add_tracking_antennas_cost_mo',{cost:fmt$(TRK_COST),mo:fmt$(TRK_MO)}),'teleTrk',{city:c},'sm',S.cash<TRK_COST):''}${out.length?'':btn(cf?tr('satellites.really_close_it'):tr('satellites.close_the_teleport'),'teleRm',{city:c},'ghost sm')}</div>
|
h+=`<div class="btns">${btn(tr('satellites.rent_satellite_capacity'),'satOpen',{a:c},'pink sm')}${t===1&&lvl()>=SAT_ORB.meo.lv&&meo?btn(tr('satellites.add_tracking_antennas_cost_mo',{cost:fmt$(TRK_COST),mo:fmt$(TRK_MO)}),'teleTrk',{city:c},'sm',S.cash<TRK_COST):''}${out.length?'':btn(cf?tr('satellites.really_close_it'):tr('satellites.close_the_teleport'),'teleRm',{city:c},'ghost sm')}</div>
|
||||||
${t===1&&lvl()<SAT_ORB.meo.lv&&meo?`<p class="note">${tr('satellites.meo_comes_at_level',{lv:SAT_ORB.meo.lv})}</p>`:''}`;}
|
${t===1&&lvl()<SAT_ORB.meo.lv&&meo?`<p class="note">${tr('satellites.meo_comes_at_level',{lv:SAT_ORB.meo.lv})}</p>`:''}`;
|
||||||
|
h+=leoHtml(c);}
|
||||||
// Before the build: what its dishes would see and reach at your level, and no button to a teleport that reaches nothing.
|
// Before the build: what its dishes would see and reach at your level, and no button to a teleport that reaches nothing.
|
||||||
else if(open){const why=teleWhy(c),n=why?0:satTargets(c).filter(x=>satBirds(c,x).some(id=>lvl()>=SAT_ORB[SATS[id].orb].lv)).length;
|
else if(open){const why=teleWhy(c),n=why?0:satTargets(c).filter(x=>satBirds(c,x).some(id=>lvl()>=SAT_ORB[SATS[id].orb].lv)).length;
|
||||||
h+=`<p class="lead">${tr('satellites.a_teleport_is_a_satellite_gateway')}</p><div class="meta">${satInView(c)}${why?'':' '+trn('satellites.n_places_in_reach',n)}</div>${why&&teleSees(c).length?`<div class="why">${esc(why)}</div>`:''}
|
h+=`<p class="lead">${tr('satellites.a_teleport_is_a_satellite_gateway')}</p><div class="meta">${satInView(c)}${why?'':' '+trn('satellites.n_places_in_reach',n)}</div>${why&&teleSees(c).length?`<div class="why">${esc(why)}</div>`:''}
|
||||||
<div class="btns">${btn(tr('satellites.build_a_teleport_cost_mo',{cost:fmt$(TPORT_COST),mo:fmt$(TPORT_MO)}),'teleBuild',{city:c},'sm',S.cash<TPORT_COST||!!why)}</div>`;}
|
<div class="btns">${btn(tr('satellites.build_a_teleport_cost_mo',{cost:fmt$(TPORT_COST),mo:fmt$(TPORT_MO)}),'teleBuild',{city:c},'sm',S.cash<TPORT_COST||!!why)}</div>`;}
|
||||||
if(from.length)h+=satReach(c,from);
|
if(from.length)h+=satReach(c,from);
|
||||||
return h+`</section>`;}
|
return h+`</section>`;}
|
||||||
|
/* A teleport's Starblink gateway: host it (level 5, under the shell, on your fiber), what it reaches, and once circuits
|
||||||
|
land there, the POP every island behind it leans on: its routers and the fiber out of the city, as routing sees them. */
|
||||||
|
function leoHtml(c){const O=SAT_ORB.leo;if(!satSees(LEO_BIRD,c))return '';
|
||||||
|
if(lvl()<O.lv)return `<p class="note">${tr('satellites.leo_comes_at_level',{lv:O.lv})}</p>`;
|
||||||
|
if(!leoGw(c)){const why=leoGwWhy(c);
|
||||||
|
return `${why?`<div class="why">${esc(why)}</div>`:''}<div class="btns">${btn(tr('satellites.host_leo_gateway_cost_mo',{cost:fmt$(LEO_GW_COST),mo:fmt$(LEO_GW_MO)}),'teleLeo',{city:c},'sm',!!why||S.cash<LEO_GW_COST)}</div>`;}
|
||||||
|
const out=S.links.filter(l=>l.a===c&&leoLink(l)),n=satTargets(c).filter(x=>satPairOk(LEO_BIRD,c,x)).length,C=CITY[c].name;
|
||||||
|
let h=`<div class="kv"><span>${tr('satellites.leo_gateway')}</span><b>${esc(SAT_PROV.sbk.n)} · ${tr('common.price_mo',{price:fmt$(LEO_GW_MO)})}</b></div><div class="meta">${trn('satellites.n_in_leo_reach',n,{km:O.km.toLocaleString()})}</div>`;
|
||||||
|
if(!satWired(c))h+=`<div class="why">${tr('satellites.leo_gateway_unwired',{city:C})}</div>`;
|
||||||
|
if(!out.length)return h+`<div class="btns">${btn(UI.confirm==='leo:'+c?tr('satellites.really_close_it'):tr('satellites.close_the_leo_gateway'),'teleLeoRm',{city:c},'ghost sm')}</div>`;
|
||||||
|
const land=out.reduce((a,l)=>a+(R.load[l.id]||0),0),nl=R.nodeLoad[c]||0,nc=R.nodeCap[c]||nodeCap(c)||1,un=nl/nc,
|
||||||
|
ws=S.links.filter(l=>(l.a===c||l.b===c)&&wiredLink(l)&&!linkDown(l)&&!l.standby),wl=ws.reduce((a,l)=>a+(R.load[l.id]||0),0),wc=ws.reduce((a,l)=>a+capOf(l),0),uw=wc>0?wl/wc:0;
|
||||||
|
return h+`<div class="kv"><span>${tr('satellites.leo_landing')}</span><b>${fmtG(land)}</b></div>
|
||||||
|
<div class="kv"><span>${tr('common.forwarding_load')}</span><b>${fmtG(nl)} / ${fmtG(nc)}</b></div><div class="bar ${barCls(un)}"><i style="width:${Math.min(100,un*100)}%"></i></div>
|
||||||
|
<div class="kv"><span>${tr('satellites.leo_backhaul',{city:C})}</span><b>${fmtG(wl)} / ${fmtG(wc)}</b></div>${wc>0?`<div class="bar ${barCls(uw)}"><i style="width:${Math.min(100,uw*100)}%"></i></div>`:''}
|
||||||
|
${un>=0.95||uw>=0.95?`<p class="why">${tr('satellites.leo_bottleneck',{city:C})}</p>`:''}`;}
|
||||||
// Teleports that reach city c: a button each, to the order sheet.
|
// Teleports that reach city c: a button each, to the order sheet.
|
||||||
const satReach=(c,from)=>`<p class="note">${tr('satellites.reachable_from_your_teleports',{city:CITY[c].name})}</p><div class="btns">${from.slice(0,4).map(a=>btn(tr('fiber_modals.from_city',{city:CITY[a].name}),'satOpen',{a,b:c},'ghost sm')).join('')}</div>`;
|
const satReach=(c,from)=>`<p class="note">${tr('satellites.reachable_from_your_teleports',{city:CITY[c].name})}</p><div class="btns">${from.slice(0,4).map(a=>btn(tr('fiber_modals.from_city',{city:CITY[a].name}),'satOpen',{a,b:c},'ghost sm')).join('')}</div>`;
|
||||||
// Whether a satellite can get to city c: a teleport of yours reaches it, or (once teleports are on sale) a bird you may
|
// Whether a satellite can get to city c: a teleport of yours reaches it, or (once teleports are on sale) a bird you may
|
||||||
|
|
@ -48,6 +66,7 @@ function satModal(a,b){a=isCity(a)?a:null;b=isCity(b)?b:null;
|
||||||
return `<div class="row">${satLogo(P)}<div class="grow"><div class="nm">${esc(B.n)} <span class="tag">${O.n}</span></div><div class="meta">${esc(P.n)} · ${tr(B.sea)} · ${tr('satellites.ms_round_trip',{ms:satRtt(id,a,b)})} · ${trn('satellites.up_in_n_days',leadDays(O.days))}</div><div class="meta">${esc(P.blurb)}</div>${why?`<div class="why">${esc(why)}</div>`:''}
|
return `<div class="row">${satLogo(P)}<div class="grow"><div class="nm">${esc(B.n)} <span class="tag">${O.n}</span></div><div class="meta">${esc(P.n)} · ${tr(B.sea)} · ${tr('satellites.ms_round_trip',{ms:satRtt(id,a,b)})} · ${trn('satellites.up_in_n_days',leadDays(O.days))}</div><div class="meta">${esc(P.blurb)}</div>${why?`<div class="why">${esc(why)}</div>`:''}
|
||||||
<div class="btns">${O.g.map(g=>btn(`${fmtCap(g)} <small>${tr('common.price_mo',{price:fmt$(satMo(id,g))})}</small>`,'buySat',{a,b,bird:id,g},'sm',!!why||S.cash<satMo(id,g)+pop)).join('')}</div></div></div>`;}).join('');
|
<div class="btns">${O.g.map(g=>btn(`${fmtCap(g)} <small>${tr('common.price_mo',{price:fmt$(satMo(id,g))})}</small>`,'buySat',{a,b,bird:id,g},'sm',!!why||S.cash<satMo(id,g)+pop)).join('')}</div></div></div>`;}).join('');
|
||||||
openModal(satModalHead(tr('satellites.satellite_capacity'),`${CITY[a].name} → ${CITY[b].name}`)+`<p class="lead" style="margin-top:8px">${tr('satellites.users_notice_geo_meo')}</p>`
|
openModal(satModalHead(tr('satellites.satellite_capacity'),`${CITY[a].name} → ${CITY[b].name}`)+`<p class="lead" style="margin-top:8px">${tr('satellites.users_notice_geo_meo')}</p>`
|
||||||
|
+(birds.some(id=>SATS[id].orb==='leo')?`<p class="note">${tr('satellites.users_notice_leo')}</p>`:'')
|
||||||
+(pop?`<p class="note">${tr('satellites.no_pop_there_yet',{city:CITY[b].name,cost:fmt$(pop)})}</p>`:'')+(sib?`<p class="note">${tr('satellites.it_waits_on_standby')}</p>`:'')
|
+(pop?`<p class="note">${tr('satellites.no_pop_there_yet',{city:CITY[b].name,cost:fmt$(pop)})}</p>`:'')+(sib?`<p class="note">${tr('satellites.it_waits_on_standby')}</p>`:'')
|
||||||
+(rows||`<p class="empty">${tr('satellites.no_bird_sees_both',{a:CITY[a].name,b:CITY[b].name})}</p>`));}
|
+(rows||`<p class="empty">${tr('satellites.no_bird_sees_both',{a:CITY[a].name,b:CITY[b].name})}</p>`));}
|
||||||
// A circuit's panel: what it carries, its latency and rent, a size up or down, standby and the metric, cancel.
|
// A circuit's panel: what it carries, its latency and rent, a size up or down, standby and the metric, cancel.
|
||||||
|
|
@ -58,10 +77,11 @@ function satPanel(l){const B=SATS[l.bird],O=SAT_ORB[B.orb],P=SAT_PROV[B.p],load=
|
||||||
if(l.ready>S.day){const tot=Math.max(1,l.ready-l.day),done=clamp((S.day-l.day)/tot,0,1);
|
if(l.ready>S.day){const tot=Math.max(1,l.ready-l.day),done=clamp((S.day-l.day)/tot,0,1);
|
||||||
h+=`<section><h3>${tr('satellites.being_commissioned')}</h3><div class="kv"><span>${tr('satellites.pointing_dishes_and_testing')}</span><b>${tr('common.n_days_left',{n:l.ready-S.day})}</b></div><div class="bar me"><i style="width:${done*100}%"></i></div></section>`;}
|
h+=`<section><h3>${tr('satellites.being_commissioned')}</h3><div class="kv"><span>${tr('satellites.pointing_dishes_and_testing')}</span><b>${tr('common.n_days_left',{n:l.ready-S.day})}</b></div><div class="bar me"><i style="width:${done*100}%"></i></div></section>`;}
|
||||||
h+=`<section><h3>${tr('common.capacity')}</h3><div class="kv"><span>${capName(l)}${l.standby?' · '+tr('common.standby'):''}</span><b>${fmtG(load)} / ${fmtG(cap)}</b></div><div class="bar ${barCls(u)}"><i style="width:${Math.min(100,u*100)}%"></i></div>
|
h+=`<section><h3>${tr('common.capacity')}</h3><div class="kv"><span>${capName(l)}${l.standby?' · '+tr('common.standby'):''}</span><b>${fmtG(load)} / ${fmtG(cap)}</b></div><div class="bar ${barCls(u)}"><i style="width:${Math.min(100,u*100)}%"></i></div>
|
||||||
|
${leoDown(l)?`<p class="why">${trn('satellites.leo_safe_mode_n_days',S.ev.sky-S.day)}</p>`:''}
|
||||||
<div class="kv"><span>${tr('common.latency')}</span><b>${tr('satellites.ms_one_way_rtt',{ms:Math.round(ms),rtt:Math.round(2*ms)})}</b></div>
|
<div class="kv"><span>${tr('common.latency')}</span><b>${tr('satellites.ms_one_way_rtt',{ms:Math.round(ms),rtt:Math.round(2*ms)})}</b></div>
|
||||||
<div class="kv"><span>${tr('satellites.radio_path')}</span><b>${l.km.toLocaleString()} km</b></div>
|
<div class="kv"><span>${tr('satellites.radio_path')}</span><b>${l.km.toLocaleString()} km</b></div>
|
||||||
<div class="kv"><span>${tr('satellites.rent')}</span><b>${tr('common.price_mo',{price:fmt$(l.mo)})}</b></div>
|
<div class="kv"><span>${tr('satellites.rent')}</span><b>${tr('common.price_mo',{price:fmt$(l.mo)})}</b></div>
|
||||||
<p class="note">${B.orb==='geo'?tr('satellites.geo_users_notice',{p:pct(O.loss)}):tr('satellites.meo_users_notice',{p:pct(O.loss)})} ${esc(P.blurb)}</p>
|
<p class="note">${B.orb==='geo'?tr('satellites.geo_users_notice',{p:pct(O.loss)}):B.orb==='meo'?tr('satellites.meo_users_notice',{p:pct(O.loss)}):tr('satellites.leo_users_notice',{p:pct(O.loss),city:CITY[l.a].name})} ${esc(P.blurb)}</p>
|
||||||
<div class="btns">${O.g.filter(g=>g!==l.g).map(g=>btn(`${g>l.g?tr('satellites.grow_to',{cap:fmtCap(g)}):tr('satellites.shrink_to',{cap:fmtCap(g)})} <small>${tr('common.price_mo',{price:fmt$(satMo(l.bird,g))})}</small>`,'satSize',{id:l.id,g},'sm',g>l.g&&S.cash<satMo(l.bird,g))).join('')}</div></section>
|
<div class="btns">${O.g.filter(g=>g!==l.g).map(g=>btn(`${g>l.g?tr('satellites.grow_to',{cap:fmtCap(g)}):tr('satellites.shrink_to',{cap:fmtCap(g)})} <small>${tr('common.price_mo',{price:fmt$(satMo(l.bird,g))})}</small>`,'satSize',{id:l.id,g},'sm',g>l.g&&S.cash<satMo(l.bird,g))).join('')}</div></section>
|
||||||
${trafficSection(l)}${metricSection(l)}
|
${trafficSection(l)}${metricSection(l)}
|
||||||
<section>${btn(UI.confirm===l.id?tr('common.really_cancel'):tr('common.cancel_circuit'),'rmLink',{id:l.id},'ghost sm')}</section></div>`;
|
<section>${btn(UI.confirm===l.id?tr('common.really_cancel'):tr('common.cancel_circuit'),'rmLink',{id:l.id},'ghost sm')}</section></div>`;
|
||||||
|
|
|
||||||
|
|
@ -4777,16 +4777,33 @@
|
||||||
"satellites.cancel_n_circuits_first":{"one":"Cancel its satellite circuit first.","other":"Cancel its {n} satellite circuits first."},
|
"satellites.cancel_n_circuits_first":{"one":"Cancel its satellite circuit first.","other":"Cancel its {n} satellite circuits first."},
|
||||||
"satellites.choose":"Choose",
|
"satellites.choose":"Choose",
|
||||||
"satellites.circuit_ordered":{"one":"<b>{cap} on {bird} ordered.</b> {a} ⇄ {b} is being pointed and tested: up in {n} day.","other":"<b>{cap} on {bird} ordered.</b> {a} ⇄ {b} is being pointed and tested: up in {n} days."},
|
"satellites.circuit_ordered":{"one":"<b>{cap} on {bird} ordered.</b> {a} ⇄ {b} is being pointed and tested: up in {n} day.","other":"<b>{cap} on {bird} ordered.</b> {a} ⇄ {b} is being pointed and tested: up in {n} days."},
|
||||||
|
"satellites.close_the_leo_gateway":"Close the LEO gateway",
|
||||||
"satellites.close_the_teleport":"Close the teleport",
|
"satellites.close_the_teleport":"Close the teleport",
|
||||||
"satellites.costs_row":"Teleports and satellites",
|
"satellites.costs_row":"Teleports and satellites",
|
||||||
"satellites.geo_dishes":"GEO dishes",
|
"satellites.geo_dishes":"GEO dishes",
|
||||||
"satellites.geo_dishes_and_meo_tracking":"GEO dishes and MEO tracking antennas",
|
"satellites.geo_dishes_and_meo_tracking":"GEO dishes and MEO tracking antennas",
|
||||||
"satellites.geo_users_notice":"From 36,000 km up the round trip is about 600 ms: video calls and games stutter, and users count {p} of the service as bad.",
|
"satellites.geo_users_notice":"From 36,000 km up the round trip is about 600 ms: video calls and games stutter, and users count {p} of the service as bad.",
|
||||||
"satellites.grow_to":"Grow to {cap}",
|
"satellites.grow_to":"Grow to {cap}",
|
||||||
|
"satellites.host_leo_gateway_cost_mo":"LEO gateway <small>{cost} + {mo}/mo</small>",
|
||||||
"satellites.in_view_list":"In view: {list}.",
|
"satellites.in_view_list":"In view: {list}.",
|
||||||
"satellites.it_waits_on_standby":"You already have a link between these two: the satellite waits on standby and carries traffic only when that link is down.",
|
"satellites.it_waits_on_standby":"You already have a link between these two: the satellite waits on standby and carries traffic only when that link is down.",
|
||||||
"satellites.its_blurb":"Old-school C-band and Ku-band beams that cover a whole ocean. Reliable, everywhere, and priced like it.",
|
"satellites.its_blurb":"Old-school C-band and Ku-band beams that cover a whole ocean. Reliable, everywhere, and priced like it.",
|
||||||
"satellites.kac_blurb":"Ka-band spot beams over the western Pacific: the cheapest Gbps in orbit, if your island is under a beam.",
|
"satellites.kac_blurb":"Ka-band spot beams over the western Pacific: the cheapest Gbps in orbit, if your island is under a beam.",
|
||||||
|
"satellites.leo_backhaul":"Fiber and cables out of {city}",
|
||||||
|
"satellites.leo_bottleneck":"{city} is full: every island behind this gateway slows down with it. Add routers, a bigger wave or transit here.",
|
||||||
|
"satellites.leo_comes_at_level":"Low-orbit capacity (about 30 ms round trip) comes at level {lv}.",
|
||||||
|
"satellites.leo_gateway":"LEO gateway",
|
||||||
|
"satellites.leo_gateway_closed":"The LEO gateway in {city} is closed.",
|
||||||
|
"satellites.leo_gateway_unwired":"No fiber of yours leaves {city} any more: the islands behind this gateway reach the rest of your network over another satellite.",
|
||||||
|
"satellites.leo_gateway_up":"<b>{prov} gateway up in {city}.</b> Their antennas on your roof: rent low-orbit capacity from here to islands within {km} km.",
|
||||||
|
"satellites.leo_landing":"Landing here from orbit",
|
||||||
|
"satellites.leo_needs_fiber":"A LEO gateway has to sit on your fiber: {city} reaches the rest of your network only by satellite. Land a cable or a wave there, or buy transit, first.",
|
||||||
|
"satellites.leo_no_rivals":"{prov} does not sell capacity to a rival constellation, and yours is flying: put a pie dish on the island instead.",
|
||||||
|
"satellites.leo_out_of_reach":"{prov} is a bent pipe: one satellite has to see your gateway and the island at once, so they can be at most {km} km apart. {a} to {b} is {d} km.",
|
||||||
|
"satellites.leo_safe_mode_n_days":{"one":"Safe mode through a solar storm: back in {n} day.","other":"Safe mode through a solar storm: back in {n} days."},
|
||||||
|
"satellites.leo_shell_misses_city":"{prov} does not reach {city}: its shells cover {lat}° either side of the equator.",
|
||||||
|
"satellites.leo_storm_msg":"A geomagnetic storm: {prov} puts its satellites in safe mode. Your LEO circuits carry nothing until it passes; standby circuits and cables take what they can.",
|
||||||
|
"satellites.leo_users_notice":"Bent pipe from 550 km up, about 30 ms round trip: users hardly notice ({p} of the service counts as bad), and selective networks peer with you as over a cable. It lands at your gateway in {city}: when that POP's routers or fiber fill up, every island behind it slows down.",
|
||||||
"satellites.meo_comes_at_level":"The MEO ring (about 130 ms round trip) comes at level {lv}.",
|
"satellites.meo_comes_at_level":"The MEO ring (about 130 ms round trip) comes at level {lv}.",
|
||||||
"satellites.meo_ring_misses_city":"The MEO ring does not see {city}: it covers {lat}° either side of the equator.",
|
"satellites.meo_ring_misses_city":"The MEO ring does not see {city}: it covers {lat}° either side of the equator.",
|
||||||
"satellites.meo_users_notice":"Much closer to the ground, about 130 ms round trip: users barely notice ({p} of the service counts as bad).",
|
"satellites.meo_users_notice":"Much closer to the ground, about 130 ms round trip: users barely notice ({p} of the service counts as bad).",
|
||||||
|
|
@ -4795,7 +4812,9 @@
|
||||||
"satellites.ms_round_trip":"{ms} ms round trip",
|
"satellites.ms_round_trip":"{ms} ms round trip",
|
||||||
"satellites.n_birds_see_both":{"one":"{n} satellite sees both","other":"{n} satellites see both"},
|
"satellites.n_birds_see_both":{"one":"{n} satellite sees both","other":"{n} satellites see both"},
|
||||||
"satellites.n_circuits_go_on_standby":{"one":"Your satellite circuit between {a} and {b} goes on standby beside the new link: it carries traffic only when that link is down.","other":"Your {n} satellite circuits between {a} and {b} go on standby beside the new link: they carry traffic only when that link is down."},
|
"satellites.n_circuits_go_on_standby":{"one":"Your satellite circuit between {a} and {b} goes on standby beside the new link: it carries traffic only when that link is down.","other":"Your {n} satellite circuits between {a} and {b} go on standby beside the new link: they carry traffic only when that link is down."},
|
||||||
|
"satellites.n_in_leo_reach":{"one":"{n} island or remote town within {km} km of this gateway.","other":"{n} islands and remote towns within {km} km of this gateway."},
|
||||||
"satellites.n_places_in_reach":{"one":"{n} island or remote town in reach at your level.","other":"{n} islands and remote towns in reach at your level."},
|
"satellites.n_places_in_reach":{"one":"{n} island or remote town in reach at your level.","other":"{n} islands and remote towns in reach at your level."},
|
||||||
|
"satellites.needs_leo_gateway":"LEO capacity needs a gateway at your teleport in {city}.",
|
||||||
"satellites.needs_tracking_antennas":"The MEO ring needs tracking antennas at your teleport in {city}.",
|
"satellites.needs_tracking_antennas":"The MEO ring needs tracking antennas at your teleport in {city}.",
|
||||||
"satellites.new_pop_cost":"new POP {cost}",
|
"satellites.new_pop_cost":"new POP {cost}",
|
||||||
"satellites.no_bird_sees_both":"No satellite on sale sees both {a} and {b}.",
|
"satellites.no_bird_sees_both":"No satellite on sale sees both {a} and {b}.",
|
||||||
|
|
@ -4819,9 +4838,11 @@
|
||||||
"satellites.rent_satellite_capacity":"Rent satellite capacity",
|
"satellites.rent_satellite_capacity":"Rent satellite capacity",
|
||||||
"satellites.satellite_capacity":"Satellite capacity",
|
"satellites.satellite_capacity":"Satellite capacity",
|
||||||
"satellites.satellites":"Satellites",
|
"satellites.satellites":"Satellites",
|
||||||
|
"satellites.sbk_blurb":"Thousands of small satellites 550 km up, about 30 ms there and back: the first satellite your users will not complain about. They blink from one satellite to the next every few seconds; nobody notices.",
|
||||||
"satellites.sea_americas":"Americas",
|
"satellites.sea_americas":"Americas",
|
||||||
"satellites.sea_atlantic":"Atlantic",
|
"satellites.sea_atlantic":"Atlantic",
|
||||||
"satellites.sea_indian":"Indian Ocean",
|
"satellites.sea_indian":"Indian Ocean",
|
||||||
|
"satellites.sea_leo":"within 56° of the equator, 550 km up",
|
||||||
"satellites.sea_pacific":"Pacific",
|
"satellites.sea_pacific":"Pacific",
|
||||||
"satellites.sea_tropics":"within 50° of the equator",
|
"satellites.sea_tropics":"within 50° of the equator",
|
||||||
"satellites.sea_west_pacific":"Western Pacific",
|
"satellites.sea_west_pacific":"Western Pacific",
|
||||||
|
|
@ -4833,7 +4854,8 @@
|
||||||
"satellites.teleports_unlock_at_level":"Teleports unlock at level {lv}.",
|
"satellites.teleports_unlock_at_level":"Teleports unlock at level {lv}.",
|
||||||
"satellites.tracking_antennas_up":"<b>Tracking antennas up in {city}.</b> They follow the MEO ring across the sky.",
|
"satellites.tracking_antennas_up":"<b>Tracking antennas up in {city}.</b> They follow the MEO ring across the sky.",
|
||||||
"satellites.up_in_n_days":{"one":"up in {n} day","other":"up in {n} days"},
|
"satellites.up_in_n_days":{"one":"up in {n} day","other":"up in {n} days"},
|
||||||
"satellites.users_notice_geo_meo":"Users notice the lag: broadband over GEO counts as half the service, over MEO almost all of it. A cable always beats it, so your routers only send traffic up when there is no other way.",
|
"satellites.users_notice_geo_meo":"Users notice the lag: broadband over GEO counts as half the service, over MEO almost all of it. A cable beats both, so your routers only send traffic up there when there is no other way.",
|
||||||
|
"satellites.users_notice_leo":"Over LEO, about 30 ms round trip, users hardly notice, and selective networks peer as they would over a cable. Next to a cable it waits on standby.",
|
||||||
"satellites.users_ride_a_satellite":"users ride a satellite",
|
"satellites.users_ride_a_satellite":"users ride a satellite",
|
||||||
"satellites.via_bird":"via {bird}",
|
"satellites.via_bird":"via {bird}",
|
||||||
"satellites.who_a_satellite_serves":"Satellites serve small islands and remote towns that the same satellite sees as your teleport. Pick where to.",
|
"satellites.who_a_satellite_serves":"Satellites serve small islands and remote towns that the same satellite sees as your teleport. Pick where to.",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@
|
||||||
// A server-run network's page loads the server's state with migrate() (it never trusts state it did not check), and
|
// A server-run network's page loads the server's state with migrate() (it never trusts state it did not check), and
|
||||||
// the server checks every action against the save path; both need migrate(live S) to change nothing. A year of a big
|
// the server checks every action against the save path; both need migrate(live S) to change nothing. A year of a big
|
||||||
// network with everything on (DDoS, failures, events, the intern on every order, the sales desk on auto, IPv6-only, and
|
// network with everything on (DDoS, failures, events, the intern on every order, the sales desk on auto, IPv6-only, and
|
||||||
// once before the year everything else a network can own: an own exchange, scrubbing centers, teleports, satellites,
|
// once before the year everything else a network can own: an own exchange, scrubbing centers, teleports, LEO gateways,
|
||||||
// dark fiber, an own cable, a subsea seat, exchange points, the backbone core, the redundancy kit, the bulk orders),
|
// satellites, dark fiber, an own cable, a subsea seat, exchange points, the backbone core, the redundancy kit, the bulk
|
||||||
|
// orders),
|
||||||
// checked every day. T1_BASE=<git ref> also plays the same year on the page at that ref: the same money, customers,
|
// checked every day. T1_BASE=<git ref> also plays the same year on the page at that ref: the same money, customers,
|
||||||
// incidents, dice and ids every day, so making the state canonical changed no play.
|
// incidents, dice and ids every day, so making the state canonical changed no play.
|
||||||
const test = require('node:test');
|
const test = require('node:test');
|
||||||
|
|
@ -29,6 +30,8 @@ function open(file) {
|
||||||
for(const c of pops.slice(0,40)){if(Object.keys(S.myIx).length)break;tryA('foundIx',{city:c});}
|
for(const c of pops.slice(0,40)){if(Object.keys(S.myIx).length)break;tryA('foundIx',{city:c});}
|
||||||
for(const c of pops.slice(0,6))tryA('buildScrub',{city:c});
|
for(const c of pops.slice(0,6))tryA('buildScrub',{city:c});
|
||||||
for(const c of pops.slice(0,4))tryA('teleBuild',{city:c});
|
for(const c of pops.slice(0,4))tryA('teleBuild',{city:c});
|
||||||
|
for(const c of pops.slice(0,4))tryA('teleLeo',{city:c});
|
||||||
|
{let n=0;for(const a of pops.slice(0,4))for(const b of satTargets(a)){if(n>=1)break;if(!satWhy(a,b,LEO_BIRD,5)){tryA('buySat',{a,b,bird:LEO_BIRD,g:5});n++;}}}
|
||||||
{let n=0;for(const a of pops.slice(0,12))for(const b of pops.slice(12,30)){if(n>=2)break;for(const bird of Object.keys(SATS))for(const g of [1,2,5,10]){if(n>=2)break;if(!satWhy(a,b,bird,g)){tryA('buySat',{a,b,bird,g});n++;}}}}
|
{let n=0;for(const a of pops.slice(0,12))for(const b of pops.slice(12,30)){if(n>=2)break;for(const bird of Object.keys(SATS))for(const g of [1,2,5,10]){if(n>=2)break;if(!satWhy(a,b,bird,g)){tryA('buySat',{a,b,bird,g});n++;}}}}
|
||||||
{let n=0;for(const a of pops.slice(0,10))for(const b of pops.slice(10,40)){if(n>=2)break;if(kmBetween(a,b)<900&&!noTalk(a,b)){UI.pending={a,b};UI.dfSrc='build';const k=S.links.length;tryA('orderDf');if(S.links.length>k)n++;}}}
|
{let n=0;for(const a of pops.slice(0,10))for(const b of pops.slice(10,40)){if(n>=2)break;if(kmBetween(a,b)<900&&!noTalk(a,b)){UI.pending={a,b};UI.dfSrc='build';const k=S.links.length;tryA('orderDf');if(S.links.length>k)n++;}}}
|
||||||
{let n=0;for(const a of pops.slice(0,30))for(const b of Object.keys(CITY)){if(n>=1)break;if(S.pops[b]||a===b)continue;UI.pending={a,b};const k=S.links.length;if(!ownCabWhy(a,b)){tryA('orderCable');if(S.links.length>k)n++;}}}
|
{let n=0;for(const a of pops.slice(0,30))for(const b of Object.keys(CITY)){if(n>=1)break;if(S.pops[b]||a===b)continue;UI.pending={a,b};const k=S.links.length;if(!ownCabWhy(a,b)){tryA('orderCable');if(S.links.length>k)n++;}}}
|
||||||
|
|
@ -41,7 +44,7 @@ function open(file) {
|
||||||
UI.pending=null;closeModal();compute();`);
|
UI.pending=null;closeModal();compute();`);
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
const BUILT = ['foundIx', 'buildScrub', 'teleBuild', 'buySat', 'orderDf', 'orderCable', 'seatBuy', 'coreUp', 'xpBuild', 'utilityKit', 'pniAll', 'bstdApply'];
|
const BUILT = ['foundIx', 'buildScrub', 'teleBuild', 'teleLeo', 'buySat', 'orderDf', 'orderCable', 'seatBuy', 'coreUp', 'xpBuild', 'utilityKit', 'pniAll', 'bstdApply'];
|
||||||
|
|
||||||
// In the page: every top-level key whose JSON differs between live S and what a reload makes of it, both ways a reload
|
// In the page: every top-level key whose JSON differs between live S and what a reload makes of it, both ways a reload
|
||||||
// happens (the full state a page takes, and the save text). uidN and the dice are put back: a reload may draw ids.
|
// happens (the full state a page takes, and the save text). uidN and the dice are put back: a reload may draw ids.
|
||||||
|
|
@ -82,6 +85,7 @@ test(`a year of a big network with everything on: live state is what a reload ma
|
||||||
const did = JSON.parse(head.ev('JSON.stringify(__did)'));
|
const did = JSON.parse(head.ev('JSON.stringify(__did)'));
|
||||||
assert.deepEqual(did.filter((x) => / threw /.test(x)), [], 'nothing threw while building');
|
assert.deepEqual(did.filter((x) => / threw /.test(x)), [], 'nothing threw while building');
|
||||||
for (const a of BUILT) assert.ok(did.includes(a), `${a} built something before the year (${did.join(', ')})`);
|
for (const a of BUILT) assert.ok(did.includes(a), `${a} built something before the year (${did.join(', ')})`);
|
||||||
|
assert.ok(head.ev('S.links.some(l=>l.bird===LEO_BIRD)'), 'a LEO circuit before the year');
|
||||||
assert.equal(head.ev('S.slAuto.on'), true);
|
assert.equal(head.ev('S.slAuto.on'), true);
|
||||||
assert.ok(head.ev("Object.values(S.pops).filter(p=>p.bb&&(p.bb.v6||p.bb.v6e)).length") >= 3, 'IPv6-only homes on the way');
|
assert.ok(head.ev("Object.values(S.pops).filter(p=>p.bb&&(p.bb.v6||p.bb.v6e)).length") >= 3, 'IPv6-only homes on the way');
|
||||||
const seen = { ddos: 0, inc: 0, starts: 0 };
|
const seen = { ddos: 0, inc: 0, starts: 0 };
|
||||||
|
|
|
||||||
|
|
@ -733,6 +733,32 @@ test('O7: a fresh Tier 1 cannot afford a full Shortcrust in its first year', ()
|
||||||
// O7's other half (a full lasered Shortcrust pays back in 5 to 10 years, never sooner) is played through the game loop
|
// O7's other half (a full lasered Shortcrust pays back in 5 to 10 years, never sooner) is played through the game loop
|
||||||
// in tests/pie-balance.test.js, so it counts launches, aging, incidents, churn and every running cost.
|
// in tests/pie-balance.test.js, so it counts launches, aging, incidents, churn and every running cost.
|
||||||
|
|
||||||
|
test('O8: rented LEO reaches only near a gateway on your fiber under its shell, stops selling once your crust carries, and costs more than a subsea wave', () => {
|
||||||
|
const g = load();
|
||||||
|
g.ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9;S.lvl=SAT_ORB.leo.lv;S.nextFail=S.nextEvent=1e9;UI.speed=0;S.rules=makeRules('freeze')");
|
||||||
|
// Every pair the bird is sold on: at most km apart, both ends under the shell.
|
||||||
|
fail('O8', JSON.parse(g.ev("JSON.stringify((()=>{const O=SAT_ORB.leo,out=[];for(const A of CITIES)for(const B of CITIES){if(A.id>=B.id||!satPairOk(LEO_BIRD,A.id,B.id))continue;if(kmBetween(A.id,B.id)>O.km||Math.abs(A.lat)>O.lat||Math.abs(B.lat)>O.lat)out.push(A.id+'-'+B.id+' '+kmBetween(A.id,B.id)+' km');}return out;})())")),
|
||||||
|
'a LEO circuit beyond one satellite\'s bent pipe: keep SAT_ORB.leo.km and lat in satPairOk');
|
||||||
|
assert.ok(g.ev("Object.keys(SATS).filter(id=>SATS[id].orb==='leo').join()===LEO_BIRD"), 'O8: one rented LEO bird');
|
||||||
|
// The gateway sits on your fiber: an island only a satellite reaches cannot host one; beyond the shell, nobody can.
|
||||||
|
g.ev("ACT.buildPop({city:'suv'});ACT.teleBuild({city:'suv'});ACT.buildPop({city:'anc'});S.pops.anc.tele=1;ACT.buildPop({city:'ccs'});ACT.teleBuild({city:'ccs'})");
|
||||||
|
assert.notEqual(g.ev("leoGwWhy('suv')"), '', 'O8: a gateway on an island off your fiber');
|
||||||
|
assert.notEqual(g.ev("leoGwWhy('anc')"), '', 'O8: a gateway beyond the shell');
|
||||||
|
assert.notEqual(g.ev("satWhy('ccs','cur',LEO_BIRD,10)"), '', 'O8: a LEO circuit without a gateway');
|
||||||
|
g.ev("ACT.teleLeo({city:'ccs'});ACT.buySat({a:'ccs',b:'cur',bird:LEO_BIRD,g:10});closeModal();ACT.buyTransit({city:'ccs',net:'drz',tier:1});ACT.launchBB({city:'cur'});closeModal()");
|
||||||
|
assert.equal(g.ev('S.links.filter(l=>l.bird===LEO_BIRD).length'), 1, 'O8: a gateway on the mainland sells');
|
||||||
|
// Your own crust carries: nothing new from Starblink, not even growth; what you rent keeps running.
|
||||||
|
g.ev('S.pieV=1;pieInit();S.pie.crusts.short.cohorts=[{n:CRUSTS.short.full,day:S.day,las:false}];S.day=S.links.find(l=>l.bird===LEO_BIRD).ready;compute()');
|
||||||
|
assert.ok(g.ev('Object.keys(CRUSTS).some(id=>pieCarry(id)>0)'), 'a crust carries');
|
||||||
|
for (const x of ["satWhy('ccs','gnd',LEO_BIRD,10)", "leoGwWhy('ccs')", 'leoGrowWhy(S.links.find(l=>l.bird===LEO_BIRD))']) assert.notEqual(g.ev(x), '', `O8: ${x} once your own constellation carries`);
|
||||||
|
assert.equal(g.ev("leoReachLL('ccs',CITY.cur.lat,CITY.cur.lon)"), false, 'O8: no WISP reach either');
|
||||||
|
assert.ok(g.ev('R.load[S.links.find(l=>l.bird===LEO_BIRD).id]') > 0, 'O8: a circuit you rent keeps carrying');
|
||||||
|
// Dearer per Gbps than any subsea wave over its whole reach, so a cable is always the better buy where one can go.
|
||||||
|
const dear = JSON.parse(g.ev('JSON.stringify(SAT_ORB.leo.g.flatMap(n=>LT.map((t,i)=>[n,t.g,satMo(LEO_BIRD,n)/n,waveMo(SAT_ORB.leo.km,true,i)/t.g])))'));
|
||||||
|
fail('O8', dear.filter((x) => x[2] <= x[3]).map((x) => `${x[0]}G LEO at ${Math.round(x[2])}/G is no dearer than a ${x[1]}G subsea wave at ${Math.round(x[3])}/G`), 'raise SAT_PROV.sbk.pg');
|
||||||
|
assert.deepEqual(g.errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
test('no page errors while checking the rules', () => {
|
test('no page errors while checking the rules', () => {
|
||||||
assert.deepEqual(errors, []);
|
assert.deepEqual(errors, []);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
364
tests/leo.test.js
Normal file
364
tests/leo.test.js
Normal file
|
|
@ -0,0 +1,364 @@
|
||||||
|
// Rented low-orbit capacity (#83): a Starblink gateway on a teleport at a POP on your fiber sells LEO circuits (5 to
|
||||||
|
// 50 Gbps, about 30 ms round trip) to small islands and remote towns within 1,200 km. A circuit is a link (kind 'sat') like
|
||||||
|
// GEO and MEO ones; selective networks peer over it as over a cable; the islands behind a gateway lean on its POP; a rare
|
||||||
|
// solar storm puts every LEO circuit in safe mode; once your own constellation carries traffic Starblink sells you nothing.
|
||||||
|
const test = require('node:test');
|
||||||
|
const assert = require('node:assert/strict');
|
||||||
|
const fs = require('node:fs');
|
||||||
|
const path = require('node:path');
|
||||||
|
const { load } = require('./harness');
|
||||||
|
const { createSession, TOOLS } = require('../scripts/lib/mcp-game');
|
||||||
|
|
||||||
|
const SAVE = fs.readFileSync(path.join(__dirname, 'fixtures', 'big-network.json'), 'utf8');
|
||||||
|
// Level 5, Change Freeze (nothing breaks, lead times quick), plenty of cash.
|
||||||
|
const BASE = "ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.cash=1e8;for(const g of GOALS)S.done[g.id]=0;S.lvl=5;S.nextFail=S.nextEvent=1e9;UI.speed=0;S.rules=makeRules('freeze');";
|
||||||
|
// Caracas: a POP with transit (Caracas sells drz, mvs and llt) and a teleport.
|
||||||
|
const CAR = "ACT.buildPop({city:'ccs'});ACT.buyTransit({city:'ccs',net:'drz',tier:1});ACT.teleBuild({city:'ccs'});";
|
||||||
|
const GW = CAR + "ACT.teleLeo({city:'ccs'});";
|
||||||
|
function game(t, setup = '') {
|
||||||
|
const h = load();
|
||||||
|
t.after(() => h.dom.window.close());
|
||||||
|
h.ev(BASE + setup);
|
||||||
|
return h;
|
||||||
|
}
|
||||||
|
const J = (ev, s) => JSON.parse(ev(`JSON.stringify(${s})`));
|
||||||
|
const leo = "S.links.find(l=>l.bird==='sb53')", geo = "S.links.find(l=>l.kind==='sat'&&SATS[l.bird].orb==='geo')";
|
||||||
|
const ready = 'S.day=Math.max(...S.links.map(l=>l.ready||0));compute()';
|
||||||
|
const pie = "S.pieV=1;pieInit();S.pie.crusts.short.cohorts=[{n:CRUSTS.short.full,day:S.day,las:false}];";
|
||||||
|
|
||||||
|
test('the footprint and the physics: a bent pipe 550 km up, regional, about 30 ms', (t) => {
|
||||||
|
const { ev, errors } = game(t);
|
||||||
|
assert.deepEqual(J(ev, "['tbu','cur','ome','hpa'].map(c=>satSees('sb53',c))"), [true, true, false, false], 'the shell misses Nome and Haparanda');
|
||||||
|
assert.deepEqual(J(ev, "[['suv','tbu'],['suv','vli'],['ccs','cur'],['syd','tbu']].map(([a,b])=>satPairOk('sb53',a,b))"), [true, true, true, false], 'Sydney to Tonga is too far for one satellite');
|
||||||
|
// Every LEO pair on sale with an island or a remote town in it clears the floor at the midpoint and the reach.
|
||||||
|
const bad = J(ev, "(()=>{const O=SAT_ORB.leo,out=[];for(const A of CITIES)for(const B of CITIES){if(A.id>=B.id||!(satRemote(A.id)||satRemote(B.id))||!satPairOk('sb53',A.id,B.id))continue;if(satElev(satArc(A.lat,A.lon,B.lat,B.lon)/2,O.h)<O.el||kmBetween(A.id,B.id)>O.km||satKm('sb53',A.id,B.id)<2*O.h)out.push(A.id+'-'+B.id);}return out;})()");
|
||||||
|
assert.deepEqual(bad, []);
|
||||||
|
for (const [a, b] of [['ccs', 'cur'], ['suv', 'vli']]) {
|
||||||
|
const rtt = ev(`satRtt('sb53','${a}','${b}')`);
|
||||||
|
assert.ok(rtt >= 25 && rtt <= 45, `${a}-${b}: about 30 ms round trip, got ${rtt}`);
|
||||||
|
}
|
||||||
|
assert.ok(ev("satKm('sb53','ccs','cur')") >= 2 * 550, 'up to the shell and back down');
|
||||||
|
// The orbits are told apart by their loss in satEdges/satAfter, so none may share one.
|
||||||
|
assert.equal(new Set(J(ev, 'Object.values(SAT_ORB).map(o=>o.loss)')).size, 3);
|
||||||
|
assert.deepEqual(J(ev, 'Object.keys(SAT_ORB)'), ['geo', 'meo', 'leo']);
|
||||||
|
assert.equal(J(ev, "satBirds('ccs','cur')").pop(), 'sb53', 'orbit order: GEO, MEO, then LEO');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the WISP hooks: radio path, one-way ms and reach for any point on the globe, and they change nothing', (t) => {
|
||||||
|
const { ev, errors } = game(t, CAR);
|
||||||
|
const P = "CITY.cur.lat,CITY.cur.lon";
|
||||||
|
assert.equal(ev(`leoKmLL('ccs',${P})`), ev("satKm('sb53','ccs','cur')"), 'the same radio path as a circuit to the city there');
|
||||||
|
assert.ok(Math.abs(ev(`leoMsLL('ccs',${P})`) - ev("satLat({bird:'sb53',km:satKm('sb53','ccs','cur')})")) < 1e-9);
|
||||||
|
assert.equal(ev(`leoReachLL('ccs',${P})`), false, 'no gateway yet');
|
||||||
|
ev("ACT.teleLeo({city:'ccs'})");
|
||||||
|
const s0 = ev('JSON.stringify(S)');
|
||||||
|
assert.equal(ev(`leoReachLL('ccs',${P})`), true);
|
||||||
|
assert.equal(ev("leoReachLL('ccs',25,-77)"), false, 'Nassau’s point is too far for one satellite');
|
||||||
|
assert.equal(ev("leoReachLL('ccs',60,-66)"), false, 'beyond the shell');
|
||||||
|
assert.equal(ev('JSON.stringify(S)'), s0, 'pure');
|
||||||
|
assert.equal(ev(`S.lvl=4;leoReachLL('ccs',${P})`), false, 'below level 5');
|
||||||
|
ev('S.lvl=5;' + pie);
|
||||||
|
assert.equal(ev(`leoReachLL('ccs',${P})`), false, 'your own constellation flies');
|
||||||
|
assert.equal(ev('leoStorm()'), false);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a gateway: level 5, a teleport under the shell on your fiber, its price; closing it asks twice', (t) => {
|
||||||
|
const { ev, errors } = game(t, CAR);
|
||||||
|
let c0 = ev('S.cash');
|
||||||
|
ev("S.lvl=4;ACT.teleLeo({city:'ccs'})");
|
||||||
|
assert.equal(ev("'leo' in S.pops.ccs"), false, 'LEO unlocks at level 5');
|
||||||
|
assert.equal(ev('S.cash'), c0, 'nothing charged');
|
||||||
|
ev("S.lvl=5;ACT.teleLeo({city:'ccs'});compute()");
|
||||||
|
assert.equal(ev('S.pops.ccs.leo'), 1);
|
||||||
|
assert.equal(c0 - ev('S.cash'), ev('LEO_GW_COST'));
|
||||||
|
assert.equal(ev('R.cost.sat'), ev('TPORT_MO+LEO_GW_MO'), 'the gateway bills with the teleports');
|
||||||
|
// Suva with a teleport and only a satellite out: no gateway until a wave of yours is lit there.
|
||||||
|
ev("ACT.buildPop({city:'syd'});ACT.buyTransit({city:'syd',net:'cog',tier:1});ACT.buildPop({city:'suv'});ACT.teleBuild({city:'suv'})");
|
||||||
|
assert.equal(ev("teleOf('suv')"), 1);
|
||||||
|
assert.match(ev("leoGwWhy('suv')"), /fiber/);
|
||||||
|
c0 = ev('S.cash');
|
||||||
|
ev("ACT.teleLeo({city:'suv'})");
|
||||||
|
assert.equal(ev("'leo' in S.pops.suv"), false);
|
||||||
|
assert.equal(ev('S.cash'), c0);
|
||||||
|
ev("UI.pending={a:'syd',b:'suv'};ACT.buildLink({tier:1});closeModal();S.links.find(l=>l.kind==='wave').ready=S.day+5");
|
||||||
|
assert.match(ev("leoGwWhy('suv')"), /fiber/, 'still being built');
|
||||||
|
ev("S.day=S.links.find(l=>l.kind==='wave').ready");
|
||||||
|
assert.equal(ev("leoGwWhy('suv')"), '', 'lit: Suva is on your fiber');
|
||||||
|
// Anchorage is beyond the shell; Edinburgh, just inside it, needs no tracking antennas.
|
||||||
|
ev("ACT.buildPop({city:'anc'});S.pops.anc.tele=1;ACT.buildPop({city:'edi'});ACT.teleBuild({city:'edi'})");
|
||||||
|
assert.match(ev("leoGwWhy('anc')"), /56°/);
|
||||||
|
assert.equal(ev("leoGwWhy('edi')"), '');
|
||||||
|
assert.match(ev("leoGwWhy('lon')"), /no POP/);
|
||||||
|
// Closing: refused while a LEO circuit starts there, and two taps.
|
||||||
|
ev("ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:5});closeModal();ACT.teleLeoRm({city:'ccs'});ACT.teleLeoRm({city:'ccs'})");
|
||||||
|
assert.equal(ev('S.pops.ccs.leo'), 1, 'not while a LEO circuit starts there');
|
||||||
|
ev(`ACT.rmLink({id:${leo}.id});ACT.rmLink({id:${leo}.id})`);
|
||||||
|
assert.equal(ev(`!!${leo}`), false);
|
||||||
|
ev("UI.confirm=null;ACT.teleLeoRm({city:'ccs'})");
|
||||||
|
assert.equal(ev('S.pops.ccs.leo'), 1, 'the first tap only arms it');
|
||||||
|
ev("ACT.teleLeoRm({city:'ccs'})");
|
||||||
|
assert.equal(ev("'leo' in S.pops.ccs"), false);
|
||||||
|
assert.equal(ev("teleOf('ccs')"), 1, 'the teleport stays');
|
||||||
|
// Closing the teleport takes the gateway along.
|
||||||
|
ev("ACT.teleLeo({city:'ccs'});UI.confirm=null;ACT.teleRm({city:'ccs'});ACT.teleRm({city:'ccs'})");
|
||||||
|
assert.equal(ev("teleOf('ccs')"), 0);
|
||||||
|
assert.equal(ev("'leo' in S.pops.ccs"), false);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a LEO circuit: price, lead time, about 30 ms, users hardly notice; refused without a gateway or beyond the bent pipe', (t) => {
|
||||||
|
const { ev, errors } = game(t, CAR);
|
||||||
|
assert.match(ev("satWhy('ccs','cur','sb53',10)"), /gateway/);
|
||||||
|
ev("ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10})");
|
||||||
|
assert.equal(ev(`!!${leo}`), false, 'no gateway, no circuit');
|
||||||
|
ev("ACT.teleLeo({city:'ccs'})");
|
||||||
|
const c0 = ev('S.cash');
|
||||||
|
ev("ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10})");
|
||||||
|
const l = J(ev, leo);
|
||||||
|
assert.ok(ev('!!S.pops.cur'), 'the order builds the POP');
|
||||||
|
assert.equal(c0 - ev('S.cash'), ev("satMo('sb53',10)+popCost('cur')"));
|
||||||
|
assert.equal(l.mo, ev("satMo('sb53',10)"));
|
||||||
|
assert.equal(l.ready, ev('S.day+leadDays(14)'));
|
||||||
|
assert.equal(!!l.standby, false);
|
||||||
|
ev('compute()');
|
||||||
|
assert.equal(ev(`linkDown(${leo})`), true, 'down while it is pointed');
|
||||||
|
ev("ACT.launchBB({city:'cur'});closeModal();" + ready);
|
||||||
|
assert.ok(ev(`R.load[${leo}.id]`) > 0);
|
||||||
|
const ms = ev(`linkLat(${leo})`);
|
||||||
|
assert.ok(ms >= 12 && ms <= 23, 'one way: ' + ms);
|
||||||
|
assert.ok(Math.abs(ev('R.latF.cur') - 0.97) < 1e-9, 'users count 3% as bad');
|
||||||
|
assert.ok(ev("sfOf(R,'cur')") >= 0.95, 'so broadband keeps growing');
|
||||||
|
assert.equal(ev("/fact bad/.test(satFact('cur'))"), false, 'a plain chip: they hardly notice');
|
||||||
|
assert.match(ev("satFact('cur')"), /users ride a satellite/);
|
||||||
|
// Beyond the bent pipe: both under the shell but 1,958 km apart.
|
||||||
|
assert.match(ev("satWhy('ccs','nas','sb53',10)"), /bent pipe.*1,200 km.*1,958 km/);
|
||||||
|
assert.match(ev("satWhy('ccs','cur','sb53',7)"), /No such satellite circuit/);
|
||||||
|
// The price ladder: half MEO per Gbps; the smallest order dearer than the cheapest GEO; far dearer than a subsea wave.
|
||||||
|
assert.ok(ev("satMo('sb53',20)/20") < ev("satMo('o3b',20)/20"));
|
||||||
|
assert.ok(ev("satMo('sb53',5)") > ev("satMo('kac1',1)"));
|
||||||
|
const wave = ev("waveMo(kmBetween('suv','tbu'),true,1)/LT[1].g");
|
||||||
|
for (const g of [10, 50]) assert.ok(ev(`satMo('sb53',${g})/${g}`) > 3 * wave, `LEO ${g}G per Gbps against a wave`);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('selective peers do not refuse an island only LEO reaches; a circuit being pointed does not change their verdict', (t) => {
|
||||||
|
const { ev, errors } = game(t, CAR + "ACT.buySat({a:'ccs',b:'cur',bird:'is37',g:5});closeModal();");
|
||||||
|
ev(ready + ";ACT.buyIx({city:'cur',tier:0});closeModal();compute()");
|
||||||
|
assert.equal(ev("satOnly('cur').bird"), 'is37');
|
||||||
|
const sel = J(ev, "ixMembers('cur').filter(id=>NET[id].pol==='selective')");
|
||||||
|
const geoNo = sel.filter((id) => ev(`noSat('${id}','geo')`));
|
||||||
|
assert.ok(geoNo.length > 0, 'some members of Blue-Curaçao-IX refuse GEO: ' + sel.join(','));
|
||||||
|
for (const id of geoNo) assert.equal(J(ev, `peerOk('${id}','ix','cur')`).sat, true, id + ' over GEO');
|
||||||
|
// LEO ordered: the GEO circuit goes on standby, but until LEO is commissioned the GEO one is the way out they judge.
|
||||||
|
ev("ACT.teleLeo({city:'ccs'});ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();compute()");
|
||||||
|
assert.equal(ev(`${geo}.standby`), true);
|
||||||
|
assert.equal(ev("satOnly('cur').bird"), 'is37', 'a circuit being pointed does not count yet');
|
||||||
|
ev(ready);
|
||||||
|
assert.equal(ev("satOnly('cur').bird"), 'sb53', 'still a satellite island');
|
||||||
|
for (const id of geoNo) {
|
||||||
|
for (const via of ['ix', 'pni']) assert.ok(!J(ev, `peerOk('${id}','${via}','cur')`).sat, `${id} ${via} over LEO`);
|
||||||
|
ev(`S.peers['${id}@cur']=true`);
|
||||||
|
}
|
||||||
|
ev('compute()');
|
||||||
|
for (const id of geoNo) assert.equal(ev(`ixSessions('cur').has('${id}')`), true, id + ' peers over LEO');
|
||||||
|
assert.ok(J(ev, 'NETS.map(n=>n.id)').every((id) => !ev(`noSat('${id}','leo')`)), 'nobody minds LEO');
|
||||||
|
// MEO first, commissioned, then LEO being pointed: the MEO circuit, on standby now, is still the one they judge.
|
||||||
|
ev("S.links=S.links.filter(l=>l.kind!=='sat');S.pops.ccs.tele=2;ACT.buySat({a:'ccs',b:'cur',bird:'o3b',g:5});closeModal();" + ready);
|
||||||
|
ev("ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();compute()");
|
||||||
|
assert.equal(ev("S.links.find(l=>l.bird==='o3b').standby"), true);
|
||||||
|
assert.equal(ev("satOnly('cur').bird"), 'o3b');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('one satellite a pair: LEO puts GEO on standby, GEO ordered beside LEO waits, and carries when LEO is down', (t) => {
|
||||||
|
const { ev, errors } = game(t, GW + "ACT.buySat({a:'ccs',b:'cur',bird:'is37',g:5});closeModal();");
|
||||||
|
ev(ready + ";ACT.launchBB({city:'cur'});closeModal();ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();renderAll()");
|
||||||
|
assert.equal(ev(`${geo}.standby`), true, 'the GEO circuit waits');
|
||||||
|
assert.equal(!!ev(`${leo}.standby`), false);
|
||||||
|
assert.match(ev("document.querySelector('#toasts').textContent"), /goes on standby/);
|
||||||
|
ev(ready);
|
||||||
|
assert.ok(ev(`R.load[${leo}.id]`) > 0 && !(ev(`R.load[${geo}.id]`) > 0), 'LEO carries, GEO stands by');
|
||||||
|
// A solar storm: the GEO circuit carries the island.
|
||||||
|
ev('S.ev.sky=S.day+2;compute()');
|
||||||
|
assert.equal(ev(`linkDown(${leo})`), true);
|
||||||
|
assert.ok(ev(`R.load[${geo}.id]`) > 0, 'GEO takes over');
|
||||||
|
// GEO ordered beside an active LEO circuit starts on standby.
|
||||||
|
ev(`S.ev.sky=0;S.links=S.links.filter(l=>l.bird!=='is37');ACT.buySat({a:'ccs',b:'cur',bird:'gx19',g:5});closeModal()`);
|
||||||
|
assert.equal(ev("S.links.find(l=>l.bird==='gx19').standby"), true);
|
||||||
|
assert.equal(!!ev(`${leo}.standby`), false);
|
||||||
|
// A cable laid later puts LEO on standby too.
|
||||||
|
ev("UI.pending={a:'ccs',b:'cur'};ACT.buildLink({tier:1});closeModal()");
|
||||||
|
assert.equal(ev(`${leo}.standby`), true);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the gateway POP is the islands’ bottleneck: its fiber full, every island behind it slows down, and the Infra tab says so', (t) => {
|
||||||
|
const isl = ['cur', 'gnd', 'svd', 'slu'];
|
||||||
|
const { ev, errors } = game(t, "ACT.buildPop({city:'ccs'});ACT.teleBuild({city:'ccs'});ACT.teleLeo({city:'ccs'});ACT.buildPop({city:'bog'});ACT.buyTransit({city:'bog',net:NETS.find(n=>sellsAt(n,'bog')).id,tier:1});UI.pending={a:'ccs',b:'bog'};ACT.buildLink({tier:0});closeModal();");
|
||||||
|
assert.equal(ev("noTalk('ccs','bog')"), '');
|
||||||
|
ev(`for(const c of ${JSON.stringify(isl)}){ACT.buySat({a:'ccs',b:c,bird:'sb53',g:10});closeModal();ACT.launchBB({city:c});closeModal();S.pops[c].bb.d=7;}` + ready);
|
||||||
|
const srv = () => ev(`${JSON.stringify(isl)}.reduce((a,c)=>a+(R.citySrv[c]||0),0)`);
|
||||||
|
assert.ok(ev(`${JSON.stringify(isl)}.reduce((a,c)=>a+R.cityDem[c],0)`) >= 25);
|
||||||
|
assert.ok(srv() <= 10 + 1e-6, 'four islands through one 10G wave: ' + srv());
|
||||||
|
const panel = () => { ev("UI.sel={type:'city',id:'ccs'};UI.tab='links';renderAll()"); return ev("document.querySelector('#panel').textContent"); };
|
||||||
|
let p = panel();
|
||||||
|
assert.match(p, /every island behind this gateway slows down/);
|
||||||
|
assert.match(p, /Landing here from orbit/);
|
||||||
|
assert.match(p, /Fiber and cables out of Caracas/);
|
||||||
|
ev("UI.pending={a:'ccs',b:'bog'};ACT.buildLink({tier:1});closeModal();" + ready);
|
||||||
|
assert.ok(srv() >= 0.9 * 28, 'a 100G wave lets them through: ' + srv());
|
||||||
|
p = panel();
|
||||||
|
assert.doesNotMatch(p, /every island behind this gateway slows down/);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Pie in the Sky: once your crust carries, Starblink sells you nothing new; what you rent keeps running, on its own bill', (t) => {
|
||||||
|
const { ev, errors } = game(t, GW + "ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();ACT.launchBB({city:'cur'});closeModal();ACT.buildPop({city:'bog'});ACT.teleBuild({city:'bog'});");
|
||||||
|
ev(ready);
|
||||||
|
assert.equal(ev('leoRival()'), false);
|
||||||
|
ev(pie + 'compute()');
|
||||||
|
assert.equal(ev('leoRival()'), true, 'a full Shortcrust carries');
|
||||||
|
assert.match(ev("satWhy('ccs','gnd','sb53',10)"), /rival constellation/);
|
||||||
|
ev("ACT.buySat({a:'ccs',b:'gnd',bird:'sb53',g:10})");
|
||||||
|
assert.equal(ev("S.links.some(l=>l.b==='gnd')"), false, 'no new circuit');
|
||||||
|
const c0 = ev('S.cash');
|
||||||
|
ev(`ACT.satSize({id:${leo}.id,g:20})`);
|
||||||
|
assert.equal(ev(`${leo}.g`), 10, 'no growing');
|
||||||
|
assert.equal(ev('S.cash'), c0);
|
||||||
|
assert.match(ev(`leoGrowWhy(${leo})`), /rival constellation/);
|
||||||
|
assert.match(ev("leoGwWhy('bog')"), /rival constellation/);
|
||||||
|
ev("ACT.teleLeo({city:'bog'})");
|
||||||
|
assert.equal(ev("'leo' in S.pops.bog"), false, 'no new gateway');
|
||||||
|
ev(`ACT.satSize({id:${leo}.id,g:5});compute()`);
|
||||||
|
assert.equal(ev(`${leo}.g`), 5, 'shrinking works');
|
||||||
|
assert.ok(ev(`R.load[${leo}.id]`) > 0, 'the circuit still carries');
|
||||||
|
assert.ok(ev('R.cost.sat') >= ev(`${leo}.mo+LEO_GW_MO`), 'rented LEO is on the satellite bill');
|
||||||
|
const spent = ev('S.pie.book.spent');
|
||||||
|
ev('dayTick()');
|
||||||
|
assert.equal(ev('S.pie.book.spent'), spent, 'never on the rocket company’s books');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a solar storm: every LEO circuit in safe mode for a day or two, no cut, no bill; Pie’s storms are the same sun', (t) => {
|
||||||
|
const { ev, errors } = game(t, GW + "ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();ACT.buySat({a:'ccs',b:'gnd',bird:'is37',g:5});closeModal();");
|
||||||
|
ev(ready);
|
||||||
|
assert.equal(ev('leoLive()'), true);
|
||||||
|
const c0 = ev('S.cash');
|
||||||
|
ev("fireFailure('leostorm')");
|
||||||
|
const d = ev('S.ev.sky-S.day');
|
||||||
|
assert.ok(d >= 1 && d <= 2, 'one or two days: ' + d);
|
||||||
|
assert.equal(ev(`linkDown(${leo})`), true);
|
||||||
|
assert.equal(ev(`linkDown(${geo})`), false, 'GEO flies on');
|
||||||
|
assert.equal(ev("S.links.filter(l=>l.kind==='sat').every(l=>!l.cut)"), true, 'nobody cut a satellite');
|
||||||
|
assert.equal(ev("incTitle('leostorm')"), 'Solar storm');
|
||||||
|
const i = J(ev, "S.inc.find(x=>x.type==='leostorm')");
|
||||||
|
assert.equal(i.until, ev('S.ev.sky'));
|
||||||
|
assert.equal(i.cost, 0, 'nothing to rush');
|
||||||
|
assert.equal(ev('S.cash'), c0);
|
||||||
|
assert.match(ev(`satPanel(${leo})`), /Safe mode through a solar storm: back in \d days?\./);
|
||||||
|
ev('S.day=S.ev.sky');
|
||||||
|
assert.equal(ev(`linkDown(${leo})`), false, 'back when it passes');
|
||||||
|
// Clearing the incident clears the storm, and leaves the key.
|
||||||
|
ev("S.inc=[];S.ev.sky=0;fireFailure('leostorm');clearInc(S.inc.find(x=>x.type==='leostorm'))");
|
||||||
|
assert.equal(ev('S.ev.sky'), 0);
|
||||||
|
// Spicy chaos stretches it, and the outage follows, within what a save keeps.
|
||||||
|
ev("S.inc=[];S.rules.chaos='spicy';fireFailure('leostorm');S.rules.chaos='none'");
|
||||||
|
assert.equal(ev("S.inc.find(x=>x.type==='leostorm').until"), ev('S.ev.sky'));
|
||||||
|
assert.ok(ev('S.ev.sky-S.day') <= ev('LEO_STORM_MAX'));
|
||||||
|
// Saves: the day is a number no later than LEO_STORM_MAX ahead, and the key stays.
|
||||||
|
ev("S.ev.sky='junk';S=migrate(JSON.parse(JSON.stringify(S)))");
|
||||||
|
assert.equal(ev('S.ev.sky'), 0);
|
||||||
|
assert.equal(ev("'sky' in S.ev"), true);
|
||||||
|
ev('S.ev.sky=S.day+999;S=migrate(JSON.parse(JSON.stringify(S)))');
|
||||||
|
assert.ok(ev('S.ev.sky') <= ev('S.day+LEO_STORM_MAX'));
|
||||||
|
ev('S.ev.sky=0');
|
||||||
|
const ev0 = ev('JSON.stringify(S.ev)');
|
||||||
|
ev('S=migrate(JSON.parse(JSON.stringify(S)))');
|
||||||
|
assert.equal(ev('JSON.stringify(S.ev)'), ev0, 'a live 0 loads as it was');
|
||||||
|
// One sun: a storm that drags your own pies down puts Starblink in safe mode too, but only with LEO circuits up.
|
||||||
|
ev("S.inc=[];" + pie + "S.pie.co={name:PIE_NAMES[0]};pieIncFire('storm')");
|
||||||
|
assert.ok(ev('S.ev.sky>S.day'), 'Starblink in safe mode');
|
||||||
|
assert.ok(ev("S.inc.some(x=>x.type==='piestorm')&&S.inc.some(x=>x.type==='leostorm')"));
|
||||||
|
ev("S.inc=[];S.ev.sky=0;S.links=S.links.filter(l=>l.bird!=='sb53');pieIncFire('storm')");
|
||||||
|
assert.equal(ev('S.ev.sky'), 0, 'no LEO circuits, nothing to put in safe mode');
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('saves: gateways and circuits survive a round trip, broken ones are repaired, old saves load as they were', (t) => {
|
||||||
|
const { ev, errors } = game(t, GW + "ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();ACT.buySat({a:'ccs',b:'gnd',bird:'is37',g:5});closeModal();");
|
||||||
|
const before = ev("JSON.stringify([S.pops.ccs,S.links.filter(l=>l.kind==='sat')])");
|
||||||
|
ev('S=migrate(JSON.parse(JSON.stringify(S)));compute()');
|
||||||
|
assert.equal(ev("JSON.stringify([S.pops.ccs,S.links.filter(l=>l.kind==='sat')])"), before);
|
||||||
|
ev('S.pops.ccs.leo=7;S=migrate(JSON.parse(JSON.stringify(S)))');
|
||||||
|
assert.equal(ev("'leo' in S.pops.ccs"), false, 'a gateway is 1');
|
||||||
|
assert.equal(ev(`!!${leo}`), false, 'no gateway, no LEO circuit');
|
||||||
|
assert.equal(ev(`!!${geo}`), true, 'the GEO circuit stays');
|
||||||
|
ev('S.pops.ccs.leo=1;delete S.pops.ccs.tele;S=migrate(JSON.parse(JSON.stringify(S)))');
|
||||||
|
assert.equal(ev("'leo' in S.pops.ccs"), false, 'no teleport, no gateway');
|
||||||
|
// A save from before LEO: nothing about it changes.
|
||||||
|
ev('S=migrate(JSON.parse(' + JSON.stringify(SAVE) + '));UI.started=true;UI.pitched=true;UI.speed=0;closeModal();compute()');
|
||||||
|
assert.equal(ev("Object.values(S.pops).some(p=>'leo' in p)||'sky' in S.ev"), false);
|
||||||
|
assert.equal(ev("'sat' in R.cost"), false);
|
||||||
|
assert.ok(ev('R.served') > 0);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('on a phone: the gateway, its readout, the order sheet and a LEO circuit’s panel, at 360 px', (t) => {
|
||||||
|
const { ev, errors } = game(t, CAR);
|
||||||
|
ev('window.innerWidth=360;window.innerHeight=740;window.dispatchEvent(new window.Event("resize"))');
|
||||||
|
assert.equal(ev('isPhone()'), true);
|
||||||
|
const text = (sel) => ev(`(document.querySelector('${sel}')||{}).textContent||''`);
|
||||||
|
const acts = (sel) => J(ev, `[...document.querySelectorAll('${sel} [data-act]')].map(b=>b.dataset.act)`);
|
||||||
|
const infra = "UI.sel={type:'city',id:'ccs'};UI.tab='links';renderAll()";
|
||||||
|
ev('S.lvl=4;' + infra);
|
||||||
|
assert.match(text('#panel'), /Low-orbit capacity \(about 30 ms round trip\) comes at level 5/);
|
||||||
|
ev('S.lvl=5;' + infra);
|
||||||
|
assert.match(text('#panel'), /LEO gateway/);
|
||||||
|
assert.ok(acts('#panel').includes('teleLeo'));
|
||||||
|
ev("ACT.teleLeo({city:'ccs'});" + infra);
|
||||||
|
assert.match(text('#panel'), /islands and remote towns within 1,200 km of this gateway/);
|
||||||
|
assert.ok(acts('#panel').includes('teleLeoRm'));
|
||||||
|
ev("ACT.satOpen({a:'ccs',b:'cur'})");
|
||||||
|
assert.ok(J(ev, "[...document.querySelectorAll('#modalCard [data-act=\"buySat\"]')].filter(b=>JSON.parse(b.dataset.args).bird==='sb53')").length >= 4, 'four sizes');
|
||||||
|
assert.match(text('#modalCard'), /Over LEO, about 30 ms round trip/);
|
||||||
|
ev("ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});ACT.launchBB({city:'cur'});closeModal();" + ready + ';' + infra);
|
||||||
|
assert.match(text('#panel'), /Landing here from orbit/);
|
||||||
|
assert.ok(!acts('#panel').includes('teleLeoRm'), 'no closing while a circuit starts there');
|
||||||
|
ev(`UI.sel={type:'link',id:${leo}.id};renderAll()`);
|
||||||
|
assert.match(text('#panel'), /round trip/);
|
||||||
|
assert.match(text('#panel'), /Bent pipe from 550 km up/);
|
||||||
|
ev("S.ev.sky=S.day+2;compute();renderAll()");
|
||||||
|
assert.match(text('#panel'), /Safe mode through a solar storm: back in 2 days/);
|
||||||
|
ev("UI.sel={type:'city',id:'cur'};UI.tab='cust';renderAll()");
|
||||||
|
for (const s of ['#panel', '#modalCard', '#toasts']) assert.doesNotMatch(text(s), /satellites\.|undefined|NaN/, s);
|
||||||
|
assert.deepEqual(errors, []);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('MCP: the gateway and LEO circuits quote what the game then charges, and say no once your crust flies', () => {
|
||||||
|
const s = createSession(), T = (n, a = {}) => TOOLS.find((x) => x.name === n).run(s, a), ev = (x) => s.game.ev(x);
|
||||||
|
T('new_game', { city: 'ccs', preset: 'sandbox', seed: 7, name: 'Probe' });
|
||||||
|
ev('S.cash=1e9');
|
||||||
|
T('act', { action: 'teleBuild', args: { city: 'ccs' } });
|
||||||
|
const q = T('act', { action: 'teleLeo', args: { city: 'ccs' }, dryRun: true }).quote;
|
||||||
|
assert.equal(q.setup, ev('LEO_GW_COST'));
|
||||||
|
assert.equal(q.monthly, ev('LEO_GW_MO'));
|
||||||
|
assert.deepEqual(q.blocked, []);
|
||||||
|
let c0 = ev('S.cash');
|
||||||
|
T('act', { action: 'teleLeo', args: { city: 'ccs' } });
|
||||||
|
assert.equal(c0 - ev('S.cash'), q.setup);
|
||||||
|
assert.match(T('act', { action: 'teleLeo', args: { city: 'ccs' }, dryRun: true }).quote.blocked.join(' '), /already/);
|
||||||
|
const b = T('act', { action: 'buySat', args: { a: 'ccs', b: 'cur', bird: 'sb53', g: 10 }, dryRun: true }).quote;
|
||||||
|
assert.deepEqual(b.blocked, []);
|
||||||
|
c0 = ev('S.cash');
|
||||||
|
T('act', { action: 'buySat', args: { a: 'ccs', b: 'cur', bird: 'sb53', g: 10 } });
|
||||||
|
assert.equal(c0 - ev('S.cash'), b.setup, 'the quote is the bill');
|
||||||
|
assert.equal(b.monthly, ev("S.links.find(l=>l.bird==='sb53').mo"));
|
||||||
|
const id = ev("S.links.find(l=>l.bird==='sb53').id");
|
||||||
|
assert.deepEqual(T('act', { action: 'satSize', args: { id, g: 20 }, dryRun: true }).quote.blocked, []);
|
||||||
|
ev(pie);
|
||||||
|
assert.match(T('act', { action: 'satSize', args: { id, g: 20 }, dryRun: true }).quote.blocked.join(' '), /rival constellation/);
|
||||||
|
assert.deepEqual(T('act', { action: 'satSize', args: { id, g: 5 }, dryRun: true }).quote.blocked, [], 'shrinking is fine');
|
||||||
|
assert.deepEqual(s.errors(), []);
|
||||||
|
});
|
||||||
|
|
@ -228,7 +228,7 @@ test('a dry run prices every command that has a price, and changes nothing', ()
|
||||||
opsHire: { id: ev('Object.keys(INTERNS)[0]') }, opsNewPop: { city: 'nyc' }, pniAll: { net: 'cog', tier: 1 }, seatBuy: { n: 2 }, layShip: { id: df }, seaRush: { id: df },
|
opsHire: { id: ev('Object.keys(INTERNS)[0]') }, opsNewPop: { city: 'nyc' }, pniAll: { net: 'cog', tier: 1 }, seatBuy: { n: 2 }, layShip: { id: df }, seaRush: { id: df },
|
||||||
utilityKit: { city: 'fra' }, utilityCaches: { city: 'fra' }, acceptFix: { id: 'none' }, ptApply: { city: 'fra', k: 'medium' }, ptAll: { k: 'medium' }, teDeploy: { script: 'spill at 85%' }, upLinkX: {},
|
utilityKit: { city: 'fra' }, utilityCaches: { city: 'fra' }, acceptFix: { id: 'none' }, ptApply: { city: 'fra', k: 'medium' }, ptAll: { k: 'medium' }, teDeploy: { script: 'spill at 85%' }, upLinkX: {},
|
||||||
pieRd: { k: 'reuse' }, pieAnt: { id: 'none' }, ip4Buy: { len: 24 }, ip4Lease: { len: 22 }, ip6Go: { city: 'fra' },
|
pieRd: { k: 'reuse' }, pieAnt: { id: 'none' }, ip4Buy: { len: 24 }, ip4Lease: { len: 22 }, ip6Go: { city: 'fra' },
|
||||||
teleBuild: { city: 'fra' }, teleTrk: { city: 'fra' }, buySat: { a: 'fra', b: 'rek', bird: 'is37', g: 1 }, satSize: { id: wave, g: 2 },
|
teleBuild: { city: 'fra' }, teleTrk: { city: 'fra' }, teleLeo: { city: 'fra' }, buySat: { a: 'fra', b: 'rek', bird: 'is37', g: 1 }, satSize: { id: wave, g: 2 },
|
||||||
};
|
};
|
||||||
const missing = quoted.filter((n) => !sample[n] && T('schema', { section: 'commands' })[n].args.some((a) => a.required));
|
const missing = quoted.filter((n) => !sample[n] && T('schema', { section: 'commands' })[n].args.some((a) => a.required));
|
||||||
assert.deepEqual(missing, [], 'every priced command with arguments has a sample here');
|
assert.deepEqual(missing, [], 'every priced command with arguments has a sample here');
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,11 @@ test('SEND is the agent\'s game commands without the puzzles, teCheck, traceRun
|
||||||
});
|
});
|
||||||
|
|
||||||
/* A rich network with something behind every two-click button: the big fixture, an intern, a sales head, a scrubbing
|
/* A rich network with something behind every two-click button: the big fixture, an intern, a sales head, a scrubbing
|
||||||
center, a teleport, an own exchange. Its S also goes to the realm, so both sides start the same. */
|
center, a teleport with a LEO gateway, an own exchange. Its S also goes to the realm, so both sides start the same. */
|
||||||
function rich() {
|
function rich() {
|
||||||
const P = page({ save: bigScenic() });
|
const P = page({ save: bigScenic() });
|
||||||
P.ev(`S.lvl=Math.max(S.lvl,6);ACT.opsHire({id:'kevin'});closeModal();ACT.salesHire({id:'eng'});closeModal();
|
P.ev(`S.lvl=Math.max(S.lvl,6);ACT.opsHire({id:'kevin'});closeModal();ACT.salesHire({id:'eng'});closeModal();
|
||||||
ACT.buildScrub({city:'fra'});closeModal();ACT.teleBuild({city:'sea'});closeModal();UI.confirm=null;UI.sel=null;
|
ACT.buildScrub({city:'fra'});closeModal();ACT.teleBuild({city:'sea'});closeModal();ACT.teleLeo({city:'sea'});closeModal();UI.confirm=null;UI.sel=null;
|
||||||
S.day=Math.max(S.day,IP4_HOLD+30);S=migrate(JSON.parse(JSON.stringify(S)));compute();`);
|
S.day=Math.max(S.day,IP4_HOLD+30);S=migrate(JSON.parse(JSON.stringify(S)));compute();`);
|
||||||
// (Address blocks are held two years before they may be sold: these were bought long ago.)
|
// (Address blocks are held two years before they may be sold: these were bought long ago.)
|
||||||
return P;
|
return P;
|
||||||
|
|
@ -72,7 +72,8 @@ test('two-click buttons: the first click arms SRV_ARM\'s key (or waits for ok),
|
||||||
const found = {};
|
const found = {};
|
||||||
for (const [a, args] of crawl(ev)) if (A.CONFIRM[a] && !found[a]) found[a] = args;
|
for (const [a, args] of crawl(ev)) if (A.CONFIRM[a] && !found[a]) found[a] = args;
|
||||||
ev('UI.confirm=null;UI.sel=null;closeModal();');
|
ev('UI.confirm=null;UI.sel=null;closeModal();');
|
||||||
Object.assign(found, { rmScrub: { city: 'fra' }, teleRm: { city: 'sea' }, cancelVxc: found.cancelVxc || { id: 'nolink' }, dkOptOut: found.dkOptOut || { city: 'fra', n: 'Nobody' } }, found);
|
// (The gateway closes before its teleport, which would take it along.)
|
||||||
|
Object.assign(found, { rmScrub: { city: 'fra' }, teleLeoRm: { city: 'sea' }, teleRm: { city: 'sea' }, cancelVxc: found.cancelVxc || { id: 'nolink' }, dkOptOut: found.dkOptOut || { city: 'fra', n: 'Nobody' } }, found);
|
||||||
const missing = Object.keys(A.CONFIRM).filter((a) => !found[a] && a !== 'repayLoan');
|
const missing = Object.keys(A.CONFIRM).filter((a) => !found[a] && a !== 'repayLoan');
|
||||||
assert.deepEqual(missing, [], 'a button for every two-click act');
|
assert.deepEqual(missing, [], 'a button for every two-click act');
|
||||||
const changed = {};
|
const changed = {};
|
||||||
|
|
@ -98,7 +99,7 @@ test('two-click buttons: the first click arms SRV_ARM\'s key (or waits for ok),
|
||||||
if (changed[a]) assert.equal(r.outcome, 'applied', a);
|
if (changed[a]) assert.equal(r.outcome, 'applied', a);
|
||||||
}
|
}
|
||||||
// The ones with a real target were really done.
|
// The ones with a real target were really done.
|
||||||
for (const a of ['cancelTransit', 'cancelIx', 'cancelPni', 'rmLink', 'rmSite', 'dropBiz', 'salesFire', 'opsFire', 'rmScrub', 'teleRm', 'connCancel']) if (found[a]) assert.equal(changed[a], true, `${a} did its thing`);
|
for (const a of ['cancelTransit', 'cancelIx', 'cancelPni', 'rmLink', 'rmSite', 'dropBiz', 'salesFire', 'opsFire', 'rmScrub', 'teleLeoRm', 'teleRm', 'connCancel']) if (found[a]) assert.equal(changed[a], true, `${a} did its thing`);
|
||||||
assert.deepEqual(P.errors, []);
|
assert.deepEqual(P.errors, []);
|
||||||
});
|
});
|
||||||
const closeAll = (ev) => ev('closeModal();');
|
const closeAll = (ev) => ev('closeModal();');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue