TGB to TGBX Conversion Guide?
by AzraelK · in Torque X 2D · 01/18/2007 (8:37 am) · 10 replies
Is there a conversion guide or a tutorial about how to convert a current TGB game into a TGB one? Ive been looking around but I havent found anything like this.
If there arent which are the usual steps to convert a TGB game into TGBX?
If there arent which are the usual steps to convert a TGB game into TGBX?
#2
Thanks. Back to working on my tgb- er.. tgbx game then. ;)
Update: hmm.. I knew it wouldnt be THAT simple, all the code was left untouched.
So what can I do know, how can I convert my torquescript TGB code to C#?
Btw, Yes I have read a ton of TGB XNA tutorials, done some demos too. I also have read a TON of torquescript, the torquescript Im converting has quite a bit of my own code. Im still confused on where to go from here.
01/18/2007 (11:42 am)
Oh crap! is true you can import a TGB project into TGBX I havent noticed that option. I never thought it would be that simple. Thanks. Back to working on my tgb- er.. tgbx game then. ;)
Update: hmm.. I knew it wouldnt be THAT simple, all the code was left untouched.
So what can I do know, how can I convert my torquescript TGB code to C#?
Btw, Yes I have read a ton of TGB XNA tutorials, done some demos too. I also have read a TON of torquescript, the torquescript Im converting has quite a bit of my own code. Im still confused on where to go from here.
#3
It's kind of a big job to just go, "I'm going to rewrite everything in C# and then run it and hope it works." so I would say a good strategy would be to port the code in the same order you wrote it. How did you start your TGB game? Probably with getting one object moving on the screen. Start with porting the code to get that one object moving and go from there.
01/18/2007 (5:39 pm)
You will essentially have to rewrite the TS code in C#. If you're not a programmer type this will probably be pretty cryptic and difficult. If you are used to programming then just start going line-by-line through your scripts and rewriting them in C#. If you want to get really fancy pants you can re-architect your scripts to work in a more fully OO kind of way as well. I can't think of anything you just plain "can't" do in C# that you can in TS. You can't do everything the exact same way, but you can do all the same stuff.It's kind of a big job to just go, "I'm going to rewrite everything in C# and then run it and hope it works." so I would say a good strategy would be to port the code in the same order you wrote it. How did you start your TGB game? Probably with getting one object moving on the screen. Start with porting the code to get that one object moving and go from there.
#4
From my original reply, and Ben is restating in a more useful way. There is absolutely NOTHING you can do in TS that you can't do in C# syntax wise. There probably are functions that don't exist because it's a different engine, not because C# can't do them.
01/18/2007 (6:53 pm)
Quote:If the former, there are no tutorials, you simply have to recode the logic in C#.
From my original reply, and Ben is restating in a more useful way. There is absolutely NOTHING you can do in TS that you can't do in C# syntax wise. There probably are functions that don't exist because it's a different engine, not because C# can't do them.
#5
Ouch. modifying each line from TS to C# that sounds a lot of fun, changing so is OOP that sounds even more fun.
I dont know, I thought maybe garagegames would have a little more help than just "do it all over again" therefore I thought a conversion guide existed or was in the works, I can see now that there is none.
Well I started with the platform Minitutorial. If someone would like to translate that into tgbx that would be really helpful.
Btw Why is the access to the Torquex (TGBX) TDN closed? I thought all TGB users had access to TGBX.
01/19/2007 (7:55 am)
Thanks for your answer Ben, yeah well I am the programmer type but Im also the "deadline coming in" type hehe ;)Ouch. modifying each line from TS to C# that sounds a lot of fun, changing so is OOP that sounds even more fun.
I dont know, I thought maybe garagegames would have a little more help than just "do it all over again" therefore I thought a conversion guide existed or was in the works, I can see now that there is none.
Well I started with the platform Minitutorial. If someone would like to translate that into tgbx that would be really helpful.
Btw Why is the access to the Torquex (TGBX) TDN closed? I thought all TGB users had access to TGBX.
#6
01/19/2007 (9:21 am)
I don't see a TGBX section on TDN and the TorqueX section doesn't have anything in it yet. What are you trying to access that is closed?
#7
Anyway if you guys have decided to change TGBX into a separate section then IT SHOULD have a different TDN section for it.
I dont have access to the Torque X section. It does not say" theres no articles" It says "you have no access" (although Im registered to TGE, TGB and TGBX)
01/19/2007 (10:30 am)
Hmm.. TGBX is supposed to be a part of Torque X as far as I know, It says "Torque X beta" right on the download page.Anyway if you guys have decided to change TGBX into a separate section then IT SHOULD have a different TDN section for it.
I dont have access to the Torque X section. It does not say" theres no articles" It says "you have no access" (although Im registered to TGE, TGB and TGBX)
#8
01/19/2007 (10:51 am)
AFAIK, no one has access to the TorqueX section of TDN yet (except GG, obviously).
#9
01/19/2007 (12:05 pm)
Nick is correct, they are still working on the documentation and want it complete before they post it to TDN. I'd guess we wont have it until the actual release of TXE 1.0
#10
01/26/2007 (10:33 am)
I posted elsewhere and the reply was that you gain access to that forum once you purchase TorqueX Pro after it becomes available retail.
Torque 3D Owner Jonathon Stevens
If the former, there are no tutorials, you simply have to recode the logic in C#. For the latter, I believe the help file in TGBX has a bit of info on this, but can't remember for certain. There is an 'import TGB project' option in TGBX however. That's where I'd start.