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 (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
multiplayer, cannot connect with server #334678
07/24/10 16:05
07/24/10 16:05
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
hello everybody
i have a problem with a multiplayergame my game cannot find the server but the server is run as server and client, it is tried with workshop25

Re: multiplayer, cannot connect with server [Re: JohnnyIsDutch] #334682
07/24/10 16:12
07/24/10 16:12
Joined: Aug 2003
Posts: 127
Berlin, Germany
C
CHaP Offline
Member
CHaP  Offline
Member
C

Joined: Aug 2003
Posts: 127
Berlin, Germany
In the command Line, where stand -cl or -sv, can you also write -localhost for the client. This could perhaps solve your problem,

If not, check your network connections, like firewall mode.

Re: multiplayer, cannot connect with server [Re: CHaP] #334687
07/24/10 16:28
07/24/10 16:28
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
it doesnt work but other games created with 3dgs does work

i have windows 7

Re: multiplayer, cannot connect with server [Re: JohnnyIsDutch] #334689
07/24/10 16:44
07/24/10 16:44
Joined: Aug 2003
Posts: 127
Berlin, Germany
C
CHaP Offline
Member
CHaP  Offline
Member
C

Joined: Aug 2003
Posts: 127
Berlin, Germany
Right.

You can also try, to make the connection to the servers ip. Use -cl -ip [server IP]

f.e.: acknex office.c -cl -ip 169.254.73.28

Another reason can be:

Quote:

[...] Stand alone server mode is only supported by the Professional Edition


Re: multiplayer, cannot connect with server [Re: CHaP] #334691
07/24/10 16:52
07/24/10 16:52
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
Help me, i need a demo , not workshop25

Last edited by JohnnyIsDutch; 07/25/10 11:13.
Re: multiplayer, cannot connect with server [Re: JohnnyIsDutch] #334809
07/25/10 11:43
07/25/10 11:43
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
here is a movie about my problem i hope it is help full

look in HQ

Last edited by JohnnyIsDutch; 07/26/10 11:13.
Re: multiplayer, cannot connect with server [Re: JohnnyIsDutch] #334845
07/25/10 16:12
07/25/10 16:12
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
I can't read any text in your video.
Should i buy a glasses or do something else?

Re: multiplayer, cannot connect with server [Re: Aku_Aku] #335010
07/26/10 11:02
07/26/10 11:02
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
look in HQ,

here is my project:
it is from workshop 25

and here is my code:
Code:
////////////////////////////////////////////////////////////////////////////
// simple lite-C LAN game 
////////////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
 
action player_move() // control the player on the client, move it on the server
{    
  var walk_percentage = 0;
  while (1) 
  {
    if (my.client_id == dplay_id) { // the following code runs on the player's client only
      my.skill1 = key_w - key_s; // forward/backward
      my.skill2 = key_a - key_d; // rotation
      send_skill(my.skill1,0);   // send skill1-2 to the server
      send_skill(my.skill2,0);
    }

    if (connection & CONNECT_SERVER) { // the following code runs on the server only
      my.pan += my.skill2*5*time_step;   // rotate the entity using its skill2
      var distance = my.skill1*5*time_step;
      c_move(me, vector(distance,0,0), NULL, GLIDE); // move it using its skill1
      walk_percentage += distance;
      ent_animate(me,"walk",walk_percentage,ANM_CYCLE); // animate the entity
    }
    wait (1);
  }
}

function main() 
{
  if (!connection) 
    error("Start as server or client!");
  else 
    while (dplay_status < 2) wait(1); // wait until the session is opened or joined

  dplay_localfunction = 2; // run actions both on server and client
  level_load ("multiplayer6.wmb");
  vec_set(camera.x, vector (-600, 0, 100)); // set a proper camera position

  if (connection & CONNECT_SERVER)  // this instance of the game runs on the server
    ent_create ("redguard.mdl", vector (100, 50, 40), player_move); // then create the red guard!
  else // otherwise, it runs on a connected client
    ent_create ("blueguard.mdl", vector (-100,-50, 40),player_move); // create the blue guard
}





Last edited by JohnnyIsDutch; 07/26/10 11:12.

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