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 / need more help with DBC

Author
Message
Brad
20
Years of Service
User Offline
Joined: 17th Dec 2004
Location:
Posted: 29th Dec 2004 05:41
when i try to load an image from the libary it says that file doesnot
exist.what is wrong? ALSO i cant get into the sound editor,model editor.ALSO if i try to load models or sound it says file doesnot exist.WHAT IS WRONG ?

Brad A Pearson
Frozen Flame
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location:
Posted: 29th Dec 2004 09:38
The file doesnt exist if it is not in the same directory of your saved program.
The sound editor, model editor and all other editors are not actually there. If you have a sound editor or model editor then you can have it be linked from dark basic so when u click the button it minimizes Darkbasic and opens your editing program.

Hope thats helped a little bit.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 29th Dec 2004 17:14
Brad, the best way to link to your models/ sounds etc, even if they are in your folder, is to do something like this:

Lets say you have your models in a folder called Media, within the same directory as your exe.
To get at the model called "man.x", you would put this as the path:

".\Media\man.x"

Notice the ".\" part?
That tells windows that to the start of the path, you want to add the absolute path, ie, the "C:\Program Files\" etc part.
This is also handy when giving your game to other people, as it means that no matter where they put the exe, and the folders with it, it will still load the models

Also, as a side note, if you want to specify the folder ABOVE the current one, then you use "..\" ( doube dot ).
For example, if your exe is in "C:\program Files" and you want to access a file called text.txt which is stored at "C:\Stuff\text.txt", then you would use: "..\Stuff\text.txt"

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 3rd Jan 2005 01:28
Can you do ... and .... etc?

Am I the only one here who's really confused?
http://db1games.topcities.com
(used to be demonsbreath)
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 7th Jan 2005 02:17
Nope. '.' and '..' are just left over from the DOS days.

2005 - Year of cartoony red cubes (look! black outline!), for me at least.

Login to post a reply

Server time is: 2025-05-24 20:00:47
Your offset time is: 2025-05-24 20:00:47