Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
how can i get the smiley of any player without them being in any game, i want to be able to type in a username and then it returns their smiley id and if they have gold border enabled.
Offline
playerobjects
"Smiley": 147
"IsGold": false
EDIT: i thought you are smart enough to figure out it yourself
Offline
Gosha wrote:i thought you are smart enough to figure out it yourself
I don't think programming knowledge is directly correlated to smartness.
I think you had enough experience with botmaking that if you had some kind of question like that you would know that all basic unprivate information about the player is stored in our lovely friendly playerobjects which you sould use everytime you need to know something about the person that should be accessable to the global use such as smiley and gold because it would not be smart to make a new database table just to store some lines of unprivate info especially when you know that it will be used and changed a lot because players often join the level and change their smiley also server would need to load another database table to get that information but server already loads playerobjects of the player so it would be logical to store these parametors where you can access it pretty fast and easily*
Sorry for being not specific about that important line i hope that you'll forgive me manners!
Offline
playerobjects
"Smiley": 147
"IsGold": falseEDIT: i thought you are smart enough to figure out it yourself
Personally I honestly have absolutely no idea how to do anything with bigdb and the playerobjects and what not.
Really all I've done so far is just send and receive messages from worlds, not even the lobby or whatever.
Although I guess I could try and figure it out by reading the documentation...
Not asking you to post how to do that stuff, btw, since I think the OPer knows it just fine (correct me if I'm wrong).
Offline
I don't think Gosha's tone was supposed to come off as rude. Ninja has used BigDB for many of his projects, and even made on that grabs database information in JavaScript. I think he was just surprised that he didn't know because he uses it all the time in his projects.
Personally I honestly have absolutely no idea how to do anything with bigdb and the playerobjects and what not.
Not that many people do anymore, I bugged NVD to add ConnectUserIDs (account specific IDs) to the "add" message type so nobody really needed to do any database lookups anymore.
Really all I've done so far is just send and receive messages from worlds, not even the lobby or whatever.
When there was username changes all the programmers had to migrate their data (well I did) from usernames to IDs so that's when people learned about it, but now that it's sent under "add" there really isn't a point of doing so anymore for purely ingame things.
Offline
what do u mean "without they being in any game"? because if you mean getting the player data without them being on your world... well.. hacks needed
Offline
what do u mean "without they being in any game"? because if you mean getting the player data without them being on your world... well.. hacks needed
Offline
When there was username changes all the programmers had to migrate their data (well I did) from usernames to IDs so that's when people learned about it, but now that it's sent under "add" there really isn't a point of doing so anymore for purely ingame things.
I honestly never thought about name changes breaking things like username indexed leaderboards... On the flipside I don't think username changes happen all that often, so I guess it's not that terrible.
Offline
I honestly never thought about name changes breaking things like username indexed leaderboards... On the flipside I don't think username changes happen all that often, so I guess it's not that terrible.
Yeah, few others and I had a panic session when information about upcoming username changes was leaked. We (at the time) weren't sure how usernames would be freed, and if there even was a way to tell if there was an old username.
We had a blast doing maybe a thousand database lookups. We did even more as we ran the worlds because like I said earlier they didn't send the ConnectUserID at the time. (so rip)
Offline
I think doing the very smallest amount of research of looking into the API you would've figured this out in a heartbeat - assuming your heartbeat is normal, though you seem to skip a few.
Offline
We had a blast doing maybe a thousand database lookups. We did even more as we ran the worlds because like I said earlier they didn't send the ConnectUserID at the time. (so rip)
I think the devs are open enough to just tell you where to look instead xD
Offline
[ Started around 1732262758.6385 - Generated in 0.043 seconds, 12 queries executed - Memory usage: 1.62 MiB (Peak: 1.8 MiB) ]