# Implementing New Game Settings

**URL:** <https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884>\
**Category:** Programming\
**Created:** [May 13, 2022, 5:57pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884 "2022-05-13T17:57:34Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Oliveriver](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/oliveriver/32/1962_2.png) [@Oliveriver](https://forum.revolutionarygamesstudio.com/u/Oliveriver)\
**Post date:** [June 9, 2022, 4:59pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/21 "2022-06-09T16:59:42Z")

</div>

Sure, but I’m going to say that’s beyond the scope of this feature. A good candidate for the future though.

---

<div class="post-metadata">

**Author:** ![Gamedungeon](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/gamedungeon/32/2202_2.png) [@Gamedungeon](https://forum.revolutionarygamesstudio.com/u/Gamedungeon)\
**Post date:** [June 9, 2022, 5:00pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/22 "2022-06-09T17:00:11Z")

</div>

That’s fair.

---

<div class="post-metadata">

**Author:** ![Oliveriver](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/oliveriver/32/1962_2.png) [@Oliveriver](https://forum.revolutionarygamesstudio.com/u/Oliveriver)\
**Post date:** [June 14, 2022, 4:11pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/23 "2022-06-14T16:11:33Z")

</div>

@Thim Based on your suggestion, I added an osmoregulation cost multiplier for the player cell. I did find some unwanted behaviour though. If I had osmoregulation set to cheaper than normal, I could build a cell that ordinarily wouldn’t survive, and because the osmoregulation adjustment applied to only the player cell itself, other cells of my species would be permanently dying in the environment and I’d get a big osmoregulation penalty in Auto-Evo.

Consequently, I think it’s better to apply the osmoregulation adjustment to all cells of the player’s species. Do you have any thoughts on this?

---

<div class="post-metadata">

**Author:** ![Thim](https://thrivedevforum-cdn.b-cdn.net/letter_avatar_proxy/v4/letter/t/5f8ce5/32.png) [@Thim](https://forum.revolutionarygamesstudio.com/u/Thim)\
**Post date:** [June 20, 2022, 10:40am UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/24 "2022-06-20T10:40:31Z")

</div>

Sorry for the delay; I think that makes a lot more sense. My guess would be that players would feel like the difficulty setting is “cheating” if other microbes of the species are following different rules, and I don’t see why it would be a problem for the other individuals to work the same way.

---

<div class="post-metadata">

**Author:** ![Oliveriver](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/oliveriver/32/1962_2.png) [@Oliveriver](https://forum.revolutionarygamesstudio.com/u/Oliveriver)\
**Post date:** [June 23, 2022, 7:29am UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/25 "2022-06-23T07:29:28Z")

</div>

Since [this has just been merged into master](https://github.com/Revolutionary-Games/Thrive/commit/c4d2a75e48cc5ba2f8103d7b364534fe961711cf), I’ll add a few notes to this thread to conclude things.

After a suggestion from hhyyrylainen, difficulty presets are now defined in JSON, specifically [difficulty\_presets.json](https://github.com/Revolutionary-Games/Thrive/blob/master/simulation_parameters/common/difficulty_presets.json). This should make it easier for anyone to modify or add difficulty presets, especially mod makers. Note that these may involve a change to the maximum and minumum values in Constants.cs though. With the devbuilds and community testing from now until 0.5.9, we should hopefully get some good feedback on the optimal values to choose for the existing difficulties.

Adding extra new game settings shouldn’t be too difficult either. Just follow the approach of the existing values to equip a WorldGenerationSettings object with the right information. The hard part will be accessing and using the setting correctly in the right part of the game code.

I added two settings which are currently invisible: patch map type and Easter eggs. These should both be enabled as part of the code changes for these respective features.

While there is a planet generation screen placeholder, filling out the planet generation options will take a lot more design work. I haven’t worried about that at all for now. It’s possible more GUI scenes will be needed, e.g. if the design ends up something like [this](https://www.youtube.com/watch?v=9BgLShgi73w).

Finally, now that there’s a functioning LAWK toggle in the game, it’s high time we added thermoplasts. Unfortunately the [thermoplast](https://github.com/Revolutionary-Games/Thrive/tree/thermoplast) branch has an eye-watering amount of merge conflicts. I do think we need to do _something_ with the LAWK setting in 0.5.9, otherwise it’ll be completely useless this release, so I’ll see what I can do about that. Wish me luck.

---

<div class="post-metadata">

**Author:** ![hhyyrylainen](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/hhyyrylainen/32/2243_2.png) [@hhyyrylainen](https://forum.revolutionarygamesstudio.com/u/hhyyrylainen)\
**Post date:** [June 27, 2022, 12:56pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/26 "2022-06-27T12:56:22Z")

</div>

> [@Oliveriver](#):
>
> so I’ll see what I can do about that. Wish me luck.

May your sanity last.

> [@Oliveriver](#):
>
> . Note that these may involve a change to the maximum and minumum values in Constants.cs though.

I think that maybe this restriction should be removed? Only the GUI should probably use the min and max values, unless they truly break the game then I think it’s a good idea to mandate those for the JSON set values as well.

---

<div class="post-metadata">

**Author:** ![Oliveriver](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/oliveriver/32/1962_2.png) [@Oliveriver](https://forum.revolutionarygamesstudio.com/u/Oliveriver)\
**Post date:** [June 27, 2022, 1:42pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/27 "2022-06-27T13:42:56Z")

</div>

> [@hhyyrylainen](#):
>
> I think that maybe this restriction should be removed? Only the GUI should probably use the min and max values, unless they truly break the game then I think it’s a good idea to mandate those for the JSON set values as well.

Well, having a preset with values outside the min/max will cause the GUI to display the wrong information, and since the game builds the settings from the GUI when pressing confirm, they would be overwritten anyway. So it’s a bit more work than just removing the JSON validation.

---

<div class="post-metadata">

**Author:** ![hhyyrylainen](https://thrivedevforum-cdn.b-cdn.net/user_avatar/forum.revolutionarygamesstudio.com/hhyyrylainen/32/2243_2.png) [@hhyyrylainen](https://forum.revolutionarygamesstudio.com/u/hhyyrylainen)\
**Post date:** [June 27, 2022, 1:53pm UTC](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884/28 "2022-06-27T13:53:15Z")

</div>

I see, that makes sense. I guess we’ll just need to live without this for now as it sounds too complicated to make for the benefit it would provide.

[Previous page](https://forum.revolutionarygamesstudio.com/t/implementing-new-game-settings/884.md?page=1)
