playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jrDev

Pages: [1] 2
1
PlayMaker Help / Deleting Actions In State
« on: November 07, 2019, 09:15:59 AM »
Hello,

Is there a way to delete all actions that are disabled in a state? Doing them one by one is time consuming but I only see the Delete All Actions button. Is there a Delete All Disabled Actions button?

Thanks,
jrDev

2
PlayMaker Help / PUN actions naming conventions.
« on: October 31, 2019, 08:09:42 AM »
Hello,

This is primarily directed and @jeanfabre. What I want to know if the naming convention of the PUN Actions with the script name using "Pun" and the action name using "PhotonNetwork" was intentional. Eg PunGetPlayerProperties.cs and "public class PhotonNetworkGetPlayerProperties : FsmStateAction" using these names. It seems rather weird that this would be intentional since you can't "Find" or "Edit" script because the names are different and Unity will throw an error. Please look into this and fix with update to Ecosystem.

Thanks,
jrDev

3
PlayMaker Help / UI Click Event Bug?
« on: October 25, 2019, 08:15:01 AM »
Hello,

After I copied the component values of one button's FSM component to another button's FSM component, it doesn't seem to work. Why is this?

Thanks,
jrDev

5
PlayMaker Help / pun 2 OnPhotonInstantiate Event?[SOLVED]
« on: August 28, 2019, 07:07:31 AM »
Hello,

I am using PUN2 and I can't find he OnPhotonInstantiate event to use. Am I supposed to create one myself since I thought the Proxy has them already?

Thanks,
jrDev

6
Hello,

So in addition to the error I have with PhotoPlaymakerProxy in the other thread, whenever another client joins a room I get this error:

Observed scripts have to implement IPunObservable. PlayMaker Photon Proxy (HutongGames.PlayMaker.Pun2.PlayMakerPhotonProxy) does not. It is Type: HutongGames.PlayMaker.Pun2.PlayMakerPhotonProxy
UnityEngine.Debug:LogError(Object, Object)
Photon.Pun.PhotonView:SerializeComponent(Component, PhotonStream, PhotonMessageInfo) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:368)
Photon.Pun.PhotonView:SerializeView(PhotonStream, PhotonMessageInfo) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:330)
Photon.Pun.PhotonNetwork:OnSerializeWrite(PhotonView) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1520)
Photon.Pun.PhotonNetwork:RunViewUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1449)
Photon.Pun.PhotonHandler:LateUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:143)

So why doesn't the PlaymakerProxy not have the IObservable? Need help please @jeanfabre

Thanks,
jrDev

7
PlayMaker Bug Reporting / Photon Simple Connection error [Solved]
« on: August 21, 2019, 12:27:03 AM »
Hello,

I have been getting this error when trying to test the SimpleConnection demo:

InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) (at <a8ed250850854b439cedc18931a314fe>:0)
System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () (at <a8ed250850854b439cedc18931a314fe>:0)
System.Collections.Generic.List`1+Enumerator[T].MoveNext () (at <a8ed250850854b439cedc18931a314fe>:0)
HutongGames.PlayMaker.Pun2.PlayMakerPhotonProxy.SanitizeGameObject (UnityEngine.GameObject go) (at Assets/PlayMaker PUN 2/Scripts/PlayMakerPhotonProxy.cs:193)
HutongGames.PlayMaker.Pun2.PlayMakerPhotonGameObjectProxy.Awake () (at Assets/PlayMaker PUN 2/Scripts/PlayMakerPhotonGameObjectProxy.cs:67)

Any ideas?

Thanks,
jrDev

8
General Discussion / Sending Event with Script not working
« on: August 08, 2019, 12:17:02 AM »
Hello guys,

I am trying to send event through scripting but it doesn't seem to trigger in the FSM.

Code: [Select]
    public void EndTurn()
    {

        GameObject gameManager = GameObject.FindGameObjectWithTag("Game Manager");

        PlayMakerFSM gameManagerFSM = PlayMakerFSM.FindFsmOnGameObject(gameManager, "Turn Manager");
        PlayMakerUtils.SendEventToGameObject(gameManagerFSM, gameManager, "Manually End Player Turn");

        Debug.Log("Called " + gameManager + " " + gameManagerFSM);
    }

The debug log fires but the fsm event does not. I checked the spelling of the event too.

Thanks,
jrDev

9
PlayMaker Help / Custom Action Editor Null Reference Using Action Preview
« on: December 20, 2017, 12:03:26 PM »
Hello,

I created a custom action editor for my custom action because I wanted to use sliders to adjust values. The action editor properly works but when preview is true while in the Action Browser I get a null reference error that leads back to using EditorGUI.IntSlider.

Is this a bug? Any help is appreciated.

Thanks,
jrDev

10
PlayMaker Help / Have Custom Action Editor show FSM fields?
« on: May 11, 2017, 08:46:46 AM »
Hello,

I am creating a custom action editor for a custom action and would like to be able to use the editor fields that the normal Playmaker actions use, so I can use an fsm variable if I want. Any way to to do this?

Thanks,
jrDev

11
PlayMaker Help / Custom Class FSMArrays
« on: September 19, 2016, 08:28:12 PM »
Hey,

So I am trying to have playmaker automatically set the type of variable that I asked for in a code like this:

Code: [Select]
[ArrayEditor(typeof(LogStatement))]
public FsmArray logs;

This once worked in the previous version of Playmaker, all I needed to do was click 'New Variable' and it wouldve created the variable of that class type. Is there something I am missing why this isn't working anymore?

Thanks,
jrDev

12
General Discussion / Playmaker deselects text field
« on: September 18, 2016, 10:06:24 PM »
Hello,

I am having an issue where Playmaker is kicking me out of text field and deselecting the state when I try to type something. Is this a known issue?

Thanks,
jrDev

13
Hey guys,

I have this code below where I want to add an object value to an Object Array Type:

Code: [Select]
object functionResults;

[ArrayEditor(VariableType.Object)]
public FsmArray theFunctionResult;

theFunctionResult.Values = new object[1];
theFunctionResult.Values.SetValue(functionResults, 0);

But this code throws this error "Error Editing Field The Function Result, Cannot Cast from Source Type to Destination Type" when I play it. See pic in attachment. How can I get this to work?

Thanks,
jrDev

14
PlayMaker Help / What is the RawValue property?
« on: May 23, 2016, 09:59:53 PM »
Hey,

Does anyone know what the RawValue property is used for in fsm variables?

Thanks,
jrDev

15
PlayMaker Help / FSMOwnerDefault has to be public?
« on: May 18, 2016, 08:40:05 AM »
Hello,

I am trying to not set FSMOwnerDefault as public as to not show in action since I don't need to be selected, want it behind the scenes. But if I don't declare it public, it is null. Is this a design choice or a bug?

Thanks,
jrDev

Pages: [1] 2