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~