RimWorld

RimWorld

Power Logic
Weird behaviour with logic gates.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1208377670

Seems like the gates "stores" power and stay conected with a power grid even is not suppose to happen? or I this is intended?
< >
Showing 1-3 of 3 comments
Supes  [developer] 23 Nov, 2017 @ 9:45am 
the logic gates, input sockets and Not inverters act as switches, so it can never generate or store power themselves.

try removing the middle conduit on the back of the Or Gate. That conduit is causing reverse power flow through the conduits between the input sockets and the pressure plates, the input socket then detects that there is power on its end and remains on.



Here's some rules to follow when using logic gates:

don't connect devices directly to the gate, as soon as it switches the connection to the device will jump to a conduit.

any direct conduit connections are considered outputs

Never place a battery or power plant connected to the power out conduit.

Never link two outputs from seperate gates together, unless seperated via an Or Gate first (this prevents any power going in the reverse direction)

you can have a maximum of 2 Inputs

any power that goes In should go through an Input socket.

you can have a maximum of 1 Inverter, an inverter is only required if you need to flip the power, in which case it will use the power from the inverter line to power the output conduit


Emilie Sackenball 25 Nov, 2017 @ 6:34am 
Oh I see, that's why I see sometimes the power stays in some spot I don't want to.
btw I was seeing some electronic desings online, but a lot of them uses resistences and sometimes uses inverters like 2-4 inverters in secuence. I can have the same effect with the actual stuff in your mod?
Supes  [developer] 25 Nov, 2017 @ 7:27am 
you wont need things like resistors since in electronics they are used to protect LED's from melting, or getting used as a voltage reducer to name a few uses. since there's no such thing as voltage or current in rimworld, many of these things wont apply.

in electronics, diodes are used for one way power, which can be used to convert AC power to DC (power inverter circuit, which is different to a Inverter (Not) Logic Gate), but again in rimworld there's no such thing as AC/DC


for inverters in sequence (Not Gate), I don't see why not. 2 in sequence will flip the power twice, ending up with the same on/off status as without the 2 inverters.


eg
input1 and input2 go into an And gate with inverter, when an input is unpowered, power is supplied via the inverter line to the output conduit.

this output conduit connects to both input1 and 2 of a second And gate, which also has an inverter line on the gate.

since this makes the inputs of the second And gate on, the inverter flips it to off.


most setups wouldn't need to flip the power twice, unless you wanted to draw power from a powersource seperate from your inputs.
Last edited by Supes; 25 Nov, 2017 @ 7:33am
< >
Showing 1-3 of 3 comments
Per page: 1530 50