Factorio: support 2.0 update (#4110)

- removed tutorialization (Craft/Do X to unlock tech)
- start with  everything needed for power, electric mining drills, science lab and automation science already unlocked
- updated world gen
- updated mod api use
   - updated fluid boxes (CaitSith2)
- new option: free sample quality (needs quality mod)
- removed old gruft, faster gen speed, faster load time
- lists space age as explicitly not supported, so it prevents the game from trying to load both
- fixes Y offset of traps being wrong (way higher than intended)
- client now has a 5 second timeout to communicate with the bound factorio server, so it aborts actions if the server died
- savegames are now stored  in write_data_directory -> saves -> Archipelago
- add cargo-landing-pad  handling
- starting rocket silo and cargo landing pad respect free sample quality 
- supports Factorio 2.0

---------

Co-authored-by: CaitSith2 <d_good@caitsith2.com>
This commit is contained in:
Fabian Dill
2024-11-11 11:43:16 +01:00
committed by GitHub
parent b3e5ef876a
commit f3413e9cef
17 changed files with 263 additions and 200 deletions

View File

@@ -6,43 +6,46 @@ data.raw["rocket-silo"]["rocket-silo"].fluid_boxes = {
production_type = "input",
pipe_picture = assembler2pipepictures(),
pipe_covers = pipecoverspictures(),
volume = 1000,
base_area = 10,
base_level = -1,
pipe_connections = {
{ type = "input", position = { 0, 5 } },
{ type = "input", position = { 0, -5 } },
{ type = "input", position = { 5, 0 } },
{ type = "input", position = { -5, 0 } }
{ flow_direction = "input", direction = defines.direction.south, position = { 0, 4.2 } },
{ flow_direction = "input", direction = defines.direction.north, position = { 0, -4.2 } },
{ flow_direction = "input", direction = defines.direction.east, position = { 4.2, 0 } },
{ flow_direction = "input", direction = defines.direction.west, position = { -4.2, 0 } }
}
},
{
production_type = "input",
pipe_picture = assembler2pipepictures(),
pipe_covers = pipecoverspictures(),
volume = 1000,
base_area = 10,
base_level = -1,
pipe_connections = {
{ type = "input", position = { -3, 5 } },
{ type = "input", position = { -3, -5 } },
{ type = "input", position = { 5, -3 } },
{ type = "input", position = { -5, -3 } }
{ flow_direction = "input", direction = defines.direction.south, position = { -3, 4.2 } },
{ flow_direction = "input", direction = defines.direction.north, position = { -3, -4.2 } },
{ flow_direction = "input", direction = defines.direction.east, position = { 4.2, -3 } },
{ flow_direction = "input", direction = defines.direction.west, position = { -4.2, -3 } }
}
},
{
production_type = "input",
pipe_picture = assembler2pipepictures(),
pipe_covers = pipecoverspictures(),
volume = 1000,
base_area = 10,
base_level = -1,
pipe_connections = {
{ type = "input", position = { 3, 5 } },
{ type = "input", position = { 3, -5 } },
{ type = "input", position = { 5, 3 } },
{ type = "input", position = { -5, 3 } }
{ flow_direction = "input", direction = defines.direction.south, position = { 3, 4.2 } },
{ flow_direction = "input", direction = defines.direction.north, position = { 3, -4.2 } },
{ flow_direction = "input", direction = defines.direction.east, position = { 4.2, 3 } },
{ flow_direction = "input", direction = defines.direction.west, position = { -4.2, 3 } }
}
},
off_when_no_fluid_recipe = true
}
}
data.raw["rocket-silo"]["rocket-silo"].fluid_boxes_off_when_no_fluid_recipe = true
{%- for recipe_name, recipe in custom_recipes.items() %}
data.raw["recipe"]["{{recipe_name}}"].category = "{{recipe.category}}"