Partial override for MapGenerationParameters impossible?
#11734
arousle
started this conversation in
Code questions and modding support
Replies: 1 comment 1 reply
-
|
Actually, any form of partial override is not supported officially. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to modding Barotrauma, and for my first mod I wanted to do a single override to change the Jovian Radiation
RadiationStepto 20.0 (from its default value of 100.0).After reading the modding guide on overrides, I thought I could simply do this:
But after (a frustrating amount of) trial-and-error, it seems that this sort of partial override isn't actually possible. It has been my experience that any partial override of the
MapGenerationParameterseither crashes the game upon map generation or causes other unexpected behavior to occur. Further evidence to corroborate this is that all examples of mods on GitHub which override theMapGenerationParametersdo so by fully specifying all of its parameters (e.g. (1), (2)).I understand this means that only one mod's changes to
MapGenerationParameterscan ever be active, which doesn't seem very modular.Additionally, each mod which does not want to change even a single
MapGenerationParametersfrom the game's defaults would have to be updated if any of the defaults change, which doesn't seem very future-proof.Is this inability to provide partial overrides to
MapGenerationParametersworking as intended? Am I missing something?Beta Was this translation helpful? Give feedback.
All reactions