Game Development Community

dev|Pro Game Development Curriculum

Torque XCode 3.0 Specification

by Phillip O'Shea · 07/17/2008 (7:34 pm) · 8 comments

Download Code File

Note: This is for XCode 3.0+.

The language specification methodology changed with the introduction of XCode 3.0. The specifications packaged with Torque support versions of XCode prior to 3.0 and not 3.0+. This package enables TorqueScript syntax highlighing and CodeSense for TorqueScript specifically. It is not complete, but it contains most of the basics, including variables (local and global), operators, Torque classes and global functions.

Just throw the contents of the zip into your "Developer/Library/XCode/Specification" directory and you're done.

If you open up "Torque.xclangspec" you will notice a large amount of code but if you scroll down to this section:

Identifier = "xcode.lang.cs.identifier.class";

You can enter the names of all of the classes in Torque (they vary from TGB/TGE/TGEA). If you scroll down further you will see a spot to put all of the global functions in too.

This language spec only includes TGB's classes and global functions.

About the author

Head of Violent Tulip, a small independent software development company working in Wollongong, Australia. Go to http://www.violent-tulip.com/ to see our latest offerings.


#1
07/17/2008 (11:17 pm)
What does this do exactly? You say to throw this in and your done but......done what? Please clarify, thx.
#2
07/17/2008 (11:21 pm)
It is the language specification for TorqueScript. It allows for syntax highlighting and some basic code sense specificly for TorqueScript.

The packages with Torque do not support XCode 3.0+ as the language specification methodology changed from 2.X -> 3.0.

Edit: Updated resource for clarity.
#3
07/17/2008 (11:32 pm)
Ah, gotcha, thanks ;-)
#4
08/12/2008 (3:34 am)
Thanks, I have been digging the internet trying to figure out how to convert this.
#5
10/15/2008 (12:35 pm)
...The directory is Developer/Library/XCode/Specifications with an "s"
#6
01/14/2009 (10:34 pm)
again :( the download links all seem to be broken.
#7
09/10/2009 (10:15 am)
i don't have a file /Specifications
i have the following in this subfolder:
CustomDataview
FileTemplates
OrganizerTemplates
Plug-ins
ProjectTemplates
RefactoringTemplates
TargetTemplates

any help would be great
thanks
#8
10/05/2009 (11:42 am)
In case u didn't find the "Specifications" u can create it & copy the files to it :)

it should work with no problem

great resource btw ;)