From 975a25f8c76cccd6ae025d6d8887ccdcb7cee2dd Mon Sep 17 00:00:00 2001 From: Stewie Date: Mon, 15 Aug 2022 12:56:08 -0400 Subject: [PATCH] Update pack_Main_Archive to include Skit --- ToolsTOR.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ToolsTOR.py b/ToolsTOR.py index 9d6b2ac..c4c6d21 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -382,7 +382,7 @@ class ToolsTOR(ToolsTales): # f.write(data_uncompressed) #Update THEIRSCE uncompressed file - theirsce = self.get_New_Theirsce(io.BytesIO(data_uncompressed), scpk_file_name) + theirsce = self.get_New_Theirsce(io.BytesIO(data_uncompressed), scpk_file_name, self.story_XML_patch) theirsce.seek(0) @@ -540,7 +540,10 @@ class ToolsTOR(ToolsTales): if ".scpk" in file: print(file) data = self.pack_Story_File(file_name+".scpk") - + + if ".pak2" in file: + print(file) + data = self.pack_Skit_File(file_name+".pak2") else: with open(file, "rb") as f2: data = f2.read()