Jump to content

How to mod the difficulty presets?


Yemo

Recommended Posts

Seeing lots of people being unhappy with the difficulty presets, I wonder if it is possible to mod them?

 

Eg easy is selected by extremely few people, the "hard" difficulties mainly make it grindier, not harder, and so on...

Link to comment
Share on other sites

It would also be incredibly useful to be able to set "PartUpgradesInSandbox = True" so that nearly every single person who DLs a mod with the new upgrade functionality won't post a support question asking why the mod doesn't work because they haven't set that box in Sandbox mode.

Link to comment
Share on other sites

3 hours ago, tater said:

It would also be incredibly useful to be able to set "PartUpgradesInSandbox = True" so that nearly every single person who DLs a mod with the new upgrade functionality won't post a support question asking why the mod doesn't work because they haven't set that box in Sandbox mode.

Yes, or like all the people who install remote tech mod expecting it to replace stock commnet, only to find out that they have to deactivate commnet manually at game start...

Link to comment
Share on other sites

Looks like there is access under GameParameteres.Difficulty

https://kerbalspaceprogram.com/api/class_game_parameters.html#a94af609695db2ae6bdcb1523d615539e

The only problem is, I don't see all of them under the DifficultyParams data type.  ComNet is there but Part Upgrades are not.

https://kerbalspaceprogram.com/api/class_game_parameters_1_1_difficulty_params.html

EDIT: Oh, here we go, there are a few more.  CareerParams has most of the others.  There are a few more as well, like Flight and Editor parameters.

https://kerbalspaceprogram.com/api/class_game_parameters_1_1_career_params.html

Still looking for PartUpgrades.

Found it, GameParameters.AdvanceParams

https://kerbalspaceprogram.com/api/class_game_parameters_1_1_advanced_params.html#a9a42be42cc2fd9d58440f87e76982c10

 

I think this is possible.  I'm still looking at how to change them.  I can receive from one of the defined presets.

Edited by Alshain
Link to comment
Share on other sites

It's documented here

Any questions fire away.

if the goal is to have a Modlet to change the upgrade setting for sandbox that is a very simple thing. I can knock one up if there's enough demand for it.

Edited by JPLRepo
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...