Previous Blog Next Blog
Prev/Next Blog
by date

IUP: Use Lua scripted GUIs with Torque

IUP: Use Lua scripted GUIs with Torque
Name:Joe Rossi
Date Posted:Mar 18, 2006
Rating:Not Rated
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Joe Rossi

Blog post
My latest resource is a binding for the IUP library, which is a Lua scripted GUI library. Now I/we can run IUP scripts from Torque. Since it uses my Lua bridge these scripts can access about any Torque data. So with some effort it can be used to make more editors and tools that interact in realtime with Torque. Something similar can be done using wxLua (wxWidgets lib for Lua) but that's too complex and bloated for me and for this purpose (dev tools) IUP works just fine.

Access it here.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9998
( Win32 only for now )

As a demo I wrote a Torque console in IUP that lets you run TGE or Lua code, has a command history, and can be open and running as the game runs. It's not perfect but it seems to work. I started on some "in-house" tools that manipulate the currently selected level editor object... but to avoid reinventing any wheels I'll wait for the new editors before I go too far with that.

Other than this the past few weeks have not been productive for me. Kind of in a slump I guess. Lots of issues at the day job and so on... I need out of there!

Thanks for reading!

Edit: removed blabber about not getting resource approved.. Thanks Josh ;)

Recent Blog Posts
List:01/21/08 - New and Improved TGB AudioManager
08/10/07 - RPG progress and new font tool
02/19/07 - Working towards an RPG in TGB
12/13/06 - Building onto Torque Game Builder
03/18/06 - IUP: Use Lua scripted GUIs with Torque
02/02/06 - Lots of new changes
11/06/05 - Plan for Joe Rossi

Submit ResourceSubmit your own resources!

Anton Bursch   (Mar 18, 2006 at 18:56 GMT)
@Joe

Looks like it's in the Resource area now! :)

I think that sometimes, easier to evaluate resources make it thru faster. Plus, it has been crunch time to the Game Developer Conference.

Josh Williams   (Mar 18, 2006 at 20:26 GMT)
Hey Joe,

We just approved a bunch of resources last night.. there's a long line left to approve. Sorry you've been waiting on yours... we gotta approve resources faster. Want to give the newly approved resources a day or so in the limelight. But this is very cool, and it's up on the front page now (someone else approved it, thanks!). :)

Anyway, nice work, this is great!
Edited on Mar 18, 2006 20:28 GMT

Joe Rossi   (Dec 20, 2006 at 07:54 GMT)
FYI people, I pretty much gave up on this ;) It makes very little sense when there is a perfectly good GUI system built into the engine. I thought it was cool that it worked, but, it's actually more work to make a GUI in IUP than it is using the Torque GUIs...! Yeah sometimes I do things like this just to see if I can do it, and I end up wasting time. Bad me.

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