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.

Author
Message
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 13th Sep 2003 01:12
A few times I have heard complaints on this board about the flakyness of packaging you're game media with you're executable with darkbasic...

At first it worked fine for me.. When I copied the art to the same folder as my project file, and did not attempt to use wildcards.

Last night I tried to get darkbasic to link in a whole directory of .PNG files, and no matter what I tried, I couldn't get the wildcard's to work...

I tried every file path permutation I could think of from my db code...

c:\Program Files\foo\img1.png

c:\Progra~1\foo\img1.png

img1.png

Come to think of it, the only think I didn't try was a relative path...

..\..\..\Progra~1\foo\img1.png

Can you add a directory of media to DB?

If so, what do you pass to 'load image', the full path? The file name only? What about directory names longer than 8 characters (do you use the ~ notation)?

Has anyone got this to work?

Tony

CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 13th Sep 2003 01:17 Edited at: 13th Sep 2003 01:18
If your exe is in a folder, and your media is in a sub folder (named "media", for example) of that folder, then you would access the media with:

LOAD OBJECT "\media\myObject.x", num

should work

-RUST-
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 13th Sep 2003 05:16 Edited at: 13th Sep 2003 05:18
http://winch.8bit.co.uk/db/proedit.htm
Is what I use. Doesn't move the media to the projects directory and it might be best to save the modified .dbpro file to a new name incase it messes up. Makesure to check that it adds the correct info as well.

This only works with dbpro, you didn't say if you are useing dbc/dbpro.

It's either that, edit the dbpro file by hand or workout the how to use the ide if it works at all.

Hopefully one of ides that is in the works will be out soon.

Login to post a reply

Server time is: 2026-07-23 15:49:46
Your offset time is: 2026-07-23 15:49:46