You are viewing a potentially older version of this package. View all versions.
Sniper1_1-FlashlightToolLoader-1.0.0 icon

FlashlightToolLoader

A tool to dynamically load custom flashlights.

Date uploaded 2 months ago
Version 1.0.0
Download link Sniper1_1-FlashlightToolLoader-1.0.0.zip
Downloads 409
Dependency string Sniper1_1-FlashlightToolLoader-1.0.0

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

README

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, it is recommended to blacklist the flashlights that it creates as this could lead to 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. Imgur

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.
  • Thunderstore 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.

CHANGELOG


Version 1.0.2

  • Now blocks Lightutility from running to avoid issuess. PLEASE REMOVE LIGHTUTILITY LIGHTS FROM THIS MOD'S BLACKLIST AS I HANDLE THEM NOW!

Version 1.0.1

  • Added debugging logs to print the indexes lights are created at on the player.

Version 1.0.0

  • Initial release.