Page 1 of 1

[0.13.16] lua map_gen_settings.shift not working

Posted: Wed Aug 17, 2016 8:57 pm
by AntiElitz
This works in 0.12.35 but not in 0.13.16

Code: Select all

/c game.player.print({"","(", game.player.surface.map_gen_settings.shift.x, ", ", game.player.surface.map_gen_settings.shift.y, ")"})
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

Code: Select all

/c for a, b in pairs(game.player.surface.map_gen_settings) do game.player.print(a .. ' ' .. tostring(b)) end
it shows the shift property isn't there anymore. Where has it moved to?

Re: [0.13.16] lua map_gen_settings.shift not working

Posted: Wed Aug 17, 2016 9:51 pm
by TruePikachu
I can confirm they still exist in the C++ side of things, in MapGenSettings, at least as of 0.13.15.

Re: [0.13.16] lua map_gen_settings.shift not working

Posted: Thu Aug 18, 2016 1:41 am
by Rseding91
Fixed for 0.13.18. It some how was lost during the map gen changes between 0.12 and 0.13.

Re: [0.13.16] lua map_gen_settings.shift not working

Posted: Thu Aug 18, 2016 2:10 pm
by AntiElitz
Thank you! That's awesome :)