You are viewing a potentially older version of this package. View all versions.
rectorado-JKConfig-1.0.1 icon

JKConfig

An Addon for JLL to allow Items and Enemies registered with LLL to have configs

Date uploaded a day ago
Version 1.0.1
Download link rectorado-JKConfig-1.0.1.zip
Downloads 2398
Dependency string rectorado-JKConfig-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100
Evaisa-HookGenPatcher-0.0.5 icon
Evaisa-HookGenPatcher

Generates MonoMod.RuntimeDetour.HookGen's MMHOOK file during the BepInEx preloader phase.

Preferred version: 0.0.5
IAmBatby-LethalLevelLoader-1.6.0 icon
IAmBatby-LethalLevelLoader

A Custom API to support the manual and dynamic integration of all forms of custom content in Lethal Company. (v73 Compatible)

Preferred version: 1.6.0
JacobG5-JLL-1.9.9 icon
JacobG5-JLL

Jacob's Lethal Libraries - For Jacob's Mods

Preferred version: 1.9.9

README

JKConfig

JKConfig is a JLL addon that allows modders to add the ability to config Items and Enemies registered in LethalLevelLoader.

Keep in mind that this addon alone will NOT generate scrap/enemy configs by itself, Enemy and Item modders need to add this addon alongside JLL on their own (Information on how to do it below). Also this only works if your Items or Enemies are registered with LLL (LethalLevelLoader)

If you'd like to support me, check out my ko-fi. https://ko-fi.com/itiskenji.

Information for modders: How to I add this to my project?

If you're familiar with how to install libraries and APIs it should be fairly simple.

  1. Add JKConfig and JLL to your project by downloading both packages manually, and dropping the corresponding DLLs into your project, in the same folder where you have any other libraries (LethalLevelLoader, ManuLib,...), It does not matter where as long as you know where it's located, for convenience sake.

  2. Once you have both, turn off Validate References on the 3 JLL dll files. It will take a bit for Unity to gather the scripts.

  3. Go to where your mod is located (or a folder of your convenience), Right Click > Create > JLL > Addon > JKConfig, that should create the JKConfig file.

  4. Add any Items (ExtendedItems) or Enemies (ExtendedEnemyTypes) that your mod has (or that you want to generate configs for) to the JKConfig file.

  5. After that, create a JLLMod file Right Click > Create > JLL > JLLMod , inside that file set the Mod Author and Mod Name. Make sure that they are the same as the ones on your LethalLevelLoader ExtendedMod or it will not work.

  6. On the Addons part of the JLLMod file, add the JKConfig file. Bundle both your JLLMod and JKConfigFile in the same .lethalbundle as your mod and you should be good to go! Keep in mind that your mod needs to depend on JKConfig for it to work.

Editable attributes

For the moment, the editable fields that will generate for each are:

Items

  • Min Value: The minimum value for the item. In-game it'll show the value multiplied by 0.4
  • Max Value: The maximum value for the item. In-game it'll show the value multiplied by 0.4
  • Weight: The weight for the item.
  • Two Handed: Indicates if the item is two-handed.
  • Is Conductive: Indicates if the item is conductive.
  • Item injection settings: Adds the Item to a Level's randomisation pool based on different matching properties.

Enemies

  • Power Level: The power level for the enemy.
  • Max Count: The maximum count for the enemy.
  • Enemy injection settings: Adds the Enemy to a Level's randomisation pool based on different matching properties.

Please if you want to contact me with some feedback, bugs or suggestions my discord is isma_kenji or you can go to github. You can also find this mod's thread in the Lethal Company Modding Discord server.

Credits:

Kenji: The idea man, the config code part of the configs.

JacobG5: Creating JLL and helping with the setup (like most of it basically)

Mrov: Helping me debug and adding some fixes to the code for it to work

Ko-Fi

CHANGELOG

1.0.1

  • Added nullsafety for the ItemContentConfig so it wont error generating if there are missing LevelMatchingProperties

1.0.0

  • First Release