Author Topic: Reducing game size  (Read 218 times)  Share 

aussie

  • Act like you know.
  • aussie worked on a game that was nominated for an AGS Award!
Reducing game size
« on: 05 Apr 2012, 10:22 »
Hi all, I have two basic questions:

1. I'm making an 800x600 res game. I'm using real pictures. After completing five rooms, the game is already up to 45mb. Since I'm planning quite a few more, I'm afraid the file size could really skyrocket.

How could I keep it down? Please note that lowering res won't do, and that I have already compressed sprite size and changed from 32 to 16 bit color (this doesn't seem to affect game size).

Just in case it turns out to be important: I started off with 1024x768 then switched to 800x600, then reduced all bgs and sprites.

2. What takes up the most space in a game? Am I on the right track changing sprites and resolutions?
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

Re: Reducing game size
« Reply #1 on: 05 Apr 2012, 10:37 »
For your images - check their size. If you convert them to jpeg with a tool like GIMP you can chose the compression rate and thus dramatically reduce file size. For music try to use midi instead of wave or so. If you have to use wave sounds then try to reduce the quality. For my games the wave music and sounds took up most space. Just reducing the game colors from 32bit to 16 bit will not do anything - you need to reduce your images and sprites color to 16bit before you import them into AGS.

aussie

  • Act like you know.
  • aussie worked on a game that was nominated for an AGS Award!
Re: Reducing game size
« Reply #2 on: 05 Apr 2012, 10:43 »
Thanks kyodai,

How do you change images to 16 bit outside ags?

Also, I've run a search in the forum and most people say that the image format (jpg, pcx, png) does not matter much because AGS uses its own packing algorithm.

There is no music in the game yet, but I'll keep in mind your advice.
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Reducing game size
« Reply #3 on: 05 Apr 2012, 11:13 »
Correct, ruining images by turning them into jpegs doesn't do anything to reduce the game's size.

Just for fun, compile the game and pack the exe using zip or rar. If the 45MB go down to 5 or so, keep doing what you're doing. If not, something's wrong.
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

aussie

  • Act like you know.
  • aussie worked on a game that was nominated for an AGS Award!
Re: Reducing game size
« Reply #4 on: 05 Apr 2012, 11:21 »
Thanks Khris,

I have done the .rar thingy. Game size does drop significantly, from 45 to 20mb.

But I'm not sure if the proportion will be linear, and still, I could end up with a 75-100mb game... :-\
« Last Edit: 05 Apr 2012, 11:27 by aussie »
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/