Page 1 of 1

Demolition Bug MFPS 1.6

Posted: Sat Jun 27, 2020 8:56 am
by altankhan
ERRORS AFTER IMPORTING DEMOLITION v1.0.8 in MFPS v1.6

bl_Demolition.cs(201,9): error CS0246: The type or namespace name 'MFPSPlayer' could not be found

bl_Demolition.cs(201,89): error CS1061: 'bl_GameManager.SceneActors' does not contain a definition for 'Team' and no accessible extension method 'Team' accepting a first argument of type 'bl_GameManager.SceneActors' could be found


ALL OF THE ERRORS ABOVE ARE IN 1 FUNCTION IN BL_DEMOLITION:

Code: Select all

void SelectPlayerToCarrieBomb(out int viewID, out int actorNumber)
    {
        MFPSPlayer[] players = bl_GameManager.Instance.OthersActorsInScene.Where(x => x.Team == terroristsTeam).ToArray();
        if (players.Length <= 0)
        {
            if (PhotonNetwork.LocalPlayer.GetPlayerTeam() == terroristsTeam)
            {
                actorNumber = PhotonNetwork.LocalPlayer.ActorNumber;
                viewID = bl_GameManager.LocalPlayerViewID;
            }
            else
            {
                Debug.Log("There's not players in Terrorist team");
                actorNumber = 0;
                viewID = 0;
            }
        }
        else
        {
            MFPSPlayer p = players[Random.Range(0, players.Length)];
            actorNumber = p.ActorView.Owner.ActorNumber;
            viewID = p.ActorView.ViewID;
        }
    }

Re: Demolition Bug MFPS 1.6

Posted: Sat Jun 27, 2020 9:26 am
by Lovatto
Hi,

The error is caused because Demolition version 1.0.8 requires MFPS 1.7 at least,
if you want the MFPS 1.6 compatible version of the addon, send me your purchase order number in a PM and I'll provide it there.