Page 1 of 1

[0.12.x][Twins]UI not updated after calling set_request_slot

Posted: Tue Oct 20, 2015 7:08 pm
by fcaf
When a mod calls set_request_slot on an opened requester chest, the UI for the request slots does not reflect the changed value until the chest is closed and re-opened (or other user action on those slots).

To reproduce, open a logistic requester chest and run

Code: Select all

/c game.player.opened.set_request_slot({name = 'raw-wood', count = 25}, 1)
Note that the request slots don't change. Upon re-opening the chest, you will correctly see the new request values.

Re: [O.12.x] UI not updated after calling set_request_slot

Posted: Tue Oct 20, 2015 8:36 pm
by Oxyd
Fixed in 0.12.13.

Re: [O.12.x] UI not updated after calling set_request_slot

Posted: Thu Mar 10, 2016 1:55 pm
by matepeter
I'm playing with version 0.12.26 from Steam
The problem resurfaced, the UI again doesn't show the change until reopening after the posted LUA command, altough the logistic robots start to fill the chest as soon as the command is entered.

Re: [O.12.x] [kovarex] UI not updated after calling set_request_slot

Posted: Mon Mar 14, 2016 2:46 pm
by kovarex
Thanks for the report, fixed for 0.12.27

Re: [O.12.x] [kovarex] UI not updated after calling set_request_slot

Posted: Mon Mar 14, 2016 7:01 pm
by matepeter
Thanks for the fix. Keep up the good work ;)

Re: [O.12.x] [kovarex] UI not updated after calling set_request_slot

Posted: Tue Apr 12, 2016 4:08 pm
by Twinsen
Reverted the fix in 0.13 because it reintroduced this bug: viewtopic.php?t=18486

To be fixed properly in 0.13

Re: [0.12.x][Twins]UI not updated after calling set_request_slot

Posted: Thu Sep 15, 2016 3:03 pm
by Twinsen
After being fixed and un-fixed 2 times and half a year later I decided to move this to 'minor issues'.

This is a problem with all the gui's in game. If you have a gui open and it is changed by another player(in multiplayer) or by script, you will not se the change until you re-open the gui.

Might seem like something simple but to fix this, the system of latency hiding would have to be implemented in our gui system, something not worth the work for something that is rarely noticeable.