Commit graph

765 commits

Author SHA1 Message Date
Azgaar
dd407e8be5 notes editor - use tiny cloud editor 2022-11-27 13:26:52 -05:00
Azgaar
08a9d75bc9 zone editor - restore init state + type display 2022-11-27 13:20:53 -05:00
Ángel Montero Lamas
61d4d52589 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-11-27 13:20:32 -05:00
Azgaar
845245130f burg temperature graph - corrections 2022-11-27 13:18:14 -05:00
Ilia Pushkin
536f9d7470 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-11-27 13:17:57 -05:00
Azgaar
3306ff2265 lock all burgs - optimization 2022-11-27 13:06:01 -05:00
Ángel Montero Lamas
142351c6ef 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-11-27 13:04:07 -05:00
Azgaar
25a43996fd scale previpitation layer circles 2022-11-27 13:03:33 -05:00
Azgaar
2b481caa84 normalize prec, flux and river width 2022-11-27 13:02:57 -05:00
Azgaar
86e3a5147e remove advanced tracking 2022-11-27 12:55:38 -05:00
Azgaar
60f92142ca showMFCGMap option 2022-11-27 12:54:47 -05:00
Azgaar
750f773cfb markers - export as geoJSON 2022-11-27 12:45:17 -05:00
Azgaar
6d6dc22a75 markers overview 2022-11-27 12:45:17 -05:00
Azgaar
b156f3cdf9 markers - generate from config file 2022-11-27 12:34:47 -05:00
Azgaar
0530ebbde7 markers - add on click 2022-11-27 12:33:26 -05:00
Azgaar
83fa6a13e6 collect statistics for a short period 2022-11-27 12:32:19 -05:00
Azgaar
b3e0d5e7b1 markers - generate tool + lock tooltip 2022-11-27 12:32:02 -05:00
Azgaar
50814bd431 markers rework - editor functions 2022-11-27 12:28:59 -05:00
Azgaar
2406c29b41 hotkeys to use key instead of a code 2022-11-27 12:23:53 -05:00
Azgaar
a5f4939875 menu style - grid layout 2022-11-27 12:21:05 -05:00
Gergely Mészáros, Ph.D
948a7ed3a1 Cloud support / Dropbox OAuth reference client (#659)
* bioms shouldn't be masked or the style selection box is useless
* fix: misleading comment
* Fix: calculating absolute flux from precipitation normal-value.
* Fix: River automatic rerender on regeneration.
* Dropbox OAuth implementation and Cloud framework
* add some space
* removing unnecessary logs, defer script load

Created by: Mészáros Gergely <monk@geotronic.hu>
2022-11-27 12:20:32 -05:00
Azgaar
68fade20c3 dropbox - import changes from alpha 2022-11-27 12:17:30 -05:00
Azgaar
1d1f8e2d1c calculate consumption on category level 2022-11-27 12:13:52 -05:00
Azgaar
2e66fd444a generate state salesTax 2022-11-27 12:13:19 -05:00
Azgaar
838ef27359 goods export system 2022-11-27 12:12:57 -05:00
Azgaar
34bf6ffd1e resource units 2022-11-27 12:11:56 -05:00
Azgaar
1ee1a38e87 show production in burgs editor 2022-11-27 12:11:26 -05:00
Azgaar
3b8b569aa5 culture type bonuses for production 2022-11-27 12:10:55 -05:00
Azgaar
bef3affa61 fix merge conflicts 2022-11-27 12:06:17 -05:00
Azgaar
337a62183f style setting for resources 2022-11-27 12:05:08 -05:00
Azgaar
2df06c1b7e burgs placement change + resource style 2022-11-27 12:04:58 -05:00
Azgaar
9722470a3d resource icon upload + save/load 2022-11-27 12:03:06 -05:00
Azgaar
db6e17a5de burgs overview - icon upload basic 2022-11-27 12:02:52 -05:00
Azgaar
81b184de01 burgs overview - shift icon 2022-11-27 12:02:33 -05:00
Azgaar
e507fc66df Resource editor - ability to add bonus if no bonuses 2022-11-27 12:02:16 -05:00
Azgaar
5f3cc44ddc add resource 2022-11-27 11:43:49 -05:00
Azgaar
276364cddc generic confirmationDialog for all files 2022-11-27 11:43:49 -05:00
Azgaar
f27547129a generic confirmationDialog 2022-11-27 11:42:37 -05:00
Azgaar
c6fa7438f4 Resources editor - assign cells 2022-11-27 11:42:05 -05:00
Azgaar
8ce1ab82df resource bonus UI 2022-11-27 11:41:21 -05:00
Azgaar
2412c22d8f resource bonus UI 2022-11-27 11:41:21 -05:00
Azgaar
73123bae68 resource bonus UI basic 2022-11-27 11:40:57 -05:00
Azgaar
ffe6483cbe custom spread models 2022-11-27 11:40:33 -05:00
Azgaar
c2ad4922b7 custom spread models 2022-11-27 11:40:20 -05:00
Azgaar
ea89e5f516 better model names 2022-11-27 11:39:59 -05:00
Azgaar
65d48da566 regenerate resources 2022-11-27 11:39:46 -05:00
Azgaar
1c500479a5 color picker behavior update 2022-11-27 11:39:18 -05:00
Azgaar
000d9ca2a2 color picker behavior update 2022-11-27 11:38:52 -05:00
Azgaar
295344b56d basic resource editor screen - icons 2022-11-27 11:38:26 -05:00
Azgaar
e715e27259 basic resource editor screen 2022-11-27 11:38:17 -05:00