Jump to content


Photo

Help! My game's exe file is too big! Is it ok?


  • Please log in to reply
26 replies to this topic

#1 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 11 September 2011 - 10:36 AM



I am a beginner at Game Maker, I just started using Game Maker 8 lite about two weeks ago. My game project is a scrolling shooter game, lightly based on the tutorial one. This game, called Ocean Shooters, will have about 17 different levels. So far, I have created two working-fine levels, with menu and stuffs.

When I created an executable for my game, it exceeds 35 mb for only 2 levels!!! I was shocked by this fact, and I tried to reduce useless rooms, however it still is about this size. When it is completed, it will reach 250 mb! From that time, I immidiately signed up into this community. :(


Questions :

1. Is people okay on downloading huge sized game, but say it worth over 15 of fun levels?

2. If not, how do I reduce the file in the best way, without damaging the programming of the game?

Important Notes

1. My game currently used mostly drag and drop actions, since I'm not very familiar with GML.

2. I have really really lots of PNG sprites (10% is okay to dump).

3. For texts in the game, (such as help guide, dialogues for storyline), I used objected sprites of a box of text. Because, I have no idea how to make easy and simple dialogue box.

4. I currently have about 10 rooms for two levels, which are :

Main Menu
Level Select
Guide Help
Storyline1
Lv1
Lv1 Boss
Storyline2
Lv2
Lv2 Boss
Pause Menu

5. I used different musics for each levels, and they are mp3s. While sfxs is wav.

6. I used variables (global and not) to patch up bugs, such as for pause and restart. I used this variable also to reduce room use.

7. I use Game Maker 8 lite, NOT standard.

I worked super extremely hard for this game, I wasted a lot of time. I really hope someone kind and wise can help me solve this frustating problem, so I can continue my game. Please, your help is urgently needed!

If you require a game maker file or exe file of this game for example, please be kind enough to be trustable and not mess it up, and use it in private. For privater contact, jvirananda@gmail.com

Thank you very much :)

  • 0

#2 AlexTM

AlexTM

    GMC Member?

  • GMC Member
  • 1421 posts
  • Version:GM8

Posted 11 September 2011 - 10:44 AM

Its so big because your music files are large, if you have music for each level, its going to be a large file. I would suggest that you give people the option to have the level music, eg:

if file_exists("sound.mp3")
{}
When you upload your game onto YoYogames.com, just upload the executable, nothing else. Upload the music in a ZIP file on your website/signiture whatever.

EDIT: I just noticed you said you have GM lite, well, the code above might work... i use 8.0 Pro, i don't know the limits...

Edited by A!ex, 11 September 2011 - 10:51 AM.

  • 0

#3 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 11 September 2011 - 10:50 AM

Its so big because your music files are large, if you have music for each level, its going to be a large file. I would suggest that you give people the option to have the level music, eg:

if file_exists("sound.mp3")
{}
When you upload your game onto YoYogames.com, just upload the executable, nothing else. Upload the music in a ZIP file on your website/signiture whatever.

EDIT: I just noticed you said you have GM lite, well, the code above might work... i use Pro, i don't know the limits...


