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.

Messages - Jos Yule

Pages: 1 [2] 3
Action Requests / Re: RegEx String Comparisons
« on: May 17, 2012, 07:24:16 AM »
Ah, this is excellent, thanks! If i write an action to use other functions of the RegEx lib i'll write back here too.


ps. I love that the actions are simple .cs files - makes creating your own much easier! Having such a wide array of examples to work from is hugely helpful. Really appreciate you writing this one up too!

Share New Actions / Re: ArrayMaker is now available
« on: May 17, 2012, 07:20:29 AM »
Thanks for this and the Randomize/Shuffle actions. I will checkout the GetNextChild action too, for further hints on how to best use this new action!

When i've tried these out i will report back with any feedback too.


No problem. Thanks for the support!


It would be great if we could have onApplicationQuit, onApplicationPause and onApplicationFocus as global events in PM.

For iOS dev, it is important to be able to react to the onApplicationPause event (and its parameter), so you can save any state you need to. This is triggered when the user receives an incoming call, or hits the HOME button.

Really, onApplicationPause is the most important to me, then onApplicationQuit and finally onApplicationFocus (i'm not at all sure of what it does or when it fires, at least on iOS).

PlayMaker Help / Re: Making a deck/shuffling.
« on: May 16, 2012, 07:39:17 AM »
I'm currently experimenting with the ArrayMaker/ArrayList actions for Deck and Card handling. I've got the list of cards setup as a string (loaded via an external XML file - may eventually be a web-call). Using ArrayMaker, i then create an Array and fill it with contents of the string. I'm using a string like:

Code: [Select]
Aa1, Aa2, Aa3 ... Ac1, Ac2, Ac3 ... Ca1, Ca2
So, i've got the "suit" as the capital letter, the "type" as the lower-case letter and the "strength" as the integer value. This list is split on the comma, and then put into the Array.

I suppose i could stick with just using a String variable to hold all the data - this might make serialization easier. But i'm also worried about messing up the string some how - using an Array seems... cleaner? Less error prone? I guess only time will tell if that is true!


Share New Actions / Re: ArrayMaker is now available
« on: May 16, 2012, 07:00:11 AM »
Great, thanks!


Action Requests / Re: RegEx String Comparisons
« on: May 16, 2012, 06:43:52 AM »
Yes, IsMatch() would be awesome.

My current use-case is simple matching. If i need to access the more complex parts of the RegEx lib in the future, having an example action to build on would be enough. I wouldn't want to try to figure out the other actions without knowing how I, or anyone else, might actually use them. Especially as, you said, there are so many ways to RegEx!


Feature Requests / Re: local variable management within a state
« on: May 16, 2012, 06:40:04 AM »
Right right, didn't even think of the "Set Var" action, but that would totally work.


Well, i'll let you know as i keep using it.

My current use-case is for a card-like game.

One thing i am noticing is that i need to loop over data all the time, and i'm not sure if using a FSM to create my looping constructs is really the right way to do it [1]. I'm worried that i'm creating states which are really more akin to functions, rather then a "state" of the application.

I think that i need to move some of the logic out of the state itself and into a script, and then use "Invoke Method" to actually do a bunch of the work.

Perhaps i should ask for a Loop Action :)


[1] - I have a State which does some work. It then increments and checks a "counter" variable. If the value is less then X, it fires a "continue" event, which is routed back to itself. If the value is equal or greater then, fire the "FINSHED" event and continue on. Love to hear of other ways of doing this kind of thing.

I have both in my project.



These, even at the code level, are identical (minus a new line or two). It is confusing knowing which to use.

Perhaps remove the "Start Server", as "Network Initialize Server" seems to more closely match the naming convention of the rest of the Networking Actions.


Action Requests / RegEx String Comparisons
« on: May 14, 2012, 10:39:29 AM »
Hello all.

I'm having to do some string comparisons, and i'm finding the current string compare action too limiting.

I would like to use some kind of RegEx-ish tools in my comparisons. For example, "does the string start with a 'h' character?" or "is the 3rd character an 'a'?".

I don't know if it would just be easier to use the Regex libs, or come up with some other tool/ui/format... Having a RegEx action would be great, but if there is a more friendly way to allow for more complex text comparisons that's cool with me too.


Share New Actions / Randomize (shuffle) ArrayList function
« on: May 14, 2012, 10:07:10 AM »

I'd love to have a "randomize" action available for the ArrayList.

My use-case is using an ArrayList as a holder for a "deck" of cards. I'd love a simple way to "shuffle" or randomize that deck.

What do you think?


Feature Requests / Re: local variable management within a state
« on: May 14, 2012, 10:03:05 AM »

Might also be useful (and i know this adds complexity to the UI as well) to "promote" vars you have defined this way to FSM local vars, rather then just State Vars.

In line 68 of the PlayMakerArrayListProxyInspector.cs file:

Code: [Select]
proxy.showEvents = EditorGUILayout.Foldout(proxy.showEvents, new GUIContent("PLayMaker events" + eventsEnabledString, "Manage PlayMaker events dispatch"));
You can see in the GUIContent() call that "PlayMaker" is improperly capitalized.


Pages: 1 [2] 3