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 Professional Discussion / DarkBasic Pro can't locate any files

Author
Message
Dier
14
Years of Service
User Offline
Joined: 19th Jan 2012
Location:
Posted: 20th Jan 2012 23:35
We are installing DarkBasic Pro on multiple computers with the DarkStudio bonuses. We are also using the ISupportLearning's Video Game Design for teaching students at our school.
Currently when trying to run ANY file with a "Load bitmap "path/to/bitmap.bmp" it can't locate it, even if the file is in the .DBA images folder. Any help with this problem?
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 20th Jan 2012 23:44
It should look in the relative path of the EXE. So if the program is stored here: "C:\Directory\";

Load Bitmap "Name.bmp", 1 should load "C:\Directory\Name.bmp"
Load Bitmap "Images\Name.bmp", 1 should load "C:\Directory\Images\Name.bmp"

Query the current directory using Get Dir$().

Dier
14
Years of Service
User Offline
Joined: 19th Jan 2012
Location:
Posted: 20th Jan 2012 23:45
Shouldn't I just be able to be "images/name.bmp"?
If the dir is as follows:

Images (Folder)
Sounds (Folder)
Textures (Folder)
Game.dba
Dier
14
Years of Service
User Offline
Joined: 19th Jan 2012
Location:
Posted: 21st Jan 2012 00:30
Fixed it, nevermind.

Login to post a reply

Server time is: 2026-07-10 01:32:04
Your offset time is: 2026-07-10 01:32:04