Game Development Community

Server side objects

by Neil Marshall · in Torque Game Engine · 08/27/2002 (8:05 pm) · 4 replies

I'm trying to create an object server side, which tracks all of the clients in a race. I want to have a $Race object with methods which I can call to add people/remove people from the list.

Right now I'm getting "Unable to instantiate non-conobject class race." in the console, so I'm definatly going about this the wrong way. Can someone help? Or maybe show me to some docs/suggest some code to look at in the game itself?

My best attempt at it is this
$Race = new RaceManager() {};

function RaceManager::newRace(%this, %blah)
{
}

#1
08/27/2002 (8:38 pm)
Did you create a Console Object, in the engine code, called RaceManager?

If not, you can't call new RaceManager like that.

Reply with further details and I can help you further.
#2
08/27/2002 (8:40 pm)
no I haven't. I have no idea how to do that.

looking...
#3
08/27/2002 (8:44 pm)
Is this done in C++ Or CScript?
#4
08/27/2002 (9:24 pm)
I think I got it. Thanks.

This document really helped:
www.garagegames.com/docs/torque.sdk/coding/console.html#namespace

It doesn't require a $ though, which I'm finding odd.