Official Everybody Edits Forums

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.

#1 2017-08-11 18:05:41

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[question] getting smiley id and if gold of any player

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

#2 2017-08-11 18:09:29, last edited by Gosha (2017-08-11 18:19:36)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [question] getting smiley id and if gold of any player

playerobjects
"Smiley": 147
"IsGold": false

EDIT: i thought you are smart enough to figure out it yourself

Offline

#3 2017-08-11 18:47:41

N1KF
Wiki Mod
From: ဪဪဪဪဪ From: ဪဪဪဪဪ From: ဪဪဪဪဪ
Joined: 2015-02-15
Posts: 11,114
Website

Re: [question] getting smiley id and if gold of any player

Gosha wrote:

i thought you are smart enough to figure out it yourself

I don't think programming knowledge is directly correlated to smartness.

Online

#4 2017-08-11 18:57:54

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [question] getting smiley id and if gold of any player

N1KF wrote:
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

#5 2017-08-12 01:17:13

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [question] getting smiley id and if gold of any player

Gosha wrote:

playerobjects
"Smiley": 147
"IsGold": false

EDIT: 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

#6 2017-08-12 01:47:41

John
Member
Joined: 2019-01-11
Posts: 2,011

Re: [question] getting smiley id and if gold of any player

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.

den3107 wrote:

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.

den3107 wrote:

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.


PW?scale=2

Offline

#7 2017-08-12 03:17:02

filipao500ml
Member
Joined: 2017-08-10
Posts: 13

Re: [question] getting smiley id and if gold of any player

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


giphy.gif

Offline

#8 2017-08-12 10:46:33, last edited by Kikikan (2017-08-12 10:51:30)

Kikikan
Member
From: Hungary
Joined: 2015-08-10
Posts: 204

Re: [question] getting smiley id and if gold of any player

filipao500ml wrote:

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

vTUcAuN.jpg

Offline

Wooted by: (2)

#9 2017-08-12 13:15:09

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [question] getting smiley id and if gold of any player

Emalton wrote:

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

#10 2017-08-12 15:35:17

John
Member
Joined: 2019-01-11
Posts: 2,011

Re: [question] getting smiley id and if gold of any player

den3107 wrote:

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)


PW?scale=2

Offline

#11 2017-08-12 21:52:28

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [question] getting smiley id and if gold of any player

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.

Hidden text

signature.png

Offline

#12 2017-08-13 03:47:40

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [question] getting smiley id and if gold of any player

Emalton wrote:

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

den31071502592460672938

Board footer

Powered by FluxBB

[ Started around 1732525641.5383 - Generated in 0.072 seconds, 12 queries executed - Memory usage: 1.61 MiB (Peak: 1.79 MiB) ]