The Daily Click ::. Forums ::. Klik Coding Help ::. Game closes for no reason.
 

Post Reply  Post Oekaki 
 

Posted By Message

Aptennap



Registered
  23/04/2004
Points
  916
29th December, 2008 at 23:25:36 -

I created a random level generator for my game. On the main frame is a button 'generate', when clicked a sub-application of the second frame will open. On this frame is also a button called generated, whenever I click this button the app just closes for no reason. I didn't have this problem before.

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
1st January, 2009 at 17:29:23 -

I seem to have found the problem, whenever I set Val A of Active 1 to something inside loop "Y", the game closes. Why??

 
Oh sweet mary.

Tomatokid



Registered
  01/12/2008
Points
  188
1st January, 2009 at 18:05:52 -

Are you using TGF or MMF? I don't know why that happens but
I think it has something to do with the actual program itself.
When I used TGF, (Newly upgraded to MMF) it would close
for no good reason at times. Sometimes it would work sometimes it wouldn't.
If the game area is too big, that might cause it to crash. (I know it did for me)
It could really be a multiple amount of things, too much data etc...

 
Will work for pencils and sharpie markers.

Aptennap



Registered
  23/04/2004
Points
  916
1st January, 2009 at 18:29:59 -

Yea it's really weird, it worked at first and I didn't really add anything new I just rewrote the events. I found out more, even if the Val. A is set outside the loop or in the properties of the Active, the game will close. The game will not close if Val. A just stays 0.

 
Oh sweet mary.

Tomatokid



Registered
  01/12/2008
Points
  188
1st January, 2009 at 20:23:52 -

That is really weird- I'll have to try that and
see if that does it to me.
I'm not familiar yet with MMF so I'll work around with it.

 
Will work for pencils and sharpie markers.

Aptennap



Registered
  23/04/2004
Points
  916
1st January, 2009 at 21:52:52 -

Thanks Tomato,
can you or anybody else PLEASE test this on their computer?
http://www.solcon.nl/s.tennapel/test.mfa
Just open it up, run it, and then press the button on the first frame (and see if it closes for you too).
Thanks in advance.

 
Oh sweet mary.

Aptennap



Registered
  23/04/2004
Points
  916
2nd January, 2009 at 16:05:02 -

Oke I found out what the problem is.
This event :
----------------------------------------
On loop "X"
+(Array)index to the x dimension at end
+Value A < Value B
-Set Value C to Y index
-stop loop "X"
-Set X index to 0
-Set Y index to Value C
-Start loop "X" (Value D * Value D)
-----------------------------------------
The Values A,B, C and D would be values from an active object, and would be changed in loop "X" and "Y".
(Value A is CurrentLinks, B is NeededLinks, C is YI and D is Size)

This event causes my game to close, why??



 
Oh sweet mary.

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd January, 2009 at 17:05:58 -

yeah it crashes for me too.
unfortunately I'm not familiar enough with loops to know why it causes a crash.

 
.

Tomatokid



Registered
  01/12/2008
Points
  188
2nd January, 2009 at 18:30:13 -

Yeah it just closed on me, I'm not sure why?
It didn't give me an error message though.
I don't know if you got one or what?

 
Will work for pencils and sharpie markers.
   

Post Reply



 



Advertisement

Worth A Click