Page 1 of 1
[0.5.0 and before] unit.setcommand crashes the game
Posted: Tue Jun 11, 2013 1:57 pm
by rk84
When using gotolocation type command in console factorio stops working. tested destination with and without x and y keys.
Code: Select all
creeper = game.player.character.getselected()
creeper.setcommand({ type=defines.command.gotolocation, destination={x=0,y=-40} })
Re: [0.5.0 and before] unit.setcommand crashes the game
Posted: Tue Jun 11, 2013 2:17 pm
by ficolas
what about if you run it by the control.lua?
Also Im not sure but I think you need to add a distraction, or that is just for attackimg?
Re: [0.5.0 and before] unit.setcommand crashes the game
Posted: Tue Jun 11, 2013 4:22 pm
by rk84
ficolas wrote:what about if you run it by the control.lua?
Also Im not sure but I think you need to add a distraction, or that is just for attackimg?
yea its same in control.lua
Wiki says distraction is optional for both command types and it does crash with or without it.
Re: [0.5.0 and before] unit.setcommand crashes the game
Posted: Wed Jun 12, 2013 10:29 am
by slpwnd
Thanks guys. Fixed for 0.5.1.