LuaEntityPrototype.resource_patch_search_radius

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
sonaxaton
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Dec 30, 2017 12:18 am
Contact:

LuaEntityPrototype.resource_patch_search_radius

Post by sonaxaton »

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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 14152
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntityPrototype.resource_patch_search_radius

Post by Rseding91 »

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.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2888
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: LuaEntityPrototype.resource_patch_search_radius

Post by boskid »

Is it render-only value? It is used for computation of resource patch amount in case of a mining drill connected to circuit network.

Rseding91
Factorio Staff
Factorio Staff
Posts: 14152
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaEntityPrototype.resource_patch_search_radius

Post by Rseding91 »

boskid wrote:
Thu Apr 30, 2020 5:54 am
Is it render-only value? It is used for computation of resource patch amount in case of a mining drill connected to circuit network.
No it's not.
If you want to get ahold of me I'm almost always on Discord.

User avatar
sonaxaton
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Dec 30, 2017 12:18 am
Contact:

Re: LuaEntityPrototype.resource_patch_search_radius

Post by sonaxaton »

I need it for https://mods.factorio.com/mod/sonaxaton ... ap-markers to be able to detect contiguous resource patches properly.

User avatar
sonaxaton
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Dec 30, 2017 12:18 am
Contact:

Re: LuaEntityPrototype.resource_patch_search_radius

Post by sonaxaton »

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.

Post Reply

Return to “Modding interface requests”