How do i know i am loading a player object for the first time so i can initialize it?
I tried to check obj == null or obj.property.length == 0 but that don't seem to work.
by Peter_Pain » July 16th, 2012, 7:40 am
by dreamora » July 16th, 2012, 7:44 am
by Peter_Pain » July 16th, 2012, 8:18 am
by dreamora » July 16th, 2012, 8:21 am
by Peter_Pain » July 16th, 2012, 8:44 am
by dreamora » July 16th, 2012, 9:32 am
by Henrik » July 16th, 2012, 11:28 am
Peter_Pain wrote:How do i know i am loading a player object for the first time so i can initialize it?
I tried to check obj == null or obj.property.length == 0 but that don't seem to work.
by Henrik » July 16th, 2012, 11:31 am
Peter_Pain wrote:i tried this in loadMyPlayerObject callback function and i get "contains is not a function" error
if (obj.username == null) {
obj.username = "...";
obj.save();
}
by Henrik » July 16th, 2012, 11:35 am
dreamora wrote:don't know if you can do it on the client side, for obvious security aspects I thought would NEVER grant access to the playerobjects table for the public connection
by dreamora » July 16th, 2012, 1:37 pm
by Henrik » July 16th, 2012, 4:01 pm
dreamora wrote:As you need to have a 'replicable way' to calculate the connectionid, anyone else can modify the client and request any users data for which they know the relevant token.
dreamora wrote:Even more so as Player.IO does only support insecure technologies at the time (.NET and Flash) where decompilation is a trivial task in the majority of cases.
dreamora wrote:Would be a different topic if we could control the access of requests or limit it to 'own objects' but that concept doesn't exist
by dreamora » July 16th, 2012, 9:36 pm
by Benjaminsen » August 31st, 2012, 8:13 am
dreamora wrote:I don't see how 'full creator rights' are related to 'you can request whatever you know the key off'
But thats good to know that Quick Connect prevents loading any other object from the PlayerObjects table simply by key