LuaEntityPrototype.resource_patch_search_radius
LuaEntityPrototype.resource_patch_search_radius
I can't seem to find in-game access to https://wiki.factorio.com/Prototype/Res ... rch_radius. Am I missing something or is it just not exposed in-game?
Re: LuaEntityPrototype.resource_patch_search_radius
It's not exposed anywhere. What's the use-case for wanting to read a render-only value?
If you want to get ahold of me I'm almost always on Discord.
Re: LuaEntityPrototype.resource_patch_search_radius
Re: LuaEntityPrototype.resource_patch_search_radius
No it's not.
If you want to get ahold of me I'm almost always on Discord.
Re: LuaEntityPrototype.resource_patch_search_radius
I need it for https://mods.factorio.com/mod/sonaxaton ... ap-markers to be able to detect contiguous resource patches properly.
Re: LuaEntityPrototype.resource_patch_search_radius
Any update on this?
I noticed that there are already some values in LuaEntityPrototype that are "render-only", like https://lua-api.factorio.com/latest/Lua ... .map_color.
As a larger request, what my mod (and potentially others) would really like access to is some concept of "resource patches", which I'm trying to use resource_patch_search_radius to determine myself at the moment. Clearly the game has some concept of these because it highlights them in the map view. Could that be exposed to mods somehow? I know they're not real entities in the game, but an API to find all contiguous resource patches in an area would be super useful.
I noticed that there are already some values in LuaEntityPrototype that are "render-only", like https://lua-api.factorio.com/latest/Lua ... .map_color.
As a larger request, what my mod (and potentially others) would really like access to is some concept of "resource patches", which I'm trying to use resource_patch_search_radius to determine myself at the moment. Clearly the game has some concept of these because it highlights them in the map view. Could that be exposed to mods somehow? I know they're not real entities in the game, but an API to find all contiguous resource patches in an area would be super useful.