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.
Unified map gen / resourse gen API hook
Moderator: ickputzdirwech
Re: Unified map gen / resourse gen API hook
We already have something like this, the noise specificationPacifyerGrey 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.
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
I sincerely hope you will have time at some point to streamline this a bit and also think about adding modability of noise functions.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
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
What sort of moddability? You can already define your own noise functions, and add new ones the same as any prototypePacifyerGrey 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.
Re: Unified map gen / resourse gen API hook
From your first post I did understand that you have your own (built-in) set of noise functions from which you could choose from.Klonan wrote:What sort of moddability? You can already define your own noise functions, and add new ones the same as any prototype
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.