mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Remove unused binary option from plugin configs
Remove the unimplemented "binary" option from all plugin config files. Setting this option to something other than "nodePackage" would supposedly run a binary and feed it with the stdout of the factorio proccess, but that was never implemented.
This commit is contained in:
1 parent
5228e0a4d7
commit
2d3307c045
8 files changed
+2
-15
No files matched your search
@@ -58,6 +58,7 @@ Version 2.0.0
|
|||||||
instance is now three separate commands.
|
instance is now three separate commands.
|
||||||
- Removed oddball limits to slaves.json size.
|
- Removed oddball limits to slaves.json size.
|
||||||
- Moved slave specific configuration into its own configuration file.
|
- Moved slave specific configuration into its own configuration file.
|
||||||
|
- Removed unused binary option from plugin config.
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ async function instanceManagement(slaveConfig, instance, instanceconfig, server,
|
|||||||
if(!global.subscribedFiles) {
|
if(!global.subscribedFiles) {
|
||||||
global.subscribedFiles = {};
|
global.subscribedFiles = {};
|
||||||
}
|
}
|
||||||
if(pluginConfig.binary == "nodePackage" && pluginConfig.enabled){
|
if (pluginConfig.enabled) {
|
||||||
// require plugin class and execute it
|
// require plugin class and execute it
|
||||||
let pluginClass = require(path.resolve(pluginConfig.pluginPath, "index"));
|
let pluginClass = require(path.resolve(pluginConfig.pluginPath, "index"));
|
||||||
plugins[i] = new pluginClass(combinedConfig, async function(data, callback){
|
plugins[i] = new pluginClass(combinedConfig, async function(data, callback){
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
Example config file for example Clusterio plugin
|
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 = {
|
module.exports = {
|
||||||
// Name of package. For display somewhere I guess.
|
// Name of package. For display somewhere I guess.
|
||||||
name: "UPSdisplay",
|
name: "UPSdisplay",
|
||||||
version: "2.0.0",
|
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",
|
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.
|
// We'll send everything in this file to your stdin. Beware.
|
||||||
scriptOutputFileSubscription: "UPSdisplay.txt",
|
scriptOutputFileSubscription: "UPSdisplay.txt",
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ module.exports = {
|
|||||||
// Name of package. For display somewhere I guess.
|
// Name of package. For display somewhere I guess.
|
||||||
name: "clusterioMod",
|
name: "clusterioMod",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
binary: "nodePackage",
|
|
||||||
description: "Server side handling of functionality in the clusterio lua mod",
|
description: "Server side handling of functionality in the clusterio lua mod",
|
||||||
masterPlugin: "masterPlugin.js",
|
masterPlugin: "masterPlugin.js",
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,5 @@ module.exports = {
|
|||||||
// Name of package. For display somewhere I guess.
|
// Name of package. For display somewhere I guess.
|
||||||
name: "globalChat",
|
name: "globalChat",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
binary: "nodePackage",
|
|
||||||
description: "Clusterio plugin to allow for chat between instances.",
|
description: "Clusterio plugin to allow for chat between instances.",
|
||||||
}
|
}
|
||||||
@@ -10,9 +10,6 @@ module.exports = {
|
|||||||
// Name of package. For display somewhere I guess.
|
// Name of package. For display somewhere I guess.
|
||||||
name: "inventoryImports",
|
name: "inventoryImports",
|
||||||
version: "1.0.0",
|
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"],
|
arguments: ["index.js"],
|
||||||
description: "Clusterio plugin to fill character logistic slots with master imports",
|
description: "Clusterio plugin to fill character logistic slots with master imports",
|
||||||
// We'll send everything in this file to your stdin. Beware.
|
// We'll send everything in this file to your stdin. Beware.
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ module.exports = {
|
|||||||
// Name of package. For display somewhere I guess.
|
// Name of package. For display somewhere I guess.
|
||||||
name: "researchSync",
|
name: "researchSync",
|
||||||
version: "1.0.0",
|
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"],
|
arguments: ["index.js"],
|
||||||
description: "syncs research across servers",
|
description: "syncs research across servers",
|
||||||
// We'll send everything in this file to your stdin. Beware.
|
// We'll send everything in this file to your stdin. Beware.
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: "statisticsExporter",
|
name: "statisticsExporter",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
binary: "nodePackage",
|
|
||||||
description: "Gathers ingame stats such as production, consumption, kills and buildings placed",
|
description: "Gathers ingame stats such as production, consumption, kills and buildings placed",
|
||||||
masterPlugin: "masterPlugin.js"
|
masterPlugin: "masterPlugin.js"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user