[2.1.7] Changing existing constant appends to end of string instead of replacing it

Bugs which we just recently fixed in our development version and will reach you in the next release.
qenta22
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jun 24, 2026 12:39 am
Contact:

[2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by qenta22 »

I know this is a nit, but I wanted to report a change in functionality.

> What did you do?
I clicked on the constant number in this "Enable if":
Screenshot 2026-06-23 at 5.44.57 PM.png
Screenshot 2026-06-23 at 5.44.57 PM.png (334.14 KiB) Viewed 878 times
As expected, I was taken to the screen to set the constant. The constant string ("50") is highlighted, again, as expected.
Screenshot 2026-06-23 at 5.45.47 PM.png
Screenshot 2026-06-23 at 5.45.47 PM.png (594.94 KiB) Viewed 878 times
I then typed "90".
> What happened?
The constant was then set to "5090".
Screenshot 2026-06-23 at 5.52.07 PM.png
Screenshot 2026-06-23 at 5.52.07 PM.png (835.1 KiB) Viewed 878 times
> What did you expect to happen instead? It might be obvious to you, but do it anyway!
I expected the keystrokes to replace the "50", but the "90" was simply appended to the end.
>Does it happen always, once, or sometimes?
This happens always. It is changed functionality from the previous version and requires extra mouse movement or keystrokes to fix.
factorio-current.log
(11.36 KiB) Downloaded 26 times
Save file is too big, can recreate in new world upon request.
Rseding91
Factorio Staff
Factorio Staff
Posts: 17226
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by Rseding91 »

I am not able to reproduce any such issue. When I type - it overwrites the selected text.
If you want to get ahold of me I'm almost always on Discord.
Bilka
Factorio Staff
Factorio Staff
Posts: 3820
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by Bilka »

Are you using the numpad to type the numbers?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
qenta22
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jun 24, 2026 12:39 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by qenta22 »

Hi Bilka,

Yes. I was using numpad on an external Bluetooth keyboard for my laptop. I just tried numbers on the laptop keyboard (not a numpad, nothing externally connected) and the intended behavior occurred, where it overwrote the existing values.

I have used the numpad without this issue on previous builds.

Andrew
Rseding91
Factorio Staff
Factorio Staff
Posts: 17226
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by Rseding91 »

Strange. Can you test disabling the setting mentioned here? viewtopic.php?p=695689#p695689
If you want to get ahold of me I'm almost always on Discord.
qenta22
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jun 24, 2026 12:39 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by qenta22 »

Hi Team,

Toggling num-lock on my keyboard resolved the issue.

The config change to which you linked also resolved the issue, for both toggle states of num-lock.

That is sufficient for me, if it resolves your potential concerns as well.

Andrew
Kiklov
Burner Inserter
Burner Inserter
Posts: 5
Joined: Tue Jul 02, 2019 8:04 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by Kiklov »

I have the same issue, I'm on a MacBook with OSX Tahoe 25.6.1 and using an external Apple keyboard with numpad. Using the numpad it appends the string.
Rseding91
Factorio Staff
Factorio Staff
Posts: 17226
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by Rseding91 »

This sounds like an SDL3 bug. I’ll see if we can reproduce it internally.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 17226
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Changing existing constant appends to end of string instead of replacing it

Post by Rseding91 »

I was finally able to reproduce this with a coworkers help and it's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved for the next release”