Page 1 of 1

[2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Tue Oct 29, 2024 11:42 pm
by kenmras
TL;DR
When I middle click on one of my quick bar icons it is acting like I'm left clicking on it the first time.

What ?
Steps to re-produce:
This is a very strange bug as it seems to happen only after copy-paste of factory settings
1)Load the attached save
2)Copy from one factory to another (my test was from a factory making red belts and pasting on another factory already making red belts)
3)Set an item in the tool bar
2) Middle click on that same item - cursor goes to Ghost if you don't have any or grabs the item if you do have some
3) Middle click on that same item again - Item clears allowing you to set a new item

I expected the first time I middle clicked to clear the item.


I loaded the save file attached and it happened every time. I saved to main menu to check the version number, minimized and began writting this and when I went back in, loaded the game, it would not reproduce but instead cleared the item first middle click every time.
When I quit and restarted it cleared every time. When I copied and pasted factory settings it started acting up again.
SPACE AGE5 - oil.zip
Save file with oil unlocked SA without additional mods
(6.44 MiB) Downloaded 10 times
Oh one other thing. I'm plaing on a laptop while my mouse is connected to a different work station and shared using Synergy. I don't believe this has any effect as the key strokes, Mouse movement, and mouse buttons work perfectly in all other software and in Factorio in every other way.

Re: Middle click on toolbar picks up item instead of clearing [2.0.12]

Posted: Tue Oct 29, 2024 11:46 pm
by Rseding91
You've bound smart-pipette's alternative key-binding to middle mouse button which will do exactly what you describe when pressed over a quickbar slot.

Re: [2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Tue Oct 29, 2024 11:53 pm
by kenmras
Amazingly fast response, Thanks!
I see that I've bount "Clear Cursor" to middle click but not pipette. And is there a difference between pipette and smart pipette?
2024-10-29 16_53_00-Factorio_ Space Age 2.0.12.png
2024-10-29 16_53_00-Factorio_ Space Age 2.0.12.png (1.4 MiB) Viewed 921 times

Re: [2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Wed Oct 30, 2024 12:16 am
by Rseding91
Sorry, there is not. It's just internally called that and I was reading the key binding names from the config.ini you provided.

Re: [2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Wed Oct 30, 2024 5:12 pm
by kenmras
That makes sense. But I dont get how the ini file would be bound to middle click but the GUI shows that clear cursor is bound to it... 1 off error?

Re: [2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Wed Oct 30, 2024 5:54 pm
by Rseding91
Hmmmmm, I was wrong. That value is from some old version and it got migrated along. It looks like the actual issue is related to having clear-cursor alternative bound to middle mouse button. The logic for marking a given control as "used" is wrongly marking both possible hotkeys for a given action as consumed.

Re: [2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Wed Oct 30, 2024 8:05 pm
by Rseding91
This is now fixed for the next release.

Re: [2.0.12] Middle click on toolbar picks up item instead of clearing

Posted: Mon Nov 18, 2024 7:01 pm
by kenmras
Amazing work! as always.