I've been looking into the code to make a few modifications but I haven't been able to find where the value for the placement distance is stored. I'd like to increase it a bit.
Thanks in advance.
How to modify Placement Range
Re: How to modify Placement Range
I'm fairly sure that it's actually hard coded in C++...
While you could probably fake it by using control.lua to create the entity when the player tries to place an item that would very likely destroy the ability for other mods to detect entity placement (game.createentity does not raise the onentitybuilt event, and while you can raise it manually you can't pass a 'Factorio rich' object like an entity reference to the event), so... probably not worth it.
While you could probably fake it by using control.lua to create the entity when the player tries to place an item that would very likely destroy the ability for other mods to detect entity placement (game.createentity does not raise the onentitybuilt event, and while you can raise it manually you can't pass a 'Factorio rich' object like an entity reference to the event), so... probably not worth it.
Re: How to modify Placement Range
Oh, I see. That's too bad.
Thanks for the quick reply.

Re: How to modify Placement Range
Yeah, I'm not sure if there's a reason for it being hard coded at this point (probably was for simplicity in the beginning), so it's possible you could make a request in Modding interface requests and ask the devs to make it possible (though they are a bit busy with multiplayer so it could be a while).Bastonete wrote:Oh, I see. That's too bad.![]()