Developer Store
Support
Member Forums

Screenshots
FAQ
Documentation
License
Known Issues
Downloads

MMOWorkshop.com Store Opened!
Torque MMO Kit - Open Sourced!
Torque MMO Kit - 1.5.2 Port Alpha Test
Torque MMO Kit - OSX Status

GarageGames.com irc.prairiegames.com
#mmoworkshop

PyTorque
TGB Web Browser


jburch

AthlonJedi2 - Server Nuked !!!!!
J.C. Smith - Hover Update
gamer_goof - New character model GIRL1 available only $4
OldRod - Alien Horizons - where am I coming from?
Leathel - FoHO pre-Alpha 2.0
DarkBaneStudios - New Zone
nixxerebb - Content Pack - Gothic Dungeon Kit
olax - Just saying hello
... MORE BLOGS!

TalentRaspel signing off ...
How to compiler Torque SDK for t...
Adding A Class Tutorial
Error when starting the server
Quest Remnants of Chaos
1.7 Integration
Bug with the slow effect?
Monster Spellcasting
Instancing
More cleaning of MMOKIT

Torque Game Builder Pro - Web Browser

http://www.prairiegames.com/tgb_pro_guibrowserctrl.jpg

Description

Integrated Web Browser control for Torque Game Builder Pro

Downloads

Source Code: http://www.mmoworkshop.com/freestuff/tgb_pro_guibrowserctrl.zip

Demonstration Video: http://www.prairiegames.com/torque_web_tech.wmv

Also see: http://ubrowser.com the home of LLMozLib

Requirements

Torque Game Builder Pro

Visual Studio .NET 2003 (if you want to use VS2005, you'll need to build the mozilla and llmozlib from source yourself. I've built it for this release and it is a real drag: http://ubrowser.com/downloads.php)

Installation

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/T2D SDK.sln in Visual Studio .NET 2003

4. Add a "browser" folder to the T2D project under Source Files/gui, then add the guiBrowserCtrl.h and guiBrowserCtrl.cc to this folder.

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

6. Open the Properties for the T2D 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 <new>

13. For each project in the T2D 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 T2D project

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

function onStart() {

initEmbeddedBrowser("MyProfile");

}

function onExit() {

shutdownEmbeddedBrowser();

}

16. Copy the contents of the runtime folder to your games folder (you should have a xul.dll in the root of your games folder)

17. Run TGB.exe, select Project->Gui Builder

18. Select File->New GUI, and create the GUI

19. New Control->GuiBrowserCtrl and drag it out. You should see the GarageGames website load.

20. You can now set a default web page for the control in the inspector and/or script it with WhateverYouNamedTheBrowserCtrl.navigateTo("http://www.greatgamesexperiment.com");

21. There are many areas of improvement for the control including improved script functions and callbacks, OSX support, etc