[Solved] Access 'create game' setting from control.lua?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
[Solved] Access 'create game' setting from control.lua?
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.
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Access 'create game' setting values from control.lua?
MapGenSettings is what I'm after. Looks like I can get it from a Surface object
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.