Sample Script Console errors
by asmaloney (Andy) · in Torque Game Engine · 09/08/2006 (8:46 pm) · 1 replies
[I'm running on a Mac PowerBook - Mac OS X 10.4.7]
I'm getting an error trying to use the sample script console. Here's what I'm doing:
- I bring up the sample script console
- I type this in the left hand side:
- The right hand side shows me an error:
Here are the contents of that file:
Also, the delete key and arrow keys do not work when trying to delete some text or move the cursor on the left hand side.
Edit: ...and... if you don't change the resolution of the window before opening the sample script console the buttons are all obscured.
- Andy
I'm getting an error trying to use the sample script console. Here's what I'm doing:
- I bring up the sample script console
- I type this in the left hand side:
bt99();- I click Execute
- The right hand side shows me an error:
Saving... gpgt/ssc_exec.cs creating path gpgt/ssc_exec.cs creating path gpgt/ Executing temporary file... Compiling gpgt/ssc_exec.cs... gpgt/ssc_exec.cs Line: 2 - Syntax error.
Here are the contents of that file:
bt99
Also, the delete key and arrow keys do not work when trying to delete some text or move the cursor on the left hand side.
Edit: ...and... if you don't change the resolution of the window before opening the sample script console the buttons are all obscured.
- Andy
Associate Edward F. Maurina III
Roaming Gamer LLC
1. Please use the 'sample script console' for typing in scripts. i.e.
echo("Hello");
2. To run the bt(); and ts(); samples, you'll have to start up one of the two missions and then open the console (~). Why? Well, these sample scripts need (in some cases) to use datablocks which can't be loaded without having the server side of the engine running, which in turn only happens when you're running a mission.
The key point here is the sample scripts were/are meant to be run from the console, not the 'sample script console' tool.
The 'sample script console' tool is designed you allow you to typing in small snippets of code and to load previously saved samples.
EdM|GPGT
PS - On the Mac, be sure you are using my latest OSX build for the kit: OSX Executable - Use for GPGT Lesson Kit and MazeRunner