PhotonView with ID 3 has no (non-static) method "AddNewKillFeed"

Report bugs of MFPS 2.0 here
Post Reply
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

If you integrate LOCALIZATION = If remote Players"RpcTarget.Others" connected "bl_KillFeed" (Line-57 OnJoined works twice)
Then I get error like this:
PhotonView with ID 3 has no (non-static) method "AddNewKillFeed" marked with the [PunRPC](C#) or @PunRPC(JS) property! Args: String, String, String, String, Int32, Int32
UnityEngine.Debug:LogError(Object)

I tried to solve the problem but failed to solve everything as it was intended Lovatto.
If someone can help me please and explain what the problem is?
Thank you. :cry:
User avatar
Lovatto
Admin
Admin
Posts: 1772
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Hi,

Which version of MFPS are you using?
Please share the whole log including the stack traces.

Edit:
I found the problem, to fix it change line 61 of bl_Killfeed.cs:

Code: Select all

 photonView.RPC("AddNewKillFeed", RpcTarget.Others, PhotonNetwork.NickName, LocaleStrings[1], string.Empty, string.Empty, 777, 20);
with:

Code: Select all

 SendMessageEvent(string.Format("{0} {1}", PhotonNetwork.NickName, LocaleStrings[1]));
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
Moor
Member
Member
Posts: 23
Joined: Thu Apr 11, 2019 2:38 pm

I using version 1.6 and version 1.7

Before asking for help, I tried to figure it out myself.
I solved this problem as well "SendMessageEvent(string.Format("{0} {1}", PhotonNetwork.NickName, LocaleStrings[1]));"
Then I get 2 problems
1: I get a message twice (Only master client)
2: If i have English "localization" Im in game and other player Chinese "localization" he connected to server, then I get a message in Chinese.
I tried to figure out more than 3 hours. But all the time, these problems arise "1 and 2".
The same procedure was performed on versions 1.7 the same problem.
Thanks for your reaction.
Post Reply