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 / i need help loading a object from darkmatter

Author
Message
bobbyd
17
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 24th Jan 2009 11:17
i need help loading a object from darkmatter because every time i try to load and play it. it says file does not exist heres the code [
rem Load your object
load object \"H-Alien Mutant-Move.x\",1

rem Animate your object
play object 1

rem Press any key to continue
suspend for key

rem Delete your object
delete object 1

rem End the program
end]
Robert The Robot
19
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 24th Jan 2009 12:09
Firstly, I should just point out that people prefer it if you select your code and place it in a code snippet like the one below(when you go to post, highlight the code and then click the "code" button, top right of the post forum message window.)

So, on to your problem. I can think of three things you may be doing wrong - firstly, you're first line reads:

but it ought to read:

The two "\" you put in could be confusing DBC.

Also, are you sure that the file "H-Alien Mutant-Move.x" is actually in the same folder on your computer as the dba source code you are trying to compile? If you're just running this code from the editor, then the folder DBC will be looking in for the object will be "C:\program files\Dark basic software\Dark basic" and it might not be able to find it.

And finally, are you sure you've typed the filename correctly? If memeory serves me right, there are no spaces in the names of any DarkMatter models, and I'm sure they use "_" rather than "-" (Press shift + the "-" key to get the underscore symbol). If in doubt, select the file and go to rename it, then when the filename is highlighted just copy and paste it into your code - but don't forget the .x extension!

Hope this helps!

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."

Login to post a reply

Server time is: 2026-07-05 11:52:18
Your offset time is: 2026-07-05 11:52:18