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.

Newcomers DBPro Corner / loading darkmatter problems

Author
Message
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 3rd Aug 2006 10:49
i installed it and tried to loada model into my program and it is not working herre is my code

has anyone got an idea on how to change it please help
Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 3rd Aug 2006 14:09 Edited at: 3rd Aug 2006 14:09

Your syntax is all wrong. You need quotes, and I don't understand why you're putting all those paramters there. You've got one more than supported, and there is no such texture mode. You're also missing a coma.

Also, don't load the 3ds, load the .x file.


Come see the WIP!
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 3rd Aug 2006 20:45
i tried that and i get this error

Runtime Error 105-File does not exsit at line 20 any more help.
Jrock
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Riven
Posted: 3rd Aug 2006 21:36
Make sure you specify the folder it is in, like C:/Foldername/File.3ds.

erm

Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 4th Aug 2006 02:53
The .x model needs to be in the same folder as your .dbpro file is saved in. You should NOT specify the folder that it's in, because nobody else will be able to play your game on their computer, as their directory structure will be different from your own. Use relative paths for everything.


Come see the WIP!
Jrock
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Riven
Posted: 4th Aug 2006 02:56
Yes, that is what I meant. Hovever, until I get my project off the ground and really think it will be playable, I usually just keep them in a folder and once the game is ready, just move that folder into the folder that the EXE is kept in.

erm

sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 4th Aug 2006 10:56 Edited at: 4th Aug 2006 11:01
can u explain a bit clearer i seem to not understand
Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 4th Aug 2006 18:33
If your file is called "Game.dbpro", and it is located at "C:\project\Game.dbpro", and you have a line of code...

'load object "H-Knight-Move.x",1'

Then that file, H-Knight-Move.x, has to be located at...

"C:\project\H-Knight-Move.x", which is the same folder as the file .dbpro. That is the default location DBP looks for a file.

Hope that is clearer.


Come see the WIP!
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 4th Aug 2006 19:22
Use relative paths.

Meaning you can create a "media" folder inside your project's folder.

To keep things organized you should start off with this method. By using this method you can organize your project even further by adding more directorys. (Sounds, Images, Models, etc).

Example
Project Folder: "C:\Projects\MyGame\"
Media Folder: "C:\Projects\MyGame\Media\"
H-Knight-Move is located in Media Folder.
"C:\Projects\MyGame\Media\H-Knight-Move.x"

DarkBASIC Code


Online Flash Games and Guides .::. http://www.gamestack.org
Online Notebook .::. http://onlinenotes.gamestack.org
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 5th Aug 2006 12:59
i get it know thx for the help
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 6th Aug 2006 18:15
more help please how do i turn thwe camera around and the knight looks weird i will include a pic of the weird knight





here is the camera code any ideas on how to turn it around and
how do you take gamplay pics and load them on here i am new is all
sith lord
18
Years of Service
User Offline
Joined: 29th Jul 2006
Location:
Posted: 6th Aug 2006 18:16
please help

Login to post a reply

Server time is: 2024-11-26 13:44:02
Your offset time is: 2024-11-26 13:44:02