Packer not working under x86 PB 4x - 5.4

Just starting out? Need help? Post your questions and find answers here.
Grunz
User
User
Posts: 59
Joined: Sat Nov 12, 2011 7:21 pm

Packer not working under x86 PB 4x - 5.4

Post 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.
Fred
Administrator
Administrator
Posts: 16688
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post 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 ?
Grunz
User
User
Posts: 59
Joined: Sat Nov 12, 2011 7:21 pm

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

Post 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.
Grunz
User
User
Posts: 59
Joined: Sat Nov 12, 2011 7:21 pm

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

Post 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.
Fred
Administrator
Administrator
Posts: 16688
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Unfortunately we need more info to investigate.
Post Reply