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 / reducing your final exe size

Author
Message
Red Giant 2183
22
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 26th Feb 2003 12:00
hello all, perhaps some of you were wondering about how to reduce the size of a final exe which contains all your media. I have discovered that when making a final exe in db that it not only includes the files that the exe uses, but every file within the current working directory . this means for example , that if you have 50 megs of files in the same folder as your source code file that you are working on , that it will include all files in that folder whether or not your program actually uses them or not. Since discovering this , when preparing a final exe I make a new folder and place a copy of the source code and any media that the program uses into 1 folder. guess what ? no more huge final exe files ! here is a good example - make you a new folder and place a new source code file in the folder you just made with the following code :
print "hello"
end
if you make a final exe at this point since the folder only contains the source code file, the size of the exe will be extremly small. however, if you use the same code above and move a couple of large files even though the program will never access them , upon making your final exe, the size of the program is now quite larger because it has inlcuded those files your not using
cheers
RG2183~
RGteam~
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 26th Feb 2003 14:27
yes, I learned that the hard way when a five line program in the base folder of my desktop was 200mb...confused me at the time, but a lesson well learned

Darken the skies, we are God.
deathbringer
22
Years of Service
User Offline
Joined: 27th Jan 2003
Location:
Posted: 1st Mar 2003 00:11
whew, good thing im organising all my stuff together XD, apart from all those randomly named (in anger) 3d models when i was trying to get an anim8or model to work in darkbasic and keep all its colours intact XD

Red Giant 2183
22
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 1st Mar 2003 18:54
yeah , i definatly know what you mean, on a side note, go to our website and download our little creation ( lol )
that was made with dark basic [v1.3] at http://http://warp9.to/redgiant/downloads.html

RGteam~
Red Giant 2183
22
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 1st Mar 2003 18:56
oh shoot, thats http://warp9.to/redgiant/downloads.html

RGteam~
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Mar 2003 20:50
i found out that the first time i used DB...

xxxpetratxxx
B. R. W

Login to post a reply

Server time is: 2025-05-15 12:53:21
Your offset time is: 2025-05-15 12:53:21