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 / Classic VS. Professional EXE

Author
Message
MidKnight
16
Years of Service
User Offline
Joined: 26th Mar 2009
Location:
Posted: 12th Apr 2009 22:06
Is DBP smaller then DBC's EXE? For an example i want to make a stand-alone EXE, and no matter how little data i have, it starts off with about 1.5 megabytes.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 12th Apr 2009 22:15
From what I remember reading a while ago, for DBP (at least, though idk about DBC) once you use, for instance, the sprite command, it will load the entire Sprite library into the program. So even if you only use the sprite command once, it will load it into the exe and make it larger. That would probably be my guess.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Apr 2009 23:25
DBC's exes (in version 1.20) always start out at about 1.7 megs + the size of your .DBA file and .DBA libraries. You can get a rough aproximation of the final size by adding the size of your .dba program and libraries used and the size of any media you uses. So if all your .dba files were .5 megs, your images added up to 3 megs, all your sound was 20 megs, and all of your models were 10 megs, you could guess the size of your final exe in DBC to be about

exe start size (1.7 + .5) = 2.25 megs
media = 3 + 20 + 10 = 33 megs
a final exe build = 35.25 megs

Of course, you could just build the exe @ 2.25 (not a final that includes media built in)
and store your media compressed so the final distribution is smaller.

If you use build final, your directory should be clear of everything except what you want included in the final build. If there are any "extra" test files, or exes, or whatever, they can get built into your exe; bloating it's size and possible making it not work.

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Apr 2009 23:34
Wait other things other then what you have in your program can get put in if there in the directory of your dba?

New Site! Check it out \/
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Apr 2009 23:42
Yup. When you use build final, db goes through the project folder and any subfolders and tries to stuff whatever it can into the exe. That's why you have to be careful that your project folder is "clean" of only the DBA and media you want (including subfolders) you want included. Remove DLLs too until after the final build and then place them back in your program folder. I think DB uses pak methods that just grabs everything in the project folder, throws it into a pak file, and tags it onto the end of the compiler. That's why I prefer to just make an exe (not a final) and distribute the media, dlls, text files, etc. and folders along with the exe. If one is worried about their media being lifted, well there's copyright law, there's encryption and compression methods, there's custom files types you could create; security can be handled in a lot of different ways.

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Apr 2009 23:45
oh wow i didn't know that! well thanks!

New Site! Check it out \/

Login to post a reply

Server time is: 2025-08-08 20:42:39
Your offset time is: 2025-08-08 20:42:39