Hi,

Good news !

I found why GPD couldn't process the MojoSetup archives for Baldur's Gate:
the zero-byte files in .zip files are discarded.


Yanking out this check in consider_zip() doens't seem to be the right thing todo
G-D-P should really be able to generate these 0-bytes from nothing if needed.

        for entry in zf.infolist():
            if not entry.file_size:
                continue

I used this workaround for another game:

+  # workaround bug when processing 0 byte file in zip file
+  playfld.cps?de:
+    look_for: [playfld.cps,/dev/null]

Here's the list of the files impacted:

$ grep d41d8cd98f00b204e9800998ecf8427e data/*.yaml

data/baldurs-gate-1.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 
scripts/None.bs
data/baldurs-gate-2.yaml:  0         d41d8cd98f00b204e9800998ecf8427e Baldur.err
data/baldurs-gate-2.yaml:  0         d41d8cd98f00b204e9800998ecf8427e Baldur.log
data/baldurs-gate-2.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 
override/AR2812.bcs
data/eye-of-the-beholder2.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 
playfld.cps?de
data/icewind-dale-1.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 
scripts/none.bs
data/icewind-dale-1.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 
temp/default.toh
data/icewind-dale-1.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 
temp/default.tot
data/simon1.yaml:  0         d41d8cd98f00b204e9800998ecf8427e 0061.vga?de
data/xcom-ufo.yaml:  0         d41d8cd98f00b204e9800998ecf8427e ROUTES/TEMP.RMP
data/xcom-ufo.yaml:  0         d41d8cd98f00b204e9800998ecf8427e ROUTES/TEMP1.RMP
data/xcom-ufo.yaml:  0         d41d8cd98f00b204e9800998ecf8427e ROUTES/TEMP2.RMP
data/xcom-ufo.yaml:  0         d41d8cd98f00b204e9800998ecf8427e ROUTES/TEMP3.RMP

I guess you can remove "Baldur.err" & "Baldur.log" from the package definition.

Alexandre

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to