Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on September 25, 2012, 04:14:52 AM

Title: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on September 25, 2012, 04:14:52 AM
Hi Everyone,

Ok, parse is a fantastic Saas, and if you don't know about it, I encourage you to check it out:
https://parse.com/ (https://parse.com/)



You can get it here:
https://hutonggames.fogbugz.com/default.asp?W1003 (https://hutonggames.fogbugz.com/default.asp?W1003)


bye,

 Jean
Title: Re: ParseMaker
Post by: amaranth on September 27, 2012, 03:08:05 PM
Wonderful! Thank you, Jean!
Title: Re: ParseMaker
Post by: MrMitch on October 16, 2012, 04:08:24 PM
It shouldn't have taken me this long to respond to this thread but i'd like to say Jean has done a fantastic job with this system making it very easy to put into your project and work with.

I would highly recommend to anyone to check it out if you are looking for a very easy to use networking system that works well with unity and playmaker.

Thanks Jean :)
Title: Re: ParseMaker
Post by: tester on November 23, 2012, 05:27:38 PM
Could you add some little functions to make it more usable please.

Eg:
get class by field name and value.
option to create object with a given unique object id.

Thank you  :) :)
Title: Re: ParseMaker
Post by: jeanfabre on November 26, 2012, 12:45:16 AM
Hi,

Unfortunatly, Parse do not expose any api to get information of existing classes descriptions, so I can't know or query Parse to know what class, fields and types the current account has...

If you know a way, I would be delighted to implement it ( as I can in DataMaker when querying Sqlite with the pragma queries)

can you elaborate on why you would want to give a unique Object ID yourself? I would not recommend this, because I am involved in some IOS native development and the IOS sdk from parse do not like you messing with class objectID, especially when you starting using cache, and offline use.

If you want your own Unique ID for entries, one option would be to simply create a new entry and leave the ObjectID built in field be managed by parse automatically.

bye,

 Jean
Title: Re: ParseMaker
Post by: Drunkenoodle on November 26, 2012, 05:17:51 AM
Excellent job! Just purchased a windows 8 phone, it shall be hammered with custom apps. ;)

-D
Title: Re: ParseMaker
Post by: kyy921 on March 19, 2014, 08:33:24 PM
there is no uniparse anymore, will playmaker support parse directly?
Title: Re: ParseMaker
Post by: jeanfabre on March 25, 2014, 07:01:42 AM
Hi,

 eh eh :) working on it currently :) currently cleaning up the sample to publish it on the wiki.

Bye,

 Jean
Title: Re: ParseMaker
Post by: lin0603 on March 25, 2014, 12:15:12 PM
Wow!!!!

Couldn't wait...
Hope could have the new amazing add-on soon..

Thank You Jean

Lin
Title: Re: ParseMaker
Post by: jeanfabre on March 26, 2014, 09:09:44 AM
Hi,

 Here we go, first release using the official Parse Sdk. I am working on a project where Parse is used, so that was the perfect opportunity to properly start a PlayMaker port for this.

https://hutonggames.fogbugz.com/default.asp?W1003

 The combination of PlayMaker and Parse offer incredible power. And it's really easy to use, thanks to a very well done Parse sdk. It doesn't go without its flaws ( Mobile not very well supported and few issues, like errors not being very informatives...).

 Also, be careful with Parse price, while free for small projects, make sure you plan for monetization if you expect high usage as it's $200 per month. So be very careful not to find yoursefl cornered because of this.

Bye,

 Jean
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: kyy921 on March 26, 2014, 04:00:24 PM
I try to upload a texture to parse,
it displays
ParseValueToString type not supported UnityEngine.Texture2D
UnityEngine.Debug:LogWarning(Object)

is there anyway i can do it?
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: Marsh on March 26, 2014, 04:42:32 PM
Not sure what the action does but to upload a picture to parse you need to send the bytes of the texture as a File with a image extension. Not as a string.
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on March 27, 2014, 02:36:21 AM
Hi,

 Indeed, in this case, I think it should be avoided and instead using the file system from parse directly. I haven't yet implemented that aspect, but it's likely that I will need this too in short while.

I need to leverage the work I did on Easysave tho, cause I can actually do that with easysave and saving an image as a "string". I won't have time this week. Can you bump me next week on this? thanks.


Bye,

 Jean

