Substation converter thing

This is the place to request new mods or give ideas about what could be done.
Post Reply
User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Substation converter thing

Post by ZombieMooose »

Would it possible to restrict long power poles to only connect to substations, but substations connect to any?

I want to try and simulate the conversion of high to low voltage and also thing it would be an interesting logistical challenge.
"men will literally learn everything about ancient Rome instead of going to therapy"

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Substation converter thing

Post by Ranakastrasz »

It would be possible. On event, check wire connections and sever offending ones.

On placing a entity of type power pole.
On robot place.
Maybe on remove as well because I think wires auto reconnect.

And on copper wire manual usage.

It should all be possible, yes.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Substation converter thing

Post by eradicator »

Ranakastrasz wrote:
Fri Mar 13, 2020 2:04 am
And on copper wire manual usage.
No proper events for that though. I think @Therax had a hack? The other stuff is easy as long as you don't want to support all other mods.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: Substation converter thing

Post by ZombieMooose »

What about starting a fire if small or medium poles are attached to large ones?
"men will literally learn everything about ancient Rome instead of going to therapy"

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

Re: Substation converter thing

Post by Deadlock989 »

ZombieMooose wrote:
Mon Mar 16, 2020 6:24 am
What about starting a fire if small or medium poles are attached to large ones?
You're not thinking Gregtech enough. You want a chain reaction of actual explosions that follow the wire all the way back to your primary power production. Every machine that comes into contact with those wires also needs to explode with a radius and damage extreme enough to explode any neighbours which themselves explode their neighbours, wiping out the last 20 hours of progress.

To answer the question more seriously, there still isn't a "wire attach" event. You could mostly likely catch some/most of them by looking at the entity built events. But there is no event for the manual copper wire snipping/adding. At the end of the day, the wires are mostly cosmetic (except for power switches), which is why the devs consistently refuse to preserve the visual connections in blueprints. So your mod would run the risk of creating blueprints that catch fire when built, which would be highly entertaining, I say go for it.
Image

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Substation converter thing

Post by eradicator »

ZombieMooose wrote:
Fri Mar 13, 2020 1:05 am
Would it possible to restrict long power poles to only connect to substations
ZombieMooose wrote:
Mon Mar 16, 2020 6:24 am
What about starting a fire if small or medium poles are attached to large ones?
Can't have both at the same time really.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

nosports
Filter Inserter
Filter Inserter
Posts: 274
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

Re: Substation converter thing

Post by nosports »

eradicator wrote:
Mon Mar 16, 2020 8:03 pm
ZombieMooose wrote:
Fri Mar 13, 2020 1:05 am
Would it possible to restrict long power poles to only connect to substations
ZombieMooose wrote:
Mon Mar 16, 2020 6:24 am
What about starting a fire if small or medium poles are attached to large ones?
Can't have both at the same time really.
I don't know this for sure....

But linking is managed with a 'flag'.
so if you can use two flags; one for wooden & steel pole (wire) and a secound flag for large over lande poles (overland wires) and as a linkage a transformator building with both flags then this could be satisfied...

User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: Substation converter thing

Post by ZombieMooose »

The compatibility with other mods may be frustrated by the requiring of electric energy distribution 2

Unless a tier 0 substation was added
"men will literally learn everything about ancient Rome instead of going to therapy"

Post Reply

Return to “Ideas and Requests For Mods”