Map Generation GUI... can you insert code there?

Place to get help with not working mods / modding interface.
DoneAndDead
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Feb 10, 2015 5:31 pm
Contact:

Map Generation GUI... can you insert code there?

Post by DoneAndDead »

Hello dear Factorio Comminty!

Is there away to insert more checkboxes into the Map Generation GUI (After you click new game)?
Like the one if you want to play on peaceful or not.

And another not that related question, is there away to synch choosen values over the internet between client and host?

Regards DoneAndDead
User avatar
ThaPear
Fast Inserter
Fast Inserter
Posts: 226
Joined: Fri May 30, 2014 8:05 am
Contact:

Re: Map Generation GUI... can you insert code there?

Post by ThaPear »

I'm afraid the main menu is not moddable.
DoneAndDead
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Feb 10, 2015 5:31 pm
Contact:

Re: Map Generation GUI... can you insert code there?

Post by DoneAndDead »

Then the question comes down to: Will the Map Generation ever be moddable? Think it could help the modding community a lot. To clarify what i mean by be able to change the Map Generation screen is for the modder to be able to add new changeable parameters. Looking like the checkbox for peaceful mode (checkbox), text boxes and dropdown menu. This would help the modders so by letting the player (end-user) be able to customize his/hers own playing experience by sets of parameters created by the modders. Like if we take the "No Crafting Challenge" mod i have created. I as a modder could develop it so that the player could choose what kind of challenges he/she is seeking in the gameplay, meaning that the mod could grow from one challenge to many tailorable challenges. This could also apply to mods that adds new enemies or change the existing ones. For example the player could choose if the enemies shall be in some kind of berserker mod or maybe a horde mode?

The way i think this could be implemented into the mod API is to have the gui parameters added in the data.lua where the type would be "MapGenerationParameter" and contain the name of the parameter and one or many different user inputs (Textboxes, sliders, dropdown menues and so on). Then there values could be saved in the Map-Settings table/object (Not that used to code in lua...). And when needed in an event the modder could get them from there. :)


P.S. This thread might need to move or stay think that is up to the moderators. Hence i move a bit out of subject when making this discussion.
Post Reply

Return to “Modding help”