Page 1 of 1

[0.16.45] LuaPlayer::build_from_cursor throws an error

Posted: Sat May 26, 2018 8:15 pm
by tristynstimpson
It's me again, ya boy

from http://lua-api.factorio.com/0.16.45/Lua ... rom_cursor

- Start a freeplay game
- Put the furnace in your cursor stack
- Invoke "/c game.player.build_from_cursor{position={3,3}}"
- Prints "Cannot execute command. Error: attempt to index a boolean value"


On a semi-unrelated note, what the heck does the alt flag do for this and can_build_from_cursor. I've never heard of alt-build mode before now and the docs are pretty undescriptive. Something new for 0.17?

Re: [0.16.45] LuaPlayer::build_from_cursor throws an error

Posted: Mon May 28, 2018 1:11 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.16.

Alt build is alternative build - the same as the controls GUI - when you press shift while building.