SmartItemSaving

v1.2.4·Updated 2024-08-29

Improves how items on the ship save, helping against ID changes and properly keeping positions/rotations

About this mod Author’s original text

SmartItemSaving

Improves how items save, attempting to prevent updating/removing/adding mods from replacing other modded items on the ship, and making items correctly save their positions and rotations.

This requires you to both save and load using this mod! If you plan to install this mod to do modpack changes, first do a launch and save with this mod installed before any modpack changes.

For fixing items falling through the floor and item rotation saving, all clients must have the mod for them to appear the same when joining.

If you encounter any problems please report the bug either to sylviblossom on the Lethal Company Modding discord or open an issue.

See also SaveItemRotations for just the item rotation saving feature of this mod.

Current features

  • Prevent corruption of items in ship when items are added/removed by mods
  • Prevent corruption of ship unlockables/furniture too
  • Prevent items falling through the floor on load
  • Save item rotation
  • Create backup when save is loaded (only one)

Planned features

  • Resolve name conflicts for ship unlockables
  • Maybe Increase item save limit to 999 (configurable)

Mod Compatibility

Compatible

The following mods share a feature of this mod and have been tested to be compatible:

-

LethalLevelLoader

  • Contains a similar item ID fixing system which has additional checks with items registered for LethalLevelLoader itself.
  • This mod disables its own item ID fixing when LethalLevelLoader is detected, unless ForceHandleFixItemIds is enabled.

-

SaveItemRotations

  • A separate smaller mod by me which includes just the system for saving item rotations and syncing them.
  • This mod disables its own item rotation saving when SaveItemRotations is detected, unless ForceHandleSaveItemRotation is enabled.

Incompatible

The following mods are known to conflict with a feature of this mod:

-

Remnants

  • Completely replaces how item saving works, making it incompatible with this mod's item ID fixing and potentially other features.

Unknown Compatibility

The following mods or mod config options may conflict with a feature of this mod:

-

CupboardFix

  • Does the same thing as this mod's FixItemFalling option.
  • Compatibility not tested, but may conflict with this mod's SaveItemRotation option.

-

GeneralImprovements (config options)

  • FixItemsFallingThrough option
  • Does the same thing as this mod's FixItemFalling option.
  • Compatibility not tested, but should be fine.
  • FixItemsLoadingSameRotation option
  • Does the same thing as this mod's SaveItemRotation option.
  • Compatibility not tested, but should be fine.

-

LethalLib (config options)

  • EnableItemSaveFix option
  • Does a similar thing as this mod's FixItemIds option.
  • Compatible, but redundant.
  • May cause save corruption?

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPackEvaisa-HookGenPatcher

File & checksum

Filename
SmartItemSaving-1.2.4.zip
File size
72.7 KiB