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 / Quick Question about the IDE

Author
Message
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th May 2003 14:57
just wondering... i know that there is an Add Media section to the IDE right - but i'm wondering, if you add media using it ... do you still have to specify where i comes from or can you just load it as if its in the base directory?

right now my directory structure is

[Projects] [Common] --- [Media]
....................... [Inc]
....................... [Src]
.......... [Tutorial] - [BumpMapping] - [SelfShadow]

now all of my media is in Media, and i'm already including files from the Inc & Src - so what i'm wondering is would i have to go

dir$="c:\documents and settings\fmtau.raven\my documents\my projects\dark basic professional\common\media"
load image dir$+"\textures\earth.bmp",1

or can i just write something like
load image "..\textures\earth.bmp",1

this is more a question of convienience really, but a valid one.
we really do need the help extended so it has a full help on how the IDE works and everything - personally i'd rather press F1 and click on IDE and checkout the workings from that rather than have to ask here everytime i need to know something about it.
wish that Pro had better help files on show for the more common aspects like DB does.
Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 10th May 2003 15:06
Theoretically you should be able to to the latter (as the CSD is the directory from where the program is run from). However, I just use "bitmaps\...", "vechiles\..." when loading.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th May 2003 17:12
so if i add them as media they're added from the base?
how this stuff all works kinda confuses me really, i like C++ where you just tell it which directories to look in and then add the files you want.

wonder how IDE v2 does this

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 10th May 2003 20:32
Uh... I thought DBP did that . All I ever do is specify the subfolder, such as 'Media\Utterdoomattackoftheninjaturtles.bmp' and it works fine... if I include the media, it still works fine, but I just don't need to have the file there.

--Mouse

Famous Fighting Furball
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th May 2003 20:42
mouse you've missed the point...
my media it situated here -> ../Dark Basic Pro/Common/Media/...
my program is situated here -> ../Dark Basic Pro/Bump Mapping/SelfShadow/...

all i wanted to know is if i add it as media do i need to specify the directory like
dir$="../Dark Basic Pro/Common/Media"
load image dir$+"/images/earth.bmp",1

or could i do it like this after adding as media
load image "earth.bmp",1

really wish i could just specify compile directories, so then all i have to write would be like load image "../images/earth.bmp",1 and rather than searching in the base it is in, it searchs in ALL of the folders i've listed.

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 10th May 2003 21:03 Edited at: 10th May 2003 21:04
I found you have to use the full path or the media isn`t found, just position the mouse pointer over the path shown in the selector window then select and right mouse to copy then paste the path into your code, saves you having to type reams of path in manualy if like me you have media deep down in subfolders, once I am done then I move all the media that was lucky enough to survive into the base folder, alter the paths and delete the unused references.

Mentor.

Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 10th May 2003 21:14
Ah, I get it, thanks .

--Mouse

Famous Fighting Furball
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th May 2003 22:34
kinda seems like a waste of time having a media plugin
would've thought that
"../../Common/Media/Texture/Earth.bmp" would've worked
i've not got pro up and running on this system yet (i'm working my way around each of my comps and i don't feel like having several systems on the go)

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!

Login to post a reply

Server time is: 2026-07-11 13:58:45
Your offset time is: 2026-07-11 13:58:45