Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: will_brett on February 10, 2013, 10:02:35 AM
-
Hi guys and girls.
I am currently working on a project where a player can click a GUI button and send a "gift" to another player. My issue is that when i click the GUI the gift appears on all players screens even though when using the 'Photo view RPC Broadcast FSM event' has the exclude self box ticked.
I notice there is another action called 'photon view broadcast Fsm event to player' but I do not know what i should be putting in the target player name section as my game allows the players to choose there own name if that makes sense.
If it helps my game has a two players per room max.
If you need more info I usually reply within 30mins.
Looking forward to hearing your solutions
All the best
WB
-
Hi,
Have you studied the demoWorker scene? it has a chat system very much open in terms of how you can broadcast a message ( or any kind of data really), and it exposes how you can send a message, to all, or to a particular player. In your case you want a particular player, so have a look at this fsm:
https://hutonggames.fogbugz.com/default.asp?W873
If you have trouble understand how this works or how to extrapolate this technic for your needs, let me know.
bye,
Jean
-
Hey Jean,
Thanks for replying both here and at exitgames. I will have to look at the demo scene again as I can't figure out how to setup the "send RPC event to player" by which I mean I don't know what to put in for player name. I will try and figure this out later today,
All the best
Will
-
I think I have spotted an issue.
I've got back through the demo PlaymakerTestGame... and straight away I got a load of error messages saying that there are lots of actions missing from the photonplaymaker package. e.g.
"PhotonViewRpcBroadcastFsmEventToPlayer"
"PhotonGUILayoutToolbarwithPlayers"
and many more. These are also missing from my project which maybe why I can't send chat or items to other players perhaps?
This is immediately after importing into scene with no modifications to the file
-
Here is the error console
-
Hi,
I think you simply have messed up your asset folder somehow.
1: BACKUP your project
2: try reimporting the photon actions package
if that doesn't work:
3: Delete the PlayMaker Folder
4: delete the Photon Unity Network Folder
5: Reimport PLaymaker and Photon and photon actions packages
try again.
bye,
Jean
-
Thanks for replying Jean,
However I've tried what you suggested 3 times and the same errors each time. Photon is no longer appearing under the playmaker menu at the top of the screen either. This has only happened since updating to Unity 4. Before it worked fine.
-
Still couldn't get photon playmaker to load in a new scene but I have managed to fix my original problem by using a 'photo view get is mine' action so that gift is only sent to other player. This works in my case as my game only has two players.
-
Hi,
Are you on windows or Mac? It works fine on mac. Have you upgraded to 1.5 as well? it just came out. Simply delete the playmaker folder and the photon folder as well and get playmaker 1.5. If that doesn't work, let me know.
Make sure you back up.
bye,
Jean
-
I am on a mac, I have used latest versions of both photon and playmaker, unsure why its not working but im sure its an issue on my end.
-
Hi,
What's the current state of the errors you get with the latest?
bye,
Jean