Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS IS NOT A MOD. THIS IS A PYTHON SCRIPT

This should work on ANY SPT version that uses .json/.jsonc config files and presets

Overview

This will quickly copy all the config and preset .json/.jsonc files into 1 directory for you to do with as you please while retaining folder structure as it is on your drive.

Notes

This script deletes and remakes the output folder every time it is ran so if you plan on making changes to your SPT mods and running it again, it will delete the old BACKUP configs. From my testing it does go to the recycle bin though so it's not unrecoverable.

(I'd recommend making a manual date on the backup folder if you want to keep the backups before running the script again, it does not include any directory that starts with an exclamation point.)

It does still find the mods.disabled folder from some mod managers so if you don't FULLY delete the mod but just disable it you won't risk losing BACKUP configs.

This script should never ever delete any configs that aren't made from this script.

Reasons this exists

  • Sending configs to someone without having to dig through a bajillion different folders and paths
  • Updating SPT while retaining custom/tweaked configs
  • backing up configs if you have to delete mods for any reason, all without keeping the bulk of the mod downloaded thus saving on disk space (It's 2026 storage is expensive)

I made this because a friend wanted to get my configs for the fika server we were playing on. I uploaded it here because if I had a use case for it maybe someone else will too.

I Briefly looked around for this specific functionality with different mod managers and none of them (from what I saw) backed up configs and preset files this way so I made this script.

Prerequisites

A decently up to date python install and basic command line usage (or just follow along with the video at the bottom)

Usage

Place the script into the SPTushonka Root folder and run it, the output will be under the directory:
/!Config_Copy_Output

This should work on ANY SPT version that uses config files and presets, I know it says 4.1.3 but that's cause I don't know how to list it for all of them.

Step by Step Example

  1. Move Config_Copy.py into your SPT root directory and open command prompt in the address bar at the top by typing cmd
  2. Copy Paste or type the below snippet into your command prompt (Ctrl + Shift + V sometimes) py .\\Config_Copy.py Yes it is case sensitive
  3. Profit? The newly created /!Config_Copy_Output folder will have all your configs and presets

(Technically it will work as long as it's ran in any folder that is a parent of the mods you're trying to copy/backup from including /user/mods/)

Video Guide

Here is a step by step video on how to use on my working SPT 4.1.3.
Probably want to open the full video, the resolution is small in the auto-embed

https://youtu.be/phP0_Xx96XE

VirusTotal Results

https://www.virustotal.com/gui/file/87affca4198efb16ccae07144ff4fd9764af5e72a898d83cbcb11e93e0374d9b/detection

About

This will quickly copy all the config and preset .json/.jsonc files into 1 directory for you to do with as you please while retaining folder structure as it is on your drive.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages