playMaker

Author Topic: Parse problem  (Read 1536 times)

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Parse problem
« on: May 27, 2014, 04: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 !!!

Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Parse problem
« Reply #1 on: June 03, 2014, 04:18:59 AM »
hi,

 Indeed if two instances are accessing and editing the same objects, you need to make sure you fetch the latest from the database.

https://www.parse.com/docs/unity_guide#objects-classes
Quote
If you need to get an object's latest data from Parse, you can call the FetchAsync method

Bye,

 Jean