PureBasic 5.11 - Packer Bug (Windows 8)

Just starting out? Need help? Post your questions and find answers here.
NikitaOdnorob98
User
User
Posts: 74
Joined: Fri Jun 29, 2012 4:50 pm

PureBasic 5.11 - Packer Bug (Windows 8)

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

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post by Fred »

It does work here, any more infos ?
NikitaOdnorob98
User
User
Posts: 74
Joined: Fri Jun 29, 2012 4:50 pm

Re: PureBasic 5.11 - Packer Bug (Windows 8)

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

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post by Fred »

Does anybody else has the same issue ? I can't reproduce it here. Do you have a clean PB installation ?
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post 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?
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
NikitaOdnorob98
User
User
Posts: 74
Joined: Fri Jun 29, 2012 4:50 pm

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post 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.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post by rsts »

Works fine here.
PB5.11 32 bit on Win 8 64 bit
codeprof
User
User
Posts: 65
Joined: Sun Sep 16, 2012 12:13 pm

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post by codeprof »

I get the problem if "Photo.JPG" is not existing. Otherwise it is working.
AddPackFile() returns false in this case.
NikitaOdnorob98
User
User
Posts: 74
Joined: Fri Jun 29, 2012 4:50 pm

Re: PureBasic 5.11 - Packer Bug (Windows 8)

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

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post 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)
NikitaOdnorob98
User
User
Posts: 74
Joined: Fri Jun 29, 2012 4:50 pm

Re: PureBasic 5.11 - Packer Bug (Windows 8)

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

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post by Fred »

CreatePack() can return non-zero, but if nothing is added it won't be created.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: PureBasic 5.11 - Packer Bug (Windows 8)

Post 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:
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
Post Reply