You are viewing a potentially older version of this package. View all versions.
SylviBlossom-SmartItemSaving-1.2.4 icon

SmartItemSaving

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

Date uploaded 3 months ago
Version 1.2.4
Download link SylviBlossom-SmartItemSaving-1.2.4.zip
Downloads 71105
Dependency string SylviBlossom-SmartItemSaving-1.2.4

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-HookGenPatcher-0.0.5 icon
Evaisa-HookGenPatcher

Generates MonoMod.RuntimeDetour.HookGen's MMHOOK file during the BepInEx preloader phase.

Preferred version: 0.0.5

README

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?

CHANGELOG

v1.2.4

  • Add explicit compatibility with LethalLevelLoader by disabling this mod's item ID fixing if it's detected
  • Add explicit compatibility with SaveItemRotations by disabling this mod's item rotation saving if it's detected

v1.2.3

  • Fix compatibility with LethalPerformance

v1.2.2

  • Attempt to fix item syncing, again

v1.2.1

  • Attempt to fix inconsistent item syncing issue

v1.2.0

  • Add "Fix Item Falling" option, to prevent items from falling through ship furniture on load
  • Add "Save Item Rotation" option, to keep items in the same rotation they were when you saved
  • These only function properly with the "Better Sync Items" option enabled, which makes sure loaded item positions and rotations are properly synced between clients, and also syncs item rotation when a player drops an item

v1.1.0

  • Attempt to prevent corruption of ship unlockables/furniture from ID changes as well

v1.0.1

  • Use HookGenPatcher to fix potential compatibility issues

v1.0.0

  • Initial release