Rename Slave to Host

The role of a slave as a host for Factorio servers is not well reflected
in its name and has caused confusion among users.  Rename slave to host
to better reflect its role as a host of Factorio servers.
This commit is contained in:
Hornwitser committed 2023-02-22 15:30:51 +01:00
1 parent 70ad295a89
commit 6fc3abafd5
101 files changed
+1168 -1168

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ Run the following commands in the folder Clusterio is installed to:
npm install @clusterio/plugin-inventory_sync
npx clusteriocontroller plugin add @clusterio/plugin-inventory_sync
Substitute clusteriocontroller with clusterioslave or clusterioctl if this a dedicated slave or ctl installation respectively.
Substitute clusteriocontroller with clusteriohost or clusterioctl if this a dedicated host or ctl installation respectively.
## Method of operation
+6 -6
View File
@@ -2,7 +2,7 @@
const { libConfig, libLink, libUsers } = require("@clusterio/lib");
class ControllerConfigGroup extends libConfig.PluginConfigGroup { }
ControllerConfigGroup.defaultAccess = ["controller", "slave", "control"];
ControllerConfigGroup.defaultAccess = ["controller", "host", "control"];
ControllerConfigGroup.groupName = "inventory_sync";
ControllerConfigGroup.define({
name: "autosave_interval",
@@ -22,7 +22,7 @@ ControllerConfigGroup.define({
ControllerConfigGroup.finalize();
class InstanceConfigGroup extends libConfig.PluginConfigGroup { }
InstanceConfigGroup.defaultAccess = ["controller", "slave", "control"];
InstanceConfigGroup.defaultAccess = ["controller", "host", "control"];
InstanceConfigGroup.groupName = "inventory_sync";
InstanceConfigGroup.define({
name: "rcon_chunk_size",
@@ -57,7 +57,7 @@ module.exports = {
messages: {
acquire: new libLink.Request({
type: "inventory_sync:acquire",
links: ["instance-slave", "slave-controller"],
links: ["instance-host", "host-controller"],
forwardTo: "controller",
requestProperties: {
"instance_id": { type: "integer" },
@@ -73,7 +73,7 @@ module.exports = {
}),
release: new libLink.Request({
type: "inventory_sync:release",
links: ["instance-slave", "slave-controller"],
links: ["instance-host", "host-controller"],
forwardTo: "controller",
requestProperties: {
"instance_id": { type: "integer" },
@@ -82,7 +82,7 @@ module.exports = {
}),
upload: new libLink.Request({
type: "inventory_sync:upload",
links: ["instance-slave", "slave-controller"],
links: ["instance-host", "host-controller"],
forwardTo: "controller",
requestProperties: {
"instance_id": { type: "integer" },
@@ -92,7 +92,7 @@ module.exports = {
}),
download: new libLink.Request({
type: "inventory_sync:download",
links: ["instance-slave", "slave-controller"],
links: ["instance-host", "host-controller"],
forwardTo: "controller",
requestProperties: {
"instance_id": { type: "integer" },
+4 -4
View File
@@ -41,7 +41,7 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
this.disconnecting = false;
(async () => {
for (let player_name of this.playersToRelease) {
if (!this.slave.connector.connected || this.disconnecting) {
if (!this.host.connector.connected || this.disconnecting) {
return;
}
this.playersToRelease.delete(player);
@@ -63,7 +63,7 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
message: "Controller is temporarily unavailable",
};
if (this.slave.connector.connected && !this.disconnecting) {
if (this.host.connector.connected && !this.disconnecting) {
try {
response = {
player_name: request.player_name,
@@ -85,7 +85,7 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
}
async handleRelease(request) {
if (!this.slave.connector.connected) {
if (!this.host.connector.connected) {
this.playersToRelease.set(request.player_name);
}
@@ -104,7 +104,7 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
}
async handleUpload(player_data) {
if (!this.slave.connector.connected || this.disconnecting) {
if (!this.host.connector.connected || this.disconnecting) {
return;
}