[0.16.45] LuaPlayer::build_from_cursor throws an error
Posted: Sat May 26, 2018 8:15 pm
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?
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?