PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GledPlay b265 Single State Working?

summer_goth · 03 Jan 2007, 13:23 UTC
Hi there,

I've just converted my game from build 253 to build 265. In the new build the game does not even reach the onInit() function before exiting. It works in the previous build though. I am using VC6. I also tried compiling for PPC2003 but there I only get a black screen.

I tried the Single State example that comes with GledPlay. In it the surface does not seem to be rendered. On both PC and PPC.

The Multi State example works fine though. But I am building my game using the Single State example.

Are there any major changes that require some recoding or is there something wrong with the Single State in Build 265?

Thanks.
Hi summer_goth,

Yes, I'm afraid to say there has been a small API change. Now, the onInit method receives 3 parameters.

http://www.gledplay.com/doc/GledApplication/EventHandler.html#onInit

We've added the main panel, so you are able to build your panel hierarchy there.
Probably, what is happening, is that the Application class is calling an empty onInit method (with 3 parameters) instead of your onInit method (with 2 parameters).

Please let me know if this solved the problem.

Best regards,
Sergio.
summer_goth · 03 Jan 2007, 20:37 UTC
Ah yes, thank you very much Sergio, it is now working perfectly.

Keep up the good work and have a great time.

:D
It's great that you are so quick to reply.

Thanks.
dajan · 21 Feb 2007, 12:55 UTC — Single state application demo
Hi, maybe u should correct that onInit definition also in your download. Thanx for your work by the way.