Hornwitser
61d92a6910
Rename master plugin onExit hook to onShutdown
...
Rename the onExit hook for master plugins to onShutdown to better
reflect when it is invoked.
2020-04-09 19:50:01 +02:00
TheAIBot
fcfad08260
fix overflow check in subspace storage
...
Previous and new value:
0x7ffffff -- old 134.217.727
0x7fffffff -- new 2.147.483.647
2020-04-08 14:59:53 +02:00
Hornwitser
75cd6d38db
Fix instance exit notification
...
Fix improper notification on Factorio server exit causing plugins and
the instance tracking to fail.
2020-04-04 15:14:23 +02:00
Hornwitser
8ebf0fc754
Add master server Web Root config
...
Add web_root option to the master server and use it create URLs for
resources hosted by it. This permits hosting the master server web
interface behind reverse proxy under a dedicated path.
2020-04-04 10:05:37 +02:00
Hornwitser
59758f1576
Rename plugin Prometheus metrics
...
Rename Prometheus metrics exported by plugins to follow the
clusterio_<plugin_name>_<metric_name> naming scheme.
2020-04-03 21:14:30 +02:00
Hornwitser
ee063300ed
Check result of rcon commands in subspace_storage
...
Validate that the commands sent don't error out by checking the returned
result is empty.
2020-04-03 20:51:28 +02:00
Hornwitser
27ef00705b
Set content type for /api/inventory
...
Set the correct content type to JSON to for the /api/inventory endpoints.
2020-03-22 02:10:54 +01:00
Hornwitser
38c60c221f
Use sub-processes in integration testing
...
Spawn master, slave, and clusterctl in separate processes in the
clusterio integration tests and leave the test master and slave process
available for the whole test duration to allow plugins to use them as
well. This removes the need for reimplementing the startup logic in the
test code and makes the existing startup code covered by tests.
2020-03-22 02:10:54 +01:00
Hornwitser
9dac57b36b
Port Research Sync plugin
...
Rewriwe the researchSync plugin into plugins/research_sync.
2020-03-17 01:31:51 +01:00
Hornwitser
737c9924b9
Port and rename clusterioMod plugin
...
Port the clusterioMod plugin to the new plugin system under the new
subspace_storage name.
2020-03-13 22:46:17 +01:00
Hornwitser
6f22942cc5
Fix incorrect instance lookups in plugins
...
Fix mistaken lookups missing the instance part, or trying to get the id
from the removed instance.id property.
2020-03-13 22:46:17 +01:00
Hornwitser
6cf16cc09e
Reference by global in statistics_exporter
...
Store export function in a global table in the lua module for statistics
exporter in order to avoid a remote.call.
2020-01-04 17:34:16 +01:00
Hornwitser
66aa7e1e43
Add clusterio module with API for lua code
...
Add a shared API for lua code through a module named clusterio.
2020-01-04 17:34:16 +01:00
Hornwitser
221dc855f4
Add option to throw on non-empty RCON responses
...
Add option to FactorioServer.sendRcon to throw on non-empty responses
from Factorio. This is useful for detecting errors returned by commands
that should not have a response.
2020-01-04 17:34:16 +01:00
Hornwitser
80bd75ba16
Rework module loading
...
Change module loading to use a module.json file describing the module
and patch in all files in a directory path passed to the patcher instead
of having to pass the files names and their content. This allows the
specification of which files should be passed to the event_handler lib
and an easy implementation of loading stand alone modules.
2020-01-04 17:34:16 +01:00
Hornwitser
610859eb3b
Improve error message from statistics_exporter
...
If the JSON parse failed it will usually be because Factorio returned an
error message instead of JSON, pass this along for easier debugging.
2019-12-29 04:44:16 +01:00
Hornwitser
37d8eedc0d
Add tests for statistics_exporter plugin
...
These were already made at the time I ported the plugin but somehow I
forgot to add them to the statistics rework commit (26eefb0 ) :/.
2019-12-29 04:42:13 +01:00
Hornwitser
26eefb0476
Rewrite statistics export
...
Add automatic export of metrics from slaves to the master server. And
rewrite the statistics export plugin to use this new system.
2019-12-20 21:26:29 +01:00
Hornwitser
b71c392b32
Port globalChat to new plugin system
...
Port the globalChat plugin to the new plugin system. Since there's no
config system yet the config options for it is removed.
2019-12-14 17:51:54 +01:00