playMaker

Author Topic: Syncing Certain Variable Types Over Photon  (Read 1819 times)

steamrollerstudios

  • Playmaker Newbie
  • *
  • Posts: 5
Syncing Certain Variable Types Over Photon
« on: July 12, 2013, 06:38:22 AM »
I using playmaker with photon and am having trouble syncing certain types of variables, namely bools and quaternions, but there might be others. I have no problem syncing floats or vector3 so i know i have everything setup correctly to sync stuff.

Is this a known issue or is there something else i should try?
« Last Edit: July 14, 2013, 09:21:40 AM by steamrollerstudios »

steamrollerstudios

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Syncing Certain Variable Types Over Photon
« Reply #1 on: July 14, 2013, 09:40:59 AM »
After doing some digging, from what I can tell, in the PlayMakerPhotonView.cs it looks like in the SetUpFsmVariableToSynch method is only syncing int, floats and vector3. Also it looks like the entire class is only setup to support:

Code: [Select]
public enum PlayMakerPhotonVarTypes
{
Bool,
Int,
Float,
String,
Vector3,
}

I realize there are some TODOs in the code.

Should i go ahead and extend these myself or should i try and put in a request? Does anyone have any experience in how responsive the devs are?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Syncing Certain Variable Types Over Photon
« Reply #2 on: July 15, 2013, 02:32:29 AM »
Hi,

 Yes, you can extends them, I have already done it on my end, it will be shipped with the next update.

careful with bool, it's implemented but not working, so double check the code for the bool variable if you plan on using it... it's also corrected in the source code ready for the next shipment.

bye,

 Jean