RimWorld

RimWorld

Power Logic
ttr 5 Jan, 2020 @ 8:33am
Separate signal and power
@Supes,
Nice mod idea, but I have some sort question / request.
I'm trying to create backup power sections (separate batteries + fuses) and switch to them when previous fails.
using capacitor and switches should be doable but problem I do have is feedback loop on those - when flow switch gets enabled it will stay all time, even when it will get "disable signal".

Since I can see that all your devices operate on principle that power is signal, would be possible to actually change this:
- your 'input connector" would be signal wire
- all devices would require signal wire connected
- things like capacitor switch, flow switch, etc could be actually sensors (signal sender) - they will no act as switch on power sense but will send on/off signal over signal wire
- introduce remote switch, same as wireless switch, but wired
- wireless transmitter could transmit base of signal wire and not power

Logical gates also should have dedicated sides that are input - now I think it choose them randomly.
< >
Showing 1-2 of 2 comments
Supes  [developer] 6 Jan, 2020 @ 1:09pm 
there are plenty of ways to go from wired to wireless, easiest is just to have a wireless transmitter after the switch.

you could go from current switch to wireless transmitter (and wireless switches where you need), or you could entangle a current switch. both examples would have your current switch placed closer to your power plants, and not your batteries. hopefully this helps avoids your feedback.
Supes  [developer] 6 Jan, 2020 @ 1:38pm 
Logic gates have a priority to how power routes through it, if an inverter is connected, power will always be routed through the inverter or not at all (if you're not sure of the order you connected inputs, keep this in mind).

other than that, order of connecting inputs is important if you need power to route though a certain input over another.

or gate will prioritise the first connected input over the second if both inputs are active.

and gates will route though the second input only

because of the nature of xor, there is only ever one one input active at a time when the xor gate is on, so just whichever input is active it would route though
< >
Showing 1-2 of 2 comments
Per page: 1530 50