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:
parent
83343e6a6c
commit
2f295d4e70
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user