Hornwitser
0cdb5d0ce4
Fix crash in recount_cluster_research_progress
...
Check that the relevant research is present in the research mapping
before accessing it in recount_cluster_research_progress.
2019-10-12 17:07:08 +02:00
Hornwitser
075d54f708
Filter out lower levels when syncing research
...
Fix the next level of an infinite research getting updated with the
progress of the previous level from other nodes in the cluster by
filtering out infinite researches with a lower level than the local
level.
2019-10-12 17:07:08 +02:00
Hornwitser
62f3a99feb
Set progress when completing infinite researches
...
Set the progress for the next level of an infinite research when
unlocking it via a script. This is necessary when the research is
actively being researched as Factorio will carry over the progress for
the current level into the next one when set via a script.
It's possible for the new progress to be non-zero if the next level was
on the research queue.
2019-10-12 17:07:08 +02:00
Hornwitser
3b1ed1a667
Rename research to tech
...
Use tech as the loop variable for researches as this is consistent with
the rest of the researchSync module.
2019-10-12 17:07:08 +02:00
Hornwitser
6a6274e85c
Fix incorrect property checks in researchSync
...
Fix naive checks for properties being set of the form obj[key] into the
proper form Object.hasOwnProperty.call(obj, key). The reason for this
is that if the key has a value of a built-in property like 'constructor'
then a check of the form obj[key] will always return true even if that
property hasn't been set on the object.
2019-10-12 17:07:07 +02:00
Hornwitser
f76c84c3f1
Move node_modules/_app/ into lib/ as a package ( #190 )
...
Move the contents of node_modules/_app into lib/ as there shouldn't be
any content in node_modules. This directory is automatically managed
and pruned by npm.
Add lib/ as a local package in package.json, this allows scripts
everywhere to require it's content as "lib/path" instead of relying on
local paths. This shadows the StdLib Node.js Bindings package, but I
could care less.
Change all requires with lib as a local path and _app to use just lib.
2019-08-04 15:52:36 +02:00
Sander Homan
042230dc2c
Fix notifying about the same research being finished
...
This is just a bandaid to fix a symptom. The underlying cause is still there, but at least it shouldn't spam the players anymore.
2019-07-29 20:31:42 +02:00
Hornwitser
2714b09e5d
Fix wrong argument order
...
Fix compression not applying because the order of the callback and
options arguments were swapped in the call to Needle.get for the
request_cluster_data function.
2019-07-26 18:51:16 +02:00
Godmave
008ea139c6
#add compression
2019-07-25 23:22:46 +02:00
TechnoStrife
2831c07000
Add logging to researchSync plugin
2019-07-17 23:21:57 +03:00
TechnoStrife
d48a824a69
Fix researchSync that it counts progress only from techs on same level
2019-07-17 00:31:15 +03:00
TechnoStrife
fec3cf5ddf
Fix for migation to new researchSync version
2019-07-15 22:49:39 +03:00
TechnoStrife
93c210f0c7
Merge branch 'master' into spread_researching
...
# Conflicts:
# sharedPlugins/researchSync/dumpResearch.lua
# sharedPlugins/researchSync/index.js
2019-07-15 22:14:09 +03:00
TechnoStrife
251ec696a3
Fixes && debugging
2019-07-15 18:29:53 +03:00
TechnoStrife
98c6795f8f
Make researchSync work for any research on any node
2019-07-15 00:46:21 +03:00
Arvids Godjuks
0b34f07954
Dump only enabled research ( #164 )
2019-07-14 17:48:20 +02:00
psihius
71870daaba
Made so mass tech sync does not make sounds or messages, only notifies at the end
2019-07-14 15:00:55 +02:00
psihius
b666a909ab
Formatting and logging adjustments
2019-07-14 01:32:34 +02:00
psihius
0afe35b67c
Updated research sync to handle infinite science and hopefully stop it from apply same research in a loop annoying everyone
2019-07-14 01:25:48 +02:00
TechnoStrife
fa4c10dce2
Code refactor
2019-07-12 18:52:47 +03:00
Danielv123
20e66cbd40
Token auth in researchSync and UPSdisplay
2018-04-25 12:55:03 +02:00
Danielv123
8f2d22cbd8
Only wrote files on the server, might resolve some crashes
2018-04-21 08:05:40 +02:00
psihius
bf9886d7ee
Merge branch 'dev' of https://github.com/Danielv123/factorioClusterio into fork-dev
2018-04-19 23:33:27 +03:00
psihius
03511fc240
Hardened NaN checks, added file read delay for research-sync so factorio has time to finish writing to the file
2018-04-19 23:33:09 +03:00
Danielv123
0672004cbd
researchSync: Partially fixed failing test (it still fails)
2018-04-19 17:51:46 +02:00
psihius
ed9b4bbafa
Changed research sync to work with /api/slaves so the instance can ignore it's own research tree and enhanced research enabling with proper messages and sound alert, added checks so we don't flip values that haven't changed
2018-04-19 18:29:05 +03:00
psihius
9a66542270
Fixed so local research is never disabled
2018-04-18 23:27:53 +03:00
psihius
1c8deea2dc
Fixed research sync for levels and repeated execution
2018-04-18 10:38:44 +03:00
psihius
19913af056
Changed research transfer data from array to objects
2018-04-17 23:37:34 +03:00
psihius
718315849c
Made sure data is converted to integers
2018-04-17 22:44:56 +03:00
psihius
1731426f49
Removed unnesecesary json parsing and adjusted the expression for better style
2018-04-17 22:07:18 +03:00
psihius
bb06723918
Changed some research fields and added a check remoteResearch key existence
2018-04-17 21:48:34 +03:00
psihius
0edb4caff9
Typo fix
2018-04-17 14:26:09 +03:00
psihius
c7cd922541
Updated research dump and enabling with a fix for infinite-research
2018-04-17 13:57:36 +03:00
Danielv123
cf7af19370
Don't send corrupt factorio file outputs to plugins
2018-04-16 06:43:22 +02:00
Danielv123
aeeb09a975
Fixed weird thing about rebinding 'this'
2018-04-15 21:15:58 +02:00
Danielv123
7915b71e10
typo
2018-04-15 21:07:49 +02:00
Danielv123
6bbd6b8717
researchSync: Fixed crash when master contact is lost
2018-04-14 11:17:38 +02:00
Danielv123
1d0d9765bd
researchSync: Fixed importing research
2018-04-13 20:18:47 +02:00
Danielv123
c9bd26a01e
researchSync: Fixed sending commands with newlines
2018-04-13 18:31:01 +02:00
Danielv123
f131a83103
moved isFactorioCommand, more tests, researchSync stability
2018-04-13 12:32:09 +02:00
Danielv123
181cb1179c
Fixed stack size exceeded bug
2018-04-13 10:35:55 +02:00
Danielv123
c8f2a67845
researchSync: Tried to avoid errors when research doesn't exist
2018-04-12 07:49:40 +02:00
Danielv123
7a4ea69cbb
researchSync removed node-lua dependency
2018-04-11 21:38:28 +02:00
theCatsPaw
d1a295ae4e
researchsync: every server can now research
2018-02-23 23:02:44 +01:00
theCatsPaw
8935d03b4a
researchSync: client
2018-02-21 22:26:33 +01:00
theCatsPaw
e64db6b236
researchSync: master
2018-02-21 20:54:02 +01:00