You are viewing a potentially older version of this package. View all versions.
CptDristyler-LethalElementsThetaV81-1.3.7 icon

LethalElementsThetaV81

Unofficial rebuild. Five new weather effects (Heatwave, Solar Flare, Snowfall, Blizzard, Toxic Smog). Rebuilt for v81 by Cpt.Dristyler. Fork of LethalElementsTheta (pacoito), original by voxx. CC BY-NC 4.0.

Date uploaded 2 weeks ago
Version 1.3.7
Download link CptDristyler-LethalElementsThetaV81-1.3.7.zip
Downloads 815
Dependency string CptDristyler-LethalElementsThetaV81-1.3.7

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
v0xx-TerraMesh-1.2.0 icon
v0xx-TerraMesh

An API for terrain to mesh conversion and mesh manipulation

Preferred version: 1.2.0
Evaisa-FixPluginTypesSerialization-1.1.4 icon
Evaisa-FixPluginTypesSerialization

Fix custom Serializable structs and such not properly getting deserialized by Unity.

Preferred version: 1.1.4
mrov-WeatherRegistry-0.8.8 icon
mrov-WeatherRegistry

A mod for controlling the game's weather system: scrap multipliers, weather chances, blacklisting and more!

Preferred version: 0.8.8
mrov-MrovLib-0.4.3 icon
mrov-MrovLib

Common methods for my mods.

Preferred version: 0.4.3
Hamunii-AutoHookGenPatcher-1.1.1 icon
Hamunii-AutoHookGenPatcher

Automatically generates MonoMod.RuntimeDetour.HookGen's MMHOOK files during the BepInEx preloader phase.

Preferred version: 1.1.1

README

Lethal Elements Theta (v81 rebuild)

⚠️ Unofficial rebuild for Lethal Company v81, maintained by Cpt.Dristyler. Not affiliated with or endorsed by the original authors. Install this instead of the original, not alongside it. Licensed CC BY-NC 4.0 (see LICENSE).

Adds five weather effects to Lethal Company: Heatwave, Solar Flare, Snowfall, Blizzard, Toxic Smog — each with its own hazards (heat exhaustion, walkie distortion, snow accumulation/frostbite, toxic poisoning).

This rebuild (1.3.7) — by Cpt.Dristyler

  • Fixed HeatstrokeAudioPatch crashing the whole plugin on v81. The transpiler's CodeMatcher pattern no longer matched the updated game IL and the unguarded Advance/CreateLabel threw, aborting Awake() and silently disabling every weather. The transpiler is now fail-safe (skips only the minor heatstroke audio-muffle if the pattern is missing; all weathers keep working).
  • Fixed SnowHindranceTranspiler producing invalid IL on v81. It hardcoded local index 8 in PlayerControllerB.Update; v81 renumbered locals, so the injected div was rejected (InvalidProgramException), crashing init and spamming the log every launch — which also broke other mods patching Update. It now reuses the operand of the matched stloc.s instead of a hardcoded index.
  • Resolved a GetRandomNavMeshPositionInBoxPredictable overload ambiguity (v81 added a second overload).
  • Rebuilt against LethalCompany.GameLibs.Steam 81.0.5; dependency manifest corrected to mrov-WeatherRegistry-0.8.8 + mrov-MrovLib-0.4.3 (the versions it is compiled against). GUID voxx.LethalElementsPlugin unchanged — configs and the asset bundle stay compatible.

Credits

  • Original mod: voxx
  • Theta fork (upstream this is based on): pacoito
  • v81 rebuild & fixes: Cpt.Dristyler

Dependencies

  • BepInEx 5.4.2100
  • Evaisa-FixPluginTypesSerialization 1.1.4
  • Hamunii-AutoHookGenPatcher 1.1.1
  • mrov-MrovLib 0.4.3
  • mrov-WeatherRegistry 0.8.8
  • v0xx-TerraMesh 1.2.0

CHANGELOG

Changelog

Entries below are for this unofficial v81 rebuild by Cpt.Dristyler. Original mod by voxx, Theta fork by pacoito — their upstream release history (1.3.5 and earlier) is not duplicated here.

1.3.7 — v81 rebuild by Cpt.Dristyler

Continues from pacoito's last public LethalElementsTheta 1.3.5. GUID voxx.LethalElementsPlugin unchanged — existing configs and the asset bundle stay compatible. Licensed CC BY-NC 4.0.

  • Fixed HeatstrokeAudioPatch crashing the whole plugin on v81. The CodeMatcher pattern for SoundManager.SetAudioFilters stopped matching the updated game IL; the unguarded Advance/CreateLabel threw inside the transpiler, aborting Awake() and silently disabling every weather with log spam. The transpiler is now fail-safe: if the pattern is not found it logs a warning and leaves SetAudioFilters unmodified, so all weathers keep working (only the minor heatstroke audio-muffle is skipped).
  • Fixed SnowHindranceTranspiler producing invalid IL on v81. It hardcoded local index 8 (ldloc.s 8 / stloc.s 8) in PlayerControllerB.Update; v81 renumbered the method's locals, so the injected div was rejected (InvalidProgramException: Invalid IL code ... div). This crashed plugin init and MonoDetour retried endlessly, dumping the full CIL listing to the log every launch — which also broke every other mod patching PlayerControllerB.Update. The transpiler now reuses the operand of the matched stloc.s instead of a hardcoded index.
  • Resolved a GetRandomNavMeshPositionInBoxPredictable overload ambiguity (v81 added a second overload) by pinning the original via the verticalScale parameter.
  • Rebuilt against LethalCompany.GameLibs.Steam 81.0.5 (was 73.0.0). Dependency manifest corrected to mrov-WeatherRegistry-0.8.8 + mrov-MrovLib-0.4.3 — the versions the plugin is actually compiled against (the upstream manifest pinned the older WeatherRegistry 0.7.5, which made the mod manager downgrade WeatherRegistry profile-wide and break every weather mod's networking).