luaGuiElement::Camera wrong surface_index

This subforum contains all the issues which we already resolved.
Post Reply
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

luaGuiElement::Camera wrong surface_index

Post by Nexela »

Camera element gui seems to be adding 1 to the passed surfaced_index. Subtracting 1 from the index causes it to show the correct surface.

gui = player.gui.goal.add{
type = "camera",
name = "test_camera",
position = position
surface_index = surface.index
}
The camera will point at surface.index + 1

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

Re: luaGuiElement::Camera wrong surface_index

Post by Rseding91 »

Thanks for the report. Fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”