Modifying powercables

User avatar
MagicLegend
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Tue Dec 30, 2014 6:17 pm
Contact:

Modifying powercables

Post by MagicLegend »

Hi there,

Recently I've started collaborating with Dysoch and I've started working on Dytech-Power, and i'm looking into ways to modify the cables in between powerpoles and adding my own powerpoles. Now i'm unable to find a way in the API where I can modify and 'add' cables. I have my reasons to want this :)

Is it possible to add in a later version of Factorio (0.12?) a way for me to add new types of cables (read: give the cable a different color), and give them a special number/string or something so i can script the other properties of the cable?

If there is more information needed as in why I want this feature I'd love to see a PM!

~ML
Very good at pressing buttons.
MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: Modifying powercables

Post by MF- »

you mean "add cable types" ? Not sure that's possible
User avatar
MagicLegend
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Tue Dec 30, 2014 6:17 pm
Contact:

Re: Modifying powercables

Post by MagicLegend »

Yes, but as i said, i need to give the cable a different color (to make it non-copper anymore), and i need it to have a different name, so i can script the properties of the cable.
My plans are mostly script-based, but i need the different cable/powerpoles entities first before i can start scripting. What i'd love to see if one of the devs could put this in the API so I can hook into it.

~ML
Very good at pressing buttons.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14800
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Modifying powercables

Post by Rseding91 »

Right now all wire behavior is hard coded to 2 types: red and green. There's no existing method to simply "add another" one. This would be more of a feature request to completely change how the wire logic works.

Not a bad request but definitely not a mod API request :)
If you want to get ahold of me I'm almost always on Discord.
User avatar
MagicLegend
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Tue Dec 30, 2014 6:17 pm
Contact:

Re: Modifying powercables

Post by MagicLegend »

Rseding91 wrote:Right now all wire behavior is hard coded to 2 types: red and green. There's no existing method to simply "add another" one. This would be more of a feature request to completely change how the wire logic works.

Not a bad request but definitely not a mod API request :)
No, I'm aware of that. Dysoch has aleeady pointed out to me what can be done currently and what can't.
If you think this isn't a API request, what is it then? It isn't a feature request, i just want to add my own cables in DyTech-Power, just like any regular entity.

~ML
Very good at pressing buttons.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14800
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Modifying powercables

Post by Rseding91 »

MagicLegend wrote:No, I'm aware of that. Dysoch has aleeady pointed out to me what can be done currently and what can't.
If you think this isn't a API request, what is it then? It isn't a feature request, i just want to add my own cables in DyTech-Power, just like any regular entity.

~ML

You just want to make cable items? That's doable. If you want to be able to use them on poles to string the new cables that's the part that can't be done.
If you want to get ahold of me I'm almost always on Discord.
User avatar
MagicLegend
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Tue Dec 30, 2014 6:17 pm
Contact:

Re: Modifying powercables

Post by MagicLegend »

Rseding91 wrote:
MagicLegend wrote:No, I'm aware of that. Dysoch has aleeady pointed out to me what can be done currently and what can't.
If you think this isn't a API request, what is it then? It isn't a feature request, i just want to add my own cables in DyTech-Power, just like any regular entity.

~ML

You just want to make cable items? That's doable. If you want to be able to use them on poles to string the new cables that's the part that can't be done.
And it is that last part that i'm requesting to be doable.
Very good at pressing buttons.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14800
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Modifying powercables

Post by Rseding91 »

MagicLegend wrote:And it is that last part that i'm requesting to be doable.
Cables aren't an entity. Cables are a coded part of every entity that supports red/green cables. It would definitely be interesting if cable types could be added in via prototypes but right now they're not even close.

You'd want to put this under feature requests with something along these lines:

Change cables so they can be defined through prototypes instead of the two red/green hard coded types.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”