Previous Blog Next Blog
Prev/Next Blog
by date

Torsion Update & TelnetDebugger Fix

Torsion Update & TelnetDebugger Fix
Name:Tom Spilman
Date Posted:Apr 03, 2006
Rating:4.5 out of 5
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Tom Spilman

Blog post
I put out a new update to Torsion today. The build released two weeks ago ended up with a serious bug which would cause the code completion thread to run the CPU usage up to 100%. Please update as soon as possible.

Aside from this critical fix, a few more minor changes made it into this new build...

  • Added automatic check for new version on Torsion startup which can be disabled in Preferences.
  • Added Ctrl+Alt+S as shortcut for Save As.
  • You can convert a selection to uppercase via Ctrl+Shit+U or lowercase via Ctrl+U.
  • Fixed issue with GetProcessId() which caused Torsion to not work on Win9x machines or WinXP machines without Service Pack 1 installed.
  • You can now quickly comment block selections via Ctrl+K and Ctrl+Shift+K to uncomment.
  • Script scanner now properly handles block comments.
  • Fixed bug in script scanner that was locking up the code completion thread.
  • Project name now appears first in the application title.
  • Posted a patch for engine crash issue when debugging.

That last point is an important one. My TelnetDebugger improvements which were merged with 1.4 and TGB had a bug in them that could cause your game to crash when hitting some breakpoints in a debugging session. Before this fix gets merged into HEAD it would be great to get as many people to test it as possible. I encourage anyone who is doing a lot of TorqueScript work to install this fix. All feedback will be greatly appreciated.

Oh and how can anyone post a plan without a screenshot?



This is a quick little prototype i put together in about 8 hours (i'm a TGB newbie). Nothing really fancy in the screenshot other than the parallax clouds with shadows. Of course it was was done with Torsion. =)

You can get Torsion at the usual location:



Download Torsion
v1.0.549 Alpha


-- Tom

Recent Blog Posts
List:03/03/07 - Sickhead is hiring!
05/31/06 - Torsion Update
04/03/06 - Torsion Update & TelnetDebugger Fix
03/21/06 - Torsion Updated!
02/28/06 - Precipitation for TSE
07/18/05 - Plan for Tom Spilman
05/26/05 - Plan for Tom Spilman
05/21/05 - Plan for Tom Spilman

Submit ResourceSubmit your own resources!

Gavin Bunney   (Apr 03, 2006 at 10:57 GMT)   Resource Rating: 3
Torsion is basically the greatest program EVER for TorqueScript - good to see bug fixes :) oo and the upper/lower case shortcut will come in handy no doubt!

Tom Bampton   (Apr 03, 2006 at 11:13 GMT)
Some incredibly minor points ...

Usual "save as" shortcut is Ctrl+Shift+S. Hmm, though strangely not in VC++. Ohwell, maybe I'm on crack with that one ;-)

Comment/uncomment would be nicer if it was similar to VisualAssist where you highlight a block and press / to comment, and if it's already commented it uncomments it. If not, then Ctrl+/ and Ctrl+Shift+/ would be more natural then Ctrl+K/Ctrl+Shift+K

(For those that are inevitably going going to call me a pedant for the above, there are reasons behind it that Tom and I have discussed previously at length and there's no point repeating here)

Nifty parallax clouds, might have to steal that idea ;-)

Dave Myers   (Apr 03, 2006 at 12:41 GMT)   Resource Rating: 5
Good stuff.

Can we have a find/replace option? Ctrl-h normally. Or do we have one I'm not aware of yet?

Unk   (Apr 03, 2006 at 15:08 GMT)
Thanks so much for working on this Tom. I finally got around to using Torsion last week and am really impressed! Catching errors on pre-compile before the game launches alone saves tons of time as well as being able to jump straight to an error in a script just by double clicking on it. Your autocomplete when working with scripting is really frigging helpful too. Simple things... but if you can shave off 10-30seconds on a task that you do constantly it adds up.

-Unk

Tom Spilman   (Apr 03, 2006 at 18:16 GMT)   Resource Rating: 5
@Tom - Actually Ctrl+Shift+S is Save All in VC++... and Save As had no acellerator. Ctrl+Alt+S seemed like a good place to put it for now.

Ctrl+/ and Ctrl+Shit+/ was my first choice, but there seems to be a problem in wxWindows mapping to accellerators to /. I spend two hours debugging it until i just gave up as i really needed to get this build released. I'll go back and try again as i personally really want it at \.

@Dave - A reworking of Find in Files and an implementation of Find and Replace is on my TODO list. I just had to get this build out quick.
Edited on Apr 03, 2006 18:17 GMT

