Planet Foliax

by Crethor

A mysterious planet, void of mineable resources. Combine botany and the arcane to produce materials that are strangely familiar. Craft powerful machines and discover biolabs with a never ending thirst.

Content
a month ago
2.0 - 2.1
12.0K
Factorio: Space Age Icon Space Age Mod
Planets Enemies Environment Manufacturing

b on_player_created interferes with AbandonedRuins hook

10 months ago

I have found an issue with both our mods. My mod has a debug scenery which hooks on on_player_created like your mod does and creates a debug world with all ruins being spawned. It works flawless when your mod is disabled. But once I enable your mod, I end up on a Foliax world in ghost mode and my needed hook on_player_created is never executed.

Can you please check if you can do something against it?

10 months ago

there is a setting to disable foliax starts, its probably two mods trying to do the same thing, at the same time

10 months ago

Yes, true but how can this be scripted that when the debug world is being loaded, your mod isn't doing anything?

10 months ago

you can force teleport the character back to your debug world, on first tick

10 months ago
(updated 10 months ago)

script.on_event(defines.events.on_tick, function(event)
if event.tick == 1 and --whatever tells the script your debug setting is active-- then
local surface = game.surfaces["--whatever your surface name is--"]
local origin = { x = 0, y = 0 }

surface.request_to_generate_chunks(origin, 8)
surface.force_generate_chunk_requests()

player.teleport(origin, surface)

end
end

10 months ago

something like that should work, put in a check to make sure the debug is active

New response