Game Development Community

Html embedded web Browser TGE- free Resource

by Javier Canon · in Torque Game Engine · 04/30/2007 (2:51 pm) · 25 replies

Update:
------------------------------------------------------------------------------------------------
I plan make this a free resource for the gg comunity, but i am not a hardcore c++ programmer....
------------------------------------------------------------------------------------------------


I found some posts like:

www.garagegames.com/mg/forums/result.thread.php?qt=35088

and some useful resources like:

www.mmoworkshop.com/trac/mom/wiki/TGBBrowser

ubrowser.com/downloads.php


Is a ingame browser for TGB... But i need a ingame browser for TGE.


thanks in advanced.
Page «Previous 1 2
#1
05/01/2007 (7:41 am)
I got an embedded browser in TGE 1.5, but it took a LONG time to get debug and get working.

If you use VS2005, you'll have to get the Firefox 2.0 release of the XULrunner project from Mozilla, setup a dev environment, get the llMozLib source from the uBrowser website, use the Mozilla build configs from the llMozLib source to build your Mozilla project, wait about an hour, use the script from the llMozLib code to copy the dlls and other Mozilla files into the llMozlib project, rebuild the llMozLib project, copy over the llMozLib.lib into your Torque libraries, get the guiBrowserCtrl.cpp file TGBBrowser and put that into your Torque project. Of course this is simplified, but I hope it'll give you an idea of how to get started.
#2
05/01/2007 (8:21 am)
Thanks Igor, and you can sell the code? or make a content addon or something?. I dont want reinvent the wheel...
#3
05/01/2007 (8:37 am)
The Mozilla browser for Torque seriously rocks. Mr. Ritter deserves a cold Dr. Pepper for his excellent contribution. :)

Hmm. About the technical difficulties . . . very strange. I was able to get Josh's Mozilla addon working perfectly in TGE -- almost without incident. Maybe it's the compiler I'm using (VS2003), but it worked like a charm as presented in his instructions. I haven't tried it on VS2005 yet, but maybe I should give that a shot as well.


[Edit: fixed a typo]
#4
05/01/2007 (7:41 pm)
I make all, and follow the instructions, but i receive now the error:
../engine\platform/platform.h(562) : error C2660: 'operator new' : la funcion no acepta 2 argumentos
        ..\engine\collision\convex.cc(245) : vea la referencia a la creacion de instancias de plantilla de funcion 'T *constructInPlace<CollisionStateList>(T *)' que se esta compilando
        with
        [
            T=CollisionStateList
        ]
some ideas?
platform.h(562) ::

template <class T>
inline T* constructInPlace(T* p)
{
   return new(p) T;
}

template <class T>
inline T* constructInPlace(T* p, const T* copy)
{
   return new(p) T(*copy);
}
#5
06/29/2007 (7:16 pm)
I am trying to implement a html browser for TGE using visual studio 2005 (VC8)

I am based in the work of www.mmoworkshop.com/trac/mom/wiki/TGBBrowser

- Compile of mozilla with VC8 download link: scottwadden.com/llmozlibVC8.zip

the instructions:

1. Copy llmozlib to your engine/lib folder

2. Make a folder called "browser" in your engine/source/gui folder and copy guiBrowserCtrl.h and guiBrowserCtrl.cc into it

3. Open up engine/compilers/VisualStudio.net/TGE SDK.sln in Visual Studio .NET 2005

