Getting started tutorial score counter help...
by Dave Pare · in Torque Game Engine · 05/27/2006 (5:40 pm) · 7 replies
Ok let me first say i know this is in this forum for sure but i haven't been able to find it. I did the initial tutorial without issue until playtesting. The score counter is showing but doesn't count. Is there a certain spacing required between code ?
I am a newb but i have accomplished other tutorials back with 1.3 including the irc lobby. This has me stumped any idea's ?
I am a newb but i have accomplished other tutorials back with 1.3 including the irc lobby. This has me stumped any idea's ?
#2
Mapping String: SetScoreCounter: to index 12
clientCmdSetScoreCounter: unknown command.
Mapping String: ShowVictory: to index 13
clientCmdShowVictory: unknown command.
BTW again this is the tutorial sent with the engine.
05/28/2006 (9:41 am)
Hmm maybe i should add these following linesMapping String: SetScoreCounter: to index 12
clientCmdSetScoreCounter: unknown command.
Mapping String: ShowVictory: to index 13
clientCmdShowVictory: unknown command.
BTW again this is the tutorial sent with the engine.
#3
05/28/2006 (12:56 pm)
I think logos refers to a SimGroup which contains all the logos, do you have a simgroup called logos?
#4
05/28/2006 (1:35 pm)
Hmm good point i think i may have made the group name logo instead of logos. I'll try it and report back.
#5
05/29/2006 (4:47 am)
Hmm good point i think i may have made the group name logo instead of logos. I'll try it and report back.
#6
The problem i have is with clientGame.cs
code in tutorial was like this
function clientCmdSetScoreCounter(%score)
{ ScoreCounter.setText("Score:" SPC %
score);
}
function clientCmdShowVictory(%score)
{ MessageBoxYesNo("You Win!",
"Would you like to restart the game ?",
"loadMyMission();",
"quit();");
}
i changed this and got a lill farther in the console but not all the way yet.
function clientCmdSetScoreCounter(%score)
{ ScoreCounter.setText("Score:" SPC %score);
}
function clientCmdShowVictory(%score)
{ MessageBoxYesNo("You Win!",
"Would you like to restart the game ?",
"loadMyMission();",
"quit();");
}
anybody see my problem ? I'm new yes but this is 3rd time i play with torque and believe me i see it more clearly now. Just a lil help from you guys now would be awsome Thanks.
05/29/2006 (4:59 am)
Ok i did see how one part went wrong in the code. It looks as if when copy and pasting code from the tutorial breaks the positioning of some code.The problem i have is with clientGame.cs
code in tutorial was like this
function clientCmdSetScoreCounter(%score)
{ ScoreCounter.setText("Score:" SPC %
score);
}
function clientCmdShowVictory(%score)
{ MessageBoxYesNo("You Win!",
"Would you like to restart the game ?",
"loadMyMission();",
"quit();");
}
i changed this and got a lill farther in the console but not all the way yet.
function clientCmdSetScoreCounter(%score)
{ ScoreCounter.setText("Score:" SPC %score);
}
function clientCmdShowVictory(%score)
{ MessageBoxYesNo("You Win!",
"Would you like to restart the game ?",
"loadMyMission();",
"quit();");
}
anybody see my problem ? I'm new yes but this is 3rd time i play with torque and believe me i see it more clearly now. Just a lil help from you guys now would be awsome Thanks.
#7
make sure to use the spacebar to make the code look exactly as the pdf after you copy and paste. heehewe
06/02/2006 (9:15 am)
Ok i figured out my prob. i didn't format my code like the pdf. make sure to use the spacebar to make the code look exactly as the pdf after you copy and paste. heehewe
Torque Owner Dave Pare
GameOne/server/logoitem.cs (23): Unable to find object: 'logos' attempting to call function 'getCount'