Page 1 of 1

Unified map gen / resourse gen API hook

Posted: Mon Jan 01, 2018 7:02 pm
by Engimage
Looking at the resourse generation and map generation issues which do arise from time to time I would like to propose adding some kind of universal solution.

I do understand that this is a very generic idea but there could be a generic hook for modding these two features.
So you give a space for modding these two algorithms and integrate it into the game.
This mods will replace map generation options with their own and will be integrated with map preview available in the new map.

Then you can provide several own (Wube) algorithms for map generation as well as have an option to choose player algorithms which can be added by mods.

I am not quite sure of how you could really implement this but I am sure end result could be really awesome when modders will be able to invent their own algorithms which you can make use of later.

I am also positively sure that working on map gen algorithms can open up another layer of creativity for modders.

Re: Unified map gen / resourse gen API hook

Posted: Mon Jan 01, 2018 7:11 pm
by Klonan
PacifyerGrey wrote:Looking at the resourse generation and map generation issues which do arise from time to time I would like to propose adding some kind of universal solution.

I do understand that this is a very generic idea but there could be a generic hook for modding these two features.
So you give a space for modding these two algorithms and integrate it into the game.
This mods will replace map generation options with their own and will be integrated with map preview available in the new map.

Then you can provide several own (Wube) algorithms for map generation as well as have an option to choose player algorithms which can be added by mods.

I am not quite sure of how you could really implement this but I am sure end result could be really awesome when modders will be able to invent their own algorithms which you can make use of later.

I am also positively sure that working on map gen algorithms can open up another layer of creativity for modders.
We already have something like this, the noise specification

Just change the noise functions and it should work properly, they are defined in the core/prototypes/noise

WE had some idea to add the option to choose noise from the map gen GUI, so in this case it would show all available noise programs and you can pick which one you would want

Re: Unified map gen / resourse gen API hook

Posted: Mon Jan 01, 2018 7:36 pm
by Engimage
Klonan wrote:We already have something like this, the noise specification

Just change the noise functions and it should work properly, they are defined in the core/prototypes/noise

WE had some idea to add the option to choose noise from the map gen GUI, so in this case it would show all available noise programs and you can pick which one you would want
I sincerely hope you will have time at some point to streamline this a bit and also think about adding modability of noise functions.
And resource gen is a thing as well and I am sure waay many players are interested in that (waving at RSO)

Re: Unified map gen / resourse gen API hook

Posted: Mon Jan 01, 2018 7:37 pm
by Klonan
PacifyerGrey wrote:I sincerely hope you will have time at some point to streamline this a bit and also think about adding modability of noise functions.
What sort of moddability? You can already define your own noise functions, and add new ones the same as any prototype

Re: Unified map gen / resourse gen API hook

Posted: Tue Jan 02, 2018 7:44 am
by Engimage
Klonan wrote:What sort of moddability? You can already define your own noise functions, and add new ones the same as any prototype
From your first post I did understand that you have your own (built-in) set of noise functions from which you could choose from.
I was talking about having player-defined (mod-defined) noise functions. If you can already have a custom noise function this could be really awesome. And documented if possible.
Even if they are not directly moddable as functions you could possibly let mods pick the function and effect their parameters.

Ideally this should be pickable from map gen window but I am afraid the number of function parameters as their effect on the map is waaay too unclear and has no sense in being directly exposed to a player without some pre-defined presets.

Maybe presets (function + parameters) is a good idea of something players can share (maybe in a form of mods) as their preferred map gen settings which result is the best maps overall in their opinion. But for players to access experimenting these parameters should be exposed so we could start experimenting with map generator to actually make those.
I do understand you spent countless hours finetuning these parameters internally to get viable result. But you know - community is an endless source of time for such stuff.

Anyways I am really impressed you gor this idea and I'm looking forward to see them available in game.