Game Development Community

TGB Script editor for Mac

by Richard Petrov · in Torque Game Builder · 04/28/2011 (2:32 pm) · 6 replies

I noticed under Project manager there's buttons and one of them says Open XCode Project, and to my surprise it doesn't open anything. So I'm assuming it's not set up properly and I can't find any documents on it.

So I'm curious as to what's the easiest method to be able to edit the torquescripts with colored syntax?

If it's XCode any help on how to get it set up and started?

#1
04/28/2011 (3:33 pm)
Also i would like autocomplete and debugging if possible on Mac!
#2
04/28/2011 (7:39 pm)
I'm all over the place tonight trying to find out answers. How can I go about setting up Torsion using Parallels and Windows 7 on my iMac? I've been searching the forums and people claim they do just that but I can't figure out the settings.
#3
04/28/2011 (8:39 pm)
@Richard. Script debugging in the Mac is really a much needed piece of software :-) Resorting to echo calls is a big turnoff to any newcomer to Torque that must use a Mac for whatever reason.

Options that I am aware to debug Torque script are:

1. A JEdit extension called TIDE. Last time I checked (about a year ago) it run fine in Windows but had some issues in the Mac. JEdit is a Java editor.
www.garagegames.com/community/blogs/view/19425


2. Torsion (Windows only, so that means use Windows). If needed to deploy in a Mac/iPhone, install Windows and Torsion in the Mac. For the virtualization software, I recommend VirtualBox.



#4
04/29/2011 (7:23 am)
Thank you for the reply. One thing I can't figure out with Torsion (Windows) and Mac TGB is the New Project settings.

Base Directory: How do I access this and where?

Password: Where can I set that up at? Do I need to?

Under Configuration Tab

Executable: How is it possible to access the executable when it's on the Mac side for Parallels and Windows can't execute Mac Apps?


On another note I did get TIDE to work with autocompletion but I can't figure out how to setup debugging on it. It wants a windows EXE file and I'm on a Mac.

#5
04/29/2011 (12:30 pm)
@Richard, you're welcome. I never had the need to create a New Project in Torsion. Here's what I do when I want to create a new project.

1. Open the TGB Editor and create a new project, say "MyGame". Then exit the editor.

2. You will see that a folder named "MyGame" was made. There is a file named "Game.torsion" in it, just open it with Torsion and you got your new project ready to run. You will see that the fields you asked for in the post are already filled. No need to change anything.

Note: The only time that you need to change these settings is if you are a TGB Pro licensee and made a new executable by recompiling the source. In this case you need to replace the default executable with the new one. The only way I got this to work was to put the absolute path of the new exec, for example (this is done in the Configurations->Edit tab)

G:\itorque\MyProjects\Game\projectFiles\iTorque2DGame_debug.exe

Quote:How is it possible to access the executable when it's on the Mac side for Parallels and Windows can't execute Mac Apps?

I think you got the concept of virtualization confused. When running a virtualization software (say Windows in the Mac) you are actually running Windows, so you need the Windows executables like you were in Windows.

Regarding the TIDE question, I suggest contacting the author, Stefan Beffy Moises, that probably can provide you much better support than I can.
#6
04/30/2011 (1:07 pm)
Thank you again for helping. I'm just going to use TIDE with TGB without any debugging. I tried to run TGB on Parallels and for some reason it just shrunk the Parallels window and it's impossible to work with.