Hi,

I am trying to get the demo (techdemo) coming with A6 to work in multiplayer mode. I need to create a multiplayer game and I thought that techdemo would be a good starting point to learn GS6 and see how things work, however once I understand how it works I will probably restart from scratch.

So far I tried inserting the following piece of code in the main function of techdemo.wdl after the call to message_startup():

=== snip snip

ifdef CLIENT;
ifdef SERVER;
client_move(); // sends keyboard/mouse move to server
//while( connection == 0 )
//{
// wait(1);
//}
//
//temp.x = 0;
//temp.y = 0;
//temp.z = 0;

// create(<cbabe.mdl>, temp, my_player);
ifelse;
client_move(); // sends keyboard/mouse move to server
while( connection == 0 )
{
wait(1);
}

temp.x = 10;
temp.y = 10;
temp.z = 10;

create(<fisch1.mdl>, temp, my_player2);
endif;
endif;

=== snip snip

i start the game twice as follows on the same machine:

server/client: -sv -cl techdemo.wdl
client: -cl techdemo.wdl

Result is that the server starts and one can move around, but the client crashes right after the server prints that the client has connected and the server. The server hangs en after the client crashes.

Is there something wrong in the code?
Is there a way to debug what is going-on?
Is there a multi-player example to look at that works in A6?

Thanks,

avarma