Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / USBs and Paths

Author
Message
hatothedee
11
Years of Service
User Offline
Joined: 3rd Oct 2013
Location:
Posted: 3rd Oct 2013 02:23
I have been trying to open up a Darkbasic Pro file from a USB (I just saved it on the USB as a project), though, whenever I try to open it on the same computer, Darkbasic Pro opens up but with no code. Also, about paths, how will I load in an image/sound if I play it on another computer? (also, with Darkbasic) Example:


How will path lead to where it needs to be if it's on a different computer? Thank you in advance.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Oct 2013 01:20
You can specify relative paths (relative to the folder the source file is in), so if your project folder looked like this:

Then to load "brick.png" you could type
and it will load no matter where the myProj folder is located.


Formerly OBese87.
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 29th Oct 2013 02:56
"C:/etc./etc./images/water.bmp", 1 -> "C:\etc.\etc.\images\water.bmp", 1

Stream SnifferTools/Plugins/Models/Games and more!

Login to post a reply

Server time is: 2024-11-21 12:15:53
Your offset time is: 2024-11-21 12:15:53