Commit graph

48 commits

Author SHA1 Message Date
Azgaar
bc65e0e207 refactor: start files migration nightmare 2022-06-25 00:47:48 +03:00
Azgaar
1573fad58d annotate template strings for syntax hightlight and format 2022-05-08 19:22:15 +03:00
Gergely Mészáros, Ph.D
5703e62177
Dev submaps (#770)
* bioms shouldn't be masked or the style selection box is useless

* fix: misleading comment

* experimental submapping feature

* burg remapping

* Submap with options

* Fix: calculating absolute flux from precipitation normal-value.

* effective distanceScale

* updated resampler

* fix: missing cell

* Fix: River automatic rerender on regeneration.

* FIX: wrong culture migration

* fixed 0 index burg bug, more accurate coast detection for burgs

* FIX: wrong burg cell id

* fix invalid feature number at burg.ports, option to disable regenerations

* Relocate submap

* update height model and scale parameters

* new menu

* Dropbox OAuth implementation and Cloud framework

* add some space

* removing uneccesary logs, defer script load

* map position on planet, fix wrong riverbed generation

* fix:riverbed generation

* better cell sampler

* Auto-Smoothing,dist fix

* FIX: incorrect province copy and minor fix of rebels

* Cleanup

* FIX: water detection bug

* Recompute centers (states, cultures, provinces)

* activating forwardmap

* FIX: port burg relocation algo

* FIX: coast detection (for burgs)

* Fix: invalid html id

* add dot

* update for FMG 1.73

* Update submap gui

* refactored submap ui options

* Copy all visible military units from the old map.

* add info text

* Add Markers.deleteMarker API.

* Lock markers and lock burgs options

* better comment

* submapper gui updates, remove feature mapping on/off

* Fix typo (thx evolvedexperiment)

* fix ugly GUI (2 digit roundoff)

* resample dialog

* Town Promotion to largetown

* don't promote to capitals.

* Fix typo

* round style settings

* do not draw removed burgs

* Fix port cell search algo

* Fix: robust error handling, no error for 0.

* submap: projection moved to options, fix double burg error

* complete rewrite of burg relocation

* findcell by coordinates

* prepare to merge, add comments, remove fluff

* replacing lodash with deepCopy implementation

Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
2022-04-15 12:45:02 +03:00
Azgaar
5f0be0401e burg temperature graph - corrections 2022-02-04 00:13:10 +03:00
Ilia Pushkin
ccb75570da
Graph of temperature changes for the year in the burg (#733)
* Option for exporting grid cell (#731)

* Added Save Option for Api-like json export.
Will be updated and set to a scheme

* Save Option for Api-like added

* Moved UI of json export to export dialog.
Moved json export to another file named export-json.js

* Added Seperated json export selections
- all JSON : exports all json data.
- minimal JSON : exports json data without cells data.
- cells JSON : exports json data only with pack.cells data.

* More Stable Cell Export...

* Grid cells export option.

* Graph of temperature changes for the year in the burg

I'm bad at writing in English. Please excuse me for this.
It seems illogical to me the parameter of the average temperature for the year in the burg.
Therefore, I found a database of meteorological measurements at https://ru.climate-data.org/
And I analyzed it. With the help of a neural network. I approximately established the dependence of Dy[X] and Dd[X], Md[X] = f(t,p,l).
Dy[X] - how much the temperature in winter differs from the temperature in summer
Md[X] - how much the temperature during the day differs from the temperature at night, on average per year
Dd[X] - how much the temperature difference between day and night is not constant in winter and summer
t - average temperature for the year
p - average rainfall for the year
l - latitude
Now, for each city, you can plot the temperature change. Based on t,p and l.

ATTENTION!!!
The characteristics of the planet and its orbit coincide with those of the earth!

Further, I will use the Russian language, if you want to know my reasoning, please use the Google Translate capabilities.

Я изменил свою первоначальную идею и доработал её. Что касается качества и используемых функций - жду критики. JavaScript - не знакомый мне язык и я не уверен, что выполнил всё верно.
Что касается самой идеи - её реализация пока далека от совершенства. Я понял, что если установить в настройках мира температуру на экваторе ниже, чем на Земле, то графики получаются слишком далекими от реальности. Эта ошибка связана с тем, что Dy[X] зависит от широты, а не среднегодовой температуры. К сожалению добиться хорошей сходимости удалось только расширением нейросети - ещё больше магических чисел.
Теперь, на основе прошлой выборки из 899 городов, попущенных через нейросеть миллион раз среднеквадратичная ошибка стала 3%.
Входными данными для сети являются широта и влажность, а средняя температура иcпользуется только как ориентир при построении графиков.

* Add legnd in graph

* Editing Coefficients

The coefficients have been changed so that the sign of the latitude does not affect the result

Co-authored-by: Efruz Yıldırır <30903352+yldrefruz@users.noreply.github.com>
2022-02-03 10:21:50 +03:00
Azgaar
207b564180 improve MFCG link generation 2022-01-16 14:54:30 +03:00
Azgaar
e06356aa57 allow to edit MFCG link 2022-01-13 00:43:57 +03:00
Azgaar
a55e8d96ff lock burg - values is boolean, not 1/0 2022-01-01 19:09:50 +03:00
Azgaar
f57f004f9e set MFCG iframe to preview mode 2021-12-16 00:51:12 +03:00
Evolvedexperiment
c108da7cdc Changed text on burg group delete 2021-12-03 16:50:11 +00:00
Azgaar
165d8e48be add mfcg link to burg overrview csv export 2021-11-10 20:41:23 +03:00
Azgaar
cc82d258fa urbanDensity - save/load 2021-10-17 12:01:38 +03:00
dranorter
3f58b9f362
Watabou cities integration change, new Urban Density setting (#672)
* Watabou cities integration change, new Urban Density setting

New setting does not yet save/load - I don't want to change the .map file format.

* new markers - monsters

* markers - fix bridges placement

* markers - fix number

* markers - sacred places

* markers - refactor functions

* markers - course generator for inns

* markers - course generator enhancement

* markers - bandits and pirates

* reset PRNG - make points generation deterministic

* use imperial measures for US only

* split save and export to different files

* remove unused js libs

* markers - statues

* markers - magic portals

* markers - magic portals fix

* markers - palm grove fix

* markers - round coords on zoom

* markers data rework - master data object

* markers rework - optional pin shapes

* markers rework - editor start, dragging

* markers rework - editor functions

* markers rework - editor UI

* editable theme color

* added self-hosted analytics

* collect statistics for a short period

* umami - we do'nt need html class events

* umami - don't collect if noTrack is set

* markers - add on click

* saveTiles clean up listeners on close

* markers - generate from config file

* config generate markers dialog

* config generate markers dialog fixes

* markers overview

* markers - export as geoJSON

* markers overview - export data to csv

* markers - auto-update on load

* markers overview - focus on marker

* burg editor - MFCG preview

* markers - generate tool + lock tooltip

* Watabou cities integration change, new Urban Density setting

New setting does not yet save/load - I don't want to change the .map file format.

* Trying to put the formula in the right place

Again, sorry for the mess

* whoops

* Getting the equation right

* Change default

Co-authored-by: Azgaar <maxganiev@yandex.ru>
2021-10-17 11:48:56 +03:00
Azgaar
576fb9a6d0 showMFCGMap option 2021-10-12 16:36:15 +03:00
Azgaar
bdc0c9f8ee minmax util function 2021-10-10 17:59:27 +03:00
Azgaar
2a9edd2458 markers - generate tool + lock tooltip 2021-09-23 21:07:03 +03:00
Azgaar
a9755dacc8 burg editor - MFCG preview 2021-09-16 10:20:54 +03:00
Azgaar
5ed08e156a store populationRate and urbanization in memory 2021-06-27 14:24:55 +03:00
Legogizmo
f855de6fb8
Added a lock function to burgs (#612)
* Added a lock function to burgs that will prevent them from being regenerated

* Updated tooltips and fixed culture change from renaming locked burgs and group remove from deleting locked burgs
2021-03-30 00:05:49 +03:00
Azgaar
a9a9e8c7da v1.5.5 - Copenhagen fix 2021-02-22 14:15:35 +03:00
Azgaar
0fcb4eea0b v1.5.29 - burg type editable 2021-02-14 18:31:29 +03:00
Azgaar
a5b2f23cee v1.5.12 - emblems adding, save/load 2021-02-09 00:02:21 +03:00
Azgaar
378ed71702 v1.5.09 - speak functionality 2021-02-04 15:56:28 +03:00
Azgaar
b86d985607 v1.5.01 - COA gen integration, first try, embed 2021-02-04 15:56:27 +03:00
Azgaar
3a55ed1c08 v1.4.6 2021-02-04 15:56:27 +03:00
Bryce Kabat
122c456588 Added Logging Options to Improve Performance (#529)
* Added Logging Options to Improve Performance

* Requested Changes

Co-authored-by: Onyx Azryn <brycekabat@onyxazryn.com>
2021-02-04 15:56:27 +03:00
Azgaar
957bab32c1 v1.4.21 2020-06-05 22:21:32 +03:00
Evolvedexperiment
bdf5c048a8 Fix for FMG/MFCG sea direction integration 2020-05-16 16:52:28 +00:00
Azgaar
72d124d95d v1.4.01 2020-04-23 19:44:32 +03:00
Azgaar
6d0e106f1f v1.3.45 2020-04-07 22:46:16 +03:00
Azgaar
a60b2eed9f v1.3.36 2020-04-04 01:17:47 +03:00
Azgaar
63ac434e1d v1.3.35 2020-04-04 01:13:56 +03:00
Azgaar
5ecbcdaf85 v1.3.31 2020-04-04 00:42:16 +03:00
Azgaar
aab1b8eac6 v1.3.3 2020-04-04 00:18:29 +03:00
Marc Emmanuel
8be4a5e151 fix: 🐛 Allow also cmd key for all ctrl actions on mac 2020-01-04 13:10:44 +01:00
Azgaar
bc6b8cdafe v1.22.31 2019-12-23 20:06:43 +03:00
Azgaar
c558029992 v1.22.29 2019-12-18 23:47:49 +03:00
Azgaar
5ffd30dee8 v 1.21 2019-10-28 00:18:17 +03:00
Azgaar
c27d3e1689 1.1.20 2019-10-17 21:13:43 +03:00
Azgaar
76a5ade3d0 v1.1.12 2019-10-03 23:17:17 +03:00
Azgaar
8ff1fe46b8 v1.1.11 2019-10-03 00:48:33 +03:00
Azgaar
c050353d70 v1.1.09 2019-10-02 22:20:01 +03:00
Azgaar
35b3e9dd9c v1.1 2019-09-28 15:10:53 +03:00
Azgaar
6517e231e8 v1.0.44 2019-09-21 00:13:29 +03:00
Azgaar
92a50d9810 v1.0.07 2019-09-03 22:34:52 +03:00
Azgaar
cab429a346 v1.0 2019-08-31 12:16:36 +03:00
Azgaar
dc7ebd7491 v 0.8.20b 2019-05-10 00:04:07 +03:00
Azgaar
680044ddd6 v 0.8.0b 2019-04-21 21:55:13 +03:00