Details

Last Updated
yesterday
First Uploaded
yesterday
Downloads
33
Likes
0
Size
114KB
Dependency string
4902-Save_Utils-1.0.0
Dependants

Save related stuff. all features are client-sided and will work even if you're playing with other players that don't have this mod

  • Keybinds
    • adds 2 configurable keybinds and two modes that control what the keybinds do when triggered. first mode makes the keybinds leave with or without saving. second mode makes keybind_one enable/disable (toggle) saving entirely (which affects saving when leaving the lobby and the ship auto saving after a round) and makes keybind_two leave the lobby.
    • displays a cancel or confirm screen when pressing a keybind to leave the lobby, with the text showing if you're leaving with or without saving.
  • Backups
    • creates backups of LCSaveFile and LCGeneralSaveData automatically before loading/saving a save, with a configurable maximum number of backups per save. when a backup being created would exceed the maximum number then the earliest/lowest backup for that save file will be deleted after the new backup is created.
    • the original LCSaveFile/LCGeneralSaveData files are only copied and won't be modified/deleted in any way by this mod. the only files that this mod can delete are Save Utils backup files such as "LCSaveFile1_SaveUtilsBackup-49". no other files will be modified/deleted.
    • to restore a backup, remove the original file from the folder, then rename the backup file and remove "_SaveUtilsBackup-#". for example rename "LCSaveFile1_SaveUtilsBackup-49" to "LCSaveFile1", or rename "LCGeneralSaveData_SaveUtilsBackup-94" to "LCGeneralSaveData".
  • Misc
    • adds a config for disabling the splash screen shown before selecting online/lan.
    • adds a config to remove calls to ES3.DeleteFile() that can delete save files when opening the game.

Configs

[1/KEYBINDS]

## [Keybind mode]
## controls what the keybinds do when triggered or disables them.
## SaveGame() gets called by Disconnect() and AutoSaveShipData() even if you're not the host or you disconnected during a round, however in either case not much is actually saved.
## 1 = keybind_one will disconnect With SaveGame() being called, keybind_two will disconnect Without SaveGame() being called.
## 2 = keybind_one will Enable or Disable (toggle) SaveGame() from being called by Disconnect() (leaving the lobby through a keybind or pause menu) and AutoSaveShipData() (end of round ship auto save), keybind_two will disconnect. the toggle value is displayed when triggering keybind_one, and will only be changed when toggled again or by restarting lethal company.
## 3 = disables keybinds.
# Default value: 1

## [Keybind one]
## list of keyboard keys that need to be pressed/held to trigger the keybind (1-10).
## the first (left most) key in the list is the only key that needs to be pressed, while all other keys need to be held.
## example keybinds: "Enter,K,CapsLock" "Enter,W,S,LeftCtrl" "Backquote". list of valid keys: https://web.archive.org/web/20250305185947/https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.InputSystem.Key.html
# Default value: None,None

## [Keybind two]
## list of keyboard keys that need to be pressed/held to trigger the keybind (1-10).
## the first (left most) key in the list is the only key that needs to be pressed, while all other keys need to be held.
## example keybinds: "Enter,K,CapsLock" "Enter,W,S,LeftCtrl" "Backquote". list of valid keys: https://web.archive.org/web/20250305185947/https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.InputSystem.Key.html
# Default value: None,None

## [Keybind prompt]
## displays a cancel or confirm screen when pressing a keybind to leave the lobby, with the text showing if you're leaving with or without saving.
# Default value: true

[2/BACKUPS]

## [Backup mode]
## controls whether backups are created before loading, before saving, both, or disabled. backups won't be created while playing in lan.
## 1 = backups are only created before loading the save file. (before the SampleSceneRelay scene is loaded).
## 2 = backups are only created at the start of SaveGame() (which is called when leaving the lobby or when the ship auto saves after a round). LCSaveFile backup will be skipped if you're not the host. if a keybind skips calling SaveGame() then the backups won't be made.
## 3 = backups are created before loading and before saving.
## 4 = disable backups.
# Default value: 3

## [Backup number]
## maximum number of backups per save file (1-100).
## when a backup being created would exceed the maximum number then the earliest/lowest backup for that save file will be deleted after the new backup is created.
## the only files that can be deleted are files named "(currentSaveFileName/generalSaveDataName)_SaveUtilsBackup-#". anything else won't be considered a backup file.
## for example renaming "LCSaveFile1_SaveUtilsBackup-49" to "LCSaveFile1_SaveUtilsBackup-49test" will make it not count towards the maximum number of backups for LCSaveFile1 and won't be deleted.
# Default value: 3

## [Backup general save data]
## whether a backup of LCGeneralSaveData is created after a LCSaveFile backup would be created.
## LCGeneralSaveData gets saved to when you're the host and when you're not the host (for data like player rank xp, settings, etc), so a backup will also be made when you're not the host.
# Default value: true

[3/MISC]

## [Prevent save deletion]
## removes calls to ES3.DeleteFile() (notably when an error happens while comparing the game version of the save file to the current version). except for when manually selecting delete save file in the main menu.
# Default value: true

## [Disable splash screen]
## disables the splash screen shown before selecting online/lan.
# Default value: false

## [Debugging]
## 1 = enables logging keybind update conditions (every second), keybind config values.
## 2 = enables logging backup file location directory path, each file name in the directory/folder, how long a backup took to be created/deleted.
## 3 = enable debugging logs for keybinds and backups.
## 4 = disable debugging logs.
# Default value: 4

cs in zip. source code in changelog. discord@4902

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.