Game Development Community

Quick question

by Shakey · in Torque Game Engine · 03/14/2007 (5:51 pm) · 2 replies

I don't know about others, but I like to hand code everything. In Chapter 4 page 101 it says that the sample scrpt console has an editor where you can type or paste a script, but when I type a script in a different editor lets say torsion I can not paste the code there. So if I hand code the example on pages 116 and 117, for the shapeFile on 117, and I hit the tilde key it brings up the console. Any suggestions

#1
03/21/2007 (8:47 am)
I hope I understand your question right. When I'm testing code I usually use echos or messages to show the output.

So for page 116 I would add something like:
{
// code...
echo ( "a_new_field = " @ $example_object.a_new_field );
}

That should show the output in the console. Also make sure you exec your code.
#2
04/06/2007 (3:59 pm)
@Shakey

Hi. I'm guessing that you're trying to use the right-click method of pasting, but I could be wrong.

You might try these steps:

0. Start the Lesson Kit,
1. Start the 'Sample Script Console',
2. Type a script in and external editor,
3. Select and copy it (CTRL+C),
4. Click in the left pane of the 'Sample Script Console',
5. Hit CTRL+V (there is no right-click mouse context menu for this tool), AND then
6. Click the Eval or Execute button,

This should work for Windows XP which is the OS I test under. I'm not sure off the top of my head what the keys are for OSX if that is the OS you are using, but the copy-paste should work in both operating systems for this tool.

Please let me know (at your leisure) if this is still an issue.

Thanks!

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT



PS - I forgot to mention this, but Pages 12-13 of Appendix B (included on the disk) talk about how to run the 'Sample Script Console'. Appendix B is talks about how to use all of the features of the lesson kit that comes on the disk.

-EFM