Robert Blanchet Jr.   (Apr 03, 2006 at 19:05 GMT)
Hey Tom,

I love ya, but I hate ya :) I'm getting this update in the hopes that the crash every time I type a '.' too fast is fixed ;)

Tom Spilman   (Apr 03, 2006 at 19:08 GMT)   Resource Rating: 5
@Robert - That's a new one to my ears. Do you have a case which is reproducible? If it still happens let me know ASAP... i'll make another quick release to fix it.

Robert Blanchet Jr.   (Apr 03, 2006 at 19:13 GMT)
No,

I can't seem to figure out what's causing it. It's definately something to do with the intellisense like functionality though and I believe I've always gotten it right after '.' when working with script objects or the like.

I'll just fire up the app again, and type the same thing, just as quickly, and it will be fine, so I definatley have not come across any reproduceable case.

Tom Spilman   (Apr 03, 2006 at 19:46 GMT)   Resource Rating: 5
@Robert - Let me know if if happens with the new build. I'll be extra vigilant and see if i can spot it as well.
Edited on Apr 03, 2006 19:46 GMT

Tom Spilman   (Apr 03, 2006 at 20:43 GMT)   Resource Rating: 5
Ugggh... new bug.... one tab press inserts two tabs. There will be a new release tomorrow to correct this.

Jonathon Stevens   (Apr 04, 2006 at 05:09 GMT)   Resource Rating: 5
Quote:

You can now quickly comment block selections via Ctrl+K and Ctrl+Shift+K to uncomment.


marry me?

Tom Spilman   (Apr 04, 2006 at 06:14 GMT)   Resource Rating: 5
Haha!

Tom Spilman   (Apr 04, 2006 at 18:06 GMT)   Resource Rating: 5
FYI. I put up Torsion v1.0.550 Alpha this morning. If the automatic version checking is working you should be notified the next time you start up Torsion. This new build has a few fixes, most notable i fixed the stupid double tab bug. You can read the change log to get the details.
Edited on Apr 04, 2006 18:07 GMT

Tom Bampton   (Apr 05, 2006 at 11:13 GMT)
@Tom2,

Re: Save As/All ... yeh, strange. Just remembered that F12 is also used as save as, although also strangely not in VC++. Wonder why it has no shortcut for that. Come to think of it, I've never actually needed Save As in VC++, so maybe that explains it.

Torsion is looking much nicer now, nice work. I'm in evil beta tester mode, so there's a slew of bug reports on your Mantis. There will probably be more before this day is out >:)

T.

Tom Spilman   (Apr 05, 2006 at 18:09 GMT)   Resource Rating: 5
@Tom1 - Bring on the bug reports and feature requests... even the nit picky ones! =)

Jonathon Stevens   (Apr 06, 2006 at 05:58 GMT)   Resource Rating: 5
@Tom - One thing I would LOVE to see if you ever got around to it would be collapsable panes. If you could make the browser tree pain and the output pains collapsable (auto-hidable) that would be awesome.

Tom Spilman   (Apr 06, 2006 at 06:52 GMT)   Resource Rating: 5
@Jonathon - At the moment you can manually collapse the panes via Ctrl+Alt+P and Ctrl+Alt+O.

The problem is that there is not one good docking window system for the wxWindows library that provides the features i want to see. There are two candidates out there: wxIFM and wxAUI. Both would require me to do extensive hacking to make work.

Jonathon Stevens   (Apr 06, 2006 at 07:26 GMT)   Resource Rating: 5
@Tom - Another relatively small request I'd have is to have a toolbar icon for commenting/uncommenting so we don't have to remember the ctrl-k and such =)

Tom Spilman   (Apr 06, 2006 at 19:43 GMT)   Resource Rating: 5
@Jonathon - Toolbar space is an extremely valuable resource at the moment since it cannot be configured and we don't support docking toolbars yet. I don't think this will be in 1.0, but i do want to get to a fully configurable UI in a future release.

Luke *V8motorhead* Jones   (Apr 08, 2006 at 23:53 GMT)
Way off topic here, but, the NHRA games were pretty damned good and I'm quite suprised to see a coder from them toodling round here :P

Tom Spilman   (Apr 09, 2006 at 00:06 GMT)   Resource Rating: 5
@Luke - Of course my opinion on them is jaded, but it was great learning experience and a generally fun time. I still want to do a indie drag racing game one day and show people the right way to do it. ;)

James Laker (BurNinG)   (Apr 20, 2006 at 08:18 GMT)
@Thomas
This is the coolest tool eva!!

Suggestion:
The search/find bar at the top... cant that be a find through files/project? and a ctrl-f a find in file? I use the find through files ALOT!!!

You must be a member and be logged in to either append comments or rate this resource.