Page 1 of 1

the Game freeze at the end of the game (Free For All BUG)

Posted: Mon May 18, 2020 4:08 am
by PolipoGaming2020
Hi, as already written in the title, the game crashes at the end of the game.

This only happens in Free For All mode.

I attach a couple of screens to help you understand the problem:

Image
Image

Best regards

Re: the Game freeze at the end of the game (Free For All BUG)

Posted: Tue May 19, 2020 8:26 am
by PolipoGaming2020
UP

Re: the Game freeze at the end of the game (Free For All BUG)

Posted: Tue May 19, 2020 9:43 am
by Lovatto
Hi,

Please try the following:
in bl_AIManager.cs, replace the function GetBotWithMoreKills()
with this:

Code: Select all

public BotsStats GetBotWithMoreKills()
    {
        if(BotsStatistics == null || BotsStatistics.Count <= 0)
        {
            BotsStats bs = new BotsStats()
            {
                Name = "None",
                Kills = 0,
                Team = Team.None,
                Score = 0,
            };
            return bs;
        }
        int high = 0;
        int id = 0;
        for (int i = 0; i < BotsStatistics.Count; i++)
        {
            if (BotsStatistics[i].Kills > high)
            {
                high = BotsStatistics[i].Kills;
                id = i;
            }
        }
        return BotsStatistics[id];
    }
Let me know if that fixes the issue for you.