Commit Graph
100 Commits
Author SHA1 Message Date
Daniel Vestøl 226e157f69 Added onExit handler to masterPlugins (see description)
To use the onExit handler, simply add a method called onExit to your exported class. If it returns a promise, the master will wait for it to resolve.
2018-06-06 12:54:11 +02:00
Daniel Vestøl f72ea7357e Removed debug line that put auth info in the logs 2018-06-03 17:52:21 +02:00
Danielv123 812265d0fd messageInterface now returns a promise as well 2018-05-31 21:18:05 +02:00
Danielv123 da6f96a34b UPSdisplay now uses rcon return value instead of game.write_file 2018-05-31 21:15:34 +02:00
Danielv123 88e8ab454f Possibility of having master-only plugins 2018-05-31 21:03:05 +02:00
Danielv123 e87c702cf2 Added plugin functionality to master 2018-05-31 21:02:47 +02:00
Danielv123 e6c706a83e globalChat no longer breaks when the master is restarted 2018-05-26 13:16:59 +02:00
Danielv123 47b74a07d1 Merge remote-tracking branch 'origin/master' into dev 2018-05-26 12:52:40 +02:00
Daniel 0ee2c5c2f6 Resolves #103 2018-05-26 12:50:15 +02:00
Danielv123 e73c5055af !info to see servername (issue #101) 2018-05-21 00:00:42 +02:00
Danielv123 165cfffecb Use rcon.print instead of writefile for playercount reports 2018-05-13 09:58:25 +02:00
Danielv123 ce6dc3af28 messageInterface now takes a second arg for rcon return values (from rcon.print()) 2018-05-10 14:15:03 +02:00
Danielv123 1d9b6a26a6 Attempted fix to #97 2018-05-10 10:33:26 +02:00
Daniel db89099b2d Merge pull request #95 from Elbrasch/master
Issue #86
2018-05-09 11:12:48 +02:00
Danielv123 0b81fb6351 Made factorio command ratelimiting configurable 2018-05-07 18:11:46 +02:00
Danielv123 ac55b1c442 Prometheus track dole factor for imports 2018-05-06 20:45:52 +02:00
Danielv123 f07b6160bb Merge branch 'master' into dev 2018-05-06 16:07:51 +02:00
Daniel 480e2af03e Merge pull request #93 from Elbrasch/master
fixes issue #87 "Mod manager downloads oldest version of mod availabl…
2018-05-06 16:06:48 +02:00
Danielv123 cf1a97ac9f Added caching to /api/slaves (default 5s) 2018-05-06 14:30:03 +02:00
Danielv123 6dd25cb1e8 Don't assume playercount is 0 just because a command fails 2018-05-06 10:32:11 +02:00
Danielv123 ce24a40d8c Prometheus now tracks import/export stats PROPERLY 2018-05-06 10:23:55 +02:00
Danielv123 f5d1847975 Revert "Prometheus now tracks import/export statistics"
This reverts commit f580f06064.
2018-05-06 10:21:49 +02:00
Danielv123 f580f06064 Prometheus now tracks import/export statistics 2018-05-06 10:21:06 +02:00
Danielv123 f5e908eb5d Revert "Fix outdated leveldown dependency"
This reverts commit a6d98db6a9.
2018-05-05 14:34:50 +02:00
Danielv123 a6d98db6a9 Fix outdated leveldown dependency 2018-05-05 13:52:36 +02:00
Danielv123 b49a37e438 Use compression on master 2018-05-05 12:47:16 +02:00
Danielv123 a0e98ecb00 Format numbers with , (1,000) 2018-05-02 20:37:55 +02:00
Danielv123 6816db0628 More detailed Websocket usage statistics 2018-05-02 12:39:33 +02:00
Daniel d07112e85e PR #83 from Valansch: Shout displays instance name now 2018-05-01 14:32:27 +02:00
Danielv123 6514462a1d Increased max command size for imports 2018-04-30 23:47:31 +02:00
Danielv123 1e0c275968 Use rcon instead of stdin on linux as well 2018-04-30 23:34:09 +02:00
Danielv123 968a306c5a Fixed issue where slaves would not register when ran on VM withou MAC 2018-04-30 23:05:55 +02:00
Danielv123 47430b5d28 Remove super exessive logging on master
Also added better prometheus endpoint logging
2018-04-30 14:30:01 +02:00
Danielv123 6e5585c86c Merge remote-tracking branch 'MCRcortex/dev' into dev 2018-04-30 14:26:14 +02:00
Danielv123 355e8974a4 Added more websocket utilization metrics 2018-04-30 12:09:01 +02:00
Danielv123 f15ce3fb23 No longer auto install clusterio 1.0.0 2018-04-29 21:45:22 +02:00
Daniel 41541b01f0 Merge pull request #80 from Danielv123/snyk-fix-c5e06e84
[Snyk Update] New fixes for 4 vulnerable dependency paths
2018-04-29 11:46:54 +02:00
Danielv123 1184e64467 Attempt to be even more long command friendly 2018-04-28 19:51:23 +02:00
Danielv123 02ab34dbf4 Don't remove all spaces from !shouts 2018-04-28 15:04:15 +02:00
Danielv123 fc1f3bd077 Attempted fix for command corruption 2018-04-28 14:47:53 +02:00
Danielv123 6a7042c0aa Improved performance of /api/getFactorioLocale with caching 2018-04-28 14:16:34 +02:00
Danielv123 2aff63e4a1 Strip all non a-z 0-9 characters from !shout commands 2018-04-28 03:10:57 +02:00
Danielv123 e38aed08bf Sanitizing !shout chat 2018-04-28 02:19:42 +02:00
Danielv123 1bd87c4cc9 Fixed crash on !shout 2018-04-27 21:58:03 +02:00
Danielv123 dc19457471 Update to master to support server wide alerts 2018-04-27 21:23:36 +02:00
Danielv123 84aaae05c2 Merge remote-tracking branch 'origin/dev' into dev 2018-04-27 11:37:15 +02:00
Danielv123 1b00fbb328 Fixed crash when master was not there and we still got some sort of response 2018-04-27 06:22:32 +02:00
Daniel 29c38fc4d0 Merge pull request #79 from psihius/patch-1
README.md update: adjusted command
2018-04-27 06:18:59 +02:00
Danielv123 ce0deef83b Websockets for listening to factorio logs and global chat plugin
You can now !shout things across the cluster
2018-04-26 18:33:29 +02:00
Daniel 641f980741 Merge pull request #77 from psihius/dev
Cluster wide command execution
2018-04-26 16:48:50 +02:00
Danielv123 20e66cbd40 Token auth in researchSync and UPSdisplay 2018-04-25 12:55:03 +02:00
Danielv123 a26189947d Token auth in inventoryImports 2018-04-25 12:50:33 +02:00
Danielv123 0b0b2bc1a9 Token auth for all destructive endpoints 2018-04-25 12:44:31 +02:00
Daniel 4b7ad9b8b8 Split install command onto multiple lines 2018-04-25 09:28:21 +02:00
Daniel f63fd20179 Merge pull request #76 from psihius/dev
README.md update
2018-04-23 10:53:08 +02:00
Danielv123 8f2d22cbd8 Only wrote files on the server, might resolve some crashes 2018-04-21 08:05:40 +02:00
Danielv123 2111e337c9 Fix crash when starting client.js without master 2018-04-19 18:41:30 +02:00
Danielv123 0672004cbd researchSync: Partially fixed failing test (it still fails) 2018-04-19 17:51:46 +02:00
Danielv123 0dee243bf9 crash fix 2018-04-16 22:16:22 +02:00
Danielv123 2ab812d5a9 prometheus track count of items in inventory 2018-04-16 10:49:09 +02:00
Danielv123 5076b4e8e1 Increased slave database limits due to demands from researchSync 2018-04-16 08:48:54 +02:00
Danielv123 b7b0dd9d85 prometheus track playercounts 2018-04-16 08:35:10 +02:00
Danielv123 cf7af19370 Don't send corrupt factorio file outputs to plugins 2018-04-16 06:43:22 +02:00
Danielv123 4d5b3b855c Export production stats to prometheus 2018-04-15 23:04:35 +02:00
Danielv123 2b5cbf00e4 Fix error ion /nodeDetails sometimes making the display weird 2018-04-15 21:25:19 +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 2c2bbb71b4 inventoryImports: Fixed chat errors when players are dead 2018-04-15 12:02:46 +02:00
Danielv123 6c966e2c29 fixed issue with server browser token not being applied 2018-04-14 11:18:06 +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 2d5c0c3bbf More tests for remoteMap 2018-04-13 16:37:57 +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 a8dfd22eeb . 2018-04-13 09:12:46 +02:00
Danielv123 23d31435d7 Fixed bug in remoteCommands 2018-04-13 09:08:02 +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
Danielv123 12bf445579 Added endpoint docs for endpoints introduced with researchSync 2018-04-11 15:39:25 +02:00
Danielv123 51e41835ee Merge branch 'dev' into pr/71 2018-04-11 15:22:42 +02:00
Danielv123 3af343c5a0 Merged researchSync 2018-04-11 15:20:15 +02:00
Danielv123 2daddde511 Improved auto generated endpoint documentation 2018-04-09 11:40:39 +02:00
Danielv123 43c1f2ae93 remoteCommands added plugin and master API endpoint for executing things 2018-04-09 11:25:57 +02:00
Danielv123 be49deb170 Changed import delay from 3 to 1 second 2018-04-09 09:14:15 +02:00
Danielv123 6b29b2a430 Autodownload latest clusterio on npm install 2018-04-09 09:13:17 +02:00
Danielv123 fe2bf75b89 Fixed issue where oldest version of mod is downloaded thanks to changes in undocumented factorio API 2018-04-04 16:32:51 +02:00
Danielv123 26483d63d3 remoteMap draw better trees 2018-04-02 18:27:36 +02:00
Danielv123 50d14394a6 Fixed error occasionally crashing client when plugins use lots of IO 2018-04-02 14:59:58 +02:00
Danielv123 cd4887e5cf Fixed getMac and launching instance with no mods 2018-04-02 12:14:06 +02:00
Danielv123 cbee07e451 No more external dependencies in web interface 2018-03-30 15:48:37 +02:00
Danielv123 f697d2a74c Multithreaded createMap, improved isValidInstance reliablity 2018-03-30 14:39:39 +02:00
Danielv123 507c0afa98 factorioServer relative paths instead of absolute 2018-03-30 11:07:26 +02:00
Danielv123 d9d8905d02 , 2018-03-29 19:42:19 +02:00
Danielv123 dfa5d9ad16 still trying to fix paths 2018-03-29 19:31:56 +02:00
Danielv123 9a0ce97746 factorioServer: Tried adding function for map creation, failed. 2018-03-29 14:40:07 +02:00
Danielv123 e55bf71431 fileOps: Fixed crash on invalid filenames, added test for it 2018-03-29 14:39:39 +02:00
Danielv123 e1ab5b4d91 More functionality in factorioServer and added unit tests 2018-03-28 21:00:38 +02:00
Danielv123 fff1989897 Moved fileOps to _app/fileOps 2018-03-28 20:57:57 +02:00
Danielv123 802c21f41e started work on extracting server launching and IO systems 2018-03-27 20:50:10 +02:00