Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,393 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
session_open/connect [need help] #174624
12/24/07 15:18
12/24/07 15:18
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
hello i try to make a lan connection but every time i run this scrip i get a error w1403 (manual:More clients try to connect than entities are available in the level. The client is rejected. Increase max_entities.)

i tried a lot but i dont get it to work
if i try it white -sv -cl =sn main it works

Code:

var player_count;

function my_con_status()
{
rare1 +=1;//debug
if(connection == 0)
{
wait(1);
}
if(connection == 3)//1
{
if(str_cmpi(session_name,"main")==1)
{
rare += 1;//debug
}
}
}


function spawn
{
wait(1);
}


function sv_connect
{
create_lvl_1();//spawns a enity
if(event_join == 1)
{
player_count +=1;
}
if(EVENT_DISCONNECT == 1)
{
//player_count -=1;
}
rare2 = player_count;
}

on_server = sv_connect;

function lan_join()
{
if(session_connect("main",null))
{
level_load("lantry.wmb");
wait(-0.5);
create_lvl_1();//spawns a enity
}
//my_con_status();
}

function lan_svcreate()
{
if(session_open("main"))
{
level_load("lantry.wmb");
}
}

//lan_svcreate and lan_join are operated by a button
// no lvls running



thx for looking flits


"empty"
Re: session_open/connect [need help] [Re: flits] #174625
12/25/07 12:59
12/25/07 12:59
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
i still didnt get it to work
its cristmise so i didnt expect support but even stupid idee's cold help me

i figerud out that session_connect works and that the problem session_open is

the session_connect connect but cant communicate white the server somehow dont know why

and some strange thing i saw was that the client nummber was the same on my pc


"empty"
Re: session_open/connect [need help] [Re: flits] #174626
12/25/07 13:10
12/25/07 13:10
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Have you tried to follow the advice from the error message? Increase max_entities.

Re: session_open/connect [need help] [Re: Excessus] #174627
12/25/07 14:01
12/25/07 14:01
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
thx excessus but i already tryed it but didt work

enity count was 5

more idee's please post


"empty"
Re: session_open/connect [need help] [Re: flits] #174628
12/25/07 23:03
12/25/07 23:03
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Are you using commercial edition? I think there was a bug with the maximum client count.
Try updating to the latest public beta.

Re: session_open/connect [need help] [Re: FBL] #174629
12/26/07 18:10
12/26/07 18:10
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
updating doesnt work

i did set var dplay_maxclients = 32
it is still not working

Last edited by flits; 12/26/07 18:10.
Re: session_open/connect [need help] [Re: flits] #174630
12/27/07 07:45
12/27/07 07:45
Joined: Jun 2002
Posts: 85
Deutschland
Clockmaster Offline
Junior Member
Clockmaster  Offline
Junior Member

Joined: Jun 2002
Posts: 85
Deutschland
If you have the commercial version of A7 ( Your Profile tells: Yes ), you canīt use session_connect() and session_open(). Thats are Pro only Features. Could that made these Errors?


Do Your Best.
Gib dein Bestes.
Re: session_open/connect [need help] [Re: Clockmaster] #174631
12/27/07 09:40
12/27/07 09:40
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
i have now a7 pro c-script i still didnt update it.

it gives no errors at all execpt if i try to connect to a server which is opend wite session_open session_connect/-cl doesnt matter i always get the w1403 error

thx anyway

stil searching for some answers

and that bug was session_connect fixed in a6

could sombody make a workking small demo(not to complicated),
so i could test if this is my fault ore not

thx all

flits


"empty"
Re: session_open/connect [need help] [Re: flits] #174632
12/28/07 16:17
12/28/07 16:17
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
nobody a demo ore a solution?


"empty"

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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