Game Development Community

TGEA 1.7.1 Browser Plugin

by Taylor Petrick · in Torque Game Engine Advanced · 10/18/2008 (7:30 am) · 18 replies

Since this is contains some TGEA code, I've decided to post it here instead resourcing it. The zip is password protected; the password is "JellySandwich!" without the quotations.
Linky:


Further reading:
Original TGE Plugin blog post: www.garagegames.com/blogs/5446/10569
My TGEA 1.0.3 blog post: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=15290
TDN Guide: tdn.garagegames.com/wiki/TGE/Code/How_to_make_torque_a_plugin

Thread is locked
#1
10/18/2008 (7:43 am)
Thanks.....good job [both you and Frank Bignone ;) ]
#2
10/18/2008 (7:45 am)
Your welcome, but since most of the TGEA 1.7.1 port is Frank Bignone's work, he deserves the credit.

EDIT: typo
#3
11/13/2008 (3:38 pm)
Has anyone that's implemented this had problems navigating away from the page the engine is running in or closing the browser?
#4
11/13/2008 (8:54 pm)
I had a few issues with the close button failing to actually close. Navigating away from the page was never a problem for me. What browser are you using?
#5
11/14/2008 (4:50 am)
Internet Explorer. I have the game in the above state in both Firefox and IE. But we are concentrating on IE for now.
#6
11/14/2008 (5:04 am)
IE6, 7 or 8?
#7
11/14/2008 (9:36 am)
IE 6 and 7 atm. This is a very important feature for this project so I am going to explain a little more detail just exactly what we are dealing with.

We have a code base that includes the following: TGEA 1.7.x base with Arcane FX and PyTorque integrated / embedded. We have done a lot of work on getting that animal working with this "resource", but we have run a snag on some quite frustrated situations. The game loads and runs absolutely fine THE FIRST TIME. If you navigate away, and come back to it, it loads and runs, but this time there are some rendering anomalies (lighting is off, some textures don't show up, etc.) Over all though, the game still functions. However, upon exiting this second time around, either by navigating away or closing the browser, there's a super crash that brings IE down around our ears. That doesn't work for us, as we need our users to be able to reliably surf around a site and come back to the game whenever they feel like it. We aren't so worried about the state of the game being preserved, (i.e. it is fine if they have to watch a loading bar each time) but it certainly can't be crashing their browser. As for specific browser concerns, we are focusing on IE 6 / 7 at the moment, but fully intend to have it working in Firefox / Chrome as well.

We suspect that the problem has to do with the immense number of statics / globals defined all through out the code-base that are assumed to get zilched when windows shuts down the process in normal execution. Problem is, IE doesn't relinquish that memory the same way and a lot of those variables are still in memory, and contain junk the second, third, etc, time around.

Because this is so important to us, we are looking for help here. Is there anyone out there that has what I have described working stably / reliably or is certain that they could accomplish it? If so, we would really appreciate your help. So much so, that there is an opportunity for paid work here...
#8
11/15/2008 (6:06 am)
Ah, I see. I tried mixing PyTorque and the BT Plugin with very poor results. I never actually got PyTorque to initialize properly. I'm really not very skilled with memory, platform, or graphics coding, but I'll take a look at it later today and see what I can do.
#9
11/17/2008 (6:25 pm)
Seems that the solution can't process message correctly. For example, when you press TAB key, it can only capture WM_KEYUP message, and no WM_KEYDOWN message. Does anybody have such problem?

Very appreicated for any helps, thanks,
#10
11/18/2008 (5:50 am)
I have no problems with any input, besides the windows X button in the title bar. Torque input handling works just fine.
#11
11/23/2008 (6:09 pm)
Hi cant seem to open the zip file with the password above. Was it changed?

Thanks in advance
#12
11/25/2008 (11:21 am)
I just downloaded and tried it with WinRar and the password worked fine.
#13
01/07/2009 (8:41 am)
Hi All

I'm new to TGEA and I'm hoping someone could help me. I've got the following issues while applying the TGEA 1.7.1 browser plugin resource:

1. I added the new sources and tried to build the exe, which resulted showing me 140+ errors, all of which were related to the particleEmitter and AFX files. Since my objective was primarily to get the TGEA Browser plugin working, I removed the afx folder from source and restored all these files which showed error from the backup I had with me, which resulted in an error-free build. Now my question is, are these file changes crucial to the browser plugin code, or is the AFX part just an enhancement (btw I don't own the ArcaneFX pack)?

2. I don't seem to find any plugin builder solution inside this package. So even after a successful exe build, I'm still not able to get the plugin that would run my game in a browser.

Please pardon my ignorance in the subject and shed some light on it for me.

Thanks a lot in advance :-)
#14
01/07/2009 (3:25 pm)
@Saravanan: If you have a build without any errors and a resulting DLL file, then it should be ok to use it as an activeX control inside Internet Explorer.

Regarding the AFX code, I never looked at that zip file before but it looks like it is a mistake as no AFX source code should be posted on this forums.
#15
01/07/2009 (3:50 pm)
@Saravanan
Look in: TGEA1_7_1_BBPlugin\GameExamples\AFXDemo\buildFiles to find the vs2005 solution.

For this pluggin to work, you appear to have to own the afx for tgea resource.
I haven't tried it yet, but the solution is looking for the afx code.
#16
01/07/2009 (4:10 pm)
Locking this thread down, just in case the source gets posted again. No ill intentions, so feel free to e-mail me directly over the matter.

- Mich
#17
01/14/2009 (8:56 pm)
@Michael Perry:

Okay, I see the link is removed, how do I email since your addy is no longer visible with this new web design?
#18
01/15/2009 (10:48 am)
I'm also interested in this. :)