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 / executables

Author
Message
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Aug 2005 22:42
Is there a way to make an executable and distribute it, without having to distribute the media also? Because it doesn't work unless it's in the sam folder as the media.

--------------
Uncle Sam
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 2nd Aug 2005 22:44
Yeah, compile the media with it, in the final version, that way the media isn't looked at, and it can't be manipulated, and everything is right there.

The final draft (in DarkEdit you just press Make Final) makes a .exe file that has all of the media used to make the game (in the same directory, so additional branches of files are also kep) are compiled and stored to make one file, sort of like how a .zip file works.

If you need more help, just ask me.

------------------------------
Vote for Excelsis on the Puzzle Game Compo

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Aug 2005 22:56 Edited at: 2nd Aug 2005 23:02
I do need help.

A final file doesn't work, but I think it does if it's in the same folder as the media!

--------------
Uncle Sam
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Aug 2005 23:13
In DB Classic, Make Final only includes media files that are in the same directory as the dba file you are 'compiling'.

And even then, it will only include files that are on the 'list' of included files. I use inverted commas, because I'm not sure what filetypes are on the list because I've not seen anything about it in the docs.

Obviously BMP/JPG/WAV etc and the common media filetypes are accepted, but if you make up your own filename extensions (like .MDF and .PRE files), they won't be included in the final exe - so you have to supply them external of the exe.

Media inside folders I always thought were included in the final exe, but aren't - for me anyway.

TDK_Man
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 3rd Aug 2005 01:37
Maybe because I have AVIs...

--------------
Uncle Sam
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 3rd Aug 2005 05:14
No, AVIs work on my Slayer: Battle Tanks game. I have one for the loading screen: loading.avi was the correct name for it. Are there any types you made up? I don't know if that's it, because my computer compiles my .rrl files (made-up) which are saves. I'm not sure.

--------------------------------------
Vote for Excelsis on the Puzzle Game Compo

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 3rd Aug 2005 06:01 Edited at: 3rd Aug 2005 06:01
I didn't make any up!

Maybe it's 'cause I have many DBA files in the same folder...

--------------
Uncle Sam
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 3rd Aug 2005 06:02
No, I use #include commands and keep source code in my folders, that can't be it. Is all of your media in the same directory as the main source code?

--------------------------------------
Vote for Excelsis on the Puzzle Game Compo

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 3rd Aug 2005 21:42
Yes.

--------------
Uncle Sam
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 3rd Aug 2005 21:54
Are you using any .gif files or image files not supported by DarkBASIC, as for a .html help file?

--------------------------------------
Vote for Excelsis on the Puzzle Game Compo

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 4th Aug 2005 02:28 Edited at: 4th Aug 2005 02:28
Lets' see, I use psd, png, jpeg, and bmp, but no gif.

--------------
Uncle Sam
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 4th Aug 2005 04:49
Did the .png's and the .psd's run and show up in DarkBASIC? If not and their only for a .html help file or something, that might be the problem.


__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 4th Aug 2005 07:03
They showed up.

--------------
Uncle Sam
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 4th Aug 2005 23:29
PNGs (I think) and PSDs (definitely) aren't included in a 'Make Final', so there would be your problem.

You *COULD* try renaming them to another file type (so that they get included) and pray DBC can load them even under their false names, or you could go for another method.

I would recommend using FileBlocks (look real hard in the 'Input' section of the DB help file) and then using a compression program (that's capable) to produce a Self-Extracting EXE file.

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!

Login to post a reply

Server time is: 2025-05-22 15:00:19
Your offset time is: 2025-05-22 15:00:19