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.
Changing the supply area and wire distance of electric poles
- theRustyKnife
- Filter Inserter
- Posts: 260
- Joined: Thu Feb 26, 2015 9:26 pm
- Contact:
Re: Changing the supply area and wire distance of electric poles
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.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 are then I don't think that's even possible without swapping out entities.
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 toolepe 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.

Re: Changing the supply area and wire distance of electric poles
Factorio_0.13.10\data\base\prototypes\entity\demo-entities.lualepe 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.
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.
- theRustyKnife
- Filter Inserter
- Posts: 260
- Joined: Thu Feb 26, 2015 9:26 pm
- Contact:
Re: Changing the supply area and wire distance of electric poles
The demo is a cut-down version of the game that you can try for free on factorio.comShinyAfro 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.

Re: Changing the supply area and wire distance of electric poles
Thanks guys, your suggestions worked.