Thread:Neo34/@comment-180.180.31.38-20160705142014/@comment-27642721-20160705201907

David,

I think the whole crash thing is caused by acceptance of TYs generating two identical entries in the TempGifts.xml  e.g.

"AcceptedGifts" : [ { "uid" : 0 }, { "uid" : 0 }, { "uid" : 1 }, { "uid" : 1 },

When accepting normal gifts, only one entry per "uid" is generated.

Once the Friends/Gift window is closed, the software does two things:

1. Clears the gift uids from the server (so that they won't be downloaded again)

2, Converts the TYs to items to go to the inventory.

I've experimented collecting 240 TYs, saving the TempGifts.xml with the Friends/Gift window still open....causes a crash on closing the window and every time I tried to boot the game. I then edited the file to remove the duplicate uid records, creating a file as it would be for 240 different gift items...for some reason it crashed on first boot, but the game opened successfully on the second attempt and all 240 TYs went into the inventory.

I suspect the crash is caused by a combination of server timings (slow connection) and the attemped "double clearing" of the same uid numbers. Probably why changing some of the server timings helps. It is strange why 100 TYs is ok but 101 fails though... 150 would have made more sense.

BTW..the server setting file is different on Windows and Android. My Android game has values like you describe but they are set to "null" in my Windows version.