Using source code from another engine in conjunction with TGB.
by Joel Azzopardi · in Torque Game Builder · 11/07/2009 (10:04 am) · 6 replies
Hey there, some of you programmers might be able to shed a little light on this subject for me but there are several free non commercial engines that have developed a nifty little UI system tools which make game development a breeze such as: Map editor, Item Editor, Spell Editor ect.
I was wondering if i had the source code for both engines, TGB and one of the many other engines floating around, would it be possible to merge the two source codes to utilise TGB robust rendering engine and flexibility and the the other engines ability to make game development a breeze with its well developed tools?
I understand this would be hard to analyze without seeing the source for yourself, but if you wouldn't mind taking a stab.
Another thing, i know a lot of the other engines use visual basics as their API (if that's the right word) are VB and C++ (TGB's API) in-compatible? or might i be in luck?
Thanks a lot in advance anyone willing to help me out, much appreciated.
- Joel Azzopardi
I was wondering if i had the source code for both engines, TGB and one of the many other engines floating around, would it be possible to merge the two source codes to utilise TGB robust rendering engine and flexibility and the the other engines ability to make game development a breeze with its well developed tools?
I understand this would be hard to analyze without seeing the source for yourself, but if you wouldn't mind taking a stab.
Another thing, i know a lot of the other engines use visual basics as their API (if that's the right word) are VB and C++ (TGB's API) in-compatible? or might i be in luck?
Thanks a lot in advance anyone willing to help me out, much appreciated.
- Joel Azzopardi
About the author
#2
Maybe what you might want to do is look at writing tools in VB that you can export to a data file that you can read into TGB. That would probably save you some time and headaches. That's what I would do.
11/07/2009 (11:29 am)
I don't know many engines written in Visual Basic but that's probably because I'm looking more at C++/C# any more these days. You may be better off trying to learn C++. A lot of VB concepts are the same in C++ except the whole OO approach and syntax is different.Maybe what you might want to do is look at writing tools in VB that you can export to a data file that you can read into TGB. That would probably save you some time and headaches. That's what I would do.
#4
(Need to create a better one in the near future…stay tuned :P)
I second the tool-making with VB. But you still probably need to pick up TorqueScript to make some use of it. The 2D engine is fully usable with TorqueScript, while the 3D engine sort of demands C++ modding.
11/07/2009 (3:17 pm)
I crossed out the words :)(Need to create a better one in the near future…stay tuned :P)
I second the tool-making with VB. But you still probably need to pick up TorqueScript to make some use of it. The 2D engine is fully usable with TorqueScript, while the 3D engine sort of demands C++ modding.
#5
@ XanthorXIII - "Maybe what you might want to do is look at writing tools in VB that you can export to a data file that you can read into TGB. That would probably save you some time and headaches. That's what I would do."
Yeah my main goal is to just strip the tools from the VB engines, i'll throw some names of some game engines but dont cringe "Eclipse engine" "Xtreamworlds" ect.
Thanks again guys.
11/09/2009 (3:59 am)
thanks for the useful answers guys, i was more hopefully looking at converting the VB script to C++, i was more susing out if it was a financially feasible idea. I plan on someone else doing the programming aswell.@ XanthorXIII - "Maybe what you might want to do is look at writing tools in VB that you can export to a data file that you can read into TGB. That would probably save you some time and headaches. That's what I would do."
Yeah my main goal is to just strip the tools from the VB engines, i'll throw some names of some game engines but dont cringe "Eclipse engine" "Xtreamworlds" ect.
Thanks again guys.
#6
I don't know what tools you speak of, but why not just create them in TGB? I create tools all the time in T3D using the GUI stuff, and TGB has a bit more flexibility than that (kinda miss it, sometimes). The effort required to merge a VB engine with a C++ engine could be larger than that required to create the tools ;)
11/09/2009 (12:10 pm)
Quote:Yeah my main goal is to just strip the tools from the VB engines
I don't know what tools you speak of, but why not just create them in TGB? I create tools all the time in T3D using the GUI stuff, and TGB has a bit more flexibility than that (kinda miss it, sometimes). The effort required to merge a VB engine with a C++ engine could be larger than that required to create the tools ;)
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders
If you want to integrate VB because you don't know C++, you have a bit of a problem on your hands. You need to write the C++ interface that exposes engine functionality to VB in the first place. You also need the source version of TGB to do this.