1. Create scenario with following code in control.lua
Code: Select all
script.on_event(
defines.events.on_player_created,
function(event)
local player = game.get_player(event.player_index)
local button = player.gui.center.add {type = 'button'}
button.style.disabled_font_color = {0, 0, 0}
end
)
3. Watch the errors.
If I load the scenario on a server and run /c game.force_crc() I get the attached desync report.