diff --git a/10247.scpk b/10247.scpk index d759ea2..f1dca79 100644 Binary files a/10247.scpk and b/10247.scpk differ diff --git a/ToolsTOR.py b/ToolsTOR.py index 2cc081f..6f19273 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -40,7 +40,7 @@ class ToolsTOR(ToolsTales): #byteCode self.story_byte_code = b"\xF8" - self.list_status_insertion = ['Done'] + self.list_status_insertion = ['Done', 'Proofreading'] @@ -57,6 +57,7 @@ class ToolsTOR(ToolsTales): for scpk_file in listFiles: self.extract_TheirSce_XML(scpk_file) + self.id = 1 def get_theirsce_from_scpk(self, scpk, scpk_file_name, debug=False)->bytes: header = scpk.read(4) @@ -130,13 +131,14 @@ class ToolsTOR(ToolsTales): #Remove duplicates - list_informations = self.remove_duplicates(["Story"] * len(pointers_offset), pointers_offset, text_list) + #list_informations = self.remove_duplicates(["Story"] * len(pointers_offset), pointers_offset, text_list) + list_informations = ( ['Story', pointers_offset[i], text_list[i]] for i in range(len(text_list))) #Build the XML Structure with the information file_path = self.story_XML_patch +"XML/"+ self.get_file_name(scpk_file_name) - root = self.create_Node_XML(file_path, list_informations, "SceneText") + root = self.create_Node_XML(file_path, list_informations, "Story", "SceneText") #Write the XML file @@ -173,11 +175,12 @@ class ToolsTOR(ToolsTales): #Grab strings_offset for pointers theirsce.read(12) strings_offset = struct.unpack("=2 and i