Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
LethalSnapReborn
Polaroid camera: photograph monsters, rarer = more money. Rebuilt for LC v81 (Netcode 1.12). Based on LethalSnap by SweetOnion & team.
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 staticNetworkManager.__rpc_func_tablestill exists in 1.12 (so old-style registration succeeds silently) but is never read anymore — hence the persistentKeyNotFoundExceptionno 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 chainingbase.__initializeRpcs()so GrabbableObject's own RPCs keep registering. This is exactly what a current UnityNetcodePatcher emits at build time.
- Lethal Company v81 ships Netcode for GameObjects 1.12, which dispatches RPCs from
- 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.