Page 1 of 1
[2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI
Posted: Wed Jan 29, 2025 4:47 pm
by Akino_Ovsky
In a constant combinator you can input 2^32+1 and end up getting an output value of 4294967297
1: Open constant combinator
2: make new signal
3: set value to 2^32+1
4: get a value of that, without it normally overflowing to 1
Re: Combinator overflow error with a set value of 2^32+1
Posted: Wed Jan 29, 2025 4:59 pm
by Akino_Ovsky
Okay, with a bit more checking you cannot do this with decider or arithmetic combinators in any way, nor does the Constant combinator actually output the gigantic invalid signal value, once you close and reopen it, it will reset the signal to the correct value which would be 1.
It will also not do it with anything like 2^32+2 which will correctly overflow to 2 in the UI without having to close and reopen
I think I just found a weird edge case and this bug can I'm pretty sure be safely ignored/fixed with a single line of code
Re: [2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI
Posted: Thu Jan 30, 2025 12:56 pm
by Loewchen
It seems to just be unreliable and any value that should overflow has a chance of being displayed as if its a 64bit number until the GUI is reopened instead, so an input of 1000000000000 or 1e12 both show sometimes as 1T. It only happens when there are no other signals set in the combinator though.