JKConfig
An Addon for JLL to allow Items and Enemies registered with LLL to have configs
模組介紹 作者原文
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.
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.
- 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.
- 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.
- 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.
- Add any Items (ExtendedItems) or Enemies (ExtendedEnemyTypes) that your mod has (or that you want to generate configs for) to the JKConfig file.
- 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.
- 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
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: