The Daily Click ::. Forums ::. Klik Coding Help ::. Active Object disappears for no reason! mmf2 dev bug?
 

Post Reply  Post Oekaki 
 

Posted By Message

Dirty Sanchez



Registered
  17/06/2011
Points
  5
2nd May, 2013 at 02/05/2013 23:23:03 -

Hello everybody,

i have a very strange problem, and i cannot really fix it! Here are the facts:

I`m coding a TopDown Shooter in mmf2 developer for some years and the mainframe, that contains the whole engine, is quite enormous, although i have redone parts of the code againe and againe to make it more efficient.

Now i just wanted to create an animated active Object, size 300x80 pixels, 9 looped frames. The whole thing as rotated copies for all 32 directions. Nothing special.

There are NO events related to it, despite the event line "set direction to 1 of 32" by pressing "enter".
So the active object cannot be effected by anything.

Now, when pressing "enter", sometimes the active changes direction and disappears and wont show again, until the frame is restarted. The main problem is, i cannot define, under which condition this occurs.
Sometimes, its just for example direction 3, 15, 22 and 28 that makes the actives disappear. When i just change the animations like make the graphics smaller or bigger or change the color, WITHOUT changing any events, its direction 6, 12 and 17, that cause the problem. Or mayby none of the directions work.

The active object is definetly not destroyed. Its there, its counted, its condition is "visible". Its just, that the active is not displayed.
The funny thing ist, if i create another Frame in the same application and paste the same object there with the same single eventline, everything works perfect. The same, when i create a new application. Then everything works fine.

As i can see, it has nothing to do with application or frame properties. I dont hit the max object count. I know, that backdrop objects count in there too.

I cannot reproduce the error at will, because it just happens totally unregulary an not logical.

Did i hit some limitation of mmf2? do i have to many events or something like that?

regards
dirty



 
n/a

nivram



Registered
  20/07/2006
Points
  171
2nd May, 2013 at 02/05/2013 23:55:43 -

This is the MMF limit:
20,000 lines of events per frame

Marv

 
458 MMF2 & CTF 2.5 examples and games

http://www.castles-of-britain.com/mmf2examples.htm

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
2nd May, 2013 at 02/05/2013 23:57:10 -

It's very, very unlikely to be a bug in MMF2 - but without a file, there's no way to say what the problem is.

 
n/a

Dirty Sanchez



Registered
  17/06/2011
Points
  5
3rd May, 2013 at 03/05/2013 00:43:12 -

Right now i have exactly 11487 events in the mainframe. he whole coding works perfectly. I have not a single bug right now, despite the one described.
As i am the only one who can understand my coding, i dont think anybody will be able to read it. Or is willing to give a year of his life to understand it

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
3rd May, 2013 at 03/05/2013 01:15:28 -

So you need to find a way to reproduce the bug in a much simpler example - if you can't create an example from scratch, then start deleting as many of the objects and events in your current file as you can, without fixing the problem in the process.

 
n/a

Dirty Sanchez



Registered
  17/06/2011
Points
  5
3rd May, 2013 at 03/05/2013 04:05:52 -

i already tried this. when i have i bug, i always try to isolate it, so that i can reproduce it. i took a backup copy of the file, that is a few days older, and there everything worked fine. problem is, i didnt really add anything special since then. i deleted the few changes and the error is still there.

i dont get it........

 
n/a
   

Post Reply



 



Advertisement

Worth A Click