Valhalla Legends Forums Archive | Battle.net Bot Development | Decreasing file size

AuthorMessageTime
ILurker
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?
April 6, 2003, 5:53 PM
PaiD
Um if you have any Pics in it that are Loaded into the bot.
**My Guess**
April 6, 2003, 6:09 PM
drivehappy
Pictures and databases with your program will make it very large. If you're bitmaps, convert them to jpg.
April 6, 2003, 6:12 PM
Yoni
[quote author=drivehappy link=board=17;threadid=973;start=0#msg7201 date=1049652740]
Pictures and databases with your program will make it very large. If you're bitmaps, convert them to jpg.
[/quote]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).
April 6, 2003, 8:10 PM
drivehappy
Hmm, that might be true in VB6 but .NET will use the jpg's as they are.
April 6, 2003, 8:18 PM
ILurker
How do i clear pictures off of forms?
"Backgrounds/Bitmaps"
April 6, 2003, 8:42 PM
PaiD
go to the side menu and find were the pic is and put (none)

Edit: Spelling
April 6, 2003, 9:30 PM
Grok
With the form showing and having focus in VB IDE, go to the properties box, picture property, and press the Delete button.
April 6, 2003, 10:42 PM
Zakath
The last alternative is to use a different language. :P

*notes that the rather crappy beta version of ZakBot is only 104 KB*
April 6, 2003, 11:34 PM
Eternal
104kb...not bad at all
April 7, 2003, 6:34 AM
St0rm.iD
Or you could store all your bitmaps in a compressed archive, unarchive them at startup and LoadPicture() them.
April 7, 2003, 5:12 PM
MesiaH
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.
April 11, 2003, 4:43 AM
Arta
Even better, avoid putting huge and pointless images in your program?
April 11, 2003, 5:30 PM
Camel
[quote author=Arta[vL] link=board=17;threadid=973;start=0#msg7568 date=1050082211]
Even better, avoid putting huge and pointless images in your program?
[/quote]

heh, arta had the balls to say what everyone else was thinking ;D
April 11, 2003, 8:03 PM
Noodlez
it's very possible to make small programs in VB

i made a "bare-bones" binary bot that's only 56kb
April 11, 2003, 11:34 PM
Zakath
How large are the non-standard runtime dependencies?
April 12, 2003, 12:17 AM
MesiaH
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...
April 12, 2003, 4:17 AM
Noodlez
yea, but i bet all the code was in one procedure
April 12, 2003, 6:28 AM
dRAgoN
evin after I added to it, it was still rather small 8p
April 12, 2003, 9:18 AM

Search