Checker Tutorial
by Richard Van Stone · in Torque Game Builder · 08/06/2006 (8:10 pm) · 4 replies
I'm working on the checkers tutorial and I can't get the images to load. In the console log this is the error I'm getting
MyCheckersDemo/gameScripts/server/servercheckers.cs (54): Unable to find object: 'ClientCheckerBoard' attempting to call function 'init'
This is the line where ClientCheckerBoard.init() is called and frankly nowhere in the tutorial is ClientCheckerBoard defined. ServerCheckerBoard is defined so when ServerCheckerBoard.init in the previous statement is called it works. Any solutions?
Rich
MyCheckersDemo/gameScripts/server/servercheckers.cs (54): Unable to find object: 'ClientCheckerBoard' attempting to call function 'init'
This is the line where ClientCheckerBoard.init() is called and frankly nowhere in the tutorial is ClientCheckerBoard defined. ServerCheckerBoard is defined so when ServerCheckerBoard.init in the previous statement is called it works. Any solutions?
Rich
About the author
#2
08/07/2006 (8:23 am)
Meh I figured out the problem the checker tutorial has some variables undefined and it tells you to set up some names and classnames wrong.
#3
08/07/2006 (11:30 am)
A bug crept its way into the Checkers Tutorial... one you have found... the class and naming of ClientCheckerboard is one. So far that's the only one we've found (and it has been fixed for the next release), though if you find another please post it so it can be fixed :) If you run into any other problems feel free to post as well.
#4
08/07/2006 (5:24 pm)
$RedChecker and $BlueChecker are not defined anywhere in the tutorial either so that keeps preventing it from running. Also when comparing the tutorial to the demo there's a lot of stuff in the tutorial that tells you to put the functions in initClient.cs when it should be clientCheckers.cs
Torque Owner Richard Van Stone
%piece=$RedChecker.clone(true);
RedChecker.clone is null....but I have it defined so I'm confused as to this.
EDIT
Actually these are the errors I'm getting.
MyCheckersDemo/gameScripts/client/clientCheckers.cs (50): Unable to find object: '' attempting to call function 'clone'
MyCheckersDemo/gameScripts/client/clientCheckers.cs (51): Unable to find object: '0' attempting to call function 'setName'
Set::add: Object "0" doesn't exist
MyCheckersDemo/gameScripts/client/clientCheckers.cs (69): Unable to find object: '0' attempting to call function 'setSize'