Game Development Community

dev|Pro Game Development Curriculum

Torsion Update & TelnetDebugger Fix

by Tom Spilman · 04/03/2006 (3:24 am) · 22 comments

www.sickheadgames.com/images/shbug_03.pngI 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?

www.sickheadgames.com/stuff/tpilot_t.jpg

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:

www.sickheadgames.com/images/torsion_r_logo500.jpg

Download Torsion
v1.0.549 Alpha

-- Tom

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.

Page «Previous 1 2
#1
04/03/2006 (3:57 am)
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!
#2
04/03/2006 (4:13 am)
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 ;-)
#3
04/03/2006 (5:41 am)
Good stuff.

Can we have a find/replace option? Ctrl-h normally. Or do we have one I'm not aware of yet?
#4
04/03/2006 (8:08 am)
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
#5
04/03/2006 (11:16 am)
@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.
#6
04/03/2006 (12:05 pm)
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 ;)
#7
04/03/2006 (12:08 pm)
@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.
#8
04/03/2006 (12:13 pm)
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.
#9
04/03/2006 (12:46 pm)
@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.
#10
04/03/2006 (1:43 pm)
Ugggh... new bug.... one tab press inserts two tabs. There will be a new release tomorrow to correct this.
#11
04/03/2006 (10:09 pm)
Quote:You can now quickly comment block selections via Ctrl+K and Ctrl+Shift+K to uncomment.

marry me?
#12
04/03/2006 (11:14 pm)
Haha!
#13
04/04/2006 (11:06 am)
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.
#14
04/05/2006 (4:13 am)
@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.
#15
04/05/2006 (11:09 am)
@Tom1 - Bring on the bug reports and feature requests... even the nit picky ones! =)
#16
04/05/2006 (10:58 pm)
@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.
#17
04/05/2006 (11:52 pm)
@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.
#18
04/06/2006 (12:26 am)
@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 =)
#19
04/06/2006 (12:43 pm)
@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.
#20
04/08/2006 (4:53 pm)
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
Page «Previous 1 2