You are viewing a potentially older version of this package. View all versions.
ShaosilGaming-FlashlightFix-1.0.2 icon

FlashlightFix

Fixes annoying flashlight bugs like being toggled when it shouldn't be.

Date uploaded 11 months ago
Version 1.0.2
Download link ShaosilGaming-FlashlightFix-1.0.2.zip
Downloads 10435
Dependency string ShaosilGaming-FlashlightFix-1.0.2

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
ShaosilGaming-GeneralImprovements-1.2.0 icon
ShaosilGaming-GeneralImprovements

Fixes many bugs and adds many QoL improvements and optional tweaks. Very configurable.

Preferred version: 1.2.0

README

FlashlightFix

This mod definitely fixes the following issues:

  • The flashlight toggling on or off when being placed in the ship cupboard (and certain other "E" interactions.)
  • A flashlight/helmet light turning off when picking up an additional inactive flashlight.
    • It will now keep the helmet lamp on from the previous flashlight when picking up the new flashlight. This behavior may be disabled in the config.
  • More than one flashlight could have been active at the same time, leading to confusion and out of sync helmet lights when switching between them.
    • This behavior may be disabled in the config.

And probably fixes other, similar problems, like:

  • The flashlight toggling itself off when using/switching items and picking things up
  • The flashlight draining battery when it is not in use
  • And more?

If this mod does not fix the extra described issues, I will do my best to troubleshoot the problem(s) and update it.

Changelog

  • v1.0.2 - Fixing my fixes?
    • Attempting to fix some networking bugs I introduced in the minor fixes from 1.0.1.
    • Consolidated the previous three config settings into one - it was too confusing to mix them.
     
  • v1.0.1 - More fixes
    • Fixed the helmet light (pocketed flashlight) turning off when picking up an additional inactive flashlight.
    • Fixed (modified?) the game allowing multiple flashlights being on at once in the player's inventory.
    • Added a config file for disabling the behavior of the two new fixes.
     
  • v1.0.0 - Initial Release
    • Fixed the main bug where the flashlight would toggle on or off when placing it or interacting with certain items.

CHANGELOG

Changelog

v1.1.2 - Hotfix

  • Fixing a bug that spammed errors and caused several issues with interactions and the hotbar when using the toggle shortcut key in some situations.
  • Fixed other available flashlights not turning on if you discard an active one.

v1.1.1 - More cleanup and bug fixing

  • Removed and simplified more of my code.
  • Attempted to fix all instances of the ever-present "double beam" bug that kept showing up when switching through multiple types of active flashlights.

v1.1.0 - Cleanup and rewrite

  • Rewrote most of the code since it was getting "bandaidy".
    • This also fixed a bug with laser pointers showing double beams in some cases.
  • Removed DLLs from source control (just copy what you need manually from the LethalCompany directory if you build it yourself)

v1.0.7 - Quick fix for the keybind spam

  • Fixed a spammy error message that occurred when ToggleShortcut was set to "None"

v1.0.6 - Fixing laser pointer and adding toggle

  • Fixed the laser pointer acting as a flashlight (it technically is one in the code) when equipping it.
  • Stopped active pocketed flashlights from turning off when activating a laser poiner.
  • Adding a configurable keybind for toggling the flashlight at any time
  • Fixed a bug where discarding an extra active flashlight would not keep the helmet lamp on if you had another flashlight in your inventory.

v1.0.5 - Fixing compatibility with ReservedFlashlightSlot

  • Fixed a minor bug that prevented any flashlights from turning on when holding multiple if the ReservedFlashlightSlot mod was installed.
    • Note that ReservedFlashlightSlot (as of its v1.5.1) still has a bug that turns the 2nd+ flashlight back off when switching back to it. This is their bug, not mine :)

v1.0.4 - Fixing the helmet light and bulb

  • Found and fixed a bug where the helmet light would be on at the same time as the flashlight, but only for non-owners.
  • Found and fixed a bug with the flashlight glass material being set incorrectly upon load.
  • Organizing my code a bit and separating the patch classes into their own files

v1.0.3 - Fixing more of my fixes

  • Using the inverse teleporter while holding an active flashlight kept the beam on the player after being teleported.
  • Other players could not see a secondary flashlight turn on when picking one up for the first time, if the already-held flashlight was active.
  • Updated the logging calls to be debug level instead of info.

v1.0.2 - Fixing my fixes

  • Attempting to fix some networking bugs I introduced in the minor fixes from 1.0.1.
  • Consolidated the previous three config settings into one - it was too confusing to mix them.

v1.0.1 - More fixes

  • Fixed the helmet light (pocketed flashlight) turning off when picking up an additional inactive flashlight.
  • Fixed (modified?) the game allowing multiple flashlights being on at once in the player's inventory.
  • Added a config file for disabling the behavior of the two new fixes.

v1.0.0 - Initial Release

  • Fixed the main bug where the flashlight would toggle on or off when placing it or interacting with certain items.