Page 1 of 1

surface_conditions For Tile prototype

Posted: Fri Sep 19, 2025 6:27 pm
by meifray
I mean it is really awkward if we nuke the gleba soil and created nuclear ground or some new glrba biome get added by other mod, the current soil everywhere mod would just unplacable on those new tiles, or else yumako in aquilo :/

Re: surface_conditions For Tile prototype

Posted: Fri Sep 19, 2025 6:36 pm
by Bilka
What would this do for nuke explosions that the combination of https://lua-api.factorio.com/latest/pro ... conditions and https://lua-api.factorio.com/latest/typ ... ildability doesnt already do as demonstrated on the vanilla nuke?

Re: surface_conditions For Tile prototype

Posted: Fri Sep 19, 2025 7:01 pm
by meifray
Bilka wrote: Fri Sep 19, 2025 6:36 pm What would this do for nuke explosions that the combination of https://lua-api.factorio.com/latest/pro ... conditions and https://lua-api.factorio.com/latest/typ ... ildability doesnt already do as demonstrated on the vanilla nuke?
Those are for Entities, not for the Tiles, and the ItemPrototype.place_as_tile although do may specify what tile it can be built on, but no surface condition there also.

Re: surface_conditions For Tile prototype

Posted: Fri Sep 19, 2025 7:49 pm
by Bilka
The nuke spawns entities which spawn tiles and checks the surface conditions on the entities. What is the reason the modded nuke can't use that?

Re: surface_conditions For Tile prototype

Posted: Fri Sep 19, 2025 8:32 pm
by meifray
Bilka wrote: Fri Sep 19, 2025 7:49 pm The nuke spawns entities which spawn tiles and checks the surface conditions on the entities. What is the reason the modded nuke can't use that?
It is not item "atomic-bomb" cannot be used;
It is not tile "nuclear-ground" creation cannot be controlled;
What I mean is buildable tile without surface_conditions is either hard to be compatible or may cause exploition.

Item "atomic-bomb" will create tile "nuclear-ground" regardless where you nuke it,
and those "nuclear-ground" is not suitable for "overgrowth-yumako-soil" in base game,
but what if a mod want to have "overgrowth-yumako-soil" to be built everywhere in Gleba,
then the modder have to face a choice about "nuclear-ground":
If they included "nuclear-ground" as part of tile allow list, then you can have yumako growing in Nauvis or Aquilo like this:(with mod https://mods.factorio.com/mod/soil-anywhere )
nuketile2.jpg
nuketile2.jpg (557.38 KiB) Viewed 99 times
If they decide not to include it, then those "nuclear-ground" will make holes in their farm design.
nuketile.jpg
nuketile.jpg (701.64 KiB) Viewed 99 times
and such problem will appear again and again everytime new environmental tile get added.

We already have a surface_condition to limit such thing, why would we not doing it with tiles also?
which make a tile limited for certain planet/surface.

Re: surface_conditions For Tile prototype

Posted: Sat Sep 20, 2025 7:36 am
by curiosity
Put a surface condition on the plants themselves. Problem solved.