NPC can't connect to the server -
pasha97 - 03.11.2012
I have a problem: every npc i try to connect with ConnectNPC cannot connect to the server, the server writes: "Incoming connection: 127.0.0.1:58419". What can be the reason for that?
Re: NPC can't connect to the server -
pasha97 - 03.11.2012
anyone help me please!
Re: NPC can't connect to the server -
nmader - 03.11.2012
Incoming Connection means that it is connecting.
Re: NPC can't connect to the server -
niels44 - 03.11.2012
^^ ofc, i think he knows that.
the problem will be in your server.cfg, there is a line called maxnpc, if its at 0, change it to the amount of bots you want.
WRONG!:
good one:
the line above is the right one, this will allow you to connect 5 bots to your server.
Re: NPC can't connect to the server -
Private200 - 03.11.2012
INcoming connection means that there is comming connection to the server . but you should see your server.cfg line with
change it to something else like
as
Quote:
Originally Posted by niels44
^^ ofc, i think he knows that.
the problem will be in your server.cfg, there is a line called maxnpc, if its at 0, change it to the amount of bots you want.
WRONG!:
Code:
maxnpc 0
good one:
Code:
maxnpc 5
the line above is the right one, this will allow you to connect 5 bots to your server.
|
said
Re: NPC can't connect to the server -
pasha97 - 03.11.2012
Quote:
Originally Posted by niels44
^^ ofc, i think he knows that.
the problem will be in your server.cfg, there is a line called maxnpc, if its at 0, change it to the amount of bots you want.
WRONG!:
good one:
the line above is the right one, this will allow you to connect 5 bots to your server.
|
Quote:
Originally Posted by Private200
INcoming connection means that there is comming connection to the server . but you should see your server.cfg line with change it to something else like as said
|
I have maxnpc 10 there and it doesnt work! Maybe something wrong with the code? ConnectNPC("Shamal_Driver","shamal");
Re: NPC can't connect to the server -
pasha97 - 04.11.2012
Dudes,help me!!!!
Re: NPC can't connect to the server -
JaKe Elite - 04.11.2012
Anyway how many NPC do you have??
Do you make sure that you return 1 If player is npc in any public callback that blocks NPC from connecting.
Re: NPC can't connect to the server -
pasha97 - 04.11.2012
Quote:
Originally Posted by Romel
Anyway how many NPC do you have??
Do you make sure that you return 1 If player is npc in any public callback that blocks NPC from connecting.
|
I have 1 npc and i don't have any public callbacks tat block npc connection
Re: NPC can't connect to the server -
Drake_Lopez - 04.11.2012
go to your server.cfg and add 1 at the NPC thingy then?