HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Differences between SFMPQAPI 1.07 and 1.08

08-19-2004, 03:38 PM#1
Starcraftfreak
Since I'll starting to program a program which will write MPQ files, I'd like to know the differences between SFMPQAPI 1.07 and 1.08. I think BlackDick was it, who said that 1.08 is the "bad" version (Heavy Locker only uses 1.07). Now I'd like to know why is it considered the "bad" version.
08-25-2004, 05:51 PM#2
PitzerMike
Quote:
Originally Posted by Starcraftfreak
Since I'll starting to program a program which will write MPQ files, I'd like to know the differences between SFMPQAPI 1.07 and 1.08. I think BlackDick was it, who said that 1.08 is the "bad" version (Heavy Locker only uses 1.07). Now I'd like to know why is it considered the "bad" version.


It's because of his function SetMPQStartAt which uses the CopyMemory (win API) function to change the start offset of the mpq archive (used with embedded archives in exe files and such).
SFMPQ 1.08 crashes when using this little trick.

Original comment from HL source code:

'Trick to set the MPQ starting offset, SFApi 1.8.0.1 do not work nice with this
08-25-2004, 09:07 PM#3
Starcraftfreak
Fine, so actually I don't need to care about it.
12-17-2004, 03:52 PM#4
ShadowFlare
That's simply because the location of the data he was trying to change had changed between those two versions and the change was not known by him. That's because I have not officially released that version (only included it with WinMPQ), so I have not released the header file.
12-17-2004, 03:57 PM#5
Vexorian
Quote:
Originally Posted by ShadowFlare
That's simply because the location of the data he was trying to change had changed between those two versions and the change was not known by him. That's because I have not officially released that version (only included it with WinMPQ), so I have not released the header file.
So we can say that we should stick to 1.07 because 1.08 wasn't officially released?
12-17-2004, 04:13 PM#6
ShadowFlare
No, that just means don't do anything like modifying data in SFmpq's data structures. ;) If it wasn't OK to use, I wouldn't have included that version with WinMPQ. I should finish up with some things I started and release another version sometime...