Terabit Datapacker
Blitz3D Forums/Blitz3D Beginners Area/Terabit Datapacker
| ||
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. |
| ||
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. |
| ||
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 |
| ||
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. |
| ||
I have set that by... PakOutputDir SystemProperty ("tempdir") ...but the drawimage still gives an error |
| ||
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 |
| ||
We all have our stupid days :) I did a similer thing not so long ago. |