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 - Alatriste

Pages: [1] 2 3 4
1
PlayMaker Bug Reporting / Rename State Name
« on: July 14, 2019, 02:17:28 AM »
This bug has been around for a while: A lot of times when I try to rename the state name, I can only write a couple of characters before the input stops working. I have to write the name in the Action searching bar (for instance) to copy/paste the name into the state. Neither the description accepts characters after a while.

Unity: 2019.1.3f1
Playmaker: 1.9.0.p16

Is there any ETA to fix this annoying bug?


Thanks!

2
Unity Services / Unity Analytics Parameters
« on: April 27, 2019, 07:49:18 AM »
Hi,

I'm trying to integrate the Unity Analytics into my project, but I'm having some issues understanding how to properly fill some of the fields.

So let say I want to keep track of how many times a button is clicked. How it the correct way? Case 1 or Case 2?

3
Action Requests / [NANINOVEL] Request Actions
« on: April 18, 2019, 07:35:41 AM »
Hi,

I recently bought a new plugin to create Visual Novel called Naninovel. I requested to the creator some playmaker actions so we can take advantage and expand the gameplay and he was very kind to do it, but I guess he will need some access to Playmaker...

Would it be possible to have some actions/integration for this package?

Thanks!

4
PlayMaker Help / Camera Fade Out and Flashes
« on: March 31, 2019, 03:07:00 AM »
Hi,

I'm having this flash effect using the camera fade out action just before loading my next scene. I tried some solutions posted in the forum such as plac¡ng the FSM in the camera itself, but this didn't make any difference.

Would it be possible to improve this action making the "reset camera color" optional?

5
Hi, I'm getting the following error when I build the game:

Quote
The object of type 'PlayMakerFSM' has been destroyed but you are still trying to access it.

I don't get the error during the normal walkthrough so I have no clue about what can be the issue. I kind of imagine maybe something related with prefabs but again, I'm running out of ideas about how to track what is causing the problem here.

Any ideas?

6
PlayMaker Help / Prevent clicks behind UI panels and buttons [SOLVED]
« on: March 12, 2019, 12:05:18 PM »
Hi,

I'm having some issues with my settings panel not stopping the interaction with the objects placed behind it. I was looking for answers, but I couldn't make anything to work (people was sharing scripts to kind of hack this behavior), and I don't know if there is a clean way to do this using playmaker.

Thanks!

7
Action Requests / Check condition not working...
« on: January 24, 2019, 06:28:43 AM »
I'm pretty new to make my custom actions. I tried to create a few and it was fine. Now I'm trying to create an action that checks if an event has been completed. I'm getting the error: "Object reference not set to an instance of an object". I was using the "Bool test" action as a template, but I have no clue what I'm doing wrong...

This is what I'm trying to achieve:

Code: [Select]
Checking For Completion
if(Journal.GetAchievement("The Reaper").completed)
{
    // Do something fun!
}
You can use this approach to allow the player to do something only if they've completed a specific achievement beforehand.

And this is my action:

Code: [Select]
using UnityEngine;
using GameGrind;

        namespace HutongGames.PlayMaker.Actions
    {
        [ActionCategory(ActionCategory.Logic)]
        [Tooltip("Sends Events based on the value of a Boolean Variable.")]
        public class CheckAchievementCompletion : FsmStateAction
        {

        [Tooltip("The ID of the achievement to track.")]
        public FsmInt achievementID;

        [Tooltip("Get the current status of the achievement ID.")]
        public FsmBool achievementCompleted;



        [Tooltip("Event to send if the Bool variable is True.")]
            public FsmEvent isTrue;

           [Tooltip("Event to send if the Bool variable is False.")]
            public FsmEvent isFalse;

            [Tooltip("Repeat every frame while the state is active.")]
            public bool everyFrame;



            public override void Reset()
            {
                isTrue = null;
                isFalse = null;
                everyFrame = false;
            }

            public override void OnEnter()
            {

                achievementCompleted.Value = Journal.GetAchievement(achievementID.Value).completed;

                Fsm.Event(achievementCompleted.Value ? isTrue : isFalse);

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

            public override void OnUpdate()
            {
                achievementCompleted.Value = Journal.GetAchievement(achievementID.Value).completed;

                Fsm.Event(achievementCompleted.Value ? isTrue : isFalse);
            }
        }
    }

8
Feature Requests / Wizard to Create Custom Actions for plugins
« on: January 22, 2019, 04:05:55 AM »
Hi,

I don't know if this can be possible, but most of the plugins I use that don't have support to playmaker seems to be very straightforward in their code: call the function with the needed parameters.

Would it be possible to create a wizard that helps to create those actions in an easier (dummy) way? Call Method already make easy to call functions from a given script. The problem is when the plugin is not just a single script.

Just an idea. :)

9
PlayMaker Help / Passing a class variable to playmaker and using it
« on: January 21, 2019, 07:29:11 AM »
Hi, I'm in the process of learning to create my own custom actions. I did some progress but now I found a problem I don't know how to solve.

I'm doing a custom action to add an item using Inventory Engine. I managed to make it work to a basic level, but when I try to pass the "item" variable to playmaker somehow the "prefab" item gets lost during runtime.

It must be a way because I manage to pass the variable using the Call Method action.

This is my code:

Code: [Select]
  using UnityEngine;
    using MoreMountains.InventoryEngine;

    namespace HutongGames.PlayMaker.Actions
    {

    [ActionCategory("Inventory Engine")]
    [Tooltip("Add an item to the Inventory Engine plugin. The item must be a prefab created using the InventoryEngine menu.")]
    public class AddItem : FsmStateAction
    {

            // Define the gameObject owner of the Inventory script.
            [RequiredField]
            [Tooltip("The GameObject where the Inventory script is.")]
            public FsmOwnerDefault scriptOwner;

            [RequiredField]
            [Tooltip("Attach the prefab object to add as an item.")]
            public FsmObject Item;   
            private InventoryItem prefab;
           

            [RequiredField]
            [Tooltip("How many of the previous item must be added to the Inventory.")]
            public FsmInt numberOfItemsAdd;


            Inventory inventoryScript;


            // Code that runs on entering the state.
            public override void OnEnter()
    {


                Item = prefab;
               
                inventoryScript = scriptOwner.GameObject.Value.GetComponent<Inventory>();

                inventoryScript.AddItem(prefab, numberOfItemsAdd.Value);


    Finish();
    }


    }

    }

10
Action Requests / Deactivate gameObject by Tag
« on: January 13, 2019, 02:21:47 AM »
I recently had to use this action in my project and I couldn't find it in the Ecosystem. I think I took it from the forum, so maybe it would be a good idea to upload it? (I had to dig into another project to find it)

11
PlayMaker Tutorials / Making other plugins work with Playmaker
« on: January 09, 2019, 04:50:43 AM »
I think this is a very interesting topic for advanced users with Playmaker that we are just not so familiar with coding in C#. I struggle many times trying to call functions from other plugins and make them work using Playmaker. It would be nice to have some tutorial with an example case about how to create custom actions to use with other plugins.

(Like, I have this inventory plugin without support for Playmaker... how we make the custom actions for it so I can add/remove/use items?)

12
PlayMaker Help / UI Image Set Sprite Preloaded?
« on: January 04, 2019, 04:42:56 AM »
Hi,

Quick question:

When I assign through an FSM an action "UI Image Set Sprite", is the image assigned preloaded in the scene before is call? I have a bunch of big images and this could cause some extra loading time if it's not called "on demand". (meaning when the action runs)

Thanks!

13
PlayMaker Help / [SOLVED]Invoking Method or Call method?
« on: December 24, 2018, 09:37:12 AM »
Hi,

I'm not very familiar with those actions so bear with me.
I have this inventory add-on and I want to open the inventory UI panel through playmaker. I'm not sure how I can call the method to do it, because when I use the "Invoke Method"  I'm only getting the following error message:

Code: [Select]
NullReferenceException: Object reference not set to an instance of an object
MoreMountains.InventoryEngine.InventoryInputManager.OpenInventory () (at Assets/InventoryEngine/InventoryEngine/Scripts/Core/InventoryInputManager.cs:142)

Attached is the script of the object I'm referencing. I'm probably doing something wrong...




14
PlayMaker Help / Creating an album with pictures[SOLVED]
« on: December 14, 2018, 04:21:39 AM »
Hi,

For my next project, I'd like to add an achievement album that unlocks big images. Think something like a card album where you have different football teams. Then, clicking on the different football team badge, you access to the football players of that team and clicking on any of them, you see a big image full screen of the player.

I'm trying to think about the easiest way to accomplish this, but all the options seem complicated in my head.

Any help about how should I tackle this system?

15
PlayMaker Help / Creating patches/updating content
« on: September 16, 2018, 03:08:47 AM »
Hi,

I'm thinking about making a game with episodic content. My question is: Is there a way to install the updates or patches in an incremental way, rather than downloading the whole game again and again?

Thanks!

Pages: [1] 2 3 4