How is script editing and the TGB integrated?
by Mike Purvis · in Torque Game Builder · 03/28/2006 (7:53 pm) · 4 replies
Hello,
I just got TGB a couple days ago.
The basic tutorial, the shooter, where you start by modifying the game.sc file doe not work for me.
I commented out the entire game.sc file and ran the T2D.exe, no difference. It doesnt appear to use the .sc file for anything.
So, I thought maybe you could script from within the TGB, which works fine for me, but there is no way to do that.
I have animations working and can display art, but without being able to script anything its silly.
Also, where are the changes you make in the TGB recorded. You can drag and drop items into the scene, without scripting, great, but now how do I get control of them via a script.
Am I missing something?
Or does this work fine for everybody else?
Mike
I just got TGB a couple days ago.
The basic tutorial, the shooter, where you start by modifying the game.sc file doe not work for me.
I commented out the entire game.sc file and ran the T2D.exe, no difference. It doesnt appear to use the .sc file for anything.
So, I thought maybe you could script from within the TGB, which works fine for me, but there is no way to do that.
I have animations working and can display art, but without being able to script anything its silly.
Also, where are the changes you make in the TGB recorded. You can drag and drop items into the scene, without scripting, great, but now how do I get control of them via a script.
Am I missing something?
Or does this work fine for everybody else?
Mike
#2
03/29/2006 (8:15 am)
Delete the .dso's. They are the compiled scripts that are being used rather than recompiling your .cs's.
#3
04/15/2006 (6:03 am)
I understand where Mike is coming from, though. I went through the Level Building tutorial, and afterwards came out with enough know-how to generate a pretty nice-looking main menu for my game. Then I realized I didn't know what to do next. Do I have to go into script to do something to make the menu work? Is there a way to do it from within the editor, or from within the program itself? With nothing much else to go on, I'm sort of hanging around and thinking, "Now what?"
#4
04/15/2006 (7:13 am)
There is no way to edit scripts from inside the Level Editor if that's what you are asking. Everyone uses external IDEs for editing scripts. I think adding a basic script editor would be useful. I did that myself here, but I had to do lots of work to get it going and it isn't perfect. @Gina-Marie I felt the same way at first. Lots of things can only be done in script. You'll have to define command strings and callbacks for your GUIs to make them do stuff. There may be a tutorial floating around on how to do that, or I'm sure someone can help you see how it works..
Associate Mike Lilligreen
Retired T2Der