Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

[BUG]: NPC connect #238

@m1ronzy

Description

@m1ronzy

Description

Not all NPC connect to the server

How to re-produce this bug

public OnGameModeInit()
{
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	new string[MAX_PLAYER_NAME];
	for (new i; i < 50; i++)
	{
		format(string, sizeof(string), "NPC_name_%d", i);
		ConnectNPC(string, "train_driver");
	}
	return 1;
}

Relevant log output

[2022-12-27T15:12:51+0300] [Info] Legacy Network started on port 7777
[2022-12-27T15:12:52+0300] [Info] [connection] incoming connection: 127.0.0.1:49327 id: 0
[2022-12-27T15:12:52+0300] [Info] [npc:join] NPC_name_21 has joined the server (0:127.0.0.1)
[2022-12-27T15:12:53+0300] [Info] [connection] incoming connection: 127.0.0.1:49334 id: 1
[2022-12-27T15:12:53+0300] [Info] [npc:join] NPC_name_28 has joined the server (1:127.0.0.1)
[2022-12-27T15:12:53+0300] [Info] [connection] incoming connection: 127.0.0.1:49341 id: 2
[2022-12-27T15:12:53+0300] [Info] [npc:join] NPC_name_35 has joined the server (2:127.0.0.1)
[2022-12-27T15:12:53+0300] [Info] [connection] incoming connection: 127.0.0.1:49347 id: 3
[2022-12-27T15:12:53+0300] [Info] [npc:join] NPC_name_41 has joined the server (3:127.0.0.1)
[2022-12-27T15:12:53+0300] [Info] [connection] incoming connection: 127.0.0.1:49355 id: 4
[2022-12-27T15:12:54+0300] [Info] [npc:join] NPC_name_49 has joined the server (4:127.0.0.1)
[2022-12-27T15:12:54+0300] [Info] [connection] incoming connection: 127.0.0.1:49335 id: 5
[2022-12-27T15:12:54+0300] [Info] [npc:join] NPC_name_29 has joined the server (5:127.0.0.1)
[2022-12-27T15:12:54+0300] [Info] [connection] incoming connection: 127.0.0.1:49342 id: 6
[2022-12-27T15:12:54+0300] [Info] [npc:join] NPC_name_36 has joined the server (6:127.0.0.1)
[2022-12-27T15:12:54+0300] [Info] [connection] incoming connection: 127.0.0.1:49323 id: 7
[2022-12-27T15:12:54+0300] [Info] [npc:join] NPC_name_17 has joined the server (7:127.0.0.1)
[2022-12-27T15:12:55+0300] [Info] [connection] incoming connection: 127.0.0.1:49330 id: 8
[2022-12-27T15:12:55+0300] [Info] [npc:join] NPC_name_24 has joined the server (8:127.0.0.1)
[2022-12-27T15:12:55+0300] [Info] [connection] incoming connection: 127.0.0.1:49336 id: 9
[2022-12-27T15:12:55+0300] [Info] [npc:join] NPC_name_30 has joined the server (9:127.0.0.1)
[2022-12-27T15:12:55+0300] [Info] [connection] incoming connection: 127.0.0.1:49343 id: 10
[2022-12-27T15:12:55+0300] [Info] [npc:join] NPC_name_37 has joined the server (10:127.0.0.1)
[2022-12-27T15:12:55+0300] [Info] [connection] incoming connection: 127.0.0.1:49348 id: 11
[2022-12-27T15:12:55+0300] [Info] [npc:join] NPC_name_42 has joined the server (11:127.0.0.1)
[2022-12-27T15:12:56+0300] [Info] [connection] incoming connection: 127.0.0.1:49331 id: 12
[2022-12-27T15:12:56+0300] [Info] [npc:join] NPC_name_25 has joined the server (12:127.0.0.1)
[2022-12-27T15:12:56+0300] [Info] [connection] incoming connection: 127.0.0.1:49338 id: 13
[2022-12-27T15:12:56+0300] [Info] [npc:join] NPC_name_32 has joined the server (13:127.0.0.1)
[2022-12-27T15:12:56+0300] [Info] [connection] incoming connection: 127.0.0.1:49344 id: 14
[2022-12-27T15:12:56+0300] [Info] [npc:join] NPC_name_38 has joined the server (14:127.0.0.1)
[2022-12-27T15:12:56+0300] [Info] Failed to announce legacy network to open.mp list
[2022-12-27T15:12:56+0300] [Info] [connection] incoming connection: 127.0.0.1:49351 id: 15
[2022-12-27T15:12:56+0300] [Info] [npc:join] NPC_name_45 has joined the server (15:127.0.0.1)

open.mp server version

build11

Operating system or distribution

windows10

Contact information

M1RoN#6464

Additional information

Link to the server I tested on

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions