[Solved] Access 'create game' setting from control.lua?

Place to get help with not working mods / modding interface.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

[Solved] Access 'create game' setting from control.lua?

Post by aubergine18 »

When player sets up a new game, they can specify amounts of various resources and a number of other settings... Is there any way for me to access information about what choices they made from control.lua?
Last edited by aubergine18 on Thu Aug 18, 2016 2:16 am, edited 1 time in total.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Access 'create game' setting values from control.lua?

Post by aubergine18 »

MapGenSettings is what I'm after. Looks like I can get it from a Surface object :D Thank you!!
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding help”