ps: I also started investigating Facebook login integration with Parse, Parse released a tutorial on this, and it's needed on my project too, so hopefully I'll be able to update this as well.
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: lin0603 on March 27, 2014, 03:01:53 AM
Hi Jean :

i'm studying things about Parse?

So i downloaded the sample package and test it...

Login and Sing up is working..

But i face few problems here.

1.My Parse Cloud Call Function returned Error..

2.Parse Object Get Property and set User Property seems like missing Object Id..
   What should i in it?

3.About Parse Query....Should i create my own Class in the Data Browser fist?
   Because it returned nothing found now..
 
Could you help me out?

Thanks

Lin
(http://i.imgur.com/DALZwdt.jpg)
(http://i.imgur.com/Sq8NwmU.jpg)
(http://i.imgur.com/Lz5gYae.jpg)
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on March 27, 2014, 04:15:14 AM
Hi,

 -- Cloud function: it expects a function that returns a string. so double check that you indeed return a string. I am planning on supported all cases, but that's a lot of work, so it's going to come later.

-- query: yes, of course you have to have parse with data already for the query to have a chance to find anything to begin with.

--  Set Property: yes indeed you need to have first an object id in hand. Typically, create one, save the object Id and then you can later set again properties referencing that object Id.

Bye,

 Jean
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: lin0603 on March 27, 2014, 04:25:38 AM
Got it !!
Thank you !! Jean

Lin
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: rollingdjs 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: rollingdjs on March 28, 2014, 09:04:31 PM
That would be amazing, thank you. And I'm excited by an elaborated query system  :)
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: lin0603 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: mrsfrank 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?
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: lin0603 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: mrsfrank 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: mrsfrank 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
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on April 02, 2014, 03:49:53 AM
Hi,

 Good catch!

Redownload from the wiki and it will work now.

Bye,

 Jean
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: mrsfrank on April 02, 2014, 03:03:11 PM
works now! This is such an amazing tool. Thanks Jean.
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: mrsfrank 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?
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on April 03, 2014, 01:05:03 AM
Hi,

 what error do you get exactly? I tried and it worked.

 I tho found a small issue with the package on floats and ints, so please redownload anyway, it will be more stable and you can interchange ints and floats for a Parse number field without trouble.

bye,

 Jean
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: mrsfrank on April 10, 2014, 04:40:43 PM
ah as it turns out I just wasn't saving the async in the end. So it's all good. Thanks again.
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: MrMitch on May 14, 2014, 07:46:43 AM
Hey i've just imported ParseMaker into my project and i'm getting this error

Code: [Select]
Assets/PlayMaker/Actions/PlayMakerUtils.cs(25,14): error CS0260: Missing partial modifier on declaration of type `PlayMakerUtils'. Another partial declaration of this type exists
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on May 15, 2014, 01:12:32 AM
Hi,

 I think you need to clean up your project, or maybe you need to redownload from the wiki.

 else, import ArrayMaker that will also solve this problem.

Bye,

 Jean
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: MrMitch on May 15, 2014, 06:26:11 AM
I imported ArrayMaker and got the same error, so looks like i gotta clean up my project but because i don't understand the error in the first place i have no idea what i need to clean up.

Any ideas what i should be looking to clean up?

EDIT - Never mind i figured it out :)
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: Bellesteck on February 24, 2015, 05:09:31 PM
Any update to the possibility of uploading/downloading files to/from parse? :D
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on February 25, 2015, 02:07:43 AM
Hi,

 I updated the trello task  (https://trello.com/c/X6SMN1Uy/66-parse-update)for this.

 I should be able to spend some time on this early next week, I'll see how much I can fit.

 Bye,

 Jean
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: laik2002 on September 11, 2015, 01:23:15 AM
Hi Jean,
After I import "parse maker"I got some error like below:(I also import array maker & Data maker)

Assets/PlayMaker Utils/PlayMakerUtils_Serialization.cs(14,30): error CS0111: A member `PlayMakerUtils.ParseFsmVarToString(HutongGames.PlayMaker.Fsm, HutongGames.PlayMaker.FsmVar)' is already defined. Rename this member or use different parameter types

Plz help
Thx a lot
Title: Re: ParseMaker [NEW VERSION: Mach 2014]
Post by: jeanfabre on September 11, 2015, 06:56:55 AM
Hi,

 ok, I had a look, and repackaged with the latest PlayMaker utils, so now it'll work better.

 Please redownload from the wiki page (http://j.mp/1Oi2yDu).


 Bye,

 Jean