4. Add a "browser" folder to the TGE project under Source Files/gui, then add the guiBrowserCtrl.h and guiBrowserCtrl.cc to this folder. (from http://www.mmoworkshop.com/trac/mom/wiki/TGBBrowser )

5. Select the Release build of TGE as the active project

6. Open the Properties for the TGE project

7. Navigate to C++ -> General and add ../../lib/llmozlib/include to Additional Include Directories

8. Navigate to C++ -> Preprocessor and add TORQUE_DISABLE_MEMORY_MANAGER to Preprocessor Definitions (see notes in source about this)

9. Navigate to Linker->General and add ../../lib/llmozlib/win32 to Additional Library Directories

10. Navigate to Linker->Input and add llmozlib.lib to Additional Dependencies

11. In engine/source/platformWin32/winMemory.cc comment out:

/* void* FN_CDECL operator new(dsize_t, void* ptr) {

return (ptr);

} */

12. In engine/source/platform.h make this change:

//extern void* FN_CDECL operator new(dsize_t size, void* ptr);
#include

13. For each project in the TGE SDK solution, change to use Multithreaded DLL Runtime Libraries ( Properties->C/C++->Code Generation->Runtime Library->Multi-threaded DLL)

14. Clean and then build the TGE project

15. Open games/main.cs and add the below to the onStart and onExit functions:

function onStart() {

initEmbeddedBrowser("MyProfile");

}

function onExit() {

shutdownEmbeddedBrowser();

}


------------------------------------------------------------------------

the problem is when execute the exe:

messagebox: "This application has failed to start because the application configuration is incorrect "


some help will be aprecied...
#6
09/20/2007 (3:52 pm)
Are you able to get the in game browser resource(for tgb) working for TGE 1.4.2?
thanks
#7
09/23/2007 (10:39 pm)
I tried that but got a ton of errors. Haven't really gone further than that yet.
#8
10/07/2007 (1:12 pm)
I think that this project have multiple bugs.

I was thinking in a new aproach, only render the webpage as an image, no clicks or user interaction, but useful to show online help, news, or maybe graphical chat.

when i have news i will post them.
#9
10/11/2007 (3:48 am)
Javier

I eventually managed to get this working with Visual Studio 2005 and Scott Wadden's build of mozlib

This turned out to be my problem: see step 3, and the version of msvcr80.dll that you have placed in your applications' root folder:
http://www.gamedev.net/community/forums/topic.asp?topic_id=460381


And here it is...

www.dark-wind.com/images/gg/ibrowser.jpg
.. this will be very useful for my game which has a lot of strategic elements controlled via the game website. It's much better not to have the user switching between apps.
#10
10/12/2007 (1:21 am)
Do you actually need all of the stuff that is included in the runtime folder?

There seems to be alot of sample stuff and probably unnecessary files.

Also Sam, is your's with TGE or TGB?
#11
10/12/2007 (11:09 am)
Are you going to release or show us the code to this???
#12
10/12/2007 (6:38 pm)
Well I am only going to say it once ;) but I agree with MAgra, it would be really nice to know how you got it to work. Thanks Sam.
#13
10/12/2007 (7:45 pm)
Thanks Sam!!!, this work now!, the problem is a VS 2005 Bug, fixed with your manifiest solution or installing VS 2005 SP1... Yupiiiii ;)
#14
10/12/2007 (8:23 pm)
Well could one of you rehost Scott Wadden's file email it to me at RJNelson68@cox.net?
#15
10/12/2007 (9:27 pm)
I submit a resource:

www.garagegames.com/blogs/60581/13710

but meanwhile..., Files Mirror:

www.bigupload.com/d=UR6ST434FV
#16
10/13/2007 (2:17 am)
It's in TGE. As Javier said, the only thing that needed fixing was the manifest.
There's a couple of other little bugs I'm working on ATM, e.g. keyboard acquisition/release.
#17
03/14/2008 (7:53 am)
I am looking for a TGE llmozlib.lib file. anyone know where i can get one from? all the links to it in the resource post and this post are all dead. so any help would be great thanks.

the biguploads link says

"Link Unavailable
- Invalid link, or link not found
- The file was deleted because of violating our TOS "

so where can i find this critical file?
#18
03/15/2008 (7:59 am)
If anyone could e-mail the files to me at zergcow@hotmail.com I can host them on my site for everyone to download.
#19
05/15/2008 (9:59 pm)
I update the download link of mozilla libs:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=13710
#20
10/25/2009 (12:13 pm)
Sorry to rez an old thread but does anyone have any of the files for this resource? With MMOWorkshop being down and the other site not having a compiled vc8 of mozilla I feel a bit lost.
Page «Previous 1 2