frank_da_melon-Terminal_Fixes icon

Terminal Fixes

Moon formatting, store scrolling, and corrected client store sync startup for StoreRotationConfig 3.0.0. Multiplayer validation pending.

Last updated 3 weeks ago
Total downloads 758
Total rating 0 
Categories Mods BepInEx Client-side Bug Fixes AI Generated
Dependency string frank_da_melon-Terminal_Fixes-1.0.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

AboveFire-ShowMoonPriceLLL-1.1.3 icon
AboveFire-ShowMoonPriceLLL

A mod to show moon prices and risk rating in moons menu

Preferred version: 1.1.3
BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
pacoito-StoreRotationConfig-3.0.0 icon
pacoito-StoreRotationConfig

[v81] Configure the number of items in each store rotation, show them all, remove purchases, sort them, and/or enable sales for them. Also includes a fix for the terminal scrolling too far and skipping lines.

Preferred version: 3.0.0

README

Terminal Fixes

Three companion patches for Lethal Company, bundled so friends can install them through Thunderstore Mod Manager or r2modman.

Version 1.0.2 corrects Store Client Sync Fix startup. The previous version incorrectly required an interface that Unity NetworkList does not implement, so the repair never activated. This build passes regression tests and binding checks against the installed game and StoreRotationConfig assemblies. Multiplayer validation is still pending. The two original fixes are unchanged.

Included fixes

  • ShowMoonPrice Formatting Fix 1.0.0: prevents invalid padding for long or formatted risk labels in ShowMoonPriceLLL. Removes rich-text tags, normalizes whitespace, and abbreviates labels longer than eight characters. Actual moon risk values and prices are unchanged.
  • Store Scroll Activation Fix 1.0.0: activates StoreRotationConfig's existing mouse-wheel correction when it has not registered itself. Uses its existing relativeScroll and linesToScroll settings. This does not add a smooth animation.
  • Store Client Sync Fix 1.0.1: before a connected client opens the terminal or processes its text, rebuilds the rotating store display from the host's current StoreRotationConfig list. Retries item lookups that failed during joining and keeps null entries out of the display. Leaves host stock choices, purchase logic, prices, and discounts intact.

Requirements

Requires ShowMoonPriceLLL 1.1.3, StoreRotationConfig 3.0.0, and BepInEx. Dependencies are installed by the manager. The client sync repair only activates for StoreRotationConfig assembly version 3.0.0.0; it logs a warning and declines to patch other versions.

No configuration overrides are included. Keep your existing moon display and store settings. For one-line scrolling, use relativeScroll = true and linesToScroll = 1 in StoreRotationConfig.

Installation and sharing

  1. Close the game and update frank_da_melon-Terminal_Fixes to 1.0.2 in the mod manager.
  2. Each affected friend must also install/update this package. Installing on the host alone cannot repair another player's terminal.
  3. Export a new profile code after the update. Friends importing that code receive all three DLLs automatically; no separate extraction is needed.

The package installs ShowMoonPriceFormattingFix.dll, StoreScrollActivationFix.dll, and StoreClientSyncFix.dll together. Keep these three files. If you previously installed extra copies manually in other plugin folders, move those duplicate copies to a backup outside BepInEx/plugins while the game is closed.

What the new repair addresses

In the originating pack, a client logged an unresolved store unlockable ID during joining. StoreRotationConfig's client setup could append a null entry, and DawnLib subsequently threw an exception while processing that entry in the store page. The new patch reconstructs the client display using the current local unlockable registry before text processing.

An unresolved entry is skipped for that display only and retried on later refreshes. It is not removed from the host's network list. If the client actually lacks content or has different content settings, a repair cannot manufacture those items or reliably correct different item-ID assignments. All players still need matching content and settings.

Verification and limitations

The original two fixes were tested in-game in the originating modpack. Their DLLs remain byte-for-byte identical to 1.0.0.

The new fix compiles against the installed v81 game and StoreRotationConfig 3.0.0. Automated logic tests cover delayed item recovery, preserving host IDs and ordering, removing null display entries, detecting unchanged lists, handling invalid IDs and missing shop nodes, and clearing stale stock when the host list is empty. Additional tests reproduce the old interface mismatch and verify that the replacement DLL binds the real NetworkList Count/indexer, rotation field, terminal methods, and prefix signature. These checks do not execute Unity gameplay. Multiplayer validation remains pending.

Look for Client store repair active in the log. When a repair is needed, Rebuilt client store reports how many entries resolved. Persistent Unresolved host store IDs requires checking content/configuration differences. Compare the host's and client's store, buy one formerly missing item, and keep the client's log if anything is still missing.

This package does not repair Tolian Interiors, SoftMask errors, or unrelated networking, weapon registration, or audio problems.

Credits and disclosure

Created with OpenAI Codex; significant code is AI-generated. ShowMoonPriceLLL is by AboveFire, StoreRotationConfig is by pacoito, and DawnLib is by TeamXiaolan. This is an unofficial companion package. Dependency mods are not redistributed here.