diff --git a/ToolsTOR.py b/ToolsTOR.py index 8ec51f7..6ffa14b 100644 --- a/ToolsTOR.py +++ b/ToolsTOR.py @@ -28,10 +28,10 @@ class ToolsTOR(ToolsTales): datBinNew = '../Data/Tales-Of-Rebirth/Disc/New/DAT.BIN' elfOriginal = '../Data/Tales-Of-Rebirth/Disc/Original/SLPS_254.50' elfNew = '../Data/Tales-Of-Rebirth/Disc/New/SLPS_254.50' - storyPathArchives= '../Tales-Of-Rebirth/Data/TOR/Story/New/' #Story XML files will be extracted here - storyPathXML = '../Tales-Of-Rebirth/Data/TOR/Story/XML/' #SCPK will be repacked here - skitPathArchives = '../Tales-Of-Rebirth/Data/TOR/Skits/' #Skits XML files will be extracted here - datPathExtract = '../Data/Tales-Of-Rebirth/DAT/' + story_XML_new = '../Tales-Of-Rebirth/Data/Data/TOR/Story/' #Story XML files will be extracted here + story_XML_patch = '../Data/Tales-Of-Rebirth/Story/' #Story XML files will be extracted here + skit_XML_patch = '../Data/Tales-Of-Rebirth/Skits/' #Skits XML files will be extracted here + dat_archive_extract = '../Data/Tales-Of-Rebirth/DAT/' def __init__(self, tbl): @@ -51,11 +51,11 @@ class ToolsTOR(ToolsTales): # Extract the story files def extract_All_Story_Files(self,debug=False): - self.mkdir( self.storyPathXML) - listFiles = [self.datPathExtract + 'SCPK/' + ele for ele in os.listdir( os.path.join(self.datPathExtract, "SCPK"))] + self.mkdir( self.story_XML_patch + "XML") + listFiles = [self.dat_archive_extract + 'SCPK/' + ele for ele in os.listdir( os.path.join(self.dat_archive_extract, "SCPK"))] for scpkFile in listFiles: - self.extract_TheirSce_XML(scpkFile,debug) + self.extract_TheirSce_XML(scpkFile) def get_theirsce_from_scpk(self, scpk, scpkFileName, debug=False)->bytes: header = scpk.read(4) @@ -82,10 +82,7 @@ class ToolsTOR(ToolsTales): c_type = struct.unpack("