To reproduce:
Code: Select all
/c game.player.gui.relative.add{type = "button", caption="Test", anchor = {gui = defines.relative_gui_type.container_gui, type = "artillery-wagon", position = defines.relative_gui_position.right}}
Using name = "artillery-wagon" or names = {"artillery-wagon"} works.
I also tried it with a two other container types (cargo-wagon, contain), the tyoe filter seems to not work at all