Previous Blog Next Blog
Prev/Next Blog
by date

The browser plugin - progress

The browser plugin - progress
Name:Neil Marshall
Date Posted:May 02, 2006
Rating:Not Rated
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Neil Marshall

Blog post
The browser plugin project made some progress today with the help of James U. You can now reload the web page that the plugin is on and you can now press back/forward.

It was no easy task because Torque does some wacky stuff that I'm still trying to solve. There were two major hurdals though. First, was the obvious one of getting AbstractClassRep to shutdown and reinitalize properly. Once that was done reloading worked in the main menu. However, if you went into the 3D portion of the engine, and hit reload, it would crash.

What we could tell by debugging was there were 3 or 4 objects left in memory that looked like particles. I removed the particles from the demo game and I was able to reload once. Every other time I tried it, I ran into the same crash though. It turns out it was because Kork likes his foot puffs. I removed Kork and was able to reload if I didn't walk around. There are a couple messages on the forums where other people have run into this problem for various reasons as well, but there wasn't really a good solution to be found. James came to the rescue again and wrote a function which removes all emitters before the game shuts down. It seems to work quite well.

Now you can reload most of the time without it crashing but there are a couple issues left to debug. I think they're related to some information hanging around but I haven't found it yet.

In the meantime I've uploaded the latest source code to TDN and you can check it out. I would post a screenshot but you can only show a browser window so many times. I guess I could record a movie of me pressing the reload button... :)

Recent Blog Posts
List:08/18/06 - Experimenting with TSE
07/19/06 - TGE Browser Plugin Online
05/29/06 - TGE Browser Plugin
05/02/06 - The browser plugin - progress
04/24/06 - TGE Browser Plugin
04/11/06 - More TGE in the Browser
03/24/06 - TGE Plugin now working in IE 6.0
03/07/06 - It works!

Submit ResourceSubmit your own resources!

Tom Spilman   (May 02, 2006 at 18:09 GMT)
You should post your emitter shutdown fix to the TGE Bugs forum. It sounds like something that the engine should just do anyway.

Neil Marshall   (May 02, 2006 at 20:00 GMT)
There ya go.
www.garagegames.com/mg/forums/result.thread.php?qt=43712

You must be a member and be logged in to either append comments or rate this resource.