Use 1.2.3. I guess other versions than their own won't get proper results.
input_file.read_into (&input_data, entry->data_size * 2); std::vector<unsigned char> output_data (entry->inflated_data_size * 2);
if (res || inflated != output->size() / 2)
// /! BINARY MODE !!!!!! static const char* to_string (const open_flag& flag) { if (flag == read) { return "rb"; } else if (flag == write) { return "wb"; } else if (flag == (read|write)) { return "rwb"; } else { throw std::runtime_error ("bad opening flags"); } }
void seek (const int& pos) const { if (pos <= 0) { fseek (_handle, -pos, SEEK_END); } else { fseek (_handle, pos, SEEK_SET); } }
BsnI_entry* entry (reinterpret_cast<BsnI_entry*> (&entries[i]));
BsnI_entry* entry (reinterpret_cast<BsnI_entry*> (&entries[sizeof(BsnI_entry)*i]));
Code: [Select]void seek (const int& pos) const { if (pos <= 0) { fseek (_handle, -pos, SEEK_END); } else { fseek (_handle, pos, SEEK_SET); } }should be pos < 0 else seek(0) result in EOF ( seek(0) called in read_all() )in append.bsni.cpp,Code: [Select] BsnI_entry* entry (reinterpret_cast<BsnI_entry*> (&entries[i]));should beCode: [Select] BsnI_entry* entry (reinterpret_cast<BsnI_entry*> (&entries[sizeof(BsnI_entry)*i]));because entries is an array of charthen all is working fine.But each time I try to assemble the installer, I get the same message"version 3.3.5.12213 is needed and you already have version 3.3.5.12340", regardless which version of the extracted installer I repack in, or which mpq I use.
In the contents of the attached MPQ is a file size - patch.cmd "PatchSize 1992294400" - what should this value be representing?
I have also updated the original download link on the first post of the thread - it now contains the original version (that worked on Mac)
Text files are files containing sequences of lines of text. Depending on the environment where the application runs, some special character conversion may occur in input/output operations in text mode to adapt them to a system-specific text file format. Although on some environments no conversions occur and both text files and binary files are treated the same way, using the appropriate mode improves portability.
hmmmm... dont know what I did wrong during my last post but nvm, it seems everything work fine.The .cmd file in the mpq contains information on the version of the updater.QuoteIn the contents of the attached MPQ is a file size - patch.cmd "PatchSize 1992294400" - what should this value be representing?was wondering too... seems a lot too large for a file size... but the updater work anyway.dont know what you could do wrong... i got the "disk full" message sometimes because I closed the repacker before full writing so the "BsnI" section was missing. You have to extract an mpq from an installer correctly too.QuoteI have also updated the original download link on the first post of the thread - it now contains the original version (that worked on Mac)u should make the modifications to this one too....QuoteText files are files containing sequences of lines of text. Depending on the environment where the application runs, some special character conversion may occur in input/output operations in text mode to adapt them to a system-specific text file format. Although on some environments no conversions occur and both text files and binary files are treated the same way, using the appropriate mode improves portability.opening a file with "fopen("rw")" open the file as a text file... on binary file this may result in corrupted data. Maybe on mac it will work, but if there is an error someday, it will be seriously hard to find.
dont know what you could do wrong... i got the "disk full" message sometimes because I closed the repacker before full writing so the "BsnI" section was missing. You have to extract an mpq from an installer correctly too.
World of Warcraft Update (3.3.5.12340 - 3.3.5.12341)This patch upgrades World of Warcraft from version 3.3.5.12340 to version 3.3.5.12341.Installing World of Warcraft Update at "C:WoW 3.3.5" on Tue Apr 02 17:58:41 2013.Error: The file "C:WoW 3.3.5output.exe" appears to be corrupt. You may need to download this file again.
Things I don't understand:Blizzard Updater.exe? What is this for? Does this contain the information on what to write to?
How does it know which patch to write to? Patch.lst obviously contains the path in the MPQ, file name, path to write to.
It applies the downloaded patches, so I'd imagine
I'm being told my installer is corrupt. How is it determining this? I removed all the instructions other than to move battle . net . dll and to go from 12340 to 12341.
there is a "WoWPatchIndex 3" in patch.cmd, the number change from one update to another. Maybe it has something to do with it.
The patch "basecomponent.wow-data.txt" could not be applied. (Invalid header: size 25404, version 111.)
Patch can't be applied because it is missing data for: "base".