knight_of_honor wrote:Well, if youre releases are in .zip, it will be kind of complicated... We can host the files on our server, but it hasnt a very good speed, as for updating, the client downloads only the files that have been updated, and overwrite the old ones,
Well, our nexuizpatch zip files basically contain all you need to patch the installation to the next version:
- complete new engine binaries (these change all the time)
- datapatch...pk3 (this is basically an automatic generated difference pk3 between old and new data...pk3 and just needs to be put in the download folder)
- new copy of Documentation (small, but does not necessarily change, that's there for sake of completeness)
- current engine and game sources as zip files (also change all the time); the DLLs are also included even if they did not change (there is no way around that on Mac, and on Windows it is a small waste that should get fixed in the next release)
And if you do want to extract single files out of a zip, that should be possible with three HTTP requests. The first one would be a HEAD to find the size of the zip file, the second one would download some part from the end of the file that is likely to contain the full central directory, and the third one would download the actual compressed data. Note that HTTP requests can download just part of a file if a Range: header is sent. In case of our nexuiz...zip releases, the central directory is always in the last 24k of the file and I doubt that's getting exceeded so soon.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again
You can vary the number of "MS", so you can clearly see it's MS which is causing it.