Okay, I might dump the musics anyway :( For the game.. Thx btw.
  • 0

#4 faissialoo

faissialoo

    I get high on orange

  • GMC Member
  • 1023 posts
  • Version:GM8

Posted 11 September 2011 - 11:25 AM

delete objects that you do not need or could fuse with another object, it should help :whistle:
  • 0

#5 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 11 September 2011 - 11:28 AM


Its so big because your music files are large, if you have music for each level, its going to be a large file. I would suggest that you give people the option to have the level music, eg:

if file_exists("sound.mp3")
{}
When you upload your game onto YoYogames.com, just upload the executable, nothing else. Upload the music in a ZIP file on your website/signiture whatever.

EDIT: I just noticed you said you have GM lite, well, the code above might work... i use Pro, i don't know the limits...


Okay, I might dump the musics anyway :( For the game.. Thx btw.


ANNOUNCEMENT!

I dump all the music, and useless sprites, then the MB change from 35mb to 5mb !!!!!! Thanks, I thought it wouldnt work.:)

Though, I still need any other suggestions to reduce more mb. And, do you think the game will be okay without music ?? :(
  • 0

#6 AlexTM

AlexTM

    GMC Member?

  • GMC Member
  • 1421 posts
  • Version:GM8

Posted 11 September 2011 - 11:41 AM

Though, I still need any other suggestions to reduce more mb. And, do you think the game will be okay without music ?? :(


Do what i suggested. Give users the option to have the music...
  • 0

#7 Gangsterman

Gangsterman

    GMC Member

  • GMC Member
  • 35 posts

Posted 11 September 2011 - 12:42 PM

load music from a folder like this:(in the create event of first object)
(use scripts)
global.secretmusic=sound_add("Sound/Music/ReYourBrains.wav",0,true)
global.custommusic=sound_add("Sound/Music/Custom.wav",0,true)
global.finale=sound_add("Sound/Music/Finale.wav",1,true)
global.music1=sound_add("Sound/Music/NoMercyForYou.wav",1,true)
global.danger1=sound_add("Sound/Music/Pukricide.wav",1,true)
global.danger2=sound_add("Sound/Music/TongueTied.wav",1,true)
global.horde1=sound_add("Sound/Music/Taank!.wav",1,true)
global.winsnd=sound_add("Sound/Music/TheMonsterWithout.wav",1,true)
global.losesnd=sound_add("Sound/Music/LeftForDead.wav",1,true)
and then
sound_play(global.music1)

  • 3

#8 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 11 September 2011 - 01:11 PM

I still dont really get about the option for music, can you explain more?

If you load music, where is the music from? Outside exe in the compressed file?
  • 0

#9 Gangsterman

Gangsterman

    GMC Member

  • GMC Member
  • 35 posts

Posted 11 September 2011 - 01:21 PM

I still dont really get about the option for music, can you explain more?

If you load music, where is the music from? Outside exe in the compressed file?

in the folder
anyone have time to download music,they do
anyone dont,they dont have to
oh and i forgot
if sound_exists(global.music1)
sound_play(global.music1)

  • 0

#10 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 11 September 2011 - 02:03 PM


I still dont really get about the option for music, can you explain more?

If you load music, where is the music from? Outside exe in the compressed file?

in the folder
anyone have time to download music,they do
anyone dont,they dont have to
oh and i forgot
if sound_exists(global.music1)
sound_play(global.music1)


Thank you very much :) My game might be finished in 3 months or more :)
  • 0

#11 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 11 September 2011 - 07:36 PM

load music from a folder like this:(in the create event of first object)
(use scripts)

global.secretmusic=sound_add("Sound/Music/ReYourBrains.wav",0,true)
global.custommusic=sound_add("Sound/Music/Custom.wav",0,true)
global.finale=sound_add("Sound/Music/Finale.wav",1,true)
global.music1=sound_add("Sound/Music/NoMercyForYou.wav",1,true)
global.danger1=sound_add("Sound/Music/Pukricide.wav",1,true)
global.danger2=sound_add("Sound/Music/TongueTied.wav",1,true)
global.horde1=sound_add("Sound/Music/Taank!.wav",1,true)
global.winsnd=sound_add("Sound/Music/TheMonsterWithout.wav",1,true)
global.losesnd=sound_add("Sound/Music/LeftForDead.wav",1,true)
and then
sound_play(global.music1)

Which justbegun cannot do because he has Lite...

But, yeah, MP3's take up a lot of space. But as you've noticed, removing them reduces your filesize a lot. 5MB is not that big at all, so you should be good with that. If you want music without bloating your filesize, you can buy Pro and load the sounds externally, as mentioned above, or you can use MIDIs instead of MP3s. They'll have lower quality, but they're much smaller than MP3s...much smaller.

-IMP
  • 0

#12 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 1571 posts
  • Version:GM8

Posted 11 September 2011 - 08:50 PM

Use external resources.
  • 0

#13 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 11 September 2011 - 08:53 PM

Use external resources.

If you'd read the rest of the topic, you'd know we covered that.

I'd also like to retract my previous statement; I seem to have underestimated the power of GM Lite, as it seems external resources can be used with Lite. I thought they couldn't. My bad.

-IMP
  • 0

#14 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 12 September 2011 - 05:01 PM


Use external resources.

If you'd read the rest of the topic, you'd know we covered that.

I'd also like to retract my previous statement; I seem to have underestimated the power of GM Lite, as it seems external resources can be used with Lite. I thought they couldn't. My bad.

-IMP


Thanks everyone. The problem is only in the MP3. :) :) :)
  • 0

#15 faissialoo

faissialoo

    I get high on orange

  • GMC Member
  • 1023 posts
  • Version:GM8

Posted 12 September 2011 - 05:15 PM

it is possible to use a external sound,
execute_shell('mysong.mp3',0)
, but i do not recomend it
  • 0

#16 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 12 September 2011 - 08:59 PM

it is possible to use a external sound,

execute_shell('mysong.mp3',0)
, but i do not recomend it


Why?
  • 0

#17 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 1571 posts
  • Version:GM8

Posted 12 September 2011 - 09:04 PM

As I believe it will open it with the default music player.
  • 0

#18 justbegun

justbegun

    GMC Member

  • New Member
  • 26 posts

Posted 22 September 2011 - 04:20 PM

As I believe it will open it with the default music player.


Is there a way to do this without using default music player? and with lite? :(
  • 0

#19 njp

njp

    Panda

  • GMC Member
  • 2325 posts
  • Version:GM8

Posted 22 September 2011 - 06:20 PM

dont dump your music, send it to me and ill convert it to a MUCH smaller format for you. just put the files you want compressed in a zip, upload and pm it to me!
-nic
  • 0

#20 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 23 September 2011 - 12:08 AM



Use external resources.

If you'd read the rest of the topic, you'd know we covered that.

I'd also like to retract my previous statement; I seem to have underestimated the power of GM Lite, as it seems external resources can be used with Lite. I thought they couldn't. My bad.

-IMP


Thanks everyone. The problem is only in the MP3. :) :) :)

What's the problem with the MP3? As long as its external, it'll keep your game size down.

-IMP
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users