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 / Cannot load any media

Author
Message
9911MU51C
12
Years of Service
User Offline
Joined: 4th Feb 2014
Location:
Posted: 5th Feb 2014 20:10
hello, I'm having some major issues. No matter what I do I can't get any media to load. Any ideas what I'm doing wrong?

LOAD OBJECT "Tree 1.dbo",12

whenever I try this or any other file I just get the "file does not exist" error
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 5th Feb 2014 20:47
Just checking... The file is in the same directory as your project, right?
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 5th Feb 2014 21:15
Make sure you make a project .dbpro file dba filew can not work with relative paths.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
9911MU51C
12
Years of Service
User Offline
Joined: 4th Feb 2014
Location:
Posted: 6th Feb 2014 18:46
you mean directory as in "C:\Program Files\The Game Creators\Dark Basic Professional Online\Media" ? then yes, the file still does not load.

And the treemagik extension makes the models .dbo, I've tried .x too though, neither work
revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 7th Feb 2014 02:06 Edited at: 7th Feb 2014 02:09
Quote: "you mean directory as in "C:\Program Files\The Game Creators\Dark Basic Professional Online\Media" ? "

He means that your media files must be in the same folder as your project files (the *.dba and *.dbpro files). So if your project's source was in "C:\MyGame", then your media files must in that folder as well (or in a sub-folder within that directory, ex: "C:\MyGame\Media"). At that point you can use
or
to load the object.

Login to post a reply

Server time is: 2026-07-06 07:52:39
Your offset time is: 2026-07-06 07:52:39