Page 1 of 1

[MOD 0.11.17+] Replacable poles

Posted: Wed Mar 18, 2015 12:00 pm
by WildWolf
This mod only alows electrical poles to be quick placed over another pole.

You can place small and medium on each other.
You can place big and substation on each other.

Download

Please report bugs here

Re: [MOD 0.11.17+] Replacable poles

Posted: Wed Mar 18, 2015 2:43 pm
by SHiRKiT
I strongly think this should be implemented in the game.

Re: [MOD 0.11.17+] Replacable poles

Posted: Thu Mar 19, 2015 12:00 am
by bobingabout
Without even looking, I know this is a very simple mod.

Re: [MOD 0.11.17+] Replacable poles

Posted: Thu Mar 19, 2015 1:42 pm
by Mr. Thunder_Tw
SHiRKiT wrote:I strongly think this should be implemented in the game.
Me too.

I've missed this capability in my games but never came to the idea to work it out myself :lol:
Good idea though! I'm sertainly gonna test your mod, WildWolf.

Re: [MOD 0.11.17+] Replacable poles

Posted: Fri Mar 27, 2015 9:00 am
by WildWolf
Yes it is a verry simple mod since I only add a line in each pole for replacing them.

And i aggre that this should be in the game.

Re: [MOD 0.11.17+] Replacable poles

Posted: Wed Jul 15, 2015 10:19 am
by Zequez
Are you related to Paradox Interactive?

Re: [MOD 0.11.17+] Replacable poles

Posted: Thu Jul 16, 2015 1:35 am
by laige
Hi WildWolf

Firstly this is a great mod, but you have alot of code that's just taking up space, and can possibly interfere with other mods. You copied the complete codes for the entities when all that is needed is four lines of code.

Try this out. Replace what is in your entity.lua with this code in instead.

Code: Select all

data.raw["electric-pole"]["small-electric-pole"].fast_replaceable_group = "electric-pole-1x1"
data.raw["electric-pole"]["medium-electric-pole"].fast_replaceable_group = "electric-pole-1x1"
data.raw["electric-pole"]["big-electric-pole"].fast_replaceable_group = "electric-pole-2x2"
data.raw["electric-pole"]["substation"].fast_replaceable_group = "electric-pole-2x2"
Second, your .zip needs to have the version number in it. It should read "Replacable-poles_1.0.0.zip" otherwise we have to unpack it to use the mod.

Either way it's a great idea for a mod, and should be added to the game.