mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 08:23:12 +09:00
4 files changed
+18
-3
No files matched your search
@@ -6,6 +6,13 @@
|
|||||||
|
|
||||||
- Added support for `color-settings` Mod settings (#568)[https://github.com/clusterio/clusterio/issues/568].
|
- Added support for `color-settings` Mod settings (#568)[https://github.com/clusterio/clusterio/issues/568].
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
- Fixed generated systemd file for clusteriohost not enabling source maps.
|
||||||
|
- Fixed ctl not exporting types used for adding commands to ctl plugins.
|
||||||
|
- Fixed controller only plugins throwing an error about missing a config field on startup out when added to hosts.
|
||||||
|
- Fixed installer incorrectly claiming the options --factorio-dir and --no-download-headless conflicts with each other.
|
||||||
|
|
||||||
|
|
||||||
## Version 2.0.0-alpha.14
|
## Version 2.0.0-alpha.14
|
||||||
|
|
||||||
|
|||||||
@@ -488,6 +488,7 @@ Group=${await groupIdToName(os.userInfo().gid)}
|
|||||||
WorkingDirectory=${process.cwd()}
|
WorkingDirectory=${process.cwd()}
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
|
Environment=NODE_OPTIONS=--enable-source-maps
|
||||||
ExecStart=${process.cwd()}/node_modules/.bin/clusteriohost run --log-level=warn --can-restart
|
ExecStart=${process.cwd()}/node_modules/.bin/clusteriohost run --log-level=warn --can-restart
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartPreventExitStatus=8
|
RestartPreventExitStatus=8
|
||||||
@@ -611,7 +612,7 @@ async function inquirerMissingArgs(args) {
|
|||||||
},
|
},
|
||||||
], answers);
|
], answers);
|
||||||
|
|
||||||
if (answers.downloadHeadless) {
|
if (!answers.factorioDir && answers.downloadHeadless) {
|
||||||
answers.factorioDir = "factorio";
|
answers.factorioDir = "factorio";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -759,7 +760,7 @@ async function main() {
|
|||||||
"Can be set to false using --no-download-headless.",
|
"Can be set to false using --no-download-headless.",
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
})
|
})
|
||||||
.conflicts("factorio-dir", "download-headless");
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
args = args.argv;
|
args = args.argv;
|
||||||
@@ -779,6 +780,9 @@ async function main() {
|
|||||||
|
|
||||||
let answers = await inquirerMissingArgs(args);
|
let answers = await inquirerMissingArgs(args);
|
||||||
if (answers.downloadHeadless) {
|
if (answers.downloadHeadless) {
|
||||||
|
if (answers.factorioDir !== "factorio") {
|
||||||
|
throw new InstallError("--download-headless option requires --factorio-dir to be set to factorio");
|
||||||
|
}
|
||||||
await downloadLinuxServer();
|
await downloadLinuxServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { bootstrap } from "./ctl";
|
import { bootstrap } from "./ctl";
|
||||||
|
export * from "./ctl";
|
||||||
export { default as BaseCtlPlugin } from "./src/BaseCtlPlugin";
|
export { default as BaseCtlPlugin } from "./src/BaseCtlPlugin";
|
||||||
|
|
||||||
if (module === require.main) {
|
if (module === require.main) {
|
||||||
|
|||||||
@@ -377,7 +377,10 @@ export default class Host extends lib.Link {
|
|||||||
|
|
||||||
async loadPlugins() {
|
async loadPlugins() {
|
||||||
for (let pluginInfo of this.pluginInfos) {
|
for (let pluginInfo of this.pluginInfos) {
|
||||||
if (!this.config.get(`${pluginInfo.name}.load_plugin` as keyof lib.HostConfigFields)) {
|
if (
|
||||||
|
!pluginInfo.hostEntrypoint && !pluginInfo.instanceEntrypoint
|
||||||
|
|| !this.config.get(`${pluginInfo.name}.load_plugin` as keyof lib.HostConfigFields)
|
||||||
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user