Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started 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
-
Wonderful! Thank you, Jean!
-
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 :)
-
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 :) :)
-
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
-
Excellent job! Just purchased a windows 8 phone, it shall be hammered with custom apps. ;)
-D
-
there is no uniparse anymore, will playmaker support parse directly?
-
Hi,
eh eh :) working on it currently :) currently cleaning up the sample to publish it on the wiki.
Bye,
Jean
-
Wow!!!!
Couldn't wait...
Hope could have the new amazing add-on soon..
Thank You Jean
Lin
-
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
-
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?
-
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.
-
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.
-
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)
-
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
-
Got it !!
Thank you !! Jean
Lin
-
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
-
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
-
That would be amazing, thank you. And I'm excited by an elaborated query system :)
-
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
-
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?
-
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
-
Hi Jean:
is it possible to give me some hint about leader board in parse? please …
thanks
Lin
-
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
-
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
-
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
-
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
-
Hi,
Good catch!
Redownload from the wiki and it will work now.
Bye,
Jean
-
works now! This is such an amazing tool. Thanks Jean.
-
I'm actually having a problem setting the float as well. Is it perhaps doing the same thing on Parse Object Set Property?
-
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
-
ah as it turns out I just wasn't saving the async in the end. So it's all good. Thanks again.
-
Hey i've just imported ParseMaker into my project and i'm getting this error
Assets/PlayMaker/Actions/PlayMakerUtils.cs(25,14): error CS0260: Missing partial modifier on declaration of type `PlayMakerUtils'. Another partial declaration of this type exists
-
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
-
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 :)
-
Any update to the possibility of uploading/downloading files to/from parse? :D
-
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
-
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
-
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