20 Commits

Author SHA1 Message Date
SX
6a777fbeb9 Use technic.conf for all technic mod settings, update admin commands, some cleanup, averages for network lag detection (#111)
* Configs to correct place, use moving average for net lag, improve admin commands

* Fix luacheck warnings

* Handle file paths, missing cfg file and Settings:set simlar way engine does

* Quarry and radiation settings to technic.conf

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-11-05 12:39:49 +02:00
SX
d206956810 Destroy network if ref switch disappears, cleanup switching station code
Remove rest of SP_nodes from code, it does not contain anything

Reset switch infotext, export machine_tiers

Add tests for cable building between active networks

Remove all networks when cable is placed between networks

Fix SC connectivity issues
2020-10-31 04:43:16 +02:00
SX
bdf8d2e0cc Make default_timeout dynamic, remove power_monitor from machine group 2020-10-31 04:43:10 +02:00
SX
c6aa02897b Network handles timeouts, remove second switch ABM 2020-10-31 04:38:45 +02:00
SX
f66c644fce Remove metadata for supply,demand,battery_count,battery_charge,battery_charge_max
Remove switching station from networks

Disable few debug prints, add removed machines to LBM

clear_networks refatoring #95

Functions remove_network_node and add_network_branch #95

Fix undef network_id, remove flatten #95
2020-10-31 04:37:21 +02:00
SX
a259576894 Network refactoring, proper multi switch support WIP
Update network utils, globalstep use networks, update switch ABM

Removing switching stations from network
2020-10-31 04:36:26 +02:00
BuckarooBanzay
8441384726 bump switching station timeout to 1800 seconds (half an hour) 2020-06-19 07:54:02 +02:00
BuckarooBanzay
53a9ea18b0 provide "lag" info in switching station digiline response 2020-06-18 10:59:40 +02:00
BuckarooBanzay
28737668df remove laggy switching stations from active index
laggy switching stations won't work well in unloaded areas this way
2020-06-18 10:56:16 +02:00
BuckarooBanzay
ca5a2c4042 progressive lag adaption of technic_run execution interval 2020-05-01 16:24:16 +02:00
BuckarooBanzay
979a2f00e6 reduce technic_run interval if lag is too high / hot-reload offdelay setting / cache-flush command 2020-02-03 10:29:20 +01:00
BuckarooBanzay
880bacfa11 add docs 2020-02-03 10:19:58 +01:00
BuckarooBanzay
24d6852d72 tune polyfuse values 2020-01-17 07:57:36 +01:00
BuckarooBanzay
dc798867e9 switch off delay setting 2020-01-16 16:03:36 +01:00
Thomas Rudin
6baed74ca1 5 minute switching station timeout (TODO: setting... :P) 2020-01-11 18:09:18 +01:00
BuckarooBanzay
12ce89e287 3 minute switch off delay 2020-01-09 15:45:09 +01:00
Thomas Rudin
289b8020b9 polyfuse overload 2020-01-05 16:45:10 +01:00
Thomas Rudin
0eef218952 60 seconds off delay 2020-01-04 20:25:44 +01:00
Thomas Rudin
e042b193fa working switching station off-delay 2020-01-03 16:04:06 +01:00
Thomas Rudin
7234b73f46 move out switching station run function 2020-01-03 13:43:36 +01:00