The default map feature was not working on page refresh because the
onloadBehavior dropdown value was not being persisted or restored.
Changes:
- main.js: Restore onloadBehavior from localStorage on page load
- save.js: saveAsDefaultMap() now saves "default" to localStorage
- save.js: clearDefaultMap() now removes the localStorage setting
- index.html: Update version hashes to 1.108.13
Now when users click "Set as default", the setting persists across
page refreshes and their default map loads automatically.
Add ability to set a specific map as the default that opens on load:
- Add 'Open default map' option to onload behavior dropdown
- Implement saveAsDefaultMap() to store map as default in IndexedDB
- Implement clearDefaultMap() to remove default map setting
- Modify checkLoadParameters() to load default map when configured
- Add UI buttons in Save dialog for setting/clearing default map
- Update version to 1.108.12 and hash in index.html
Users can now:
1. Open any map they want as default
2. Go to Options > Onload behavior > Select "Open default map"
3. Save > Click "Set as default" button
4. The map will now open automatically every time
This sets the foundation for the planned time-based worldbuilding
and lore database features by ensuring users always start with
their primary world map.
* feat: style - store emblem size mod in style (v1.99.10)
* fix the isOutdated function for versions past 1.99
* fix: showUploadMessage function not called correctly for isUpdated case
* feat: load - improve version detection
* feat: improve version detection and update process
* feat: Update version and use constant for VERSION in multiple files
* Update versioning.js to fix incorrect message display for stored version
* feat: zones editor - update to work with pack data
* feat: zones editor - update editor
* feat: zones editor - update editor
* chore: update version
* feat: zones - regenerate
* feat: zones - render zones as continuius line
* feat: zones - editot changes
* feat: zones - auto-update
* feat: zones - generation fixes
* feat: zones - generation fixes
* feat: zones - restore layer
* feat: zones - proselytism - check population
---------
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
* Scale bar styling (#1025)
* feat: style scale bar
* feat: style scale bar - style presets
---------
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
* Ocean heightmap to v1.96 (#1044)
* feat: allow to render ocean heightmap
* feat: allow to render ocean heightmap - test
* feat: allow to render ocean heightmap - fix issue
* feat: allow to render ocean heightmap - cleanup
---------
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
* fix: scale bar size
* fix: remove mask on terrs lavel
* fix: regenerate heigtmap preview to use current graph size
* Add the name of culture and namesbase in the name editor dialog (#1033)
* Add the name of culture and namesbase in the name editor dialog
Added the name of the culture and namesbase in the dialog "name editor".
This tells information on the "click to generate a culture-specific name"
It tells you the culture before changing name.
* cultureName into cultureId + cultureName
And deleted the incomplete code of showing culture name on datatip
* refactor: leave culture name only
---------
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
* Added Burgs column to province editor (#1031)
* Added Burgs column to province editor
Added to province editor:
+ Burgs column
+ the number of Burgs, p.burgs.length
+ "icon-dot-circled" to go to overviewBurgs.
+ overviewBurgs Filtered by state id.
+ Fixed some typos.
* fixed code as Azgaar suggested
+ Corrected provincesHeader distance in em.
+ const stateId = pack.provinces[p].state;
- Deleted cell count.
* deleted HTML code for provincesFooter cells
- Deleted Total land cells number HTML from provincesFooter.
* deleting totalCells in the code, maybe i will add provinceCells in the future.
Deleted lines for const totalCells and for (+cells / totalCells) * 100 + "%";
* refactor: cleanup
* refactor: cleanup
---------
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
* fix: burgs overview - add MFCG link back
* feat: add more details to burgs export
* feat: don't show auto-update dialog
* feat: pump version
* fix: #1041
* feat: update style presets
---------
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
Co-authored-by: Ángel Montero Lamas <angel.montero1@gmail.com>
* Adding gzip compression for improving storage use and backward compatibility. (#984)
* Basic gzip an gunzip on load and save.
* refactor file save type to .gz and update the data in ui.
---------
Co-authored-by: Azgaar <maxganiev@yandex.com>
* refactor: cleanup, change wording
* feat: streamline saving options
* fix: fixes
---------
Co-authored-by: Efruz Yıldırır <30903352+yldrefruz@users.noreply.github.com>
* Poles to have Different Temperature (Ref: Axial Tilt suggestion) (#964)
* Initial Idea
* Changed Names:
Currently still only on NorthTemperature reliant, compadible version
* Restored Generation of Temperature
* Temperature Function found
* Version Bump
* Scuffed Saving solution
* Current Version(without the save changes)
* Globe Temperature Display
* Individual Regeneration of Temperatures
* Fixed Loading and Saving
New Maps save a Dummy 0 at settings[17]
* Final Version Bump
(currently no description for the Update)
---------
Co-authored-by: Azgaar <maxganiev@yandex.com>
* chore: formatting
* refactor: temperature inputs
* feat: rework temperature generation alg
* style: respore winds button
* refactor: update options on load, don't update temperature UI
* refactor: no need to keep compatibility here
* fix: load temp setting from .map file
---------
Co-authored-by: Leo <leonard.krusch@gmx.de>
* preparatory bugfixes
* restructure religion generator for extensibility
* Add culture-like update functions and UI
* Syntax / Typo
* PR Versioning
* Relig Editor UI: hide on brush, limit -> potential
* add / remove Culture creates / removes Folk religion
* Religions UX: stable abbr, Folk non-selectable type & not separately removed
* Folk religions follow cultures through regeneration; extinct religion centers draw, folk centers are immutable and do not
* style
* regenerate bugs fixing
* when cultures regenerate a different number
* ability to lock culture in a easy-defined set
fixes uncaught error in commit dada419 from PR #910
* what is locked folk?
* New Map ignores old locked things
* No auto-update of religion on culture regeneration
* typo
* Bugfixes
* Refactor toward modern style
* Prepare to lock - Further refactor
* Complete locked religions functionality
* Prepare for live updates
* Editors fixing + re-versioning
* Fix merge snafu
* Bugs, toungue-twisting
* indexing bugfix
* Manual Add prefers to create missing Folk
* Locked origin regen; deterministic expansion
* version update; fix add wild folk
---------
Co-authored-by: A C James <james.ander31@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>