View Issue Details

IDProjectCategoryView StatusLast Update
0004998The Dark ModTDM Installerpublic25.02.2019 04:19
Reporterstgatilov Assigned Tostgatilov  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product VersionTDM 2.07 
Summary0004998: tdm_packager does not handle same-named members of pk4 properly
DescriptionThe original discussion here:
  http://forums.thedarkmod.com/topic/19885-two-tdm-custom-scriptsscript-in-differential-package/

If file of same name changes in two different pk4 files, then the update package would have two equally-named files. No idea whether this works properly or not.
Steps To ReproduceRun tdm_packager with following arguments:
  --create-update-package
  --basedir=F:\thedarkmod_releases\release206 --baseversion=2.06
  --headdir=F:\thedarkmod_releases\release207 --headversion=2.07
  --outputdir=C:\TheDarkMod\darkmod_temp

You have to tweak path for your setup.
The basedir/headdir must contain full packaged releases of 2.06 and 2.07 respectively. You can download them from the following URLs:
  thedarkmod.blob.core.windows.net/release206/ + {filename}
  thedarkmod.blob.core.windows.net/release207/ + {filename}
Note that you have to get list of files somewhere.

As the result, the file C:\TheDarkMod\darkmod_temp\tdm_update_2.06_to_2.07.zip will contain two instances of \script\tdm_custom_scripts.script.
TagsNo tags attached.

Activities

stgatilov

stgatilov

24.02.2019 10:58

administrator   ~0011651

I suggest ignoring the problem for now.
If the new tdm_update algorithm does not work out, return to it and fix the current packager.
stgatilov

stgatilov

25.02.2019 04:19

administrator   ~0011657

Duplicating here:

When I diff-updated from 2.06 to 2.07, both files newjob.pk4 and tdm_base01.pk4 were redownloaded freshly after differential update.

It seems that updater checks CRC after differential update and if pk4 is different, it is fully downloaded.

So this weird thing should have no negative effect on users.

Issue History

Date Modified Username Field Change
24.02.2019 10:57 stgatilov New Issue
24.02.2019 10:58 stgatilov Note Added: 0011651
24.02.2019 10:58 stgatilov Assigned To => stgatilov
24.02.2019 10:58 stgatilov Status new => suspended
25.02.2019 04:19 stgatilov Note Added: 0011657
25.02.2019 04:19 stgatilov Status suspended => closed
25.02.2019 04:19 stgatilov Resolution open => no change required
19.05.2021 05:34 stgatilov Category TDM Updater => TDM Installer