[1.1.6] Game Freezes when you run this Command

Bugs that are actually features.
LonnonjamesD
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Nov 18, 2020 3:42 pm
Contact:

[1.1.6] Game Freezes when you run this Command

Post 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
Attachments
factorio-current.log
(5.9 KiB) Downloaded 94 times
THAT'S EPIC!
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4080
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post by boskid »

Not a bug.

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

Return to “Not a bug”