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 / loading files from other drectories

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 19th Mar 2004 22:55
as of now I have just been dumping all of my files: sound, models, textures in to the main directory as my project, so i just have a bunch of files everywhere, its its messy. I want to know if I can store my different files in different folders in my projects directory, like make folder for textures, for sounds and so forth. But I know if i load a file i have to put

load object "example.x",1
or
load sound "example.wav",1

and that will make it look for the file in the main directory
what do i have to do so that i can store the files in another directory, but still make it load them.

I hope i worded this right.

Thanks in advance
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 19th Mar 2004 23:09
well, lets say you stored your music in the directory 'music'. you would put:
LOAD MUSIC ".\music\mymusic.mid",1

that should work, if it doesn't try
LOAD MUSIC "music\mymusic.mid",1

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, DBC 1.13
~Dragael Software
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 19th Mar 2004 23:10
ok thank you very much. that will surely come in handy to help keep my files organized and less confusing. =D
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 19th Mar 2004 23:11
no problem

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, DBC 1.13
~Dragael Software

Login to post a reply

Server time is: 2025-05-22 21:19:59
Your offset time is: 2025-05-22 21:19:59