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 / Media not loading

Author
Message
3dmasters
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 17th Nov 2009 03:20
Hello all,
I am having this error trying to load any media into dark basic pro... Something i may have loaded or something changed a setting are something.

any example code or my own code will not load any objects.
Create a new project and name the fold add the media to it and still gives me a error and compile time.


Does anyone know how do fix this?
Thank you

Here i am!!!
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th Nov 2009 08:13
Example code?

Your signature has been erased by a mod because we're sadistic losers with nothing better to do. (joke)
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 17th Nov 2009 13:03
LOAD OBJECT "my_object.x",1
LOAD IMAGE "my_image.bmp",1
LOAD SOUND "my_sound.wav",1

do
sync
loop

just let us know if it works....good luck

learning every day
3dmasters
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 17th Nov 2009 21:46
Hello thank you,
for your help it worked great.

I feel like a big dummie, I was because the load object i did was in lower case.

Only think i did was type like this LOAD OBJECT.....


I wish would have known that.

Thank you guys,
Leroy

Here i am!!!
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 17th Nov 2009 23:00
The case of anything in Darkbasic doesn't matter.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 18th Nov 2009 12:54
mmmmmm !!

are you sure it was that ??? MMMMMM

learning every day
Vues3d on Kalimee
22
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 18th Nov 2009 13:07
sure.. you can write lower case or uppercase is exactly the same.
The error can come from the fact that you are loading an object that doesn't exists in the path.. example:

Your media is located here:

c:/media/sound.wav

if you write:

Load sound "sound.wav" ... this will cause an error because of the wrong path...

Login to post a reply

Server time is: 2026-06-11 01:55:55
Your offset time is: 2026-06-11 01:55:55