[2.0.76] Incorrect error code/tooltip
Posted: Sat May 09, 2026 9:25 pm
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
}
}
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
}
}