Profile image

Mod Settings

Dev HellFireKoder  2.7 years ago
14,106 downloads
Version 0.6 No Tags

Supplies an interface for modders to create their own settings pages.
To use, just install the mod, and any other mods which use it.
Note: there may be warnings that a mod "tried to load assembly" something something, do not worry about them, nothing is broken.


Thanks to @ElGatoVolador for the pretty thumbnail!


MODDER Instructions

To use this mod in one of your mods:

First, install the mod, it handles the settings creation, saving, loading, etc. in-game, so you can't test without it.

Then download the Mod Settings.zip, and unzip the files somewhere (or just unzip individual files as you need them).
SPModSettings.dll is the shared assembly you will use to communicate with the mod, it goes in your mod project Assets folder (anywhere you like), then find it in the Unity project explorer, select it, and on the Mod Builder window hit "Save Selected Assets" (this ensures that your mod won't fail to load if Mod Settings mod isn't installed and loaded before it).

SPModSettings.xml is the code documentation, so you can have intellisense comments for what functions and variables do/are, it goes in the same folder as SPModSettings.dll, but do NOT save it with mod builder (not that it would break anything, but it would pointlessly increase the size of your mod).

To get started, you'll need some settings code, you can use the code at the end of my mod settings reveal video, or the source code for the Adjustable Gravity mod on GitHub as a guide (be sure to have using SPModSettings at the top of your settings code).
This script must be placed on a Persistent Object, a GameObject with a PersistentObject script from the mod tools, which you then save with the mod tools.

An easy pattern (though not necessarily "good practice"...) to access the settings in another script is to make the output variable public static, so for example the Adjustable Gravity script could have public static Vector3 GravityVector, which can then be accessed from any script like so: GravityManager.GravityVector


  • Log in to leave a comment
  • Profile image
    1,730 JumpingJack

    Can u update ur mod to work with the latest version of simple planes

    +1 26 days ago
  • Profile image
    1,730 JumpingJack

    I'm on Android. This mod gives an error and doesn't let me use it and other mods are usable also

    26 days ago
  • Profile image

    Can this be added to the base game in 1.9?

    6 months ago
  • Profile image

    @Yeargear noice

    9 months ago
  • Profile image

    I translated it @Yeargear

    10 months ago
  • Profile image

    @Nerfenthusiast ?

    10 months ago
  • Profile image

    wow @Yeargear

    11 months ago
  • Profile image
    180 WingMan

    It works

    1.3 years ago
  • Profile image
    180 WingMan

    @squideater56 nvm I guess you just have to have another mod

    1.3 years ago
  • Profile image
    180 WingMan

    @squideater56 same here

    1.3 years ago
  • Profile image
    2,373 squideater56

    Its not working on my phone, it wont show up when i open it up in sp

    1.4 years ago
  • Profile image

    01001110 01101111 01101001 01100011 01100101
    use translator to under stand

    +2 1.6 years ago
  • Profile image

    @Mylife182 He's using Unity, just like SP itself.

    1.6 years ago
  • Profile image

    Is there a code program your using?

    +2 1.6 years ago
  • Profile image
    1,930 Davisplanez

    Cool!

    +1 1.7 years ago
  • Profile image

    我都不会用

    2.0 years ago
  • Profile image

    @AirPlaneBrosTM 知道了@AirPlaneBrosTM

    2.0 years ago
  • Profile image

    @xiaobai1314
    我不是指英语 语言, 我的意思是 用简单的话来解释

    +1 2.0 years ago
  • Profile image

    还有发布的东西在哪里看?我想发布我造的那巨轮。红色地球V

    2.0 years ago
  • Profile image

    谁能告诉我这个有什么用?

    2.0 years ago
  • Profile image

    @AirPlaneBrosTM 最好不要用英文,我看不懂。

    2.0 years ago
  • Profile image
    144k Tully2001

    Is good mod

    +1 2.5 years ago
  • Profile image

    @FlyingFanatic 01001000 01100101 01101000 00101100 00100000 01010100 01101000 01100001 01101110 01101011 01110011 00100001 :)

    +1 2.6 years ago
  • Profile image

    @AirPlaneBrosTM

    To use, just install the mod, and any other mods which use it.
    Note: there may be warnings that a mod "tried to load assembly" something something, do not worry about them, nothing is broken.

    2.6 years ago
  • Profile image

    Can someone give the instructions in English please ?

    2.6 years ago
  • Log in to see more comments