[2.0.76] Incorrect error code/tooltip

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
herra
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Mar 16, 2025 11:10 pm
Contact:

[2.0.76] Incorrect error code/tooltip

Post by herra »

so as i'm screwing around i try entering in -50 as the amount of coal to be delivered to a reactor (don't ask) but then i get this tooltip
https://i.imgur.com/r6UhQ1J.png
saying it can range from 0 - 18446744073709551615
this seems obviously wrong to me as i know it can't be higher than 2^31-1 but i try and input it anyway and as you would expect it doesn't work
the highest one that can be input without error is 2^32-1 but if you go higher than 2^31-1 it won't actually get delivered

so two things. first of all it should actually be capped at 2^31-1 and not 2^32-1 and second it shouldn't tell you that the cap is 18446744073709551615 under any circumstance since that's just not the case

bp i used in case it matters

{
"blueprint":
{
"icons":
[

{
"signal":
{
"name": "nuclear-reactor"
},
"index": 1
}
],
"entities":
[

{
"entity_number": 1,
"name": "nuclear-reactor",
"position":
{
"x": 339.5,
"y": -1181.5
},
"items":
[

{
"id":
{
"name": "uranium-fuel-cell"
},
"items":
{
"in_inventory":
[

{
"inventory": 1,
"stack": 0,
"count": 50
}
]
}
},

{
"id":
{
"name": "coal"
},
"items":
{
"in_inventory":
[

{
"inventory": 6,
"stack": 0,
"count": -50
}
]
}
}
]
}
],
"item": "blueprint",
"version": 562949958402048
}
}
Rseding91
Factorio Staff
Factorio Staff
Posts: 16794
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.76] Incorrect error code/tooltip

Post by Rseding91 »

Thanks for the report however we most likely won’t be changing this. The value goes through multiple validation stages and depending on which one trips first the error will be different. Since the value comes from Lua it always starts as a double and then gets parsed into integer form as a signed 64 bit value, and then further clamped to what ever final type it needs.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Minor issues”