I give many thanks to any help.
Compression/Decompression Question
-
DriakTravo
- Enthusiast

- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact:
Compression/Decompression Question
I give many thanks to any help.
Have you looked at PureInstall ??
http://www.reelmediaproductions.com/pureinstall
You could also IncludeBinary your files and then UPX your compiled app.
http://www.reelmediaproductions.com/pureinstall
You could also IncludeBinary your files and then UPX your compiled app.
-
DriakTravo
- Enthusiast

- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact:
I think the best solution is to compress each file you need (a .bmp , a .wav , etc.. ) with PackMemory() and then you include each compressed file in your program with IncludeBinary. At run-time you decompress each file. Instead of using IncludeBinary, you could add the compressed files as resources. That would be better since you won't waste memory. See in the Tips&Tricks section how to load a file from resources.
-
DriakTravo
- Enthusiast

- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact:
-
lethalpolux
- Enthusiast

- Posts: 171
- Joined: Sun Jun 08, 2003 10:50 pm
- Location: France
- Contact:
Yep,
you create your pak file:
createpack("mycompressedfiles.pak")
; you add your files
addpackfile("Image1.bmp")
addpackfile("Image2.bmp")
addpackfile("mywave1.wav")
addpackfile("mywave2.wav")
closepack()
you execute this code to compress the files.. After in your program:
openpack("mycompressedfiles.pak")
catchsprite(0,nextpackfile())
catchsprite(1,nextpackfile())
catchsound(0,nextpackfile())
catchsound(1,nextpackfile())
closepack()
It's ready to use...
you create your pak file:
createpack("mycompressedfiles.pak")
; you add your files
addpackfile("Image1.bmp")
addpackfile("Image2.bmp")
addpackfile("mywave1.wav")
addpackfile("mywave2.wav")
closepack()
you execute this code to compress the files.. After in your program:
openpack("mycompressedfiles.pak")
catchsprite(0,nextpackfile())
catchsprite(1,nextpackfile())
catchsound(0,nextpackfile())
catchsound(1,nextpackfile())
closepack()
It's ready to use...
Pol.
Intel Core2Duo 6600 - 3Gb DDR2 - Geforce8800Gts - Vista Home Premium 32bits
Intel Core2Duo 6600 - 3Gb DDR2 - Geforce8800Gts - Vista Home Premium 32bits
-
DriakTravo
- Enthusiast

- Posts: 346
- Joined: Fri Oct 10, 2003 12:42 am
- Location: Tampa,FL,USA
- Contact:




