Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: nightcorelv on October 17, 2018, 10:35:23 AM

Title: bugs in 1.9.0
Post by: nightcorelv on October 17, 2018, 10:35:23 AM
hi
I found a lot of bug in playmaker 1.9.0 and unity verson is 2018.2.12f1

array bug:
(https://by3302files.storage.live.com/y4pc5LAdsM4jwgfNCIKfEIgAnJ8lxhPW5eRNfgorrZbIEXVH7iyHHlp-4OIO5FpfzHk4knJKtBdTZu0YRFRtCkR-sGm6Iu4h1cdGIZgnbG7FvKoctyLI-MpU0a4DTwv0hgSn5kMI4mT8M9ngiYkWLClapigbJGgCmpE_HOttMAXcvwMFrbTf5sRIaGIvh_X9dhp/array.png?psid=1&width=1920&height=359)
(https://by3302files.storage.live.com/y4p-PoVGsV5TkQyY1g-s-yXyOzw9_8Sugz252h08ouGXhSHp-ZlKduqD65B5JCEgrQbpxwV1Bi7ubIY4IbmAwZzpHIYlw6ikdXa9E4oIQ5UzcTAIirXuZ16NmoVGX8yAfMnbBgAKHtfVsFF75ictDQvc0ojgxtFJF_DIJA5izrG_pmQBxSTsfctau-GsEc-yhBR/array2.png?psid=1&width=1920&height=359)

Gameobject:

(https://by3302files.storage.live.com/y4pbs5tIYPyFQR3TTfn07can-awrSdVbfA02e7Wo8LZgVFEPIaykHsH5MvHP3wd-ZwQ2I6NRAz6rVrfeblStKuCZpY47BzdFLRXE23DN6Hn0zeCtOsciYiL5G9QGAZ2kVjDoNbXyiLH9FiZEkzaVPPuaTALKb9-PIXVmeBHMF-kSRs-o_tY_-WRSooPqlLz0BxQ/go0.png?psid=1&width=1920&height=359)
(https://by3302files.storage.live.com/y4pt55_UqeQHpVRlN7FOQwx-IngB6mqhYH9RH38y_7ok18bpy_qsJ6Fnt6-yaa229eRVNWds_yGHBtcfRsjDY9SpuWhSy2Fl7YK7_RKpsXFiIVbN45AWIZgG8jPXBSoAjvakXaJTRzZdoI8e_ll2QNBEBix8oTXQBfJ1YzDl9U9RFVhLur9sGORlyBfc1xfDqMo/go1.png?psid=1&width=1920&height=359)
(https://by3302files.storage.live.com/y4pg1Zpv9HoccLDughA7b481oq8GStnpV6FXLiezrjoIzhCMNNmmhs8yRqKSy1fjAHQm7iTmhpqVSMkUsQUosecCBfxuu1dTwaqZKkh3Jhpr6Ie1xkTIXggHy5vLq8SB_eJEga2anY7FC8AmTjTR_ca43Pn3ufE6aHxbfJyJV9vMKKqNfXOPOYUsFGfzp3_t-Yb/go3.png?psid=1&width=1920&height=359)
Title: Re: bugs in 1.9.0
Post by: djaydino on October 17, 2018, 05:26:47 PM
Hi.
Can you give more details on the bugs you have found?

Also, can you also report inside unity (inside the playmaker/tools menu)
Title: Re: bugs in 1.9.0
Post by: nightcorelv on October 20, 2018, 05:55:58 PM
You can see the first and second pictures, array not show correctry in inspector, but correct in debug show.

second bug is, i used a variable to store the prefab value, but then i hit play, it changed to drag drop form
Title: Re: bugs in 1.9.0
Post by: djaydino on October 20, 2018, 07:03:38 PM
Hi.
Hmm i cant see any pictures can you check the links (or maybe use imgur)
Title: Re: bugs in 1.9.0
Post by: nightcorelv on October 23, 2018, 06:07:07 AM
Hi.
Hmm i cant see any pictures can you check the links (or maybe use imgur)

here is the org link of the images
array bug:
https://1drv.ms/u/s!Aubz7_sc91qigZ5hE3sDx7PQ2o_ETQ (https://1drv.ms/u/s!Aubz7_sc91qigZ5hE3sDx7PQ2o_ETQ)
https://1drv.ms/u/s!Aubz7_sc91qigZ5fGe6eDlv_MAM3Hw (https://1drv.ms/u/s!Aubz7_sc91qigZ5fGe6eDlv_MAM3Hw)
GameObject bug:
https://1drv.ms/u/s!Aubz7_sc91qigZ5gkoCT-qSv3VFqww (https://1drv.ms/u/s!Aubz7_sc91qigZ5gkoCT-qSv3VFqww)
https://1drv.ms/u/s!Aubz7_sc91qigZ5iQP8s-3wKtaUL_A (https://1drv.ms/u/s!Aubz7_sc91qigZ5iQP8s-3wKtaUL_A)
https://1drv.ms/u/s!Aubz7_sc91qigZ5jAeNYoN2m5ZEXbQ (https://1drv.ms/u/s!Aubz7_sc91qigZ5jAeNYoN2m5ZEXbQ)
Title: Re: bugs in 1.9.0
Post by: djaydino on October 23, 2018, 09:05:05 AM
Hi.
Confirmed array bug, but gameobjet not..
Where did you get that 'Get Spawned Prefab' action?

Btw if you rename actions it is better to leave the original name and add what you wish ( for example 'Array get' would become 'Array get - my array stuff'
Later on it will get harder to debug.
Title: Re: bugs in 1.9.0
Post by: nightcorelv on October 25, 2018, 11:30:39 PM
Hi.
Confirmed array bug, but gameobjet not..
Where did you get that 'Get Spawned Prefab' action?

Btw if you rename actions it is better to leave the original name and add what you wish ( for example 'Array get' would become 'Array get - my array stuff'
Later on it will get harder to debug.

get spawed prefab is a costom action, problem is playmaker seems not work well with my custom action
Code: [Select]
using RLD;
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
    [ActionCategory("RLD")]
    public class GetSpawedPrefab : FsmStateAction
    {
        [UIHint(UIHint.Variable)]
        public FsmGameObject spawedGameObject;

        public FsmGameObject spawedPrefab;

        public bool everyFrame;

        public override void OnEnter()
        {
            RTPrefabLibDb.Get.PrefabSpawned += Myhandler;


            if (!everyFrame)
            {
                Finish();
            }
        }

        public override void OnUpdate()
        {
            RTPrefabLibDb.Get.PrefabSpawned += Myhandler;

        }

        void Myhandler(RTPrefab prefab, GameObject obj)
        {
            spawedGameObject.Value = obj;

            spawedPrefab.Value = prefab.UnityPrefab.gameObject;

        }

    }
}
Title: Re: bugs in 1.9.0
Post by: djaydino on October 27, 2018, 02:21:42 PM
Hi.
I can't test your script, but i can see 3 things :

1 :
public override void Reset() is missing.
If you use fsm variables you need to set the reset to those variables (see other actions)

2 :
You should only Subscribe in on enter. (+=)
(you can remove the on update completely as well as the every frame parts)

3:
You should Unsubscribe (-=) in OnExit or after you get the values (inside Myhandler)
you will also need to set Finish(); after that.