NPC can't connect to the server
#1

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?
Reply
#2

anyone help me please!
Reply
#3

Incoming Connection means that it is connecting.
Reply
#4

^^ 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!:
Код:
maxnpc 0
good one:
Код:
maxnpc 5
the line above is the right one, this will allow you to connect 5 bots to your server.
Reply
#5

INcoming connection means that there is comming connection to the server . but you should see your server.cfg line with
Код:
maxnpc 0
change it to something else like
Код:
 maxnpc 2
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
Reply
#6

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!:
Код:
maxnpc 0
good one:
Код:
maxnpc 5
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
Код:
maxnpc 0
change it to something else like
Код:
 maxnpc 2
as said
I have maxnpc 10 there and it doesnt work! Maybe something wrong with the code? ConnectNPC("Shamal_Driver","shamal");
Reply
#7

Dudes,help me!!!!
Reply
#8



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.
Reply
#9

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
Reply
#10

go to your server.cfg and add 1 at the NPC thingy then?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)