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.

Author
Message
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 16th Feb 2013 22:53
I am going through the handbook by Alistair. Code below.
The .exe locks up, and I have seen the message "Object not found" (might have been "file not found"). The file is in the same directory as the .dba and project.

I don't see anything wrong with the code. So why is it saying it can't find my .3DS file?? Yes, I checked the spelling of the file name at least 3 times.

SET DISPLAY MODE 640,480,32
COLOR BACKDROP RGB(155,155,0)
BACKDROP ON

LOAD OBJECT "ModelTest.3ds",1

POSITION CAMERA 0,0,-2

DO
TURN OBJECT LEFT 1,1
PITCH OBJECT up 1,1
WAIT 10
LOOP

END

www.mindsclay.com
lucymagus.mindsclay.com
Nytus Sermus
13
Years of Service
User Offline
Joined: 17th Jan 2013
Location:
Posted: 17th Feb 2013 06:14
Try setting an absolute path just to test, the problem is most likely your path is not set correctly in the editor...


(put this line in BEFORE loading any media)
Note: if your project is in some deep directory like under the DBpro installation, i recommend copying the address out of a window just to be sure you dont type it wrong or something

If this works then later you can set a path relative to your game executable




You could be done already.....stop trying to re-invent the wheel.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Feb 2013 08:36
File paths are relative to wherever the .DBPro (project file) file is stored. If there isn't one associated with your dba file, then typically it will be DB's temp folder. In the case of EXE files, the paths are always relative to folder from where you launched the program (its current working directory).

"You're all wrong. You're all idiots." ~Fluffy Rabbit
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Feb 2013 14:39
Ah, I just want to say... try this

LOAD OBJECT ".\filename.ext",1

It works for me...

Login to post a reply

Server time is: 2026-07-07 09:04:53
Your offset time is: 2026-07-07 09:04:53