Skip to content
Neronix17 edited this page Sep 10, 2023 · 1 revision

Welcome to the Tweaks-Galore wiki! Here you'll find the information you need to be able to make your own tweaks using the new TweakDefs. This wiki is written with the expectation you know basic modding XML and patching already, if you don't, you're going to need to head over here first.

Making your own tweaks is very simple for basic ones, but can get very complicated if you choose to do so. Most tweaks are done with a TweakDef, but there's also TweakCategoryDef which can define new pages for the dropdown in the top right of the settings, which can be split into collapsable sections with a TweakSectionDef, and that can be split down even further with a TweakSubSectionDef. Check out the pages for each one for an explanation of how they display visually and example use cases.

Alongside the defs, you'll also need patches to actually do the tweaks, using a couple of new PatchOperations, they're essential to turning the settings value into something you can actually use in the patch with no C# necessary. Again you'll find more info on the right for those.

Finally there are also more advanced options for those of you who can use C# and want to do so, just set TweaksGalore's dll as a reference and you can use TweakWorker or SectionWorker classes to define the settings with C# instead, if you can do this I'm assuming you're more than capable of making your own settings screen anyway but it's there anyway since it's how I built many of the more complicated tweaks and sections.

Clone this wiki locally