ForrestMarkX / KF2-Server-Extension

A repository for ServerExtension by Marco found here https://forums.tripwireinteractive.com/forum/killing-floor-2/killing-floor-2-modifications/general-modding-discussion-ad/beta-mod-releases/109463-mutator-server-extension-mod
GNU Lesser General Public License v3.0
12 stars 16 forks source link

issue with list of players in lobby (1067) #32

Open Pirotehnik13 opened 6 years ago

Pirotehnik13 commented 6 years ago

Details

Hi! In 1067 issue with list of players in lobby. Show only 1 player in list. When the second player is connected, a chat window appears, but the second player is not displayed in the list. in server log there is a line: [0122.58] Log: [AKFGameInfo::GetLivingPlayerCount] Controller is not a valid KFPlayerController - Controller: ExtPlayerController_0 [0123.18] Log: [AKFGameInfo::GetLivingPlayerCount] Controller is not a valid KFPlayerController - Controller: ExtPlayerController_0 [0124.18] Log: [AKFGameInfo::GetLivingPlayerCount] Controller is not a valid KFPlayerController - Controller: ExtPlayerController_0 [0125.18] ...... and so on

Steps to reproduce

connect to server 2 and more players.

ForrestMarkX commented 6 years ago

Not a ServerExt issue, it's a native code issue present in base KF2

Pirotehnik13 commented 6 years ago

can I fix it somehow? On another server with ServerExt players list in the lobby work. I don't understand where the problem is.

ForrestMarkX commented 6 years ago

Requires you to make a GameInfo extension and replace the function GetLivingPlayerCount

Pirotehnik13 commented 6 years ago

i add function GetLivingPlayerCount in HardModeBoss. now log is clean, but lobby still show only 1 player.

2018-06-17_23-57-07

i am not good in code, and I do not know what need to do....