Smaller game size?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
badcrazy_boy
Prole
Posts: 1
Joined: Tue Feb 25, 2014 9:09 pm

Smaller game size?

Post by badcrazy_boy »

Hi Guys,

I'm wanting to put my LOVE project a 1.44MB floppy disk for a marketing project. It's not very large by itself, the exe is only around 500KB, but with the DLLs needed for the windows executable, it's at 5MB uncompressed and about 2MB compressed :(

Can make it smaller somehow? perhaps by cutting some functionality out of the library itself? I've not used any of the physics part of the library.

I appreciate this might be pretty tough but I would be greatful any help or insight. Thanks. :awesome: :awesome:
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Smaller game size?

Post by kikito »

The only way I can think of is making the diskette contain a "fake" program that downloads the real one from internet.
When I write def I mean function.
szensk
Party member
Posts: 155
Joined: Sat Jan 19, 2013 3:57 am

Re: Smaller game size?

Post by szensk »

try UPX. It reduces size some 30-40% in my test. Probably not enough, but it is a start.
User avatar
Helvecta
Party member
Posts: 167
Joined: Wed Sep 26, 2012 6:35 pm

Re: Smaller game size?

Post by Helvecta »

If you have any images, you can reduce its quality, too, or compress it - the latter goes outside what I know about or have ever done, though.. :monocle:

(is it even possible? how?)
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Smaller game size?

Post by josefnpat »

You could hack away at the C++ source code and remove everything you don't need until it fits :)
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
szensk
Party member
Posts: 155
Joined: Sat Jan 19, 2013 3:57 am

Re: Smaller game size?

Post by szensk »

josefnpat wrote:You could hack away at the C++ source code and remove everything you don't need until it fits :)
You could try to use compiler options for size reduction, with, which combined with an binary compressor may get it down to 1.44mb without removing any code.


though, obviously, this is all far more work than simply buying a USB flash drive.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Smaller game size?

Post by Plu »

It's a cool marketing project, but I don't think you have to actually put the game on the floppy disk... nobody will be able to run it anyway. :awesome:

I haven't seen any pcs delivered with floppy drives for the past 10 years, and I wonder if your game would even run on something old enough to still have the drive...

(Unless computer composition is completely different where you are from, in which case, ignore this :P)
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Smaller game size?

Post by T-Bone »

You could also just separate it and put it on several floppys. Some games back in the day did this. I think the RAR format supports separating the archive into multiple subarchives that can be decompressed when they're all together again.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Smaller game size?

Post by Jasoco »

Floppy drive? Is a floppy disk a requirement? (If so, then why in god's name?) Or do they literally have old PC's from 20 years ago? Because any PC from 1999 or higher is going to at least have a USB drive in which case why not use a USB stick? It has to be recent if it is able to run Löve. Because any computer that has a floppy but not USB is going to be way too old to run Löve. So therefore we have to assume it has USB in which case, why a floppy? Is this a class project? Or a work project? If it's a class project, why would they torture you like that?

If it's a requirement, why? It's a dead technology. They might as well ask you to put it on a 5MB SCSI drive or one of those hilariously oversized floppy disks from WarGames. (Not 5.25". Bigger than 5.25".)

If it has to be a floppy, as T-Bone says above, can you use multiples? Does it have to run from the disk? Because if you can use multiples, split it across two or more disks and copy to the HDD. (At a super slow rate. Oh yes, I remember the horrible days of using floppy disks. I hated them even in the '90s and refused to use them which resulted in losing projects all the time in a time when there was no cloud storage and 1MB files took hours to upload and download)
User avatar
DaedalusYoung
Party member
Posts: 413
Joined: Sun Jul 14, 2013 8:04 pm

Re: Smaller game size?

Post by DaedalusYoung »

Jasoco wrote:Oh yes, I remember the horrible days of using floppy disks. I hated them even in the '90s (...)
Ugh, me too. I used to transfer a lot of files all the time, but didn't have an internet connection myself yet. So I ended up saving the same projects to 3 or 4 disks, just because I knew in transit at least 2 of them would become corrupted. I threw a lot of them at the wall as hard as I could after finding out they lost all their contents again.
Post Reply

Who is online

Users browsing this forum: zingo and 4 guests