Reading game resource and enemy settings

Place to get help with not working mods / modding interface.
Post Reply
orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Reading game resource and enemy settings

Post by orzelek »

I'd like to know if it's possible to read settings that user chose for resources and enemies on new game creation screen.
I looked on the modding wiki but couldn't find those.

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Reading game resource and enemy settings

Post by L0771 »

game.mapsettings
Can see Factorio\data\base\prototypes\mapsettings.lua, for example:
game.mapsettings.steering.default.radius return 1.2 (i don't know what is, but work xD)

hmmm but isn't what you want i think, game.difficulty maybe?

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Reading game resource and enemy settings

Post by orzelek »

I looked at map settings but I don't think it has the resource and enemy spawn parameters that you can set up in new game window.
It has biter behavior controls and evolution stuff.

I'm interested in map generator settings.

Triariy
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Dec 22, 2014 10:04 pm
Contact:

Re: Reading game resource and enemy settings

Post by Triariy »

Mayby the same question of the topic, but I'd ask whatever.
Is it possible to save map generator settings?
Mods have their own settings, and it's annoying to me changing them every time I'm launching the game :evil:

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Reading game resource and enemy settings

Post by L0771 »

if you add a resource (or fluid) with autoplace, the game adds automatically this options, i think you can't save that settings.

Post Reply

Return to “Modding help”