modable map genertor
modable map genertor
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.
Re: modable map genertor
It is kind of moddable now :-) And we plan to add something along the lines of autoplacable lua callbacks later.
-
- Filter Inserter
- Posts: 358
- Joined: Fri Jul 25, 2014 2:53 pm
- Contact:
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: modable map genertor
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.cartmen180 wrote:And now in englishcube wrote:autoplacable lua callbacks
Re: modable map genertor
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 ...
-
- Filter Inserter
- Posts: 358
- Joined: Fri Jul 25, 2014 2:53 pm
- Contact:
Re: modable map genertor
oh sweet
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.
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