1
0
mirror of https://github.com/teoxoy/factorio-blueprint-editor.git synced 2025-03-27 21:39:03 +02:00

Update to Factorio 1.1.100 (#255)

This commit is contained in:
Joel Verhagen 2024-01-08 06:04:10 -05:00 committed by GitHub
parent 83343e6a6c
commit 2f295d4e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
script.on_init(function()
-- EXTRACT SERIALIZED DATA
local l = tonumber(game.entity_prototypes["DATA"].localised_name)
local l = tonumber(game.entity_prototypes["FBE-DATA-COUNT"].localised_name)
local serialized = ""
for i = 1, l, 1 do
serialized = serialized .. game.entity_prototypes[tostring(i)].localised_name
serialized = serialized .. game.entity_prototypes["FBE-DATA-" .. tostring(i)].localised_name
end
local data = load(serialized)()
game.write_file('data.json', game.table_to_json(data), false, 0)

View File

@ -628,8 +628,8 @@ do
local total_parts = 0
for i = 1, l, 200 do
total_parts = total_parts + 1
embed_data(total_parts, string.sub(serialized, i, i + 199))
embed_data('FBE-DATA-' .. tostring(total_parts), string.sub(serialized, i, i + 199))
end
embed_data('DATA', total_parts)
embed_data('FBE-DATA-COUNT', total_parts)
end

View File

@ -6,7 +6,7 @@ mod setup;
#[macro_use]
extern crate lazy_static;
static FACTORIO_VERSION: &str = "1.1.41";
static FACTORIO_VERSION: &str = "1.1.100";
lazy_static! {
static ref DATA_DIR: PathBuf = PathBuf::from("./data");