Game Development Community

General help

by A Be · in Torque Game Builder · 10/26/2007 (11:25 am) · 4 replies

I need help with two things:
1. I deleted all the .dso files, now when I test my game the screen is messed up! Nothing is displayed!

2. When I use the following code, the text displaying the counter screws up and shows strange characters. After that it crashes.

function AAClass::onLevelLoaded(%this, %scenegraph)
{
%this.Count = 4;
AADisp.text = "AA:"%this.Count;
moveMap.bindCmd(keyboard, "e", "IncAA(%this, %scenegraph);");
}

function IncAA(%this, %scenegraph)
{
%this.Count = %this.Count + 1 ;
AADisp.text = "AA:"%this.Count;
}

About the author

Recent Threads


#1
10/26/2007 (12:19 pm)
Look in your log file. If you erase the .dso files, you cannot recreate them if your .cs files are non-functional. If a .cs cannot be compiled into a .dso, the console.log file will mention it.
#2
10/26/2007 (4:46 pm)
Changes are in bold

function AAClass::onLevelLoaded(%this, %scenegraph)
{
%this.Count = 4;
AADisp.text = [b]"AA:" @ %this.Count;[/b]
moveMap.bindCmd(keyboard, "e", [b]"IncAA(" @ %this @ ", " @ %scenegraph @ ");"[/b]);
}

function IncAA(%this, %scenegraph)
{
%this.Count = %this.Count + 1 ;
AADisp.text = [b]"AA:" @ %this.Count;[/b]
}
#3
12/01/2007 (4:37 pm)
Just a Q about different computers; do I have to buy a different version of TGB for mac? Or is it universal?
HELP!?!

......please?
#4
12/01/2007 (7:06 pm)
This question is not really related to the original thread, but you do not need to buy two different versions. You just need to download the correct version for Windows or Mac. Once you purchase the software, you will have the ability to download versions for both OS's. You get the Mac and Windows version for the same one price. Also, both versions can apparently create executables for the other platform. So if you only have a Mac, you can still use that version to make builds for Windows users. Pretty nice.