How To Manage Shared Data Files With Corona Cloud

I have a few things I was hoping I could get some input on.

In my current project, I have 6 json files that are loaded and saved to during a players turn.  They total up to around 2.7 kb, so pretty small overall.

What I need to know is what the best way to deal with those files, with corona cloud?  

I had originally thought that I would be able to store these files in the cloud, and have each player load them at the start of their turn, and save them back at the end of their turn.  This would mean that the files would need to be saved in some correlating location with the specific match.

Documentation being slim still, it doesn’t look like that is possible, but I’m not sure.

If it isn’t possible, what would people recommend I do instead?

I understand that at some point… there is suppose to be a freeform db for cloud, but of course, that would mean learning something totally new and implementing wide spread changes to data management, something I’ll do if I have to, but json files are pretty slick.

Looking for input on this.

Secondly, I have questions about matches.  I’ve read a few things here and there, and I’m left with the impression that getMatches() only retrieves the matches that the user is associated with…

I hope that I misunderstand this, or that there is something quickly in the works that will retrieve all matches.

After a player logs in, they go to my game lobby where they can view news, view leaderboards, but also join or create matches.  I will need to be able to display all pending matches, so a player can choose to join whatever game, with whatever settings they like.

any clarifications or input would be great.

Why not put them in one mega-table and JSON encode it and pass it via submitMove() and getRecentMoves()?

Yes, getMatches() only gets matches you are involved with.  I’m not sure about the practicality of getting all the matches.  If your app takes off, you could have millions of matches and I’m not sure I want to see matches you are involved with if I’m not in them. 

understandably you’d need to cap returning results.

I have changed it a little, I am trying to create chatrooms to start, with the match being created at game launch from inside the chat.

So I would need to see all chats (representing all pending games) to be able to join one.

My game is for 2-4 players, so people will sit in the chatroom until max players is filled and the host launches the game.

I’ve not messed around with chat rooms, but perhaps that could be the list of pending games and not focus on the match until you actually have one.  I don’t know if chat rooms have enough information for that.  Let me get someone from the Cloud team to chime in on this.

Why not put them in one mega-table and JSON encode it and pass it via submitMove() and getRecentMoves()?

Yes, getMatches() only gets matches you are involved with.  I’m not sure about the practicality of getting all the matches.  If your app takes off, you could have millions of matches and I’m not sure I want to see matches you are involved with if I’m not in them. 

understandably you’d need to cap returning results.

I have changed it a little, I am trying to create chatrooms to start, with the match being created at game launch from inside the chat.

So I would need to see all chats (representing all pending games) to be able to join one.

My game is for 2-4 players, so people will sit in the chatroom until max players is filled and the host launches the game.

I’ve not messed around with chat rooms, but perhaps that could be the list of pending games and not focus on the match until you actually have one.  I don’t know if chat rooms have enough information for that.  Let me get someone from the Cloud team to chime in on this.

I guess it can be managed with the help of mega-table and JSON encode…May it favorable works for them…Would like to congardulate coronlab’s crew memebers for introducing such an outrageous feature to us.

 

http://www.bigdatacompanies.com

I guess it can be managed with the help of mega-table and JSON encode…May it favorable works for them…Would like to congardulate coronlab’s crew memebers for introducing such an outrageous feature to us.

 

http://www.bigdatacompanies.com