Hey I managed to transfer Into the Breach saves after dumping them with JKSV. New to this so I might not have all the details right. You end with a settings.lua file, and a folder with your profile name (eg. profile_Alpha), and in there, there are 3 .lua files (profile.lua, saveData.lua, undoSave.lua). My Steam version on linux has the same structure (~/.local/share/IntoTheBreach/). I copied the lua files there and it didn't work. Turns out on the switch they are compressed. I got AI to write a python script for me to decompress the files. After copying them over, it seems to work fine. Not sure if I'm allowed to paste scripts here, but the simple version is:
import zlib; open('output.lua', 'wb').write(zlib.decompress(open('settings.lua', 'rb').read()))
Python:
#!/usr/bin/env python3
import zlib
import os
import sys
from pathlib import Path
input_dir = Path('.')
output_dir = Path('output')
output_dir.mkdir(exist_ok=True)
for file_path in input_dir.glob('*'): # Processes all files; add '*.lua' for Lua only
if file_path.is_file() and file_path.suffix in ['.lua', '.bin']: # Skip non-saves
try:
with open(file_path, 'rb') as f:
compressed = f.read()
decompressed = zlib.decompress(compressed)
out_path = output_dir / file_path.name
with open(out_path, 'wb') as f:
f.write(decompressed)
print(f"Decompressed {file_path.name} -> {out_path}")
except zlib.error:
print(f"Failed to decompress {file_path.name} (not zlib)")
except Exception as e:
print(f"Error on {file_path.name}: {e}")