playMaker

Author Topic: Photon View RPC Broadcast FSM Event Error  (Read 841 times)

ANIMAL

  • Playmaker Newbie
  • *
  • Posts: 4
Photon View RPC Broadcast FSM Event Error
« on: December 07, 2023, 06:16:01 PM »
Hi,

I'm developing a 3rd person view multiplayer game with photon pun 2 and playmaker.

I'm trying to show the username of each player above their head.

I'm using a "Photon View RPC Broadcast FSM Event" to send to all actors the "actor number" of the player who just entered is username in an input field. This FSM is called FSM-Billboard and is in the Player.
--------
RPC Targets : Others Buffered (So when a player join, they get the event)
Event Target : Broadcast All
Remote Event : ACTOR NUMBER
String Data : actorNumberString
https://image.noelshack.com/fichiers/2023/49/5/1701990100-capture-d-ecran-2023-12-08-000005.png
--------

The error is at the reception event. I'm getting the event String Data, but there is nothing !!
So I've tried Get Event Info and found the error :
--------
Sent by game object : sentByWho = Photon Proxy
FSM Name : fsmName = FSM-PUN Connection

I don't understand why it's my Photon Proxy who's catched by the event, yes there are Photon View RPC Broadcasts FSM Event in this Photon Proxy game object but their event target isn't "ACTOR NUMBER".

Photon Proxy :
https://image.noelshack.com/fichiers/2023/49/5/1701990720-punconnection.png

Someone knows this error ? Or am I doing something wrong ?



EDIT :
I've done test. With a cube, trying to get an info with the Get Event String Data, and it worked.

I've disabled the RPC from Phonto Proxy game object. It didn't worked.
And now, I'm getting the answer from Get Event Info : "Game Object" = player, so this is super cool, but the FSM-Name is an other FSM of the player with an RPC !!!! I've disabled it, and the Get Event Info answer was another FSM of the player with an RPC AGAIN ?????




Aloïs
« Last Edit: December 07, 2023, 06:52:22 PM by ANIMAL »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7625
    • jinxtergames
Re: Photon View RPC Broadcast FSM Event Error
« Reply #1 on: December 08, 2023, 01:02:56 PM »
Hi,
I would suggest you to join Discord server,
there should be some people there that have worked with Pun 2

ANIMAL

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Photon View RPC Broadcast FSM Event Error
« Reply #2 on: December 08, 2023, 02:14:31 PM »
Thanks for the link I didn't know.

ANIMAL

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Photon View RPC Broadcast FSM Event Error
« Reply #3 on: December 08, 2023, 07:42:20 PM »
Hi,
I would suggest you to join Discord server,
there should be some people there that have worked with Pun 2

Hi, sadly they told me it's probably a photon network error. I'm just searching a way to show 3rd person view usernames to everyone and that's an impossible task :(

Hope I'll find the answer one day.

Bye,

Aloïs