Page 1 of 1

PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 9:27 am
by NikitaOdnorob98
PureBasic 5.11. In Windows 8, the code does not work:

Code: Select all

UseZipPacker() 
CreatePack(0, "lol.zip") 

; add your files 
AddPackFile(0, "Photo.JPG", "Image1.jpg") 
ClosePack(0)
The archive is not created

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 9:41 am
by Fred
It does work here, any more infos ?

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 11:46 am
by NikitaOdnorob98
Video:
http://www.youtube.com/watch?v=c2LK-jTj ... e=youtu.be
In the beginning I use the CreatePack(). The archive isn't created. Then I change the function CreatePack() to CreateFile(). Parameters remain unchanged. The file is created.

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 11:50 am
by Fred
Does anybody else has the same issue ? I can't reproduce it here. Do you have a clean PB installation ?

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 1:18 pm
by Olby
Works fine here on a clean virtual box Win8 PB 5.11 installation. Could it be an issue with Unicode/Cyrillic file names/OS system language?

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 3:06 pm
by NikitaOdnorob98
Do you have a clean PB installation
Yes
Could it be an issue with Unicode/Cyrillic file names/OS system language?
No. If you change the file name into English or remove from path Cyrillic characters (for example, "C:\pak.zip"), it is still the archive isn't created.

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 4:16 pm
by rsts
Works fine here.
PB5.11 32 bit on Win 8 64 bit

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 4:51 pm
by codeprof
I get the problem if "Photo.JPG" is not existing. Otherwise it is working.
AddPackFile() returns false in this case.

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 6:34 pm
by NikitaOdnorob98
Well watch the video, here you can see that I have does not work.

P.S. Windows 8 x32, CPU Pentium 1.87 Ghz x64

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 6:38 pm
by Fred
Can you check this to be sure than photo.jpg is added ?

Code: Select all

UseZipPacker()
CreatePack(0, "lol.zip")

; add your files
If AddPackFile(0, "Photo.JPG", "Image1.jpg")
 debug "ok"
endif
ClosePack(0)

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Fri Jun 07, 2013 7:13 pm
by NikitaOdnorob98
Fred wrote:Can you check this to be sure than photo.jpg is added ?

Code: Select all

UseZipPacker()
CreatePack(0, "lol.zip")

; add your files
If AddPackFile(0, "Photo.JPG", "Image1.jpg")
 debug "ok"
endif
ClosePack(0)
Fred, the archive isn't created. But function CreatePack() returns a non-zero.

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Sat Jun 08, 2013 9:09 am
by Fred
CreatePack() can return non-zero, but if nothing is added it won't be created.

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Posted: Sun Jun 09, 2013 12:59 am
by Thunder93
Perhaps there's a confusion to what location the files are created at when no path is specified. For me its %LOCALAPPDATA%\VirtualStore\Program Files (x86)\PureBasic 5.11\

%LOCALAPPDATA%\VirtualStore\Program Files (x86)\PureBasic 5.11\lol.zip


:wink: