Commit graph

393 commits

Author SHA1 Message Date
Azgaar
9afe76f01a add web manifest 2022-05-13 19:56:00 +03:00
Azgaar
bcdffca14e add Tapestry font, update cached files 2022-05-11 10:43:21 +03:00
Azgaar
4251d0c0ea new fonts 2022-05-10 22:45:07 +03:00
Azgaar
566a811d1f fix local fonts 2022-05-10 20:52:30 +03:00
Azgaar
e8ae713398
Support Ukraine banner in About (#792)
* support Ukraine banner in About

* Stand With Ukraine badge
2022-05-10 19:37:37 +03:00
Azgaar
f5cb800295
Caching service worker (#794)
* register service worker

* versioning code

* cleanup

* cache in Prod only
2022-05-09 17:50:07 +03:00
Azgaar
e6dfab48c2
V1.8 (#784)
* pump version to 1.8

* resampleDialog UI update

* don't draw markers if not required

* submapOptionsDialog style changes
2022-04-26 22:48:17 +03:00
Gergely Mészáros, Ph.D
e9b4a7b03a
Resample transformations (#782)
* Rescale style option for submaps.

* namespace for submap ui.

* Keep visual change for towns

* rotation and shift for resample

* Shift first - rotate later

* submap mirror transformation, applicative style

Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
2022-04-20 22:43:13 +03:00
Gergely Mészáros, Ph.D
3cd30206b7
Dev submaps update (#780)
* Rescale style option for submaps.

* namespace for submap ui.

* Keep visual change for towns

Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
2022-04-19 14:35:37 +03:00
Azgaar
ae0979fc68 prettify 2022-04-15 14:47:56 +05: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
Mészáros Anna Veronika
af62ff915c
Dev csv (#761)
* import cultures feature

* remove debug messages

* code cleanup
2022-04-02 23:42:54 +03:00
evolvedexperiment
d19ea0896d
Old World template by ReneHP (#758) 2022-03-15 11:50:48 +03:00
Azgaar
4978db4d1e increase number of states by default 2022-02-19 22:28:03 +03:00
Azgaar
9777df9a67 toggle loading menu 2022-02-19 22:22:30 +03:00
Azgaar
5b6ec0cc2e set size for pre-defined maps 2022-02-19 21:18:02 +03:00
Azgaar
d570886816 predefined-heightmaps 2022-02-19 19:28:22 +03:00
Azgaar
b970ea12ad notes editor - dynamically load 'tiny' script 2022-02-14 23:53:15 +03:00
Azgaar
fe8457ac4c notes editor - use tiny cloud editor 2022-02-14 22:51:31 +03:00
Azgaar
13abacc242 about: add discord icon link 2022-02-13 17:26:52 +03:00
Azgaar
ff669fca50 round numbers 2022-02-12 21:37:06 +03:00
Azgaar
aee78071c6 dropbox - load script dynamically 2022-02-08 00:47:17 +03:00
Azgaar
8e480be704 load auto-update sctipt dynamically 2022-02-07 22:17:16 +03:00
Azgaar
f8d2719218 zone editor - filter by type 2022-02-07 00:05:04 +03:00
Azgaar
5acc3b156b zone editor - restore init state + type display 2022-02-06 23:36:44 +03:00
Ángel Montero Lamas
8e7ccbd50d
Zone filter (#728)
* Adding zone type dropdown to index.html

* added zone type filter to zones-editor.js

* zoneTypes dialog

add and delete types, dialog

* filtering types

* correct filter button and prompt

The filter button now works on click with an added zonesEditorAddLines(); on function toggleFilterTable().

If the table is empty, a message appears on a line giving advice.

* Amount of types and fixes

Fixed some spacing in zoneTypes dialog, and made a count for the amount of zones per type.

* Minor changes for zone types

* dialog for types on a button

New button for the zone Types dialog.

* typo in index.html

* update on click add type

Co-authored-by: Evolvedexperiment <evolvedexperiment@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>
2022-02-06 23:09:30 +03:00
Ángel Montero Lamas
81f037004c
Color picker hatches 14-60 (#726)
* Color picker hatches 14-60

Added hatches to number 14 to 60.
Updated the code of the color picker to accept multiples rows of hatches.

Changed the size of fillRectPointer from 0.9 em to 1.5 em.

Added an Update code to upgrade maps to 1.72 to have a grid of 60 svg hatches. Without the update, loaded files appeared with the rectangles for hatches 14-60 empty.

* Hatches ordered

Reworked the code to put back rows of 14 hatches. Reordered the first 14 hatches to defaault.
Made 3 rows, so 42 hatches.

* Cleaned code and fixes

Cleaned </pattern> in index.html line 152.
Put back: width=".9em" height=".9em" style="margin-bottom:-1px"> for fill.

* mouseover hatches

Fixed some typos. Changed mousemove for mouseover and moved the calling of the function tip from the each function to the original place at 519.
The arrow function changed to one that tells the id.

* Copies hatching from defElements into map svg, and hatching removed from saved map files.

* Removed haching completely from map svg

* Hatching copy for clone is now done before unused pattern removal

* Added back code that removes the unused hatching group

Co-authored-by: Evolvedexperiment <evolvedexperiment@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>
2022-02-06 21:56:16 +03:00
Azgaar
37598994cb dissalow local run 2022-02-06 01:04:11 +03:00
Azgaar
8c41639839 style creator rework 2022-02-05 23:05:35 +03:00
Azgaar
49a8a9f7c7 style - fetch local json files 2022-02-05 21:23:10 +03:00
Azgaar
79c1e2abd9 new style - styleCyberpunk 2022-02-05 19:19:49 +03:00
Azgaar
f65bc63ab3 pump version to 1.72 2022-02-05 17:08:48 +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
2608a27a34 export json - Foundry should go below 2022-01-26 18:17:07 +03:00
Azgaar
3fe225e293 export json cleanup 2022-01-26 18:13:32 +03:00
Efruz Yıldırır
503eabd9d4
Api-Like map save option (#730)
* 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...
2022-01-26 17:16:54 +03:00
Azgaar
8184b416b9 fill-box web component 2022-01-22 17:47:56 +03:00
Azgaar
002558785a about page and F1 page update 2022-01-16 20:15:47 +03:00
Azgaar
fbc0158736 seed history small style change 2022-01-16 19:49:20 +03:00
Azgaar
214bc7a40d allow more states via number input 2022-01-16 19:37:16 +03:00
Azgaar
dbe84ea015 improved namesbase analysis 2022-01-15 17:19:55 +03:00
Azgaar
e06356aa57 allow to edit MFCG link 2022-01-13 00:43:57 +03:00
Azgaar
18acadfd80 lock all burgs - optimization 2022-01-01 19:06:51 +03:00
Ángel Montero Lamas
f3d3538ff5
Added lock/unlock all (#713)
* Added lock/unlock all

Lock All , Unlock All as separate buttons. Additionally to InvertLock.

* Update burgs-overview.js

Updated the syntax to the one suggested by Azgaar.

* Lock/unlock in one button

Unlock all burgs and lock all burgs in just one button.
Additionally to invert lock.

* lock unlock in burgs-overview.js

Added a way to check if burgs are locked or unlocked with the lock all button, so it works in any situations about locking.

* burgs-overview.js lock all

Changed burgsonoff to setLockBurgs, also put setLockIcon.

* index.html burgsonoff to burgsLockAll

* Update burgs-overview.js

spacing
2022-01-01 18:56:22 +03:00
Azgaar
44c134ebd0 diplomacy - change relations from matrix 2021-12-31 19:57:39 +03:00
Ángel Montero Lamas
ec054a1333
Adding some state and province forms to FMG (#714)
* Update burgs-and-states.js

* Update burgs-and-states.js

* Adding state and province form to the list

* typo in index.html

* deleted some suggested forms

Deleted some forms of state and province. Some are still suggested to add.

* Updated burgs-and-states.js

Worked eparchy, exarchate, patriarchate, captaincy and seneschalty.

* index.html alphabetical order state forms

alphabetical order for Patriarchate in theocracy group
2021-12-31 19:06:39 +03:00
Azgaar
3ee430543a diplomacy - short name if full is too long 2021-12-31 19:05:53 +03:00
Azgaar
f22e0aa81f diplomacy - ux changes 2021-12-31 18:50:00 +03:00
Azgaar
865afdc2aa diplomacy - change relations screen 2021-12-31 18:21:37 +03:00