FicsIt-Networks icon indicating copy to clipboard operation
FicsIt-Networks copied to clipboard

[Feature request] Ability to access and modify the "SIGN MODULE" of the Power Switch

Open KaktusXY opened this issue 2 years ago • 6 comments

Describe the feature Ability to access and modify the "SIGN MODULE" of the Power Switch (turn it on/off & set/get name/text)

With e.g.

boolean isSignOn
function setSignText(String Text)
function getSignText()

image

KaktusXY avatar May 27 '22 16:05 KaktusXY

I view this more like a statically defined thing... similar to the lables... not everything has to have a coding interface... the stuff that is reasonable... right now i cant see a reason on why someone would want to change the text of it programmatically... as its text usually is defined by what machines are connected to the power network... and that doesnt change programmatically...

Panakotta00 avatar Aug 05 '22 23:08 Panakotta00

I came here also for this request, hopefully you decide to implement it despite not seeing a need for it yourself.

ForsakenShell avatar Jan 28 '23 19:01 ForsakenShell

right now i cant see a reason on why someone would want to change the text of it programmatically... as its text usually is defined by what machines are connected to the power network... and that doesnt change programmatically...

At least getSignText() would be useful to me. Then it's a lot easier to differentiate power switches from one another. (I know I can give it a nickname with the network manager, but there seems to be an issue with blueprints when I do that...and the computer and power switches are in a blueprint. On startup, I could figure out which switch is which using the text of the switch.

OHB avatar Nov 22 '23 16:11 OHB

right now i cant see a reason on why someone would want to change the text of it programmatically... as its text usually is defined by what machines are connected to the power network... and that doesnt change programmatically...

At least getSignText() would be useful to me. Then it's a lot easier to differentiate power switches from one another. (I know I can give it a nickname with the network manager, but there seems to be an issue with blueprints when I do that...and the computer and power switches are in a blueprint. On startup, I could figure out which switch is which using the text of the switch.

Can you elaborate on "an issue with blueprints"? Especially since the latest update brought blueprint parameters.

@OHB

Panakotta00 avatar Nov 22 '23 17:11 Panakotta00

Well, perhaps it's worth trying again. I had a blueprint and used the network scanner tool to set nicknames for things. I saved the blueprint, cleared, and loaded it back into blueprint designer and it crashed. It seemed to happen only when nicknames were set. I assumed, perhaps incorrectly, that the nicknames weren't persisting correctly because network items placed in a blueprint all have a UUID of 00000000000000000000000000. When I place the blueprint, I need a way of knowing which switch is which and without nicknames or access to the display name, I'm using coordinates and math to identify each device based on its position relative to each other. :)

But, if you have guidance on a better approach, I'm all ears! Should assigning nicknames to devices in a blueprint work? Should I try that again?

BTW, this mod is life, thanks so much. Can't wait to share my finished blueprints!

OHB avatar Nov 22 '23 19:11 OHB

I can not reproduce this issue... I have tried with both parametric and non-parametric nick-names and it does not crash. I both saved and loaded blueprints... The 000... UUID is normal, that is how it should be in a blueprint. All placed network adapters should have that. My HyperNetNodes have 20 components with nick-names set, they load and place just fine? O.o

edit. Maybe create a new ticket for this and attach logs?

RozeDoyanawa avatar Nov 22 '23 20:11 RozeDoyanawa

Closing due to inactivity

Panakotta00 avatar Jul 05 '24 05:07 Panakotta00