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.


Messages - Yanifska

Pages: 1 [2] 3 4 ... 11
16
PlayMaker Help / Sort a HashTable by value
« on: July 23, 2014, 02:40:29 PM »
Hi Jean,

I am trying to sort a hashtable and I am stuck with the solution you proposed on another thread.
You suggested to copy the values to an array list, sort this arraylist, go through the sorted list and then find the according Key on the Hash table.
The problem is there is no action to get a Key from a Value.

So how can I do that? Could you make an action that use the answer here :
 http://stackoverflow.com/questions/3101626/sort-hashtable-by-possibly-non-unique-values

thanks
yaniv

17
PlayMaker Help / Error MSG
« on: July 13, 2014, 11:21:47 AM »
Hi,

I have this error message, I am not sure what it means:

How can I find its source :
Code: [Select]
no properties found System.ArgumentException: no properties
  at HutongGames.PlayMaker.Actions.GetEventProperties.OnEnter () [0x0000a] in C:\Users\User\Dropbox\PixelJuice\Games\Power3\Power3UnityProject\Assets\PlayMaker Utils\Event Properties\Actions\GetEventProperties.cs:32
UnityEngine.Debug:Log(Object)
HutongGames.PlayMaker.Actions.GetEventProperties:OnEnter() (at Assets/PlayMaker Utils/Event Properties/Actions/GetEventProperties.cs:51)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:DoTransition(FsmTransition, Boolean)
HutongGames.PlayMaker.Fsm:ProcessEvent(FsmEvent, FsmEventData)
HutongGames.PlayMaker.Fsm:BroadcastEvent(FsmEvent, Boolean)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent)
HutongGames.PlayMaker.Actions.SendEvent:OnEnter() (at Assets/PlayMaker/Actions/SendEvent.cs:39)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:DoTransition(FsmTransition, Boolean)
HutongGames.PlayMaker.Fsm:ProcessEvent(FsmEvent, FsmEventData)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent)
HutongGames.PlayMaker.Fsm:Event(FsmEvent)
HutongGames.PlayMaker.Fsm:Event(String)
PlayMakerFSM:SendEvent(String)
NGuiEventsToPlaymakerFsmEvents:FireNGUIPlayMakerEvent(NGuiPlayMakerDelegates) (at Assets/PlayMaker NGUI/Scripts/NGuiEventsToPlaymakerFsmEvents.cs:188)
NGuiEventsToPlaymakerFsmEvents:OnClick() (at Assets/PlayMaker NGUI/Scripts/NGuiEventsToPlaymakerFsmEvents.cs:203)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:917)
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1595)
UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1223)
UICamera:ProcessTouches() (at Assets/NGUI/Scripts/UI/UICamera.cs:1293)
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:1057)

18
PlayMaker Help / Parse Fetch and Get and RestartLevel
« on: June 10, 2014, 12:21:11 PM »
Hi,

is it possible to use GetAsync to retrieve the currentuser ?
It seems only the FetchAsync can do that.

It was working fine with the Fetch Async but when I use the Restart Level then the FetchAsync Action get stuck.

Have an idea ?
Thanks
Yaniv

19
PlayMaker Help / Parse problem
« on: May 27, 2014, 01:09:56 PM »
Hi,
I have made a lot of progress with my project using parse and it's quite working ( thanks Jean for the great actions) but I hit a problem that I am not even sure I understand.

My game works for a few turns like maybe 2-3 turns and then, the table is not synchronised anymore.
It looks like it got back to a previous state.

But If I close each time the game and reopen it before playing each turn then it seems to works fine.
The last successful tests  were made on webplayer.

I suspect a cache issue...
I am not sure were too look first.
I tried the Parse Clear all cache action but it didn't help.

Do you know what could happen when I close an restart the game about some data that is supposed to be fetched at each turn ? How would that go back to a previous state ?

If I use the Parse Get async instead of Fetch async may that be a problem ?

