[0.13.16] lua map_gen_settings.shift not working
Posted: Wed Aug 17, 2016 8:57 pm
This works in 0.12.35 but not in 0.13.16
The API says it still exists in 0.13.16
http://lua-api.factorio.com/latest/LuaS ... n_settings
http://lua-api.factorio.com/latest/Conc ... enSettings
however if you run the command
it shows the shift property isn't there anymore. Where has it moved to?
Code: Select all
/c game.player.print({"","(", game.player.surface.map_gen_settings.shift.x, ", ", game.player.surface.map_gen_settings.shift.y, ")"})
http://lua-api.factorio.com/latest/LuaS ... n_settings
http://lua-api.factorio.com/latest/Conc ... enSettings
however if you run the command
Code: Select all
/c for a, b in pairs(game.player.surface.map_gen_settings) do game.player.print(a .. ' ' .. tostring(b)) end