Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,887 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A6 multiplayer game: please help #20736
12/05/03 09:04
12/05/03 09:04

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



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

Re: A6 multiplayer game: please help #20737
12/05/03 20:29
12/05/03 20:29
Joined: Dec 2001
Posts: 941
England
LoneWolf Offline
Developer
LoneWolf  Offline
Developer

Joined: Dec 2001
Posts: 941
England
What version of A6 are you using. Are you using the beta 6.2 version because only last night i tested an old multiplayer game that did exactly what you mention. I could not work out what was wrong (if you load a simple level then it works) so i have not yet reported it. If you are using 6.2 then this might confirm the bug?


Wolfpack Software (www.wolfpacksoftware.com) A catalyst in the evolution of games Available for paid work
Re: A6 multiplayer game: please help [Re: LoneWolf] #20738
12/06/03 11:27
12/06/03 11:27

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi,
I am using version 6.11 which is the latest trial version.

Is it possible for someone to help me with a sample small game which is working on your version, so that I can check if it works on the latest version.

Also, how do we rectify such crashes. If we can't whom do we address the bug to?

I am new in this forum and i am trying to learn this script.

thanking you,
Avarma.

Re: A6 multiplayer game: please help [Re: LoneWolf] #20739
12/09/03 07:08
12/09/03 07:08

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi,
I was wondering if you have some simple sample game that works on A6. If you could kindly share the portion of client and server creation, I would be really grateful. I can learn from that and try to make my part working.
Is there any script to move an entity and transfer that info to the server and the script for the server to broadcast it to the rest of the clients or is the broadcast done automatically?
Thanking you,
Aditya


Re: A6 multiplayer game: please help #20740
12/13/03 00:12
12/13/03 00:12
Joined: Oct 2002
Posts: 119
Whirabomber Offline
Member
Whirabomber  Offline
Member

Joined: Oct 2002
Posts: 119
Examine the "office" level - it is client-server based. I believe it is in the 3DGS "work" directory.


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1