savebmp path

Previous topic - Next topic

djtoon

why isnt this saving on the path i wanted:

PRINT frameCounter,0,0,0
LOCAL path$="D:/frame"+frameCounter+".bmp"
SAVEBMP path$

Ian Price

Have you used - SETCURRENTDIR("Media") at the start of your code? Maybe that's affecting the final destination?
I came. I saw. I played.

Slydog

#2
Maybe you need two "/" characters in your string?:
Code (glbasic) Select
LOCAL path$="D://frame"+frameCounter+".bmp"

[Edit] Maybe not, I checked my code and I didn't have duplicate "/" anywhere I could find.

You could try to see if it's the 'frameCounter' variable causing the problem with:
Code (glbasic) Select
LOCAL path$="D:/frame001.bmp"

Or, try "\\" instead of "/" in the path?
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Kitty Hello

DJ - it's saving to "D:\frame123.bmp" - is that what you want? Or "D:\fame\123.bmp"?

The "/" (forward slash) is the right (and only valid) directory separator in GLBasic.
I hope it's not SAVEBMP that's faulty.

djtoon


MrTAToad

Some pathing results from PLATFORMINFO$ use "\" on Windows instead of "/"

Kitty Hello

oh bad! I'll fix that.