FlashlightToolLoader
A tool to dynamically load custom flashlights.
Screenshots 1 screenshots
About this mod Author’s original text
FlashlightToolLoader
A mod designed to be an improved version of hu_luo_bo_ya's Lightutility mod. This mod dynamically assists in the creation of custom flashlight items as opposed to the hardcoding solution done within that mod and vanilla, allowing you to pocket custom flashlights and keep their unique light shining from the player as opposed to it reverting to a vanilla one. (Discord link)
For Players
This mod should be ready to use as is. If you encounter a custom flashlight item that this mod does not work well with, you may blacklist the item in the config. The name that goes there is the name you should see printed in the logs. While this mod is compatible with Lightutility, this mod dissables its functionality to avoid unexpected errors.
For Developers
If you wish to create a compatible flashlight, you shouldn't need to do much. You just have to follow the vanilla format some. Your flashlight needs the flashlight script and the primary light needs to be a child object named "Light". It is recommended that you leave the flashlight's FlashlightTypeID field one of the vanilla values (0-2) incase there is an issue dynamically changing it through this mod as invalid values break the inventory.
Credits
- The developers of this mod's dependencies as it literally could not exist without them.
- Audio Knight on YouTube for a handy starting tutorial.
- Nomnomab's project patcher to access vanilla LC through Unity.
- Those that helped provide information on the modding Discord, mainly through the Dev-general channel on Discord.
- Debugging tools like Imperium and UnityExplorer.
- for hosting this mod as I wouldn't know how to distribute without it.
- hu_luo_bo_ya's Lightutility as the primary inspiration for this project.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: