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 / Including media in the EXE

Author
Message
Joacim
11
Years of Service
User Offline
Joined: 11th Dec 2014
Location:
Posted: 13th Dec 2014 17:12
Hi, I've understood that I can include media inside the exe file by changing the Application Type to Media and then add them to Media folder and the corresponding Media pane/window/tab.

The help file suggests that this is only for images. Is that true or can I also include other types of media such as sound files or models?
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 13th Dec 2014 19:58
I experimented with this a few years back. As I recall you can include any external file not just media.
Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 13th Dec 2014 21:17
You can include everything that you use in/for your project: images,sounds,models,txt files, dba files used by the main .dba as includes, .arr array files etc. etc..
The project .dba will be included automatically.
Cheers
Scorpyo
Joacim
11
Years of Service
User Offline
Joined: 11th Dec 2014
Location:
Posted: 14th Dec 2014 02:40
Thanks guys. So I can include any type of file so does that also mean that I can load, for example, a model directly from this compiled EXE file simply by using the statement/command:
Load Object "media\MyObject.x", objectNumber ?
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 14th Dec 2014 10:50
Yes. The only file type that doesn't work is a external dll. You can include a dll but DBPro cannot load it.
Joacim
11
Years of Service
User Offline
Joined: 11th Dec 2014
Location:
Posted: 14th Dec 2014 14:39
Thanks! It makes perfect sense that you can't load a dll that way since the whole idea behind a shared library is that it should be loaded only once.

Login to post a reply

Server time is: 2026-07-05 15:01:39
Your offset time is: 2026-07-05 15:01:39