Page 1 of 1

[1.1.6] Game Freezes when you run this Command

Posted: Sat Jan 02, 2021 9:10 pm
by LonnonjamesD
1. When I run this command

Code: Select all

/c local x = 26
while x ~= 50 do
    local x = x + 1
    game.player.force.research_all_technologies()
end

2. it makes the game freeze, and then I have to end it with task maanger.
3. It to research technologies 24 more times

Re: [1.1.6] Game Freezes when you run this Command

Posted: Sat Jan 02, 2021 9:20 pm
by boskid
Not a bug.

Your command contains infinite loop which will never end. Cause: inner "local".