Home Creators Posts Import Register Favorites Logout

Content

The joy of completion was short-lived, suddenly the game freezes with the message like above. This is a bug caused by an infinite loop in the program, and it's very difficult to find the cause. This time it happened and I'll describe the consequences. If you're not interested in the program, please skip this article.

The game freezes when changing costume in face zoom and Device-on, so I'll trace the cause of the problem from there. 1st, check the behavior of the costume change program by executing each suspicious command.

Then I found out that the cause was the command to reset the facial expression.

Further tracking revealed that the cause was a command to control the legs. There is a "for" statement in this to animate the legs. If you've learned programming, you may know this is a statement that repeats a certain process and it's known as "Suspect the 'for' when it freezes". As expected, I disabled it and it was fixed, so this is the culprit. 

"for" must be set to a number of repetitions, but no numerical value(NaN) seems to be entered there and cause an infinite loop.The number of times is supposed to be entered based on the current frame number of the legs parts, but it turns out that the reason for this is because the loading of the legs parts is not yet complete when this program is run, so I solved this problem by not executing this program when the target itself does not exist. Although, I should have written an executable program in the legs side to prevent the loading problem originally...Like this one, architecture-induced bugs are tricky because we can't know until it actually happens. When you find a freeze bug, I'd appreciate if you could report me, although it's scary...

Files

Comments

Sawatex

David, thank you so much for your support! Other bugs have been found, so I'll fix them all.

Raksar

Thank you for doing such a great job with this!

Sawatex

Raksar, thank you so much for your support too!

vladebil

you're doing a good job. good luck with finding and fixing these bugs!

Sawatex

Thanks viadebil ! but many other bugs are found now...

Mike Ram

I'm not sure what language you're using in particular. Does your integrated development environment or text editor have a reliable debugger? It certainly makes debugging things like infinite loops much easier to look for!

Ucthulpu

Hope your next game will be on newer engine

Sawatex

Flash also has a debugger, but it's very dull and hard to use. so, it's faster to have my eyes on and trace it after all. But I haven't used the debugger of new production tool, so I'll try it next time. Thanks for your advice, Mike.

Sawatex

Oh, That's going to take about 10 years ^^;

Ucthulpu

Chances are Flash will not be working on next Windows or whatever OS there will be. Don't let us down.

Sawatex

Flash running on the browser will be discontinued, but this is currently active tool, although the name has changed to Animate. I don't think this will happen in the near future but the scariest thing is that Windows will no longer support 32-bit applications.

BiOsHoCk

Hello, i have a question, do you make footjob action in your futur update or project?