Code: Select all
local player = game.players[event.player_index]
the_player.force.technologies["steel-processing"].researched=true
This confuses me a lot. If it can't even access the game object, how can it do anything?...Data/Roaming/Factorio/temp/currently-playing/control.lua:1: attempt to index global 'game' (a nil value)