Error on map: "Client missing DT class CTeamTrainWatcher"

From Valve Developer Community
Revision as of 00:08, 28 September 2008 by Grash (talk | contribs) (Cleaned up the Article)
Jump to navigation Jump to search

Orange Box code

Date: 14th August 2008.


Problem: You are unable to run maps after just having compiled a Half-Life 2: Multiplayer mod with the Orange box code. No source code files have been changed.

Symptoms: Errors in the console such as:

DataTable warning: No matching RecvTable for SendTable 'DT_TeamTrainWatcher'.
Client missing DT class CTeamTrainWatcher
Host_EndGame: CL_ParseClassInfo_EndClasses: CreateDecoders failed.

Followed by the user being dropped from the server.


Cause: "Game_HL2MP-2005.sln" does not include the files for the TeamTrainWatcher entity on the client side. ----

Solution: Add the relevant .CPP and .H files to the project solutions. They were included with the Orange Box Code.

Just find team_train_watcher.h in the src\game\server folder of your code, and c_team_train_watcher.cpp and c_team_train_watcher.h in the src\game\client folder.

Add these to the relevant sections in VS (ie. Client -> Source Files and Server -> Source files; "c_team_train_watcher" etc should go into the Client, "team_train_watcher" etc into the Server).