[Request] Quest for Glory 5 (SPK)
Re: [Request] Quest for Glory 5 (SPK)
Hi,
Just an update, I have discovered a CRC checksum (see yellow in pic) in the SPK file. Green is the file size (4 bytes x2). Am unsure of what the 4 pink bytes are representing.

I have uploaded the file '096.MDL', available here. If someone could please take a look at this and try to figure out what the 4 pink bytes are representing that would be much appreciated.
Thanks,
Robert
Just an update, I have discovered a CRC checksum (see yellow in pic) in the SPK file. Green is the file size (4 bytes x2). Am unsure of what the 4 pink bytes are representing.

I have uploaded the file '096.MDL', available here. If someone could please take a look at this and try to figure out what the 4 pink bytes are representing that would be much appreciated.
Thanks,
Robert
Last edited by GMFattay on Tue Sep 14, 2010 4:58 am, edited 1 time in total.
Novice in training =)
Re: [Request] Quest for Glory 5 (SPK)
Some more files to help with the possible checksum - QFG5_mdl_095_100.rar
Novice in training =)
-
WRS
- ultra-veteran

- Posts: 601
- Joined: Fri Nov 06, 2009 12:13 am
- Has thanked: 74 times
- Been thanked: 134 times
Re: [Request] Quest for Glory 5 (SPK)
the spk file looks like a zip format, though i dont understand the pointer values - like the central directory pointer - which is wrong. finding the actual pointer can be done searching for the first instance of 504b0103 (PK\x01\x03)
the central directory record varies in size due to the filenames, but the first record shows the unknown checksum is 0. next record shows 20723, which is only slightly larger than the size (?) - of 20644.
so from a glance, it looks like the value is the sum of all the uncompressed data size so far. so changing "mdl/095.MDL" (record #1621) would effect the other (few!) header values.
hope this can help.
the central directory record varies in size due to the filenames, but the first record shows the unknown checksum is 0. next record shows 20723, which is only slightly larger than the size (?) - of 20644.
so from a glance, it looks like the value is the sum of all the uncompressed data size so far. so changing "mdl/095.MDL" (record #1621) would effect the other (few!) header values.
hope this can help.
Useful tool links:
Re: [Request] Quest for Glory 5 (SPK)
Hey,WRS wrote:the spk file looks like a zip format, though i dont understand the pointer values - like the central directory pointer - which is wrong. finding the actual pointer can be done searching for the first instance of 504b0103 (PK\x01\x03)
the central directory record varies in size due to the filenames, but the first record shows the unknown checksum is 0. next record shows 20723, which is only slightly larger than the size (?) - of 20644.
so from a glance, it looks like the value is the sum of all the uncompressed data size so far. so changing "mdl/095.MDL" (record #1621) would effect the other (few!) header values.
hope this can help.
Thanks for the help with this. It looks like you are correct with those values being the total file size, have checked this a few times and it seems to sum up.
Any ideas on the 4 pink bytes I have highlighted on the first screen?
Also, heres what the files in the header look like (example is 096.MDL):

Thanks,
Robert
Novice in training =)
-
WRS
- ultra-veteran

- Posts: 601
- Joined: Fri Nov 06, 2009 12:13 am
- Has thanked: 74 times
- Been thanked: 134 times
Re: [Request] Quest for Glory 5 (SPK)
as with the zip format, those values are the last modified time:
ex: mdl/096.MDL was last modified 05/23/1998 at 11:36:36
Code: Select all
DOSTIME HTime; // 16-bit
DOSDATE HDate; // 16-bit
Useful tool links:
Re: [Request] Quest for Glory 5 (SPK)
Awesome work dude. Would you be willing to write a plugin to create and modify these archives for a small fee? Otherwise might have to bug Watto again to upgrade his plugin, heh.WRS wrote:as with the zip format, those values are the last modified time:
ex: mdl/096.MDL was last modified 05/23/1998 at 11:36:36Code: Select all
DOSTIME HTime; // 16-bit DOSDATE HDate; // 16-bit
Novice in training =)
Re: [Request] Quest for Glory 5 (SPK)
Bump. Looking for someone to write a plugin to create and modify these archives for a fee.
Novice in training =)
Re: [Request] Quest for Glory 5 (SPK)
The contents of this post was deleted because of possible forum rules violation.
Novice in training =)
