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

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

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

Post 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
Dominik
Former Staff
Former Staff
Posts: 658
Joined: Sat Oct 12, 2013 9:08 am
Contact:

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

Post 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.
Post Reply

Return to “Minor issues”