You are viewing a potentially older version of this package. View all versions.
9G_TEAM-LethalSnapReborn-1.0.1 icon

LethalSnapReborn

Polaroid camera: photograph monsters, rarer = more money. Rebuilt for LC v81 (Netcode 1.12). Based on LethalSnap by SweetOnion & team.

Date uploaded 3 days ago
Version 1.0.1
Download link 9G_TEAM-LethalSnapReborn-1.0.1.zip
Downloads 311
Dependency string 9G_TEAM-LethalSnapReborn-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-LethalLib-0.13.2 icon
Evaisa-LethalLib

Personal modding tools for Lethal Company

Preferred version: 0.13.2

README

LethalSnap Reborn 1.0.1

Polaroid camera for Lethal Company v81: photograph monsters and sell the pictures — the rarer the monster, the higher the value. Pin pictures to surfaces; images are saved in <game>/PolaroidPictures.

Rebuilt edition of LethalSnap (assets, gameplay and 3D model by SweetOnion, Balroguette, Apoal & team — all credit to them), updated for the Netcode-for-GameObjects 1.12 RPC mechanism used by game v81 (per-type __initializeRpcs() registration).

Install

Remove/disable the original LethalSnap first. Then import this zip via r2modman / Thunderstore Mod Manager ("Import local mod"), or copy the LethalSnapReborn folder into BepInEx/plugins/. Keep polaroiditemmod next to the DLL.

Verify in BepInEx/LogOutput.log: you should see LethalSnapReborn 1.0.1 loading.

Config (BepInEx/config/LethalSnapReborn.cfg, created on first launch)

Pictures per full battery; per-monster picture values (name:value,...); default value for unlisted/modded monsters; global value multiplier; store availability & price; loot rarity; flash angle/intensity/range/duration; shot cooldown; picture & screen resolution; monster flash reactions on/off; pin-to-players toggle; debug mode.

CHANGELOG

Changelog

  • 1.0.1 — THE v81 fix (root cause found & confirmed against Unity's NGO 1.12.0 sources):
    • Lethal Company v81 ships Netcode for GameObjects 1.12, which dispatches RPCs from NetworkBehaviour.__rpc_func_table[GetType()][hash] — a per-type table populated only by each behaviour's virtual __initializeRpcs() override. The legacy static NetworkManager.__rpc_func_table still exists in 1.12 (so old-style registration succeeds silently) but is never read anymore — hence the persistent KeyNotFoundException no matter how the legacy registration was invoked.
    • Added generated-equivalent __initializeRpcs() overrides to PolaroidItem (6 RPCs) and PictureItem (4 RPCs), each calling __registerRpc(hash, handler, name) with the new NetworkBehaviour.RpcReceiveHandler delegate and chaining base.__initializeRpcs() so GrabbableObject's own RPCs keep registering. This is exactly what a current UnityNetcodePatcher emits at build time.
  • 1.0.0 (LethalSnap Reborn):
    • New standalone identity (GUID/assembly/harmony id/config/RPC channel ids) — cannot conflict with or be shadowed by an old LethalSnap install.
    • Static-cctor + module-init RPC registration (legacy table, kept as harmless compat), idempotent registration, fragile reflection init removed from Awake (audio + Harmony patches always load), PlayOneShot hardened.
    • Gameplay, balance, assets and save format identical to LethalSnap 1.5.7.