New exchange string format for enemy expansion settings

This commit is contained in:
Cooldude2606 committed 2026-07-18 22:12:15 +01:00
1 parent 07b030d045
commit 8b4c8ad337
8 files changed
+255 -17

No files matched your search

+10
View File
@@ -59,6 +59,16 @@ describe("lib/factorio/exchange_string", function() {
});
});
it("should parse post v2.1 strings", function() {
assert.deepEqual(lib.readMapExchangeString(testStrings.modified_v2_1), {
version: [2, 1, 9, 3],
unknown: 0,
map_gen_settings: testSettings.modified_v2_1_map_gen_settings,
map_settings: testSettings.modified_v2_1_map_settings,
checksum: 3180296799,
});
});
it("should handle malformed strings", function() {
assert.throws(
() => lib.readMapExchangeString("<<blah>>"),