Page 1 of 1

[Dominik][0.17.38]Character gui not updating when writing LuaPlayer.auto_trash_filters

Posted: Mon May 13, 2019 8:35 am
by Choumiko
To reproduce:
  • Open the character gui, switch to the Auto Trash tab
  • Code: Select all

    /c game.player.auto_trash_filters = {["wood"] = 0, ["iron-plate"] = 5};
     game.print(serpent.line(game.player.auto_trash_filters))
  • Displayed filters are not updated, changing to the logistics tab and back to Auto Trash also doesn't update, although the game.print says they have been set (and robots come to pick it up without reopening the gui)
  • Close the gui and open it again: filters are displayed

Doing the same with the request slots works as expected:

Code: Select all

/c game.player.character.set_request_slot({name="iron-plate", count = 100}, 1);
game.player.character.set_request_slot({name="copper-plate", count = 150}, 2)
(With the character gui open and the logistics tab selected)


factorio-current.log

Re: [Dominik][0.17.38]Character gui not updating when writing LuaPlayer.auto_trash_filters

Posted: Mon May 20, 2019 3:12 pm
by Dominik
Hi, it is true that the event to update the trash slots is missing. But I am now reworking the whole gui including the logistics system and that notification would be pointless, so I will not be adding it now.