diff --git a/CHANGELOG.md b/CHANGELOG.md index 3465c68..ec70eb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project are documented here. The project follows - Maps with more than a thousand lines on screen draw about twice as fast: they leave out the link labels and the dots on lit fiber, which nobody could read in such a tangle. Zoom in and they come back; the selected link keeps its label. - The map of a huge network spends less time working out fiber capacities on every frame, and skips links above or below the screen. - Big networks with thousands of fiber customers no longer stall: each game day and each action is about two to three times faster, and new alien-wave offers no longer freeze the game for a moment. +- The game now tells you when it cannot save: a network too big for the browser's storage, or a browser that blocks it, used to stop saving without a word (#176). Export a save from the warning to keep a backup. ## [1.34.1] — 2026-10-27 diff --git a/site/i18n/es.js b/site/i18n/es.js index f7dea85..872e21b 100644 --- a/site/i18n/es.js +++ b/site/i18n/es.js @@ -2716,7 +2716,9 @@ "save.that_file_is_too_big_to":"Ese archivo es demasiado grande para ser una partida.", "save.that_network_went_bankrupt_it_cannot":"Esa red quebró. No se puede recuperar, solo llorar.", "save.that_save_has_a_pop_in":"Esa partida tiene un POP en una ciudad que esta versión no conoce ({city}).", +"save.this_browser_is_not_letting_the":"Tu partida no se está guardando. Este navegador no deja que el juego guarde nada (ventana privada o datos de sitios desactivados). Exporta una partida para no perder tu red.", "save.this_replaces_name_export_it_first":"Esto reemplaza a {name}. Expórtala primero si quieres conservarla.", +"save.your_network_is_too_big_to":"Tu partida no se está guardando. Tu red se ha vuelto demasiado grande para el almacenamiento de este navegador. Exporta una partida ahora y guarda el archivo: es tu copia de seguridad.", "scenario_progress.goal_goal_time_d_days_start":"Objetivo: {goal} · Tiempo: {d} días · empiezas en {city}", "scenario_progress.goal_was_not_reached_in_d":"{goal} no se logró en {d} días. Sigue jugando esta red en modo libre, o inténtalo de nuevo.", "scenario_progress.just_in_time":"Justo a tiempo.", diff --git a/site/i18n/fr.js b/site/i18n/fr.js index 4342c28..9cee263 100644 --- a/site/i18n/fr.js +++ b/site/i18n/fr.js @@ -2716,7 +2716,9 @@ "save.that_file_is_too_big_to":"Ce fichier est trop gros pour être une sauvegarde.", "save.that_network_went_bankrupt_it_cannot":"Ce réseau a fait faillite. Impossible de le ressusciter, on ne peut que le pleurer.", "save.that_save_has_a_pop_in":"Cette sauvegarde a un POP dans une ville que cette version ne connaît pas ({city}).", +"save.this_browser_is_not_letting_the":"Votre partie n'est pas sauvegardée. Ce navigateur n'autorise pas le jeu à stocker quoi que ce soit (fenêtre privée ou données de sites désactivées). Exportez une sauvegarde pour garder votre réseau.", "save.this_replaces_name_export_it_first":"Cela remplace {name}. Exporte-le d’abord si tu veux le garder.", +"save.your_network_is_too_big_to":"Votre partie n'est pas sauvegardée. Votre réseau est devenu trop gros pour le stockage de ce navigateur. Exportez une sauvegarde maintenant et gardez le fichier : c'est votre copie de secours.", "scenario_progress.goal_goal_time_d_days_start":"Objectif : {goal} · Durée : {d} jours · départ à {city}", "scenario_progress.goal_was_not_reached_in_d":"Objectif non atteint en {d} jours : {goal}. Continue avec ce réseau en partie libre, ou réessaie.", "scenario_progress.just_in_time":"Juste à temps.", diff --git a/site/i18n/it.js b/site/i18n/it.js index db5ff27..9ecd843 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -2716,7 +2716,9 @@ "save.that_file_is_too_big_to":"Quel file è troppo grande per essere un salvataggio.", "save.that_network_went_bankrupt_it_cannot":"Quella rete è finita in bancarotta. Non si può resuscitare, solo piangere.", "save.that_save_has_a_pop_in":"Quel salvataggio ha un POP in una città che questa versione non conosce ({city}).", +"save.this_browser_is_not_letting_the":"La partita non viene salvata. Questo browser non permette al gioco di salvare nulla (finestra privata o dati dei siti disattivati). Esporta un salvataggio per non perdere la tua rete.", "save.this_replaces_name_export_it_first":"Sostituisce {name}. Esportala prima, se vuoi tenerla.", +"save.your_network_is_too_big_to":"La partita non viene salvata. La tua rete è diventata troppo grande per lo spazio di questo browser. Esporta un salvataggio adesso e tieni il file: è il tuo backup.", "scenario_progress.goal_goal_time_d_days_start":"Obiettivo: {goal} · Tempo: {d} giorni · si parte da {city}", "scenario_progress.goal_was_not_reached_in_d":"Obiettivo non raggiunto in {d} giorni: {goal}. Continua a giocare questa rete in modalità libera, o riprova.", "scenario_progress.just_in_time":"Appena in tempo.", diff --git a/site/i18n/pt.js b/site/i18n/pt.js index b474374..0c267b7 100644 --- a/site/i18n/pt.js +++ b/site/i18n/pt.js @@ -2716,7 +2716,9 @@ "save.that_file_is_too_big_to":"Esse arquivo é grande demais para ser um save.", "save.that_network_went_bankrupt_it_cannot":"Essa rede foi à falência. Não dá para trazer de volta, só chorar.", "save.that_save_has_a_pop_in":"Esse save tem um POP numa cidade que esta versão não conhece ({city}).", +"save.this_browser_is_not_letting_the":"Seu jogo não está sendo salvo. Este navegador não deixa o jogo guardar nada (janela anônima ou dados de sites desativados). Exporte um save para não perder sua rede.", "save.this_replaces_name_export_it_first":"Isso substitui {name}. Exporte antes se quiser guardar.", +"save.your_network_is_too_big_to":"Seu jogo não está sendo salvo. Sua rede ficou grande demais para o armazenamento deste navegador. Exporte um save agora e guarde o arquivo: é o seu backup.", "scenario_progress.goal_goal_time_d_days_start":"Objetivo: {goal} · Tempo: {d} dias · começa em {city}", "scenario_progress.goal_was_not_reached_in_d":"Objetivo não alcançado em {d} dias: {goal}. Continue jogando esta rede no modo livre, ou tente de novo.", "scenario_progress.just_in_time":"Bem na hora.", diff --git a/src/game/90-actions/89-game-and-settings.js b/src/game/90-actions/89-game-and-settings.js index 82f3adc..d4b8822 100644 --- a/src/game/90-actions/89-game-and-settings.js +++ b/src/game/90-actions/89-game-and-settings.js @@ -13,10 +13,10 @@ Object.assign(ACT,{ importPick:()=>{let f=$('importIn');if(!f){f=document.createElement('input');f.type='file';f.accept='.json,application/json';f.id='importIn';f.hidden=true;document.body.appendChild(f);f.addEventListener('change',()=>{importFile(f.files[0]);f.value='';});}f.click();}, importGo:()=>{const s0=UI.importing;if(!s0)return;UI.importing=null;const prev=S;try{S=migrate(JSON.parse(JSON.stringify(s0)));compute();checkGoals();renderAll();}catch(e){S=prev;if(S)compute();renderAll();toast(tr('game_and_settings.import_failed_that_save_is_damaged'),'bad');sfx('err');return;}UI.confirm=null;$('bankBox').hidden=true;$('dash').hidden=true;UI.started=true;UI.sel=null;UI.speed=S.uiSpeed===undefined?1:S.uiSpeed;if(S.cam&&isFinite(S.cam.x))Object.assign(cam,S.cam);else{const h=CITY[S.home];if(h){cam.x=h.x;cam.y=h.y;}}closeModal();$('modal').hidden=true;compute();renderAll();save();toast(tr('game_and_settings.welcome_back_name_imported_and_saved',{name:esc(S.name)}),'good');sfx('coin');track('game_import');}, menu:()=>{if(!S||!UI.started){showTitle();return;}openModal(`
${tr('game_and_settings.your_game_saves_itself_every_few')}
${isPhone()?installRow():''} + ${saveFailing()?`${saveFailMsg()}
`:`${tr('game_and_settings.your_game_saves_itself_every_few')}
`}${isPhone()?installRow():''}