Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ILurker on April 06, 2003, 12:53 PM

Title: Decreasing file size
Post by: ILurker on April 06, 2003, 12:53 PM
I released a version of my bot, but relized that it is 3.58 mb, When i try to remove useless coding in the source, it barily decreases anything...
What is causing all of the filesize?
Title: Re:Decreasing file size
Post by: PaiD on April 06, 2003, 01:09 PM
Um if you have any Pics in it that are Loaded into the bot.
**My Guess**
Title: Re:Decreasing file size
Post by: drivehappy on April 06, 2003, 01:12 PM
Pictures and databases with your program will make it very large. If you're bitmaps, convert them to jpg.
Title: Re:Decreasing file size
Post by: Yoni on April 06, 2003, 03:10 PM
Quote from: drivehappy on April 06, 2003, 01:12 PM
Pictures and databases with your program will make it very large. If you're bitmaps, convert them to jpg.
Actually if you use VB, converting them to jpg won't help much because VB will convert them back to bmp. (The images are hiding in your frx files.)
If you really want to use jpg, you'll have to put the jpg data in a resource file, and then decompress it using something like the Intel JPEG Library (IJL##.DLL).
Title: Re:Decreasing file size
Post by: drivehappy on April 06, 2003, 03:18 PM
Hmm, that might be true in VB6 but .NET will use the jpg's as they are.
Title: Re:Decreasing file size
Post by: ILurker on April 06, 2003, 03:42 PM
How do i clear pictures off of forms?
"Backgrounds/Bitmaps"
Title: Re:Decreasing file size
Post by: PaiD on April 06, 2003, 04:30 PM
go to the side menu and find were the pic is and put (none)

Edit: Spelling
Title: Re:Decreasing file size
Post by: Grok on April 06, 2003, 05:42 PM
With the form showing and having focus in VB IDE, go to the properties box, picture property, and press the Delete button.
Title: Re:Decreasing file size
Post by: Zakath on April 06, 2003, 06:34 PM
The last alternative is to use a different language. :P

*notes that the rather crappy beta version of ZakBot is only 104 KB*
Title: Re:Decreasing file size
Post by: Eternal on April 07, 2003, 01:34 AM
104kb...not bad at all
Title: Re:Decreasing file size
Post by: Banana fanna fo fanna on April 07, 2003, 12:12 PM
Or you could store all your bitmaps in a compressed archive, unarchive them at startup and LoadPicture() them.
Title: Re:Decreasing file size
Post by: Mesiah / haiseM on April 10, 2003, 11:43 PM
Or you could create your own form of image compression, making sure you keep your proper parts ;), and when you load it back into the bot, restore it to a bitmap format, or whatever format, and voila, u got a tiny image file with the quality of a bitmap.
Title: Re:Decreasing file size
Post by: Arta on April 11, 2003, 12:30 PM
Even better, avoid putting huge and pointless images in your program?
Title: Re:Decreasing file size
Post by: Camel on April 11, 2003, 03:03 PM
Quote from: Arta[vL] on April 11, 2003, 12:30 PM
Even better, avoid putting huge and pointless images in your program?

heh, arta had the balls to say what everyone else was thinking ;D
Title: Re:Decreasing file size
Post by: Noodlez on April 11, 2003, 06:34 PM
it's very possible to make small programs in VB

i made a "bare-bones" binary bot that's only 56kb
Title: Re:Decreasing file size
Post by: Zakath on April 11, 2003, 07:17 PM
How large are the non-standard runtime dependencies?
Title: Re:Decreasing file size
Post by: Mesiah / haiseM on April 11, 2003, 11:17 PM
dgmbot made and abandoned by me and zorm, was a well working binary bot made in vb, to look like an nbbot or a console bot, was only 36kb after compile...
Title: Re:Decreasing file size
Post by: Noodlez on April 12, 2003, 01:28 AM
yea, but i bet all the code was in one procedure
Title: Re:Decreasing file size
Post by: l)ragon on April 12, 2003, 04:18 AM
evin after I added to it, it was still rather small 8p