playMaker

Author Topic: Custom Hashmap in new Photon Unity Networking  (Read 3147 times)

yunspace

  • Playmaker Newbie
  • *
  • Posts: 3
Custom Hashmap in new Photon Unity Networking
« on: October 07, 2013, 09:35:51 AM »
I'm using PlayMaker 1.7.5, but I overwrote the Photon Unity Networking with v1.23 from Asset Store.

Code: [Select]
Assets/Photon Unity Networking/PlayMaker/Actions/PhotonViewDeleteOwnerCustomProperty.cs(80,33):
error CS1503: Argument `#1' cannot convert `System.Collections.Hashtable' expression to type `ExitGames.Client.Photon.Hashtable'

I noticed the latest version of Photon Unity Networking is using a custom Hashtable in order to work in Windows 8 and Windows Phont. So to resolve the above issue, I had to add the import:

Code: [Select]
using Hashtable = ExitGames.Client.Photon.Hashtable;
to the following PlayMaker Networking Actions:

PhotonNetworkCreateRoomAdvanced.cs
PhotonNetworkDeleteRoomCustomProperty.cs
PhotonNetworkJoinRandomRoom.cs
PhotonNetworkSetPlayerCustomProperty.cs
PhotonNetworkSetRoomCustomProperty.cs
PhotonViewDeleteOwnerCustomProperty.cs

Not sure this is enhancement is already noted and in the beta pipelines. Just thought I'd point this out and see if anyone else has any feedback

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Custom Hashmap in new Photon Unity Networking
« Reply #1 on: October 08, 2013, 02:41:22 AM »
Hi,

 It's already implemented internally, it will be part of the next update. Thanks for the detailed fixes btw :)

 Bye,

 Jean