| 121 |  | path TRAM = Animations / "level0_TRAM"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 122 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 123 |  | vector<path> GDFPaths; | 
 
 
 
 
 
 
 
 
 
 
 | 124 | < | GDFPaths.push_back(Characters); | 
 
 
 
 
 
 
 
 
 | 124 | > | //GDFPaths.push_back(Characters); | 
 
 
 
 
 
 
 
 
 
 
 | 125 |  | GDFPaths.push_back(Particles); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 126 |  | GDFPaths.push_back(Textures); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 127 |  | GDFPaths.push_back(Sounds); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 139 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 140 |  | vector<path> VanillaPaths; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 141 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 142 | < | VanillaPaths.push_back(VanillaCharacters); | 
 
 
 
 
 
 
 
 
 | 142 | > | //VanillaPaths.push_back(VanillaCharacters); | 
 
 
 
 
 
 
 
 
 
 
 | 143 |  | VanillaPaths.push_back(VanillaParticles); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 144 |  | VanillaPaths.push_back(VanillaTextures); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 145 |  | VanillaPaths.push_back(VanillaSounds); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 229 |  | else remove(dir_itr->path()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 230 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 231 |  | else if (dir_itr->path().filename().substr(0,4) == "TRAC" | 
 
 
 
 
 
 
 
 
 
 
 | 232 | < | || dir_itr->path().filename().substr(0,4) == "ONVL") { | 
 
 
 
 
 
 
 
 
 | 232 | > | ) { | 
 
 
 
 
 
 
 
 
 
 
 | 233 |  | cout <<dir_itr->path().filename() << "\n"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 234 |  | if(!exists( TRAC / dir_itr->filename())) rename(dir_itr->path(), TRAC / dir_itr->filename()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 235 |  | else remove(dir_itr->path()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 249 |  | else if (dir_itr->path().filename().substr(0,4) == "ONCC" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 250 |  | || dir_itr->path().filename().substr(0,4) == "TRBS" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 251 |  | || dir_itr->path().filename().substr(0,4) == "ONCV" | 
 
 
 
 
 
 
 
 | 252 | + | || dir_itr->path().filename().substr(0,4) == "ONVL" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 253 |  | || dir_itr->path().filename().substr(0,4) == "TRMA" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 254 |  | || dir_itr->path().filename().substr(0,4) == "TRSC" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 255 |  | || dir_itr->path().filename().substr(0,4) == "TRAS") { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 290 |  | if(!exists( "VanillaDats/level0_Final/level0_Final/" +  dir_itr->filename())) rename(dir_itr->path(), "VanillaDats/level0_Final/level0_Final/" +  dir_itr->filename()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 291 |  | else remove(dir_itr->path()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 292 |  | } | 
 
 
 
 
 
 
 
 | 293 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 294 |  | if (exists(dir_itr->path())) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 295 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 296 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 320 |  | logfile << (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final VanillaDats/level" + levels[i] + "_Final/level" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 321 |  | + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log").c_str() << '\n'; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 322 |  | string sys_str = (strOniSplit + " " + strImportOption + " ../GameDataFolder/level" + levels[i] + "_Final VanillaDats/level" + levels[i] + "_Final/level" | 
 
 
 
 
 
 
 
 
 
 
 | 323 | < | + levels[i] + "_Final/level" + levels[i] + "_Final.oni >> Globalize.log"); | 
 
 
 
 
 
 
 
 
 | 323 | > | + levels[i] + "_Final/level" + levels[i] + "_Final.oni"); | 
 
 
 
 
 
 
 
 
 
 
 | 324 |  | system(sys_str.c_str() ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 325 |  | setProgressBar( (int)(1000 * (float)(parts_done) / (float)(total_steps) )); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 326 |  | parts_done++; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 327 |  | } | 
 
 
 
 
 
 
 
 
 
 
 | 328 | < | create_directory( VanillaCharacters.parent_path() ); | 
 
 
 
 
 
 
 
 
 | 328 | > | //create_directory( VanillaCharacters.parent_path() ); | 
 
 
 
 
 
 
 
 
 
 
 | 329 |  | create_directory( VanillaParticles.parent_path() ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 330 |  | create_directory( VanillaTextures.parent_path() ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 331 |  | create_directory( VanillaSounds.parent_path() ); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 338 |  | parts_done++; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 339 |  | setProgressBar( (int)(1000 * (float)(parts_done) / (float)(total_steps) )); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 340 |  | } | 
 
 
 
 
 
 
 
 | 341 | + | logfile << "\nMoving level0_Characters\n"; | 
 
 
 
 
 
 
 
 | 342 | + | setStatusArea("Step " + lexical_cast<std::string>(parts_done + 1) + "/" + lexical_cast<std::string>(total_steps) + ": moving level0_Characters" ); | 
 
 
 
 
 
 
 
 | 343 | + | copy((path)"../GameDataFolder/level0_Characters", (path)("VanillaDats/level0_Final")); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 344 |  | /* | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 345 |  | printf(Step_x_x,"Step %d/%d: reimporting level0_Characters", parts_done,7 + 2 * num_levels); setStatusArea((string)Step_x_x);setProgressBar( (int)(1000 * (float)(parts_done) / (float)(7 + 2 * num_levels) )); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 346 |  | system((strOniSplit + " " + strImportOption + " " + Characters.string() + " " + VanillaCharacters.string()).c_str()); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1151 |  | ::CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList, (void **)&pTaskbarList); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1152 |  | #endif | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1153 |  |  | 
 
 
 
 
 
 
 
 | 1154 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1155 |  | /*if ( exists( "../../GameDataFolder/level0_Final.sep" ) ) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1156 |  | strImportOption = "-import:sep"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1157 |  | splitInstances = NOT_SPLIT; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1161 |  | splitInstances = SPLIT; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1162 |  | }*/ | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1163 |  |  | 
 
 
 
 
 
 
 
 | 1164 | + |  | 
 
 
 
 
 
 
 
 | 1165 | + | #ifndef WIN32 | 
 
 
 
 
 
 
 
 | 1166 | + | strImportOption = "-import:sep"; | 
 
 
 
 
 
 
 
 | 1167 | + | splitInstances = NOT_SPLIT; | 
 
 
 
 
 
 
 
 | 1168 | + | #else | 
 
 
 
 
 
 
 
 | 1169 | + | strImportOption = "-import:nosep"; | 
 
 
 
 
 
 
 
 | 1170 | + | splitInstances = SPLIT; | 
 
 
 
 
 
 
 
 | 1171 | + | #endif | 
 
 
 
 
 
 
 
 | 1172 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1173 |  | #ifndef WIN32 | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1174 |  | strImportOption = "-import:sep"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 1175 |  | splitInstances = NOT_SPLIT; |