You are viewing a potentially older version of this package. View all versions.
Crafty-LunarConfig-0.2.0 icon

LunarConfig

An all-in-one configuration solution for changing almost anything about almost everything!

Date uploaded a week ago
Version 0.2.0
Download link Crafty-LunarConfig-0.2.0.zip
Downloads 760
Dependency string Crafty-LunarConfig-0.2.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2304 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2304
TeamXiaolan-DawnLib-0.5.12 icon
TeamXiaolan-DawnLib

A modern API for Lethal Company content and all sizes of mods

Preferred version: 0.5.12

README

Lunar Config is an all-in-one configuration mod for Lethal Company. Lunar Config currently allows you to change various properties around items, enemies, moons, and map objects (traps) with more planned in the future. It should register almost anything from any mod and vanilla, it does require DawnLib and BepInEx in order to function!).

Notice!

The configuration files used by Lunar Config NEED to be shared between all clients playing in a lobby, differences are very prone to causing desyncs!

Also know that Lunar Config can be overwritten by other mods configuration, so if you are experiencing issues with your configurations not working correctly, please check any mods that may be potentially overwriting Lunar Config.

Changing some settings may also cause issues by nature, like the stunability of enemies, so keep this in mind when meddling with certain settings.

Usage

After installing the mod, if you launch the game and load into a lobby, several configuration files should be generated. If you change anything in the 'LunarConfigCentral' file you will need to repeat this process for the configuration to refresh.

Any setting you want to change requires you to enable the "Configure Content" value in the given entry, otherwise the changes will not be acknowledged. I'm not going to go through each setting here as they are for the most part self-explanatory, but you can always ask questions in the mod's discord thread.

Porting Pre-v0.2.0

Before updating LunarConfig to v0.2.0, take a copy of your configuration files for safekeeping!

As the formatting for configuration files changed with v0.2.0, Lunar includes a system to port files from older versions.

Before loading your game on v0.2.0+ of Lunar, turn off "Clear Orphaned Entries" in LunarConfigCentral.cfg! Then, install a v0.2.0+ version of LunarConfig and load into a lobby. In LunarConfigCentral, there should now be an option to "Enable Backwards Compat", turn it on. Once this is done, you should be able to load into a lobby again and most your settings will transfer over (exceptions detailed below). Be sure to turn it off after running the game once, or your old files will continue to overwrite any changes!

Some settings that will NOT transfer over include:

  • Anything in LunarConfigDungeons.cfg
  • Anything in LunarConfigMapObjects.cfg
  • Tags on moons

Disabling Settings

Lunar Config includes several configuration settings, and it's unlikely you'll use all of them; in order to disable changing a setting to save on performance or prevent changing something you don't want to touch, you have three options:

Entire File
You can either disable an entire configuration file if you don't want to change anything about any of a certain type of object, for instance you can disable modifying all enemies. With this option, the configuration file may still appear but it will not be refreshed and none of it's settings will be applied.

Specific Object
If you don't want to change anything about a specific object, you can leave the "Configure Content" value of the entry disabled. This setting comes automatically disabled on all entries, requiring you to enable it if you want to change something.

Setting Type
In the 'LunarConfigCentral' file, you should find entries relating to all the configuration files you have enabled, there you can disable a certain type of setting and it will not be shown in any of that file's configuration entries or touched by the mod.

Help and Issues

If you need any help you are free to ask in this mod's thread in the Lethal Company Modding Discord server. You can also report issues there, or in the mod's GitHub Page. If you have any questions, need any help, encounter any issues, or even have any suggestions, don't hesitate to reach out using one of those!

Upcoming?

Hopefully as I have time I intend to add some of the following:

  • Cleaner and more optimized code (please don't look at my mess now).
  • Injection and modification of any setting based on the current moon, tags, current interior, or current weather.

Credits

  • The Lethal Company Modding Discord, essentially enabling me to make this mod, as I likely couldn't have figured it out without some of the people there.
  • LLL, LL, and CRLib, for the most part having easy to access systems regarding objects (and of course making this mod possible in the first place by having custom content to configure).

CHANGELOG

Version 0.2.2

Fixes

  • Added a warning when a tag is improperly formatted (as opposed to just failing to register the moon).

Version 0.2.1

Fixes

  • Fixed almost anything breaking if you had invalid names in the scrap, enemy, or dungeon fields on moon settings.
  • Fixed some issues around item configs not working if you didn't enable node text editing.

Version 0.2.0 - DAWNLIB PORT

Features

  • LunarConfig no longer requires any of it's former dependencies, only DawnLib (and BepinEx I guess).
  • Cleaner code (keyword '-er').
  • DawnLib content, and non-library affiliated content can now be configured with LunarConfig.
  • Aliases used to refer to anything in LunarConfig can now be changed.
  • Enemies can now have their bestiary text and keywords configured.
  • Items can now be configured to be sold in the shop, and have the text of shop-related nodes configured.
  • Some more map object settings.
  • Map object curves are now in LunarConfigMoons.
  • Map objects can now spawn where they shouldn't, however map objects that do not have a NetworkObject (usually the vanilla outside objects) are not able to spawn inside.
  • Tags are now based on DawnLib, not LLL (might cause some things not to work while libraries port).
  • As config files changed, a way was added to port old configurations, SEE README BEFORE ATTEMPTING (this also removed porting from CentralConfig).
  • Added some notices to config fields that require other mods to work.

Fixes

  • Mostly just issues caused by Lunar not being DawnLib-related.

Version 0.1.13

Fixes

  • Fixed an issue that breaks curve configurations on cultures that use commas as decimal points.

Version 0.1.12

Fixes

  • Fixed ANOTHER issue where dungeon configuration just wouldn't work.

Version 0.1.11

Fixes

  • Fixed an issue where dungeon configuration just wouldn't work.

Version 0.1.10

Fixes

  • Fixed an issue where disabling configuring moons would softlock the game.

Version 0.1.9

Fixes

  • Fixed an issue where changing the interior multiplier would cause desyncs in interiors. (Finally!)

Version 0.1.8

Features

  • Added various settings around scan nodes for items and enemies.

Fixes

  • Fixed an issue where configuration would not generate if an enemy did not have an EnemyAI.

Version 0.1.7

Features

  • Added group spawn count value for enemies.

Fixes

  • Fixed the changelog.
  • Fixed an issue where trying to configure advanced dungeon properties would not work.

Version 0.1.6

Fixes

  • Moved the 'warning' to the correct setting after some further issue diagnosing.

Version 0.1.5

Features

  • Added more advanced dungeon configuration options.

Fixes

  • Added a warning to configuring dungeon types due to reported desyncs (will fix whenever I find out the issue).

Version 0.1.4

Fixes

  • Fixed dungeon configuration not recognizing the internal name of a dungeon flow.

Version 0.1.3

Features

  • Added an option to initialize later than usual, allowing Lunar Config to port settings from CentralConfig
  • Added an option to clear orphaned config entries

Version 0.1.2

Features

  • Added credits worth value for shop items
  • Added normalized time to leave for enemies

Fixes

  • Fixed an error that would occur if a moon had certain characters in it's name

Version 0.1.1

  • Removed accidental dependency on LobbyCompatability (oops)

Version 0.1.0

  • Initial Release