Game Development Community

how to create a simplest simulated client?

by Huan Li · in Torque 3D Beginner · 12/10/2009 (9:36 pm) · 0 replies

For my studing, i need to create a simulated client which is the minimum size of files.
Below is the requirements for the simulated client:
·No any modification at server side;
·Connecting to server like a real client;
·Recieving messages from server like a real client;
·Sending player's move messages to server like a realy client;
·Just logic script files without any art resources (e.g. Pictures or Models) at simulated client side.

Problems i encountered till now:
1)the simulated client crashes in (C++)NetConnection::loadNextGhostAlwaysObject(...) when it recieves a LevelInfo ghost object, the debug info is as below:
TorqueLab_DEBUG.dll!String::c_str()  line 564 + 0x3 byte
 	TorqueLab_DEBUG.dll!LightManager::getId()  line 84 + 0x17 byte
 	TorqueLab_DEBUG.dll!LevelInfo::_updateSceneGraph()  line 253 + 0xe byte
 	TorqueLab_DEBUG.dll!LevelInfo::onAdd()  line 225	C++
 	TorqueLab_DEBUG.dll!SimObject::registerObject()  line 594 + 0xd byte
	TorqueLab_DEBUG.dll!NetConnection::loadNextGhostAlwaysObject(bool hadNewFiles=true)  line 1084 + 0x8 byte
 	TorqueLab_DEBUG.dll!NetConnection::setGhostAlwaysObject(NetObject * object=0x0284f328, unsigned int index=4091)  line 1043
 	TorqueLab_DEBUG.dll!GhostAlwaysObjectEvent::process(NetConnection * ps=0x028065f8)  line 119
It seems that the light manager causes this crash, is there any way to disable light manager at client side? because i don't need the simulated client to show any thing except the "enableWinConsole(true);".

(Chinese version of this thead)
在我的研究中,我需要创建一个仿真客户端,它最好包含最少量的文件。
下面是对于这个客户端的需求:
·不需要服务器端做任何修改;
·像真实客户端一样连入服务器;
·像真实客户端一样接收来自服务器的消息;
·像真实客户端一样向服务器发送玩家的操作消息;
·仅有逻辑代码,没有任何资源文件,如图片,模型等;

Any Help will be appreciated!