modable map genertor

karlstri
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri May 02, 2014 11:59 am
Contact:

modable map genertor

Post by karlstri »

i think it would be an intresitng thing for the game if the map genartor is modible, so i can select what map style i want to play.
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: modable map genertor

Post by cube »

It is kind of moddable now :-) And we plan to add something along the lines of autoplacable lua callbacks later.
cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: modable map genertor

Post by cartmen180 »

cube wrote:autoplacable lua callbacks
And now in english :P
Check out my mods
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: modable map genertor

Post by JamesOFarrell »

cartmen180 wrote:
cube wrote:autoplacable lua callbacks
And now in english :P
At the moment you can set entities to be populated on the map using the internal map generation but you can't run code to affect the generation. Lua callbacks will allow mod code to change the generation while it is happening.
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: modable map genertor

Post by cube »

JamesOFarrell got it almost right. What I imagine is that the same way you can autoplace an entity now, you will be able to give the autoplace specification to a piece of lua code. When the autoplacer decides to use it, the code will be called with write access to the map (once for every location the autoplacer finds). This would enable stuff like base ruins that actually have some structure, monsters guarding resources, treasure chests ...
cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: modable map genertor

Post by cartmen180 »

oh sweet :D

edit: Would it also be possible for recipes to be affected ingame. Like researching a more efficient way to make copper cable. But instead of getting a new recipe it updates the old one.
Check out my mods
Post Reply

Return to “Implemented mod requests”