1 (edited by Filax 2006-09-27 12:38:56)

Topic: Hi :) Problem when a try to extract

Problem when a try to extract a zip engine passworded file with winrar or other unpacker ?

The program  read correctly the structure but won't extract with the good password ?

Any idea ?

Keep up good job gman !

Another bug : When i try to display winrar zip catalog, zip engine find only one file ?

Re: Hi :) Problem when a try to extract

greetings filax smile  could you please whip up a sample file with the problems and email it to me?

gman at gprogs.com

also, is this win32, linux, or mac?

thx

Re: Hi :) Problem when a try to extract

Ok no problem ! i'll post zip example soon as possible ! else very good job ! really usefull to make protected pak !

4 (edited by Filax 2006-09-28 03:20:24)

Re: Hi :) Problem when a try to extract

Hi Gman smile

This is my zip file : http://www.blitz3dfr.com/tempo/filax.zip

and here is the code :
-------------------------




Framework BRL.Basic

' ------------------------------------------------------------------------------------
' Problem number one : with winrar passworded file listing (the zip password is filax)
' ------------------------------------------------------------------------------------

' ------------------------------------------------------------------------------------
' Problem number two : The passworded Zip engine file, can't be opened with windows
' standard zip or winrar hmm
' ------------------------------------------------------------------------------------


Import pub.zipengine

Main() 'Call our entry point

Function Main()
    ' ---------------------------
    ' Create our zipwriter object
    ' ---------------------------
    Local zwObject:ZipWriter = New ZipWriter
    Local zrObject:ZipReader = New ZipReader

    ' --------------------------------------------------------   
    ' The passworded winrar file is open correctly for extract
    ' --------------------------------------------------------
    If ( zrObject.OpenZip("filax.zip") ) Then
        zrObject.ExtractFileToDisk("NGM1998_01p52-3.jpg", "NGM1998_01p52-3.jpg",False,"filax")
        zrObject.ExtractFileToDisk("NGM1998_01p59Up.jpg", "NGM1998_01p59Up.jpg",False,"filax")
        zrObject.CloseZip()
    End If

    ' ---------------------------
    ' But not for catalog listing
    ' ---------------------------
    If ( zrObject.OpenZip("filax.zip") ) Then
        Print("filecount: "+zrObject.getFileCount())
       
        ' display file information
        For Local i:Int=0 To zrObject.getFileCount()-1
            Print("filename: "+zrObject.getFileInfo(i).zipFileName)
            Print("simplefilename: "+zrObject.getFileInfo(i).simpleFileName)
            Print("path: "+zrObject.getFileInfo(i).path)
            Print("orig size: "+zrObject.getFileInfo(i).header.DataDescriptor.uncompressedsize)
            Print("comp size: "+zrObject.getFileInfo(i).header.DataDescriptor.compressedsize)
        Next

        zrObject.CloseZip()
    End If
End Function

Re: Hi :) Problem when a try to extract

greetings filax smile  unforatunately i have yet to figure out the problem.  the header is reporting the end of the file list before its the actual end.  still looking...

Re: Hi :) Problem when a try to extract

Ok smile many thanks smile

Re: Hi :) Problem when a try to extract

so the zip you gave me was created in winrar correct?

Re: Hi :) Problem when a try to extract

Winrar 3.50

Re: Hi :) Problem when a try to extract

ok.  there is a newer version of the ZLib functions that Thomas Mayer used when he originally wrote the ZipEngine mod.  i have downloaded it but its going to take some minor tweaking.   no guarantees it wil fix it but its worth a shot.  whats the timeline on this?

10 (edited by Filax 2006-10-01 17:16:42)

Re: Hi :) Problem when a try to extract

Hum there is no really timeline smile take your time smile but fix it if you can smile