playMaker

Author Topic: ParseMaker [NEW VERSION: Mach 2014]  (Read 19084 times)

lin0603

  • Playmaker Newbie
  • *
  • Posts: 9
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #15 on: March 27, 2014, 04:25:38 AM »
Got it !!
Thank you !! Jean

Lin
« Last Edit: March 27, 2014, 09:39:56 AM by lin0603 »

rollingdjs

  • Playmaker Newbie
  • *
  • Posts: 8
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #16 on: March 28, 2014, 02:15:29 AM »
this is amazing ! thanks. I hope you could add GeoPoints action. It's one of the main reasons why I'd like to move to Parse

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #17 on: March 28, 2014, 03:46:04 AM »
Hi,

 yes, Geopoints will be featured at some point, I did not made it cause it was not required for my needs, but since you are mentionning it, I'll put it up in the priority list for the next parse development session: i have to first complete the query system to allow more complex queries and retrieve lists and all.

bye,

 Jean

rollingdjs

  • Playmaker Newbie
  • *
  • Posts: 8
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #18 on: March 28, 2014, 09:04:31 PM »
That would be amazing, thank you. And I'm excited by an elaborated query system  :)

lin0603

  • Playmaker Newbie
  • *
  • Posts: 9
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #19 on: March 29, 2014, 11:37:44 AM »
Hi Jean:

After Following your explanation.i can totally handle all actions in the sample now.Thank you for that.

Now i would like a make a leader-board with Parse.
How could i request my data ordering by the score i send and take the rank back?

Is it possible to make a sample scene for that?

Thank you

Lin

mrsfrank

  • Playmaker Newbie
  • *
  • Posts: 6
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #20 on: March 29, 2014, 03:50:52 PM »
I'm new to the backend of things but I'm really interested in this. I made a class called "greenarea" and created an object with 2 floats, and managed to get it showing in my Parse Data Browser. How do I retrieve those floats and get them to set the property of another object in Unity? Do I need to query the objects for that?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #21 on: March 31, 2014, 07:59:42 AM »
Hi,

 Typically, yes, you need to get it from the parse server:

several ways:

1: you query for it
2: use "Parse Object Get Async", it expects that you know the class name and the objectId and it will get it for you.
3: if you have a case where the object was changed from another place, use ParseFetchAsynch to referesh it's data to amek sure it's the latest from the parse server.

Does that help?

bye,

 Jean

bye,

 Jean

lin0603

  • Playmaker Newbie
  • *
  • Posts: 9
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #22 on: March 31, 2014, 08:39:01 AM »
Hi Jean:
is it possible to give me some hint about leader board in parse? please …

thanks
Lin
« Last Edit: March 31, 2014, 09:11:08 AM by lin0603 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #23 on: March 31, 2014, 08:41:51 AM »
Hi,

 leaderboard is a very good sample for this. I have added this to the to dos.

https://trello.com/c/X6SMN1Uy/66-parse-update

Please vote for this so that it gets done quicker :)

bye,

 Jean
« Last Edit: March 31, 2014, 09:02:06 AM by jeanfabre »

mrsfrank

  • Playmaker Newbie
  • *
  • Posts: 6
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #24 on: March 31, 2014, 04:11:04 PM »
hmm I think I'm almost there. I used Parse Object Get Async and it was successful. But How would I retrieve the float? Parse Object Get Property? I did try that with the Property Key holding the float. But I think it wants an object or something that isn't a float.

thanks for your help Jean.

Hi,

 Typically, yes, you need to get it from the parse server:

several ways:

1: you query for it
2: use "Parse Object Get Async", it expects that you know the class name and the objectId and it will get it for you.
3: if you have a case where the object was changed from another place, use ParseFetchAsynch to referesh it's data to amek sure it's the latest from the parse server.

Does that help?

bye,

 Jean

bye,

 Jean
« Last Edit: April 01, 2014, 01:32:50 AM by mrsfrank »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #25 on: April 01, 2014, 08:15:38 AM »
Hi,

 if you look at the "current user" gameojevt fsm, you'll see I use "Parse get Object property" and Specified the type I expect, in that case "string", so for you, you need to select "float" for the type.

Yes?

bye,

 Jean

mrsfrank

  • Playmaker Newbie
  • *
  • Posts: 6
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #26 on: April 01, 2014, 09:15:46 PM »
I think the problem seems to be specific to using a float. the object creates as a float. But when I try to get the Property it says something about it being a double rather than a single. I think it's looking for a float and getting a double. the property key does say "number" instead of float, so whatever property its passing back is not quite the same type. I've already managed to receive properties from string property keys.

The fsmVar value <System.Single> doesn't match the value <System.Double>

known char: ٫
  at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00012] in /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System/Double.cs:209
  at System.Single.Parse (System.String s, IFormatProvider provider)


Hi,

 if you look at the "current user" gameojevt fsm, you'll see I use "Parse get Object property" and Specified the type I expect, in that case "string", so for you, you need to select "float" for the type.

Yes?

bye,

 Jean
« Last Edit: April 01, 2014, 09:31:13 PM by mrsfrank »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #27 on: April 02, 2014, 03:49:53 AM »
Hi,

 Good catch!

Redownload from the wiki and it will work now.

Bye,

 Jean

mrsfrank

  • Playmaker Newbie
  • *
  • Posts: 6
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #28 on: April 02, 2014, 03:03:11 PM »
works now! This is such an amazing tool. Thanks Jean.

mrsfrank

  • Playmaker Newbie
  • *
  • Posts: 6
Re: ParseMaker [NEW VERSION: Mach 2014]
« Reply #29 on: April 02, 2014, 03:58:45 PM »
I'm actually having a problem setting the float as well. Is it perhaps doing the same thing on Parse Object Set Property?