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 / Media include

Author
Message
BENOJ
18
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 30th Mar 2006 16:26
hi is it possible to make a dba file which loads all the media in my game and then include it in my game file and lookup the media file from it? i am having problems doing this not sure if it is me or if it is possible .

i have made a little example to illustrate what i mean:

media.dba


game.dba


abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
BENOJ
18
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 30th Mar 2006 17:40
that should read :


abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
Euphoria
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: United Kingdom
Posted: 30th Mar 2006 21:02 Edited at: 30th Mar 2006 21:02
Is this DBP or DBC?....dont have any experience of DBC but it may still apply......

From what I understand (which isn't much ) any included files can only contain functions.....so if you put all your loading stuff in a function, then it should work

so:

media.dba


game.dba


Somebody may have to correct me if I am wrong there...
BENOJ
18
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 30th Mar 2006 21:51
CHEERS!!! yea thats done it for me, that gonna make the code so much more efficient thanks a lot m8

abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 31st Mar 2006 02:16 Edited at: 31st Mar 2006 02:17
Benoj. the problem was that you had a "/" infront of your stuff which would not load it.
if you take those slashes out it should work.

media.dba


game.dba


BENOJ
18
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 31st Mar 2006 13:59
no i didnt when it was in the compiler, i dont know why but sometimes when i type/copy stuff to the forums, it adds in / and \ its really wierd

abit fatal1ty an8 sli mobo, ati radeon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)

Login to post a reply

Server time is: 2024-11-27 22:49:50
Your offset time is: 2024-11-27 22:49:50