Following minimal scenario was hosted on PC server and connected to with switch (see attachment for zip version to extract to scenarios folder):
Code: Select all
script.on_event(defines.events.on_player_joined_game, function(e)
local player = game.players[e.player_index]
local edit = player.gui.center.add{type = 'text-box'}
edit.word_wrap = true
edit.style.width = 600
edit.style.height = 200
edit.text = string.rep('a', 480) .. '\n\nclick to crash switch (not pc)\n\n'
end)