thank you !!!


20
PlayMaker Help / Re: Parse Current User
« on: May 21, 2014, 10:27:13 AM »
thanks,
I will probably follow your advice, unless at some point I decide to use the facebook login and log the user automatically to parse with their facebook credentials once they are logged in facebook.

21
Action Requests / Parse User Query
« on: May 17, 2014, 09:27:02 AM »
Hi,
I just found out I will need Parse User Query to be able to retrieve user data.
For example I want to find the ObjectId of a user that has a certain property value. The regular Object Query returns nothing.
Here is the link to the doc:
https://parse.com/docs/unity_guide#users-querying

thank you !
Yaniv

22
PlayMaker Help / Re: Parse Current User
« on: May 17, 2014, 06:21:46 AM »
@jean the Login action is a bit confusing when using a username to signup.
In this case you need to login with the username even if the variable says Email.

By the way, is there a way to see all the methods and variables that are in the Parse proxy ? I could play a bit with it and try to understand how things works behind the scene, it would help me a lot because your actions seems to not use the real Parse code and I can't understand them even with the Parse documentation.

23
PlayMaker Help / Parse Query
« on: May 16, 2014, 07:41:50 AM »
Hi,

I am studying more in depth the Parse sample scene and something seems broken to me.
In the Parse Query FSM, if there is no MyParseObject class then the ParseObjectCreateQuery  still send a successful event.
Also the Parse Object Comparison Clause (I tried also Exist Clause) returns successful as well even if the class  doesn't exist.
Finally, only the MyParseObjectFirstAsync will return an NoResult Event.

Is this supposed to behave that way ? Maybe I just don't understand what the error event are supposed to mean.



Thanks
Yaniv

24
PlayMaker Help / Re: Parse Object Id
« on: May 16, 2014, 07:26:09 AM »
It works fine.
thank you.

25
PlayMaker Help / Re: Parse Current User
« on: May 16, 2014, 07:23:10 AM »
I got it working,
According to the parse documentation there is persistent data :

Quote
"Whenever you use any signup or login methods, the user is cached on disk. You can treat this cache as a session, and automatically assume the user is logged in:"

So I just use the GetUserProperty on the username of the current user and if doesn't exist it will redirect to the login state and if it already exist it will jump it.
We probably need a real "CheckIfCurrentUserExist" action though, for now it's ok as I plan to have a username for all my users, so I can work with the GetUserProperty.
Cheers.

26
PlayMaker Help / Re: Parse Current User
« on: May 13, 2014, 12:15:51 PM »
What I am trying to do is :

if the user has already logged in the past, his details should be cached on the hard disk, so when he opens the application again  he should be logged in automatically.

So you won't have to login each time you open the application.

I just tried  leaving the login email and password to none but it won't login using previously saved data. I am probably missing something.

could you explain me how to setup such a login
thanks
Yaniv

27
PlayMaker Help / Re: Array List Get Next not resetting?
« on: May 13, 2014, 12:39:59 AM »
I have been using the Array List Get Next action a lot recently and I havent seen this kind of problem. I have even made a test to see if the action would loop infinitly and it does.
Maybe your array list got empty ?

28
PlayMaker Help / Parse Object Id[SOLVED]
« on: May 12, 2014, 12:29:50 PM »
Hi,
How to get the Id of a Parse Object I just created with the Parse Object Create action ?

Thanks
Yaniv

29
PlayMaker Help / Parse Current User
« on: May 12, 2014, 12:29:12 PM »
Hi,

is there a way to have to have the app login automatically if a user has been cached previously as documented here :

https://www.parse.com/docs/unity_guide#users-current

thanks
Yaniv

30
Android Help / Re: Push Notitfications
« on: May 12, 2014, 09:21:45 AM »
@Marsh,
the guys at Fuse won't let me try it since it is only for larger project it seems.
Do you use it as an independent as well ?
Yaniv

Pages: 1 [2] 3 4 ... 11