Page 1 of 1
Changing the supply area and wire distance of electric poles
Posted: Sun Jul 24, 2016 8:33 pm
by lepe
How would I go about changing the supply area and wire distance of electric poles while still having the visuals correctly display those?
Also, what is the name of the small electric pole entity?
I'm looking in the `Factorio/data/base/prototypes/entity/entities.lua` file, and I only see the other "electric pole" type items.
Re: Changing the supply area and wire distance of electric poles
Posted: Sun Jul 24, 2016 9:44 pm
by theRustyKnife
lepe wrote:How would I go about changing the supply area and wire distance of electric poles while still having the visuals correctly display those?
If you're not talking about changing them runtime there's no problem with just changing the values in the prototype - the engine is luckily smart enough to figure the graphics out.
If you are then I don't think that's even possible without swapping out entities.
lepe wrote:Also, what is the name of the small electric pole entity?
I'm looking in the `Factorio/data/base/prototypes/entity/entities.lua` file, and I only see the other "electric pole" type items.
It's actually a part of the demo thus it's found in "Factorio/data/base/prototypes/entity/demo-entities.lua". It confused me at first too

Re: Changing the supply area and wire distance of electric poles
Posted: Mon Jul 25, 2016 2:50 am
by Nexela
Also keep this in mind when setting supply areas
viewtopic.php?f=23&t=28095
Re: Changing the supply area and wire distance of electric poles
Posted: Thu Jul 28, 2016 4:59 am
by ShinyAfro
lepe wrote:How would I go about changing the supply area and wire distance of electric poles while still having the visuals correctly display those?
Also, what is the name of the small electric pole entity?
I'm looking in the `Factorio/data/base/prototypes/entity/entities.lua` file, and I only see the other "electric pole" type items.
Factorio_0.13.10\data\base\prototypes\entity\demo-entities.lua
type = "electric-pole",
name = "small-electric-pole",
Basically i have no idea what the demo version is, but some of the earlier bits are in there and the other files build on the demo.
Easiest way to change wire length and area is like so, if you did not already know:
data.raw["electric-pole"]["small-electric-pole"]["maximum_wire_distance"] = 7.5
data.raw["electric-pole"]["small-electric-pole"]["supply_area_distance"] = 2.5
The wire is not a part of the poles code (Well, with the exception if defining connection points!) and will work at any distance really just by changing those two values.
Re: Changing the supply area and wire distance of electric poles
Posted: Thu Jul 28, 2016 7:07 am
by theRustyKnife
ShinyAfro wrote:Basically i have no idea what the demo version is, but some of the earlier bits are in there and the other files build on the demo.
The demo is a cut-down version of the game that you can try for free on
factorio.com 
Re: Changing the supply area and wire distance of electric poles
Posted: Sat Jul 30, 2016 7:53 pm
by lepe
Thanks guys, your suggestions worked.