Error on multiline console code..
by Mark Francombe · in Torque Game Engine · 07/25/2005 (6:41 am) · 3 replies
Hey after diving in headfirst, without looking at the docs much.. Im now stuck and gone back to basics... The Torque Game Engine Documentaion... The TorqueScript language.
The chapter requires that I paste code into the console.. but it only works when the code FITS into the very small/one line area I have.. if its more than a few lines long, then only the first bit appears in the console and it returns a...
SYNTAX ERROR IN INPUT
.. Im so stuck Im actually doing all beginners tutorials, in the hope of learning something!!
please be nice...
M
The chapter requires that I paste code into the console.. but it only works when the code FITS into the very small/one line area I have.. if its more than a few lines long, then only the first bit appears in the console and it returns a...
SYNTAX ERROR IN INPUT
.. Im so stuck Im actually doing all beginners tutorials, in the hope of learning something!!
please be nice...
M
#2
...but each snip of code is tiny, just demonstrating things.. and they definately mean you to stick it in the console.. but it just doesnt work...
I suppose I could just overwrite a yourscript.cs file for this purpose... good idea.. but just wondering why they say to do it in console if if don't work...
BTW: the docs sure do jump from..
"Here is a computer, switch it on..."
to...
"If you try to read an object field and the field is not found, TorqueScript will simply return an empty string, and no dynamic field will be created. However, if you try to write to an object field which doesn't exist, TorqueScript will automatically create a matching dynamic field for the object, and assign it the value you are trying to. "
VERY QUICKLY... and they definately havent explained all this...
07/25/2005 (7:27 am)
I HAVE tried this, and i know it works... I actually have been doing quite a bit (doing a bit of code stealing) before.. but have some definate problems when I have to do anything from scratch... hence the going back to basics... ...but each snip of code is tiny, just demonstrating things.. and they definately mean you to stick it in the console.. but it just doesnt work...
I suppose I could just overwrite a yourscript.cs file for this purpose... good idea.. but just wondering why they say to do it in console if if don't work...
BTW: the docs sure do jump from..
"Here is a computer, switch it on..."
to...
"If you try to read an object field and the field is not found, TorqueScript will simply return an empty string, and no dynamic field will be created. However, if you try to write to an object field which doesn't exist, TorqueScript will automatically create a matching dynamic field for the object, and assign it the value you are trying to. "
VERY QUICKLY... and they definately havent explained all this...
#3
Keep your eyes peeld though, word has it that TDN (Torque Developer Network) is drawing near.
I expect it should alleviate some of the gaps in the current documentation. =)
07/25/2005 (9:27 am)
LOL - yeah, this is true.Keep your eyes peeld though, word has it that TDN (Torque Developer Network) is drawing near.
I expect it should alleviate some of the gaps in the current documentation. =)
Torque Owner Kirby Webber
Have you tried entering the commands into a script - saving them and then simply using an exec("yourscript"); command in the console?
~ Just a thought (C;