Game crashes out of the blue!

Game Editor comments and discussion.

Game crashes out of the blue!

Postby Aztec » Thu Jul 07, 2011 9:01 pm

Hello, I'm creating a game (just for a hobby) where the levels are like the older sonic the hedgehog games. It's pretty complex, and it crashes when I'm playing for no apparent reason at completely random times. It especially seems to crash when I have bombs that bounce off the walls and floating enemies that use hidden fields to control their boundaries.

It crashed more when I started adding new actors and scripts. The scripts don't seem the problem -- game editor says that they are fine. I'm beginning to believe that because the game is so large, game-editor isn't designed for this. I think game-editor is a great program, so I'm hoping it would be a different reason.

I have about 50 actors (not including clones) and maybe 75 scripts, although most of these scripts are 5 lines at most. I also have a lot of line of global code that controls the functions of the player.

The crashing just happens out of the blue -- the application just quits. Are there any explanations for this?

Thanks.
Aztec
 
Posts: 4
Joined: Wed Jun 15, 2011 11:20 pm
Score: 0 Give a positive score

Re: Game crashes out of the blue!

Postby Game A Gogo » Thu Jul 07, 2011 10:04 pm

Can you still export? And if so, does the game crashes as well?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Game crashes out of the blue!

Postby again » Thu Jul 07, 2011 11:56 pm

I had similar problem but with an iphone game. It wouldnt crash on Mac but did crash on ipod/iphone. I think it has to do with scripts as I added things like achivements and charactor unlocks to our newest game. I cant tell at what point is the scripts too large though.
Free windows mobile games like doodle jump and super mario bros
http://krenisis.freeforums.org/
again
 
Posts: 258
Joined: Wed Jan 19, 2011 7:06 pm
Score: 33 Give a positive score

Re: Game crashes out of the blue!

Postby NightOfHorror » Fri Jul 08, 2011 6:02 am

How much levels do you have because there is alot of huge games with no problems in GE, ex. WB2.
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: Game crashes out of the blue!

Postby Aztec » Fri Jul 08, 2011 6:51 pm

Yeah the level size doesn't make a difference I've discovered.

The game crashes with similar behavior in the exported version.

Do you know if how GE handles cloneindex? I use a lot of that in my game, to have a certain clone affected by another clone of a different actor, etc. I use

Code: Select all
switch(cloneindex)
{
case 1:
//the code
break:

// to signify that clone number 1 of the actor will receive the event
}



I've used this successfully before, so I don't know.

Perhaps it could be a conflict in timers.

Could an actor have many of the same timer at once?
Aztec
 
Posts: 4
Joined: Wed Jun 15, 2011 11:20 pm
Score: 0 Give a positive score

Re: Game crashes out of the blue!

Postby skydereign » Fri Jul 08, 2011 9:38 pm

Yeah, size is not your problem. There was a recent post about similar crash problems, but it seems it was caused by mass use of timers. I haven't looked to far into it, but DST mentioned that they were using timers in a way that they were not meant to be used in. After improving the system it wouldn't crash, so timers might be your problem. An actor I don't think should have more than one instance of a single timer going at once, but I've always made it so that wasn't necessary.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Game crashes out of the blue!

Postby Aztec » Sat Jul 09, 2011 6:50 pm

I have a whole bunch of stuff, bunch of variables, scripts, actors, clones, tiles, etc. It seems like a large task to troubleshoot! :shock: I will look into the timers as well as my scripts, though.
Aztec
 
Posts: 4
Joined: Wed Jun 15, 2011 11:20 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest