[0.16.45] LuaPlayer::build_from_cursor throws an error

This subforum contains all the issues which we already resolved.
tristynstimpson
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Mar 02, 2018 4:50 am
Contact:

[0.16.45] LuaPlayer::build_from_cursor throws an error

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 14150
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”