Inventory syntax error
by Ryan Edmar · in Technical Issues · 12/11/2006 (12:32 am) · 2 replies
I seem to be having a little trouble with my inventory script. I have been trying to implement the Inventory Manager by Tim Newell. I got the engine to compile okay but I am having some trouble with the scripts.
I keep getting this syntax error in the inventory.cs file and nothing I do seems to fix it. What's really got me stumped is the error is in a part of the script that is onriginal and not changed by the new inventory manager.
Here is the console output:
Compiling mygame/server/scripts/inventory.cs...
mygame/server/scripts/inventory.cs Line: 103 - parse error
>>> Advanced script error report. Line 103.
>>> Some error context, with ## on sides of error halt:
function ShapeBase::throwObject(%this,%obj)
{
^// Throw the given object in the direction the shape is looking.
^// The force value is hardcoded according to the current default
^// object mass and mission gravity (20m/s^2).
^%throwForce = %this.throwForce
^if (!%throwForce)
##^##^%throwForce = 20;
I can't figure out want is needed where the ## are placed, it looks fine to me. Any help would appreciated.
I keep getting this syntax error in the inventory.cs file and nothing I do seems to fix it. What's really got me stumped is the error is in a part of the script that is onriginal and not changed by the new inventory manager.
Here is the console output:
Compiling mygame/server/scripts/inventory.cs...
mygame/server/scripts/inventory.cs Line: 103 - parse error
>>> Advanced script error report. Line 103.
>>> Some error context, with ## on sides of error halt:
function ShapeBase::throwObject(%this,%obj)
{
^// Throw the given object in the direction the shape is looking.
^// The force value is hardcoded according to the current default
^// object mass and mission gravity (20m/s^2).
^%throwForce = %this.throwForce
^if (!%throwForce)
##^##^%throwForce = 20;
I can't figure out want is needed where the ## are placed, it looks fine to me. Any help would appreciated.
About the author
#2
Thanks! I'm not sure how I missed that little screw-up but thank you for pointing it out.
12/11/2006 (9:28 pm)
@ James SpellmanThanks! I'm not sure how I missed that little screw-up but thank you for pointing it out.
Torque 3D Owner James Spellman