[0.13.16] lua map_gen_settings.shift not working

This subforum contains all the issues which we already resolved.
Post Reply
AntiElitz
Filter Inserter
Filter Inserter
Posts: 446
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

[0.13.16] lua map_gen_settings.shift not working

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

User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.13.16] lua map_gen_settings.shift not working

Post by TruePikachu »

I can confirm they still exist in the C++ side of things, in MapGenSettings, at least as of 0.13.15.

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

Re: [0.13.16] lua map_gen_settings.shift not working

Post by Rseding91 »

Fixed for 0.13.18. It some how was lost during the map gen changes between 0.12 and 0.13.
If you want to get ahold of me I'm almost always on Discord.

AntiElitz
Filter Inserter
Filter Inserter
Posts: 446
Joined: Sat Aug 29, 2015 11:37 pm
Contact:

Re: [0.13.16] lua map_gen_settings.shift not working

Post by AntiElitz »

Thank you! That's awesome :)

Post Reply

Return to “Resolved Problems and Bugs”