mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Lower the Lua UDP floor to Factorio 2.1.10
Danielv123 pointed out the recv_udp crash was fixed in 2.1.10, not 2.1.12: recv_udp used an input action for synchronisation which the headless server could not send without a player index. Verified on downloaded headless builds, 2.1.9 crashes and 2.1.10 works. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f37905be0
commit
8bfc42c44c
8 files changed
+14
-14
No files matched your search
+3
-3
@@ -365,12 +365,12 @@ describe("host/server", function() {
|
||||
return { lines, restore: () => { server._logger = logger; } };
|
||||
}
|
||||
|
||||
it("should refuse to start on Factorio before 2.1.12", async function() {
|
||||
it("should refuse to start on Factorio before 2.1.10", async function() {
|
||||
const version = server._version;
|
||||
server._version = "2.1.11";
|
||||
server._version = "2.1.9";
|
||||
server.enableLuaUdp = true;
|
||||
try {
|
||||
const error = new Error("Lua UDP requires Factorio 2.1.12 or later");
|
||||
const error = new Error("Lua UDP requires Factorio 2.1.10 or later");
|
||||
await assert.rejects(server.start("save.zip"), error);
|
||||
await assert.rejects(server.startScenario("test"), error);
|
||||
assert.equal(server._state, "init");
|
||||
|
||||
@@ -21,9 +21,9 @@ const requireApi = [
|
||||
"or package.loaded['__level__/modules/clusterio/api.lua']", // 2.0.0
|
||||
].join(" ");
|
||||
|
||||
// Lua UDP needs Factorio 2.1.12, see docs/configuration.md
|
||||
// Lua UDP needs Factorio 2.1.10, see docs/configuration.md
|
||||
function hasLuaUdp() {
|
||||
return lib.integerFullVersion(getFactorioVersion()) >= lib.integerFullVersion("2.1.12");
|
||||
return lib.integerFullVersion(getFactorioVersion()) >= lib.integerFullVersion("2.1.10");
|
||||
}
|
||||
|
||||
function getUser(name) {
|
||||
|
||||
@@ -125,8 +125,8 @@ describe("Integration of host/src/server", function() {
|
||||
let mapPath = server.writePath("saves", "test.zip");
|
||||
await assert.doesNotReject(fs.access(mapPath), "save is missing");
|
||||
|
||||
// Lua UDP needs Factorio 2.1.12, see docs/configuration.md
|
||||
server.enableLuaUdp = lib.integerFullVersion(server.version) >= lib.integerFullVersion("2.1.12");
|
||||
// Lua UDP needs Factorio 2.1.10, see docs/configuration.md
|
||||
server.enableLuaUdp = lib.integerFullVersion(server.version) >= lib.integerFullVersion("2.1.10");
|
||||
await server.start("test.zip");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user