Page 1 of 1

Packer not working under x86 PB 4x - 5.4

Posted: Thu Dec 03, 2015 11:49 pm
by Grunz
I have some graphic resources in a pack file.
Opening the same zip file under x64 works just fine, but under x86 I get a 0 back from ExaminePack().

Code: Select all

If OpenPack(PackFileID, "graphics.zip")
    If ExaminePack(PackFileID)
If I use blz instead, I can run examine and also UncompressPackMemory().
But catchSprite() does fail - this works x64 and because LoadSprite() does work x86 too, I guess it's a packer malfunction not catchSprite().
If not, then there is a second bug in CatchSprite() and CatchImage() too - making them fail under x86.

Re: Packer not working under x86 PB 4x - 5.4

Posted: Mon Dec 07, 2015 1:40 pm
by Fred
That's strange, it seems to work here:

Code: Select all

UseZipPacker()

If OpenPack(0, "dialog.zip")
  Debug "OK"
  
  If ExaminePack(0)
    While NextPackEntry(0)
      Debug PackEntryName(0)
    Wend

  EndIf
Else
  Debug "Failed"
EndIf
Can anybody else confirm ?

Re: Packer not working under x86 PB 4x - 5.4

Posted: Sun Jan 24, 2016 7:52 am
by Grunz
I put up test code together with sample pack files.
http://www.heydernet.de/edler/packtest.tar.bz2
It's a bit long as I patched it together from our game code. Still it should help to show the bug appear at least.

Re: Packer not working under x86 PB 4x - 5.4

Posted: Thu Jan 28, 2016 10:57 am
by Grunz
The actual error seems to depend on other stuff around it or somesuch because the shortened code I posted above seems to break at other places than my main program.
In the example, if activating zip, examine and listing files does work, only unpacking fails.
If I activate blz, I can examine, but it instead of the actual files, I get garbage listed: 3 files with empty string as name and one with some part of a real name.

Re: Packer not working under x86 PB 4x - 5.4

Posted: Wed Sep 16, 2020 10:30 am
by Fred
Unfortunately we need more info to investigate.