• Welcome to Valhalla Legends Archive.
 

Decreasing file size

Started by ILurker, April 06, 2003, 12:53 PM

Previous topic - Next topic

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?

PaiD

#1
Um if you have any Pics in it that are Loaded into the bot.
**My Guess**

drivehappy

Pictures and databases with your program will make it very large. If you're bitmaps, convert them to jpg.

Yoni

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).

drivehappy

Hmm, that might be true in VB6 but .NET will use the jpg's as they are.

ILurker

How do i clear pictures off of forms?
"Backgrounds/Bitmaps"

PaiD

#6
go to the side menu and find were the pic is and put (none)

Edit: Spelling

Grok

With the form showing and having focus in VB IDE, go to the properties box, picture property, and press the Delete button.

Zakath

The last alternative is to use a different language. :P

*notes that the rather crappy beta version of ZakBot is only 104 KB*
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Eternal

^-----silly Brit
-----------------------------
www.brimd.com

Banana fanna fo fanna

Or you could store all your bitmaps in a compressed archive, unarchive them at startup and LoadPicture() them.

Mesiah / haiseM

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.
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Arta

Even better, avoid putting huge and pointless images in your program?

Camel

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

Noodlez

it's very possible to make small programs in VB

i made a "bare-bones" binary bot that's only 56kb