Problem with Startup Tutorial
by Brandon Fogerty · in Technical Issues · 06/07/2007 (1:23 pm) · 9 replies
Hi. I just bought the torque game engine and tried making the first mission.
Everything is fine except for thr torque scripting tutorial that comes with the engine.
I want the Torque logo to disappear when the player touches it. So in my logoitem.cs file, I wrote the following,
datablock StaticShapeData(TorqueLogoItem)
{
category = "Items";
shapeFile = "~/data/shapes/3dtorquelogo/torque_logo.dts";
};
function TorqueLogoItem::onCollision(%this, %obj, %col)
{
if(%col.getClassName() $= "Player")
{
%obj.delete();
}
Everything is fine except for thr torque scripting tutorial that comes with the engine.
I want the Torque logo to disappear when the player touches it. So in my logoitem.cs file, I wrote the following,
datablock StaticShapeData(TorqueLogoItem)
{
category = "Items";
shapeFile = "~/data/shapes/3dtorquelogo/torque_logo.dts";
};
function TorqueLogoItem::onCollision(%this, %obj, %col)
{
if(%col.getClassName() $= "Player")
{
%obj.delete();
}
#2
06/07/2007 (5:02 pm)
Sorry I fixed it. I was using eclipse editor and I guess it wasn't allowing me to save my code. Thanks though!
#3
Hoping someone can give me a hint on what else to check.
Thanks
03/09/2008 (12:50 pm)
I'm having a problem with the start button. Have gone through and checked everything and it's written exactly as the tutorial says to do it, since I know coding errors are the first thing to check. Still not working. Am using the advanced version 1.5.2Hoping someone can give me a hint on what else to check.
Thanks
#4
Hoping someone can give me a hint on what else to check.
Thanks
03/09/2008 (1:21 pm)
I'm having a problem with the start button. Have gone through and checked everything and it's written exactly as the tutorial says to do it, since I know coding errors are the first thing to check. Still not working. Am using the advanced version 1.5.2Hoping someone can give me a hint on what else to check.
Thanks
#5
I had a problem with a missing ; the first time I tried that tutorial :)
03/09/2008 (2:07 pm)
Hit the tilde (~) key to open the console and see if there are any script errors showing up in there.I had a problem with a missing ; the first time I tried that tutorial :)
#6
03/09/2008 (3:20 pm)
Think I will delete it and start from scratch. Everything is working except the button, at least as far as I know.
#7
03/09/2008 (3:22 pm)
Curious the tutorial says to name the mission GameOneMission.mis but later says the button is supposed to loadMyMission could that be the problem? If I can't do this tutorial I need to re-evaluate whether or not I can use this program. It is pretty straight forward.
#8
03/09/2008 (4:02 pm)
Curious the tutorial says to name the mission GameOneMission.mis but later says the button is supposed to loadMyMission could that be the problem? If I can't do this tutorial I need to re-evaluate whether or not I can use this program. It is pretty straight forward.
#9
03/09/2008 (4:04 pm)
@ Marque: It's been a while since I looked at that tutorial, but I believe that GameOneMission.mis would be the actual mission name. loadMyMission would be the command/script function that is executed when you push the button. Just check the name of the mission file and make sure it is the same name as what the function loadMyMission() is trying to load. Also make sure that the command for your button and the name of the function are the same.
Torque Owner Steve D