Skip to content

Modding Mod Support

Ceterai edited this page Jul 9, 2023 · 3 revisions

Main page: Modding

This page contains technical information on support for other mods.

Currently supported mods:

Tabula Rasa

As said in the description of the mod, some items have mod listed in their recipes as a recipe group.

This includes species clothing and cosmetics added by the mod.

Improved Food Descriptions

The config for IFD is located in a file called /IFD_statuseffects.config. In order to provide support for that mod, we need to patch this file with our data.

To do that, I've made a python script that goes accross the mod directories, finds all status effects, and creates a ready-to-use patch file called /IFD_statuseffects.config.patch.

That's it!

The script can be found here: /IFD_support_script.py

More Planet Info

Similarly to IFD, MPI gets most of it's parameters form a config file. Except this time it's a standard Starbound file called /interface/cockpit/cockpit.config. In MPI, there's already a patch file present, that adds new keys that have the need data in them.

Additionally, this mod (My Enternia) already has it's own patch data for that file.

Thus, we need to create a patch file, that conditionally either applies all MPI-related data + regular planet/weather data if MPI is installed, or only applies reqular planet/weather data if MPI isn't installed.

Sounds complicated, but I was able to get this done with a python script similar to the one used for IFD.

It creates a batch patch file (a patch file consisting of separate lists of batches), where first patch is unconditional (applies always) and has regular pre-made data copied from a file called /interface/cockpit/cockpit.config.init.json, and second patch is conditional, only applies if a specific key is present in cockpit.config that was added there by MPI, and this second patch contains MPI data generated by going around mod directories similar to IFD.

The resulting file is /interface/cockpit/cockpit.config.patch.

The script can be found here: /MPI_support_script.py

True Space

To make it so the planets appear near TS stars, we need to create a conditional patch for the /celestial.config file.

This is because TS, just like MPI, is working off of patches of standard Starbound files and add custom keys to them that are not normally present.

Thankfully, there's no script needed for this since it's easy to do.

The resulting file is /celestial.config.patch.

Clone this wiki locally