diff --git a/TOR_Test.py b/TOR_Test.py index 0eed23f..9a8f74f 100644 --- a/TOR_Test.py +++ b/TOR_Test.py @@ -12,7 +12,7 @@ import lxml.etree as etree tool = ToolsTOR.ToolsTOR("TBL_All.json") -tool.extract_All_Menu() +tool.extract_Main_Archive() @@ -29,4 +29,6 @@ tool.pack_Main_Archive() files = os.listdir("abcde_lauren") for file in files: - tool.extract_abcde_text("abcde_lauren/{}".format(file)) \ No newline at end of file + tool.extract_abcde_text("abcde_lauren/{}".format(file)) + + diff --git a/ToolsTOR.py b/ToolsTOR.py index 47134e1..6ec56b2 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -341,6 +341,10 @@ class ToolsTOR(ToolsTales): print("Writing file %05d/%05d..." % (i, total_files)) f.close() + #Copy File 11181 + shutil.copy( self.datPathExtract+"BIN/11181.bin", self.datPathExtract+"PAK3/11181.pak3") + os.remove( self.datPathExtract+"BIN/11181.bin") + def pack_Main_Archive(self): sectors = [0] remainders = [] diff --git a/ToolsTales.py b/ToolsTales.py index 93fb7a7..46db661 100644 --- a/ToolsTales.py +++ b/ToolsTales.py @@ -295,19 +295,6 @@ class ToolsTales: # Didn't match anything return "bin" - - def is_compressed(self, data): - if len(data) < 0x09: - return False - - expected_size = struct.unpack("