Terabit Datapacker

Blitz3D Forums/Blitz3D Beginners Area/Terabit Datapacker

pc_tek(Posted 2008) [#1]
I am trying to use this utility, which suits my needs perfectly, but alas, when I try to use it, the "image does not exist"

Although it unpacks ok into the temp directory!

I am using B3d v1.99

Any help/info would be appreciated.


TeraBit(Posted 2008) [#2]
How are you referencing the file. The usual way is to use the path returned from the Pak() function.

i.e.

Image = LoadImage(Pak("MyImage.jpg"))

The Pak() function should return the full path to where the image is. Also depending on the config it may appent TMP to the filename (i.e. "TMPMyImage.jpg"), but again the Pak() function returns the correct path and name.


pc_tek(Posted 2008) [#3]
My command is...

title=LoadImage(Pak("title.png"))

then...

drawimage title,0,0

The drawimage returns the error, but the image is extracted correctly as TMPTitle.png


boomboom(Posted 2008) [#4]
make sure you define a folder to use as the temp folder first

you can use the systemproperty command to use the defualt windows temp folder.


pc_tek(Posted 2008) [#5]
I have set that by...

PakOutputDir SystemProperty ("tempdir")

...but the drawimage still gives an error


pc_tek(Posted 2008) [#6]
I've found the error. I had defined the graphics AFTER I loaded the pack. Strange...once I put the command...

Graphics3d

...above the loadimage, it worked!

YAAAAY


boomboom(Posted 2008) [#7]
We all have our stupid days :)

I did a similer thing not so long ago.