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 / How can I put 1,400 very small mp3 files into my db-pro project? It takes too long.

Author
Message
Mark Garrett
Reviewed AGK on Steam
21
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 10th Jan 2011 03:37 Edited at: 10th Jan 2011 03:53
Hi,

I have this new project and it's almost ready to go, I've tested it and it works fine but when I try to make an executable out of it it doesn't work because it says it needs the mp3 files in it. But what is the best way to insert the 1,400 mp3 files into it without doing it one-at -a-time like it is now with db-pro version 1.075?

Every time I press the media button to include another little mp3 file it takes about 30 seconds each time. Is there some way around this? Is there an installer program where I could install the db_pro exec file along with the folder with the 1,400 files in it?

The db-pro exec works fine on my desktop as long as I have the folder full of mp3 files installed on my desktop too. But I need to transform it into an executable file that is portable and easily transfered to other people who might want to use it also. But first I need to put the 1,400 mp3 files into it, but how?

Two heads are better than none
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 10th Jan 2011 03:47
I wouldn't recommend packing media into the EXE, since each time it's launched it has to unpack the files to a temporary directory, which takes time.

If you want to distribute your project as a single file either use an archive format (rar, zip) or take a look at the various installers around.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Jan 2011 04:09
As long as you copy the mp3 files into your programs folder or a sub folder within you should be able to use them without adding them in.

http://s6.bitefight.org/c.php?uid=103081
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 10th Jan 2011 04:58
yeah as dvader said, you dont need to add the files into your ide for dbpro to see them and have them be loadable.
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 10th Jan 2011 17:00
Hey, Bubba!

Two other ways...

I'm using the editor marked as being from Jun 23 2010, and when I am adding media to my executable, I can select multiple files at one time. So a "select all" would get all your files in.

Or, you can edit your project's .dbpro file and under

; **** External Files Information ****

; **** Media ****

you can add in as many files as you like.

But, as said above, the files will have to be unpacked every time you run the program, so an installer might be your best bet.

If you don't want the user to have access to your .mp3 files, then you might consider using memblocks and memblock files to store and retrieve your files.

Login to post a reply

Server time is: 2026-07-21 15:13:46
Your offset time is: 2026-07-21 15:13:46