Non-digit characters (especially 'e') in number fields

Things that has been reported already before.
imi___
Inserter
Inserter
Posts: 30
Joined: Sat Jun 22, 2024 9:31 am
Contact:

Non-digit characters (especially 'e') in number fields

Post by imi___ »

In 1.1, you could not enter non-digit characters into number fields like the "constant" text field in combinators.

Now, it will happily write characters (although the resulting text+digit mashup is not valid). That is especially annoying for the character "e" which usually accepts the dialog.

At least don't accept the character "e", please.
10-26-2024, 01-12-09.png
10-26-2024, 01-12-09.png (19.28 KiB) Viewed 281 times

chim
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Oct 23, 2024 8:39 pm
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by chim »

If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome

Xorimuth
Filter Inserter
Filter Inserter
Posts: 689
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by Xorimuth »

chim wrote:
Fri Oct 25, 2024 11:18 pm
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome
That’s exactly what it is doing. It doesn’t support most letters, but it will do maths expressions like 5*15 or scientific notation like 3e7. Still though… I’d much rather be able to press E to confirm than use scientific notation.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

imi___
Inserter
Inserter
Posts: 30
Joined: Sat Jun 22, 2024 9:31 am
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by imi___ »

Actually, when I typed my first "e" to close the dialog and it inserted an "e" instead, I thought something like: "Oh boy... why did they add scientific notation? Now I have to rebind my 'accept key'."

But then it turned out, that it isn't even working.

I would still prefer to not have scientific notation and close the field instead.

Also note, that this character keys is likely a new feature as now you can type "1m" for one million. Still, please either only accept the keys intended to work (like M) or no non-digit keys at all (which I would prefer).

Maybe an config option to let the user choose the behaviour?

imi___
Inserter
Inserter
Posts: 30
Joined: Sat Jun 22, 2024 9:31 am
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by imi___ »

Xorimuth wrote:
Fri Oct 25, 2024 11:33 pm
chim wrote:
Fri Oct 25, 2024 11:18 pm
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome
That’s exactly what it is doing. It doesn’t support most letters, but it will do maths expressions like 5*15 or scientific notation like 3e7. Still though… I’d much rather be able to press E to confirm than use scientific notation.
Oh, you are right. It DOES work. hm..

Still, I call it an "anti feature". :/

chim
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Oct 23, 2024 8:39 pm
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by chim »

Xorimuth wrote:
Fri Oct 25, 2024 11:33 pm
chim wrote:
Fri Oct 25, 2024 11:18 pm
If any letter should be accepted it would be `e` though, supporting scientific shorthand like 1e3 for 1000 would be awesome
That’s exactly what it is doing. It doesn’t support most letters, but it will do maths expressions like 5*15 or scientific notation like 3e7. Still though… I’d much rather be able to press E to confirm than use scientific notation.
Didn't even realize scientific was already a thing, the input field still lets you write other letters though, that's probably the issue to fix. The question of allows E is another discussion.
10-26-2024, 01-42-54.png
10-26-2024, 01-42-54.png (127.4 KiB) Viewed 256 times

Genhis
Factorio Staff
Factorio Staff
Posts: 549
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by Genhis »

Thanks for the report, this is a duplicate of 116339.

imi___
Inserter
Inserter
Posts: 30
Joined: Sat Jun 22, 2024 9:31 am
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by imi___ »

So.. since this is now linked to a locked thread in "not a bug" section (where the actual bug report is about the a wrong tooltip instead), this is now the final answer of the devs? That it stays broken and just declared a feature?

Another case where the devs made things worse and then just lock forum posts complaining... I wished we had the old input field back and not this ""smart"" one.. ;-(

Genhis
Factorio Staff
Factorio Staff
Posts: 549
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: Non-digit characters (especially 'e') in number fields

Post by Genhis »

imi___ wrote:
Thu Oct 31, 2024 2:46 pm
So.. since this is now linked to a locked thread in "not a bug" section (where the actual bug report is about the a wrong tooltip instead), this is now the final answer of the devs? That it stays broken and just declared a feature?
Ideas and Suggestions is the best place where you can voice your opinion. We do listen to player feedback, it's just that this change was intentional and further discussion doesn't belong to bug reports. Ref. viewtopic.php?p=629126#p629126

Post Reply

Return to “Duplicates”