Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Help with "unexpected error" in GM  (Read 3760 times)

0 Members and 1 Guest are viewing this topic.
Help with "unexpected error" in GM
« on: November 10, 2008, 10:16:51 pm »
  • Personal Text
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1229
Well I have tried many things already!

- I have searched through every object and tried to look for any recursions (infinite loops.)
- I went through objects and changed a lot of things that still work the way they should but make the game faster.
-I deleted the room I was working on, just before the error first appeared.
-I scanned my computer for any virus, adware/spyware, etc.
-I got rid of a lot of useless sprites and any resources that weren't in use.
-I tried fixing a lot of tiling problems in the rooms.
-I fixed some background problems that had to do with tiles.
-I have already restared my computer many times.
-I have 1GB RAM and 4.7GB in hard drive
-I have already tried re-installing GM 7.0 Pro
-My other games run just fine, AND they have a lot more resources than this one.
-(More...?)

Nothing of the above list worked.
I get the error when the game is "preparing graphics"

I am out of ideas. What should I do?!
« Last Edit: November 11, 2008, 12:45:58 am by Mewgull »
Logged
Re: Help with "unexpected error" in GM
« Reply #1 on: November 10, 2008, 10:20:51 pm »
  • Super Hero Time!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4859
It would help to have the exact error >_>
Logged
!@#$% I lost my entire post, god dammit.
Re: Help with "unexpected error" in GM
« Reply #2 on: November 10, 2008, 10:49:14 pm »
  • Personal Text
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1229
That is the exact error:
"Unexpected error occured when running the game."
It doesn't tell you anything more DX
(fuggin' annoying)
Logged
Re: Help with "unexpected error" in GM
« Reply #3 on: November 10, 2008, 11:35:24 pm »
  • 笑い男
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2124
when does it come out? at loading? in game? what triggers it? (if it is in loading and you run it in debug mode you should be able to see generally at which point in loading it comes out as well)

also, this sounds a bit weird:

Quote
-I deleted a room I was working on before that error first appeared (I want to redo it anyways).


you could just save a copy of the game and go nuts on it, deleting anything to see if it fixes it or what. no need to just work on your one copy of the game, limiting yourself because you dont want to go too far and ruin something >_<

« Last Edit: November 10, 2008, 11:37:22 pm by hawthorneluke »
Logged

この世に悪があるとすれば、それは人の心だ
  • .hack//The World
Re: Help with "unexpected error" in GM
« Reply #4 on: November 10, 2008, 11:50:52 pm »
  • I just saved Hyrule! I'd say that's worth a kiss.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 464
oh man oh man oh man, I used to know the exact cause of that error....what was it...!@#$%.
*googles*
Quote
Most of the time, this is Windows's fault. Reboot your computer and try again. If this doesn't work, your copy of Game Maker may have become corrupted. Run other .gmX files to make sure. If Game Maker continues this error, you may have to reinstall it.

Try that.

I also saw some sites say that un-checking the "preload" setting on sprites helps to remedy this myserious error.
Logged

We may as well call it "Small Forum Populated by a Few People Who Make Fangames, Mostly About Zelda, But More Often Talk About Other Nintendo Franchises Central"
"SFPFPWMF,MAZ,BMOTAONFC" for short.

Xiphirx

wat
Re: Help with "unexpected error" in GM
« Reply #5 on: November 11, 2008, 12:00:23 am »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
You are running out of memory, that is why it occurs.

You may have WAAAY too many sprites :/. Try keeping them external.
Logged
  • For The Swarm
Re: Help with "unexpected error" in GM
« Reply #6 on: November 11, 2008, 12:36:32 am »
  • Personal Text
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1229
I forgot to add:
-I have rebooted my computer several times
-I have re-installed Game Maker 7.0 Pro.

I'll try the sprite thing...

EDIT: I have 1 GB in RAM and 4.7 GB left in my hard drive.
ALSO: -Other GM files have more resources, and they run just fine.
« Last Edit: November 11, 2008, 12:42:15 am by Mewgull »
Logged

Mamoruanime

@Mamoruanime
Re: Help with "unexpected error" in GM
« Reply #7 on: November 11, 2008, 05:35:44 am »
  • ^Not actually me.
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 9786
ALSO: -Other GM files have more resources, and they run just fine.

No they don't; actually they are all sluggish in design mode...

External is the way to go; handle your resources through scripts. It'll make your game load quicker, and run smoother.
Logged
Re: Help with "unexpected error" in GM
« Reply #8 on: November 11, 2008, 12:05:31 pm »
  • Personal Text
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1229
The reason I don't go with external is because anyone can just change the sprites or music/sounds easily.
If I could, is there a way to put all of my resources in a ZIP folder (with a file), and still have it accessed by Game Maker?
Also, I just deleted every sprite and it STILL gave me that error  :-[
Logged
Re: Help with "unexpected error" in GM
« Reply #9 on: November 11, 2008, 12:10:07 pm »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
The reason I don't go with external is because anyone can just change the sprites or music/sounds easily.
If I could, is there a way to put all of my resources in a ZIP folder (with a file), and still have it accessed by Game Maker?

To be fair, getting at the resources isn't supposedly too difficult when they are internal.

If you wanted you could try to find some encryption routines to protect the data. Not sure if it even exists in GM without DLLs but xor encryption will be more than enough to deter your average moron.
Logged
Re: Help with "unexpected error" in GM
« Reply #10 on: November 11, 2008, 01:16:26 pm »
  • 笑い男
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2124
The reason I don't go with external is because anyone can just change the sprites or music/sounds easily.
If I could, is there a way to put all of my resources in a ZIP folder (with a file), and still have it accessed by Game Maker?
Also, I just deleted every sprite and it STILL gave me that error  :-[

probably are dll's to do that, pretty sure there's a 7zip one or something


but... does it matter if people alter the resources? if its an online game where everyone uses the same resources and so if one player changed theirs they'd gain an advantage over the other players or unbalance the game etc, then yeah... that's a big problem, if not... then whats the problem?
in fact, the reason map editors etc are included with games is so that people can edit their own games with ease, right? :P

...well i guess there is the problem where everyone on the internet's a pirate though >_<
Logged

この世に悪があるとすれば、それは人の心だ
  • .hack//The World

Xiphirx

wat
Re: Help with "unexpected error" in GM
« Reply #11 on: November 11, 2008, 09:42:44 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Something is shorting out your memory.
Logged
  • For The Swarm
Re: Help with "unexpected error" in GM
« Reply #12 on: November 11, 2008, 09:49:17 pm »
  • Personal Text
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1229
WOOT! (No one says "woot" anyone more XD)
I just deleted all of my backgrounds in my backup file, and the game played properly!
Thank you everyone, for your help!
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.023 seconds with 60 queries.