Jump to content
The Dark Mod Forums

Minor issue with tdm_update and tdm_game02.pk4


gnartsch

Recommended Posts

Hi !

 

I noticed a minor (?) issue. Not sure if this might affect someone at all or not.

But I thought I bring it to attention anyway.

 

After running tdm_update (on Windows) I noticed that tdm_game02.pk4 is corrupt.

All other files are OK.

I know that this file is for Linux only, but maybe some people might be affected when copying the updated DarkMod files to a Linux system ?

Maybe this is just a theoretical issue ... I don't know.

 

 

Ok, this is what I did :

 

I had TDM 1.0.4 installed.

I ran a archive test on the pk4 files and got this for the archive in question.

E:\Games\Doom3-TDM\darkmod>C:\Programme\7-Zip\7z.exe t tdm_game02.pk4

 

7-Zip 9.20 Copyright © 1999-2010 Igor Pavlov 2010-11-18

 

Processing archive: tdm_game02.pk4

 

Testing gamex86.so

Testing binary.conf

 

Everything is Ok

 

Files: 2

Size: 8866185

Compressed: 3554540

 

So everything was OK (and the archive was not in use by any process either).

 

Then I ran tdm_update (to upgrade to version 1.0.5), which reported no error and checked the archive again.

This time I got :

 

E:\Games\Doom3-TDM\darkmod>C:\Programme\7-Zip\7z.exe t tdm_game02.pk4

 

7-Zip 9.20 Copyright © 1999-2010 Igor Pavlov 2010-11-18

 

Processing archive: tdm_game02.pk4

 

Testing binary.conf Data Error

Testing gamex86.so

 

Sub items Errors: 1

 

The issue can be solved by deleting tdm_game02.pk4 and running the updater again,

which will retrieve the entire file.

 

When upgrading from 1.0.3 to 1.0.4 I had noticed the same issue already.

 

Thanks !

Edited by gnartsch
Link to comment
Share on other sites

Found the problem. The tdm_game02.pk4 file contains (like all game binaries) the binary.conf info file which is exactly 2 bytes in size. In the Linux game PK4 this file is saved without compression (STORE) whereas in Windows the file is DEFLATED. When merging the PK4 files the updater is copying the raw data chunks between zip files and had been handling all data chunks as DEFLATED - for this one file this method was wrong, as the raw data is not deflated but stored. This lead to the integrity check failures. We have a couple of files that were stored in tdm_models01.pk4, but these are 0-sized files that's why I didn't run into this issue before while writing the updater.

 

Expect this to be fixed when 1.06 rolls out, a new updater will be included in that release.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...