Game Development Community

Kalle Wik's Forum Posts

Thread Post Date Posted
Automated Build Scripts It's not too complex. The specifics vary a bit between v1.1.3 and v1.5, but the basic process is: ... read more 11/09/2007 (2:39 pm)
Resolved: Arrays and Element Count Well, you could wrap the strings in SimObjects, to use in a SimSet, but that's probably adding more ... read more 10/15/2007 (1:27 pm)
Mounted objects pivot point Currently the closest you can get is either: 1) Mount the bone object to a sceneobject, with the de... read more 10/15/2007 (1:23 pm)
Unknown command delete ? I believe what happens is that Torque's automatic namespace binding is triggering. When you call b... read more 10/05/2007 (1:35 pm)
URL control to GUI You could use a text control to display the link, and a blank-image button control to open the URL w... read more 10/01/2007 (3:46 pm)
How to access environement variables? There's a function getPrefsPath(%file) which could help. For instance, if you use getPrefsPath("p... read more 09/28/2007 (1:55 pm)
Font cache problem I've run into this problem as well, and believe it has to do with getPrefsPath returning the wrong d... read more 09/20/2007 (2:04 pm)
Accessing custom profiles in GUI tool The problem is that the editor only loads certain parts of the game, such as the behaviors and datab... read more 09/19/2007 (1:33 pm)
Calling behavior method on owner in a behavior Well personally, I'd like to see it solved - being able to call behaviors via the object makes writi... read more 09/19/2007 (1:25 pm)
Easy Schedule Question [quote]schedule(3,0,eval,"\"%this.recharge = false;\"");[/quote] Unless I'm mistaken, this line has... read more 09/05/2007 (1:51 pm)
Defining Gui Profiles in 1.5.1 I usually just make a "profiles.cs" file in the GUI folder. If you want it to be usable in the edit... read more 09/04/2007 (12:53 pm)
Var Values Try echoing isObject($fired) as well - if $fired isn't referring to a valid object, $fired.right won... read more 08/31/2007 (2:25 pm)
Porting Script to Engine Most of the console functions of objects map to C++ member functions, although many of console wrapp... read more 08/31/2007 (2:21 pm)
Bug: UFTs aren't being loaded. Believe I may have found a fix. The problem seems to be that getPrefsPath doesn't give the correct ... read more 08/30/2007 (5:21 pm)
Bug: UFTs aren't being loaded. Are there any fixes (script or engine) available? I know the openForWrite problem can be solved by ... read more 08/28/2007 (7:10 pm)
Inheritance or Datablocks? Also, in script, you're limited to two levels of inheritance - for instance: t2dStaticSprite -> Vehi... read more 08/27/2007 (12:45 pm)
Widescreen? Setting fullscreen with a non-widescreen resolution (800x600, for instance), results in the image be... read more 08/16/2007 (1:50 pm)
GUI using Scene Objects I've implemented sceneobject buttons, and those are very handy, as the range of possible effects is ... read more 08/15/2007 (12:49 pm)
Text Manipulation If you just want spacing, you could add a function to GuiTextCtrl: [code]function GuiTextCtrl::se... read more 08/14/2007 (2:10 pm)
Widescreen? I've run into that problem, and it's not an easy one to fix. There seem to be three solutions: 1... read more 08/14/2007 (1:56 pm)
Math Question MFloor, mCeil, or mRound will round a number down, up, or to the closest integer, respectively. So ... read more 08/14/2007 (1:44 pm)
I dont get blending modes You can fake it pretty well by making a large (2x your scene size) black panel with a transparent ho... read more 08/06/2007 (1:30 pm)
Simple multithreading in scripts? I've been using a method pretty similar to Benjamin Grauer's, and it seems to work well. In fact, s... read more 07/27/2007 (1:40 pm)
How to use the t2dGunTurret function?? Poking around in the source, t2dGunTurret appears to be a class of object, but not a sceneobject - i... read more 07/25/2007 (5:17 pm)
Help on script Objects are always passed by ID or name, which has pretty much the same effect as passing by pointer... read more 07/25/2007 (2:27 pm)
Another question about behaviors Are the squares all in one tilelayer, or in separate ones?... read more 07/20/2007 (4:25 pm)
How to do to deactivate console? Common/gamescripts/common.cs is where many of the default GUIs and scripts are loaded, including con... read more 07/20/2007 (1:14 pm)
Behavior custom callbacks in 1.5 release, changed functionality? This certainly limits the utility of behaviors - for instance, I had previously set up a custom scen... read more 07/17/2007 (3:10 pm)
An rpg experience system... Since the effects of gaining a level seem to be consistent (magic level up, upgrade available down),... read more 07/17/2007 (2:45 pm)
Bezier path. How to get a steady speed with an attached object? Nice tool - especially for complex paths. Found the selective display options handy as well.... read more 07/10/2007 (1:23 pm)
Changing levels The problem might be that you're scheduling the loadLevel command, but running the addToScene right ... read more 07/05/2007 (3:39 pm)
Add Data to Time Graphs It takes two calls - one to select the graph, a second to add the key: $myParticleEffect.selectGrap... read more 07/03/2007 (2:10 pm)
Current date and time? If you have the source, there's a fairly simple fix you can add to the engine to make the full date ... read more 07/03/2007 (2:00 pm)
Performance problems with lots of AI entities Given that they're all using the same list of objects, each AI entity doesn't really need their own ... read more 07/02/2007 (1:37 pm)
Dynamic masking These were just image editted, I'm looking into adding it to Torque, but need to do some more resear... read more 06/29/2007 (4:04 pm)
Dynamic masking I'm not sure that's the same kind of masking being refered to. Alpha control works fine in Torque, ... read more 06/27/2007 (2:06 pm)
Improvements to the documentation... Actually, it seems that the documentation on getRandom is somewhat incorrect. What I've found, for ... read more 06/26/2007 (6:06 pm)
Starting in script Where are you calling createTestObject, and have you tried running it directly through the console?... read more 06/26/2007 (5:29 pm)
Screen aspect ratios While this works fine for the scenegraph itself, other GUIs that are pushed onto the Canvas will sti... read more 06/26/2007 (2:17 pm)
Using t2dSceneObjectSet You can move a mounted object by using SetLinkPoint on the mounted parent, although you'd need to wr... read more 06/19/2007 (4:15 pm)
Custom Linkpoint Editor Do you want to set linkpoints for a particular t2dAnimatedSprite, or for all objects using that anim... read more 06/12/2007 (6:04 pm)
Torsion locks up when deleting a file I have noticed that it can temporarily freeze (starts working again in 3-30 seconds) when deleting a... read more 06/08/2007 (3:57 pm)
Character selection gui Scenewindow callbacks are one way, but it may be simpler just to make a blank (transparent) image an... read more 06/06/2007 (1:34 pm)
Help with GuiMLTextCtrl and word wrap Are you setting the second parameter of addText (reformat) to true? If not, it won't update the co... read more 06/06/2007 (1:32 pm)
Storing object in tile position Similar to a pointer in use, but it's literally a number - if you have an object with the number "34... read more 06/06/2007 (1:25 pm)
Engine Optimization Is there some trick to removing the level editor? Because I removed the T2d/levelBuilder and GUI/ed... read more 05/23/2007 (3:01 pm)
Object mounting should be much more obvious. Agreed - especially with paths, where the snap is very subtle. It would also be useful if the objec... read more 05/22/2007 (5:31 pm)
Bug: TGB fails to launch on ALL Windows 98, Win ME configs So we're either going to dive in and attempt these uh, "hackarounds", or perhaps sub-contract this p... read more 05/15/2007 (4:59 pm)
Can I create t2dtextobject from inside the editor? There's a text edit tool between the selection tool and the camera tool. Select it, then clicking a... read more 05/14/2007 (1:53 pm)
Torque and Widescreens - What's the Best Approach? Sorry I didn't clarify, that's what I've been doing - the idea is to have the everything appear in a... read more 05/08/2007 (12:52 pm)