Detail of feature flags

Place to report issues and suggest improvements to the API documentation.
meifray
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sat May 29, 2021 6:12 pm
Contact:

Detail of feature flags

Post by meifray »

I mean there are a lots of feature is locked behid dlc feature flags but documentation seems not actually explain what mapped to what,only said it require space age.

For example what feature key is agriculture tower catgorized in? spoiling? how about plantprototype ?
fusion-reactor prototype?
is more Planet categorized in space_travel ? etc...

in a way https://lua-api.factorio.com/latest/aux ... cture.html do explain something but not much...
curiosity
Filter Inserter
Filter Inserter
Posts: 697
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Detail of feature flags

Post by curiosity »

User avatar
BrainGamer_
Fast Inserter
Fast Inserter
Posts: 108
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

Re: Detail of feature flags

Post by BrainGamer_ »

FYI fusion-reactors & generators are not locked behind any feature flag :D
meifray
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: Detail of feature flags

Post by meifray »

BrainGamer_ wrote: Wed Oct 15, 2025 5:56 pm FYI fusion-reactors & generators are not locked behind any feature flag :D
is it usable in vanilla modding?
User avatar
BrainGamer_
Fast Inserter
Fast Inserter
Posts: 108
Joined: Sun Nov 14, 2021 9:52 pm
Contact:

Re: Detail of feature flags

Post by BrainGamer_ »

meifray wrote: Wed Oct 15, 2025 6:08 pm is it usable in vanilla modding?
If my memory serves me right yes, its just not been done yet afaik. You obviously can't rely on the space-age graphics for your own fusion prototypes then.
meifray
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: Detail of feature flags

Post by meifray »

BrainGamer_ wrote: Wed Oct 15, 2025 6:38 pm
meifray wrote: Wed Oct 15, 2025 6:08 pm is it usable in vanilla modding?
If my memory serves me right yes, its just not been done yet afaik. You obviously can't rely on the space-age graphics for your own fusion prototypes then.
Actually you can, even if the space-age mod is disabled, you can actuallly use __base__/../space-age to load their graphics.
eugenekay
Filter Inserter
Filter Inserter
Posts: 824
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Detail of feature flags

Post by eugenekay »

meifray wrote: Sat Oct 18, 2025 3:47 pm
BrainGamer_ wrote: Wed Oct 15, 2025 6:38 pm
meifray wrote: Wed Oct 15, 2025 6:08 pm is it usable in vanilla modding?
If my memory serves me right yes, its just not been done yet afaik. You obviously can't rely on the space-age graphics for your own fusion prototypes then.
Actually you can, even if the space-age mod is disabled, you can actuallly use __base__/../space-age to load their graphics.
No, you can't rely upon it. This will produce an Error for players without the :space-age: DLC. ;)
meifray
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: Detail of feature flags

Post by meifray »

eugenekay wrote: Sat Oct 18, 2025 3:52 pm
meifray wrote: Sat Oct 18, 2025 3:47 pm
BrainGamer_ wrote: Wed Oct 15, 2025 6:38 pm
meifray wrote: Wed Oct 15, 2025 6:08 pm is it usable in vanilla modding?
If my memory serves me right yes, its just not been done yet afaik. You obviously can't rely on the space-age graphics for your own fusion prototypes then.
Actually you can, even if the space-age mod is disabled, you can actuallly use __base__/../space-age to load their graphics.
No, you can't rely upon it. This will produce an Error for players without the :space-age: DLC. ;)
I will do some testing, but for now I do have a idea to detect if space-age exist while being disabled ;)
meifray
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: Detail of feature flags

Post by meifray »

Answer: No, because helpers.is_valid_sprite_path("__base__/../space-age/thumbnail.png") is not usable in prototype stage.
and even it does, you probablly cannot use it for detection purpose at all.
curiosity
Filter Inserter
Filter Inserter
Posts: 697
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Detail of feature flags

Post by curiosity »

meifray wrote: Sun Oct 19, 2025 5:42 pm Answer: No, because helpers.is_valid_sprite_path("__base__/../space-age/thumbnail.png") is not usable in prototype stage.
and even it does, you probablly cannot use it for detection purpose at all.
To be fair, being able to do that's a sandbox violation and should be fixed (or made properly a feature).
Post Reply

Return to “Documentation Improvement Requests”