Page 1 of 1
Modifying powercables
Posted: Sun Mar 15, 2015 10:08 am
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
Re: Modifying powercables
Posted: Sat Mar 21, 2015 9:18 am
by MF-
you mean "add cable types" ? Not sure that's possible
Re: Modifying powercables
Posted: Sat Mar 21, 2015 4:54 pm
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
Re: Modifying powercables
Posted: Mon Mar 23, 2015 6:39 pm
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
Re: Modifying powercables
Posted: Fri Apr 03, 2015 5:55 am
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
Re: Modifying powercables
Posted: Fri Apr 03, 2015 8:38 pm
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.
Re: Modifying powercables
Posted: Sat Apr 04, 2015 11:54 am
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.
Re: Modifying powercables
Posted: Sun Apr 05, 2015 1:25 am
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.