Unpack packed files with Unpackfile()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
omid-xp
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Jan 27, 2004 2:17 pm

Unpack packed files with Unpackfile()

Post by omid-xp »

1. Packed file by PureBasic is standard format in compressed files ? ( Zip, Rar, Cab , ..... )

2.Why purebasic easy pack files by AddPackFile() but for unpack must use of memory ?

Whay purebasic not have Unpackfile() command ?

Very beginners need to this command for easy unpack files.

It is alone command i have problem with it. :?

Can i see this command in new version of PureBasic ?


Thanks.
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

check out 'OpenPack()' and 'NextPackFile()' and see if that help, if not i've totaly missunderstood your question..
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

All thats needed is WriteData(MemoryAddress, SizeOfPackFile()).
omid-xp
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Jan 27, 2004 2:17 pm

Re: Unpack packed files with Unpackfile()

Post by omid-xp »

omid-xp wrote:1. Packed file by PureBasic is standard format in compressed files ? ( Zip, Rar, Cab , ..... )
????????

For question 2 i search this forums and find just one good and small code for it, but it's not work and see on message " can't read the memory address ..... ".

Have you small code for unpack files ?
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

1. Packed file by PureBasic is standard format in compressed files ? ( Zip, Rar, Cab , ..... )
Purebasic uses the JCalG1 algorithm rather than a standard format.

JCalG1 is used because is very quick at expanding, but takes a long time to compress.

More details here: http://www.collakesoftware.com/jcalg1.htm
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I too am looking for unpackfile code, I was supprised PB only have 1/2 support for easy file packing and unpacking (only has packfile . hrm)

Anybody have a snippit?
omid-xp
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Jan 27, 2004 2:17 pm

Post by omid-xp »

Thanks GedB.

I want of fred add this new command ( Unpackfile() ) in next version if not please some one give me one small source code for unpack packed files by purebasic.

Very Thanks.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

well, the only thing im not happy with is that the compressed file dosent have the filename included, so it would be easy to extract filenames-
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

Post by Wolf »

Agree.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

well i looked at the JaPBe's include pack and noticed a library named PackContainer. I think maybe that does what we want.. Also the lib PackPlus.
Post Reply