diff --git a/CHANGELOG.md b/CHANGELOG.md index 88a54ff8..aa5156e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ Version 2.0.0 instance is now three separate commands. - Removed oddball limits to slaves.json size. - Moved slave specific configuration into its own configuration file. +- Removed unused binary option from plugin config. ### Breaking Changes diff --git a/client.js b/client.js index 3a215c87..eaea5f02 100644 --- a/client.js +++ b/client.js @@ -690,7 +690,7 @@ async function instanceManagement(slaveConfig, instance, instanceconfig, server, if(!global.subscribedFiles) { global.subscribedFiles = {}; } - if(pluginConfig.binary == "nodePackage" && pluginConfig.enabled){ + if (pluginConfig.enabled) { // require plugin class and execute it let pluginClass = require(path.resolve(pluginConfig.pluginPath, "index")); plugins[i] = new pluginClass(combinedConfig, async function(data, callback){ diff --git a/sharedPlugins/UPSdisplay/config.js b/sharedPlugins/UPSdisplay/config.js index 436b204c..7abaacf9 100644 --- a/sharedPlugins/UPSdisplay/config.js +++ b/sharedPlugins/UPSdisplay/config.js @@ -1,16 +1,11 @@ /* Example config file for example Clusterio plugin - Binary will be spawned using child_process.spawn and get input from stdin and text from stdout will be ran as - commands in the factorio server. */ module.exports = { // Name of package. For display somewhere I guess. name: "UPSdisplay", version: "2.0.0", - // Binary entrypoint for plugin. Don't let it crash. Stdout is sent to game as server chat (run /c commands from here for interface) - // Make sure its cross platform somehow. - binary: "nodePackage", description: "Internal clusterio plugin to get the worlds UPS and display it on master", // We'll send everything in this file to your stdin. Beware. scriptOutputFileSubscription: "UPSdisplay.txt", diff --git a/sharedPlugins/clusterioMod/config.js b/sharedPlugins/clusterioMod/config.js index 01c46abf..3ffae1eb 100644 --- a/sharedPlugins/clusterioMod/config.js +++ b/sharedPlugins/clusterioMod/config.js @@ -5,7 +5,6 @@ module.exports = { // Name of package. For display somewhere I guess. name: "clusterioMod", version: "1.0.0", - binary: "nodePackage", description: "Server side handling of functionality in the clusterio lua mod", masterPlugin: "masterPlugin.js", } diff --git a/sharedPlugins/globalChat/config.js b/sharedPlugins/globalChat/config.js index ca394648..277032f6 100644 --- a/sharedPlugins/globalChat/config.js +++ b/sharedPlugins/globalChat/config.js @@ -5,6 +5,5 @@ module.exports = { // Name of package. For display somewhere I guess. name: "globalChat", version: "1.0.0", - binary: "nodePackage", description: "Clusterio plugin to allow for chat between instances.", } \ No newline at end of file diff --git a/sharedPlugins/inventoryImports/config.js b/sharedPlugins/inventoryImports/config.js index 758d2b9d..71d76b0e 100644 --- a/sharedPlugins/inventoryImports/config.js +++ b/sharedPlugins/inventoryImports/config.js @@ -10,9 +10,6 @@ module.exports = { // Name of package. For display somewhere I guess. name: "inventoryImports", version: "1.0.0", - // Binary entrypoint for plugin. Don't let it crash. Stdout is sent to game as server chat (run /c commands from here for interface) - // Make sure its cross platform somehow. - binary: "nodePackage", arguments: ["index.js"], description: "Clusterio plugin to fill character logistic slots with master imports", // We'll send everything in this file to your stdin. Beware. diff --git a/sharedPlugins/researchSync/config.js b/sharedPlugins/researchSync/config.js index 0c842f19..8d1210dd 100644 --- a/sharedPlugins/researchSync/config.js +++ b/sharedPlugins/researchSync/config.js @@ -4,9 +4,6 @@ module.exports = { // Name of package. For display somewhere I guess. name: "researchSync", version: "1.0.0", - // Binary entrypoint for plugin. Don't let it crash. Stdout is sent to game as server chat (run /c commands from here for interface) - // Make sure its cross platform somehow. - binary: "nodePackage", arguments: ["index.js"], description: "syncs research across servers", // We'll send everything in this file to your stdin. Beware. diff --git a/sharedPlugins/statisticsExporter/config.js b/sharedPlugins/statisticsExporter/config.js index bfa220de..9ebc0b4a 100644 --- a/sharedPlugins/statisticsExporter/config.js +++ b/sharedPlugins/statisticsExporter/config.js @@ -4,7 +4,6 @@ module.exports = { name: "statisticsExporter", version: "1.0.0", - binary: "nodePackage", description: "Gathers ingame stats such as production, consumption, kills and buildings placed", masterPlugin: "masterPlugin.js" }