integrating files with the exe?

Blitz3D Forums/Blitz3D Programming/integrating files with the exe?

Dimas(Posted 2010) [#1]
I have a large jpg file, and I would like to get it into the exe code, so instead of having

Game.exe 100kb
Pict.jpg 900kb

To have a single file:

Game.exe 1000 kb.

Of course, I need the pointer to pass the "inserted" jpg file as if it was loaded...


Xors Team(Posted 2010) [#2]
Use UPX


GaryV(Posted 2010) [#3]
Use UPX
UPX is only a file compressor.


BlitzSupport(Posted 2010) [#4]
http://www.blitzbasic.com/toolbox/toolbox.php?cat=10

Try Blitz Media-Linker first.


GaryV(Posted 2010) [#5]
Dimas: Look on any reputable shareware site under developer tools. You will find numerous programs that can handle what you want.


Xors Team(Posted 2010) [#6]
Arghh.. Not UPX, MoleBox. Sorry
But it seems its price grows every year.


Dimas(Posted 2010) [#7]
The thing is that I want to "hide" my image. The problem is that it is really a texture.

I tried http://www.blitzbasic.com/codearcs/codearcs.php?code=2633 but it only encodes/decode images. I am trying with textures but it doesnt work.

Blitz Media Linker seems to do the trick, but

1.- Lionk does not exists anymore
2.- Author web is in german
3.- Author web seems not to have it, just programs for pure basic.

Any hint?


GaryV(Posted 2010) [#8]
Any hint?
Dimas: Look on any reputable shareware site under developer tools. You will find numerous programs that can handle what you want.

Arghh.. Not UPX, MoleBox. Sorry
But it seems its price grows every year.
Dimas would probably want the old/classic version. The price changed so much because it quit being a simple packer and turned into a virtualization/sandboxed solution like ThinApp.


Dimas(Posted 2010) [#9]
Just want an "easy" (and free) way to hide my texture file.

One option could be to include the file inside the exe, another one, create a encoded version of the file, so It can not be loaded.

Still looking at PackMaker...


_PJ_(Posted 2010) [#10]
This works with any file type.

http://www.blitzbasic.com/codearcs/codearcs.php?code=2696

However, be careful with large files or files that are large when uncompressed (for example, mp3 files etc.) as memory gets gobbled up while it's being processed.


Dimas(Posted 2010) [#11]
Thank you all guys, at the end, it seems PakMaker did it for me.