[2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI

This subforum contains all the issues which we already resolved.
Akino_Ovsky
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Dec 28, 2024 9:37 am
Contact:

[2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI

Post 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
Attachments
Image of constant combinator UI showing a value higher than 2's comp 32 bit
Image of constant combinator UI showing a value higher than 2's comp 32 bit
2 to the power of 32 plus 1 in factorio.png (2.62 MiB) Viewed 676 times
Akino_Ovsky
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Dec 28, 2024 9:37 am
Contact:

Re: Combinator overflow error with a set value of 2^32+1

Post 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
Attachments
Showing the actual output of the data using the nixie tubes mod
Showing the actual output of the data using the nixie tubes mod
2^32+1.png (3.15 MiB) Viewed 664 times
Loewchen
Global Moderator
Global Moderator
Posts: 10220
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15820
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI

Post by Rseding91 »

It looks like this is fixed in one of the most recent releases.
If you want to get ahold of me I'm almost always on Discord.
protocol_1903
Filter Inserter
Filter Inserter
Posts: 262
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: [2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI

Post by protocol_1903 »

This might've broken a feature (or bug idk) that some of us in the circuits community have been using for a while. If you set a constant combinator in one logistics group to INT_MAX or INT_MIN, then in a second group overflow it with a much smaller number (like 10-20) the combinator would correctly add the two numbers together and overflow them on the output. I've been using this as a cheap way to limit assembler ingredients (combined with read contents and set filters). This has since been broken (in 2.0.44) and instead it just sets it to INT_MIN or INT_MAX without the overflow. I'd like it returned, if possible. Should I create a bug report for it?
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Loewchen
Global Moderator
Global Moderator
Posts: 10220
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.33] Constant combinator signal of 2^32+1 does not overflow in GUI

Post by Loewchen »

protocol_1903 wrote: Fri Apr 11, 2025 6:07 pm ...
This has nothing to do with the issue discussed here as it was limited to the GUI only. If you have a problem in the latest version make a dedicated report following
3638 instead please.
Post Reply

Return to “Resolved Problems and Bugs”