Created
March 21, 2022 08:46
-
-
Save EhsanKia/232943e8ab8fad2ee99d33aa57c168ff to your computer and use it in GitHub Desktop.
Unpacks Game Pass SAVEDATA for Tunic into individual Steam format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
with open('5E113D5F383749AEB72703486DD8247B', 'rb') as fp: | |
data = fp.read() | |
filenames = re.findall(rb'\d+\.txt', data) | |
contents = re.findall(rb'(true\|1[^\0]+)', data, re.DOTALL) | |
for name, content in zip(filenames, contents): | |
with open(name.replace(b'.txt', b'.tunic'), 'wb') as fp: | |
fp.write(content.strip()) |
Thx
(Secret) legend!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I pray that your hoes are plentiful and that you receive the sloppiest top on the regular for this sir, thank you