ElectricalAge
ElectricalAge copied to clipboard
[Gamebreaking] I think I just divided by 0
I was playing around and I needed to convert my 4100V down to 200ish so I put 4 HVH cables and 1 HVH cable into a DC-DC converter set to isolated. I then put 4 HVH cables and 1 MV cable into the second, though it overvolted because I forgot to put a core into the first one. I placed a core into the first one and replaced the second converter and again placed the wires and set it to isolated. When I closed the menu this happened
https://i.imgur.com/5gwHbub.png
This is probably one of the weirdest bugs I've seen yet. Everything in the network became a NaN value, including the temperature of the rheostat which amusingly became black as a result. It's a current source in case you were wondering. It stays at a constant set value, as long as the wire can handle it.
K...
It's been a while since I've seen this one. Hmm~
There's a bug in the converters, it seems, but it's annoying how once NaN leaks into the net it poisons everything.
Maybe some sanity checking on each entity is in order. Just a quick check on the converter code to make sure you're not trying to divide by 0, and potentially a check for NaNs on all networked blocks.