fix FactorioClient not applying world gen preset
This commit is contained in:
parent
b0c1a7acce
commit
5adbab1d2b
|
@ -161,7 +161,7 @@ async def factorio_server_watcher(ctx: FactorioContext):
|
||||||
if not os.path.exists(savegame_name):
|
if not os.path.exists(savegame_name):
|
||||||
logger.info(f"Creating savegame {savegame_name}")
|
logger.info(f"Creating savegame {savegame_name}")
|
||||||
subprocess.run((
|
subprocess.run((
|
||||||
executable, "--create", savegame_name
|
executable, "--create", savegame_name, "--preset", "archipelago"
|
||||||
))
|
))
|
||||||
factorio_process = subprocess.Popen((executable, "--start-server", ctx.savegame_name,
|
factorio_process = subprocess.Popen((executable, "--start-server", ctx.savegame_name,
|
||||||
*(str(elem) for elem in server_args)),
|
*(str(elem) for elem in server_args)),
|
||||||
|
@ -224,7 +224,7 @@ async def factorio_spinup_server(ctx: FactorioContext):
|
||||||
if not os.path.exists(savegame_name):
|
if not os.path.exists(savegame_name):
|
||||||
logger.info(f"Creating savegame {savegame_name}")
|
logger.info(f"Creating savegame {savegame_name}")
|
||||||
subprocess.run((
|
subprocess.run((
|
||||||
executable, "--create", savegame_name, "--preset", "archipelago"
|
executable, "--create", savegame_name
|
||||||
))
|
))
|
||||||
factorio_process = subprocess.Popen(
|
factorio_process = subprocess.Popen(
|
||||||
(executable, "--start-server", savegame_name, *(str(elem) for elem in server_args)),
|
(executable, "--start-server", savegame_name, *(str(elem) for elem in server_args)),
|
||||||
|
|
|
@ -107,6 +107,52 @@ Factorio:
|
||||||
starting_items:
|
starting_items:
|
||||||
burner-mining-drill: 19
|
burner-mining-drill: 19
|
||||||
stone-furnace: 19
|
stone-furnace: 19
|
||||||
|
world_gen:
|
||||||
|
# frequency, size, richness, terrain segmentation, starting area and water are all of https://wiki.factorio.com/Types/MapGenSize
|
||||||
|
# inverse of water scale
|
||||||
|
terrain_segmentation: 0.5
|
||||||
|
water: 1.5
|
||||||
|
autoplace_controls:
|
||||||
|
coal:
|
||||||
|
frequency: 1
|
||||||
|
size: 3
|
||||||
|
richness: 6
|
||||||
|
copper-ore:
|
||||||
|
frequency: 1
|
||||||
|
size: 3
|
||||||
|
richness: 6
|
||||||
|
crude-oil:
|
||||||
|
frequency: 1
|
||||||
|
size: 3
|
||||||
|
richness: 6
|
||||||
|
enemy-base:
|
||||||
|
frequency: 1
|
||||||
|
size: 1
|
||||||
|
richness: 1
|
||||||
|
iron-ore:
|
||||||
|
frequency: 1
|
||||||
|
size: 3
|
||||||
|
richness: 6
|
||||||
|
stone:
|
||||||
|
frequency: 1
|
||||||
|
size: 3
|
||||||
|
richness: 6
|
||||||
|
trees:
|
||||||
|
frequency: 1
|
||||||
|
size: 1
|
||||||
|
richness: 1
|
||||||
|
uranium-ore:
|
||||||
|
frequency: 1
|
||||||
|
size: 3
|
||||||
|
richness: 6
|
||||||
|
seed: null # turn into positive number to create specific seed
|
||||||
|
starting_area: 1
|
||||||
|
peaceful_mode: 0
|
||||||
|
cliff_settings:
|
||||||
|
name: cliff
|
||||||
|
cliff_elevation_0: 10
|
||||||
|
cliff_elevation_interval: 40
|
||||||
|
richness: 1
|
||||||
Minecraft:
|
Minecraft:
|
||||||
advancement_goal: 50 # Number of advancements required (out of 92 total) to spawn the Ender Dragon and complete the game.
|
advancement_goal: 50 # Number of advancements required (out of 92 total) to spawn the Ender Dragon and complete the game.
|
||||||
combat_difficulty: # Modifies the level of items logically required for exploring dangerous areas and fighting bosses.
|
combat_difficulty: # Modifies the level of items logically required for exploring dangerous areas and fighting bosses.
|
||||||
|
|
Loading…
Reference in New Issue