You are viewing a potentially older version of this package. View all versions.
mr_hat-BasedItemSaving-0.1.2 icon

BasedItemSaving

[v81] Saves item positions, rotations and variants, including items placed on furniture

Date uploaded a week ago
Version 0.1.2
Download link mr_hat-BasedItemSaving-0.1.2.zip
Downloads 1054
Dependency string mr_hat-BasedItemSaving-0.1.2

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305
TeamXiaolan-DawnLib-0.9.25 icon
TeamXiaolan-DawnLib

A modern API for Lethal Company content and all sizes of mods [V81]

Preferred version: 0.9.25
mr_hat-HatLib-0.0.7 icon
mr_hat-HatLib

Library for my mods

Preferred version: 0.0.7

README

BasedItemSaving

Saves the exact position, rotation and variant of every item on the ship. Items placed on furniture also save.

Note that items that don't use the vanilla mesh/material variant fields in their item properties will not save, as they use their own methods to apply variants to items, such as UpturnedVariety.

Item saving in DawnLib's config must be set to false for this mod to work. False means DawnLib's Item Saving IS enabled.

Config

Unlockables can be excluded using their namespaced keys, because some unlockables handle item restoration themselves or don't play well with items reparenting to them. By default, all pocket rooms from Pocket Rooms MelanieMelicious, Beanies Pocket Rooms and MisideItems, and all unlockables from Melanie Crafting Core and Farming and Cooking Mod MelanieMelicious are blacklisted by default.

Recommendation

Credits

  • XuXiaolan and contributors for creating DawnLib.

CHANGELOG

0.1.4

  • Added saving for TZP fuel
  • Added saving for Spray Paint fuel
  • Added saving for battery charge on all items
  • Adjusted some logging

0.1.3

  • Fixed an NRE with item mesh variants for items registered through non-standard means

0.1.2

  • Animated items now wait until animators stop and wait 0.1 seconds before restoring

0.1.1

  • Now sends a snapshot of current item position and rotations to clients as they join

0.1.0

  • Removed Matty Fixes patch and instead restore item saves 0.5 seconds later rather than 4 frames later after load

0.0.9

  • Rebuilt on Release rather than Debug, thanks Scandal for the heads up

0.0.8

  • Changed compatibility patch for Matty Fixes to affect every item with an animator instead
    • To avoid this affecting items that spawn in the facility, this now also checks if the item is in the ship beforehand

0.0.7

  • Added a compatibility patch to Matty Fixes to prevent BeltBag slowly rising vertically every save load

0.0.6

  • Fixed items floating mid air if someone was holding an item during a save

0.0.5

  • Fixed items not saving their variants if they were saved in the accursed cruiser

0.0.4

  • Now saves item variants
    • Note that this is only for items that use the vanilla mesh/material variants in their item properties

0.0.3

  • Item positions now save when placing any unlockable in orbit to prevent desync for late joiners before a full autosave is ran

0.0.2

  • Fixed BeltBag contents saving lightyears away from the ship

0.0.1

  • Release