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

    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
    • OrbWeaver

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 2 replies
    • 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 )
      · 4 replies
×
×
  • Create New...