What is the
(user id)block in 2.0?
Last edited by Firedrake969 (2012-08-10 16:19:18)
Offline
I didn't know there was this block in 2.0! that's so cool! Now we can make valid highscores and chatrooms.
Offline
BirdByte wrote:
thebriculator wrote:
I didn't know there was this block in 2.0! that's so cool! Now we can make valid highscores and chatrooms.
But the username won't be accessible.
unless the ID is determined by algorithm from the username which is unlikely. But I don't see how it could be abused badly.
Offline
thebriculator wrote:
I didn't know there was this block in 2.0! that's so cool! Now we can make valid highscores and chatrooms.
Not really, unless you want the highscores to look like
1st place: gj04u40f
2nd place: r34rg9r
or whatever the user ID looks like.
Offline
RedRocker227 wrote:
thebriculator wrote:
I didn't know there was this block in 2.0! that's so cool! Now we can make valid highscores and chatrooms.
Not really, unless you want the highscores to look like
1st place: gj04u40f
2nd place: r34rg9r
or whatever the user ID looks like.
you could have each user create his or her own username within the project. for example when a new user is detected, it asks for a name, and that name is used instead of the hash
Offline
exactly. and in the list, there is [username: score] for each user, and only once for each user
Offline
benjamin2 wrote:
In each project, each viewer gets an id. It is the same each time they view the project. It was what the scratch team decided on instead of the username block.
if you open your user pic it will say some thing like this in the url:http://scratch.mit.edu/static/icons/buddy/278575_med.png?t=2012-08-08+11%3A29%3A41 (what is bold is the id)
Offline
or if you click "see more" on your friends list or look at all your comments you will also see your user ID
Offline
ke1235 wrote:
benjamin2 wrote:
In each project, each viewer gets an id. It is the same each time they view the project. It was what the scratch team decided on instead of the username block.
if you open your user pic it will say some thing like this in the url:http://scratch.mit.edu/static/icons/buddy/278575_med.png?t=2012-08-08+11%3A29%3A41 (what is bold is the id)
Something like that, but it won't be the same for each project.
Offline
User ID I believe works like:
The first user to view it gets 1.
The next gets 2, and so on.
If a user loads a project again, they have the same ID as last time.
If you are playing offline or are not logged in, the ID is 0.
Offline
ke1235 wrote:
benjamin2 wrote:
In each project, each viewer gets an id. It is the same each time they view the project. It was what the scratch team decided on instead of the username block.
if you open your user pic it will say some thing like this in the url:http://scratch.mit.edu/static/icons/buddy/278575_med.png?t=2012-08-08+11%3A29%3A41 (what is bold is the id)
The projects don't use that ID though, because it could be abused.
Every project will use different IDs for the same user!
Offline
Maybe there are random numbers generator in python...
They can easily store those numbers on the servers, it's about <100kb per VERY active users, when using 64 bit integers. (which are by far enough)
Anything else, like a secret algorithm, would be pretty privacy dangerous...
For chatrooms, you can hash the ids and store them with usernames, after validating that the user is really the user with a secret word or so.
Last edited by roijac (2012-08-11 16:52:11)
Offline
And it's a blue sensor block, not that anybody doubted that.
Offline
stevetheipad wrote:
And it's a blue sensor block, not that anybody doubted that.
http://i.imgur.com/Lqq4d.png
who exactly asked for a picture
Offline
777w wrote:
stevetheipad wrote:
And it's a blue sensor block, not that anybody doubted that.
http://i.imgur.com/Lqq4d.pngwho exactly asked for a picture
I wouldn't mind having one.
Offline
Offline
I sure hope it's in the final build.
Offline
ImagineIt wrote:
YAY! Turned Based RPG, here I come!
Related how..?
Offline
stevetheipad wrote:
And it's a blue sensor block, not that anybody doubted that.
http://i.imgur.com/Lqq4d.png
Am I cool yet
Last edited by puppetadventurer (2012-08-11 23:51:07)
Offline
puppetadventurer wrote:
stevetheipad wrote:
And it's a blue sensor block, not that anybody doubted that.
http://i.imgur.com/Lqq4d.pngAm I cool yet
http://i.imgur.com/4o3Q0.png
not as cool as me
wait whats "video [motion v] on [stage v] :O
Last edited by 777w (2012-08-12 07:45:27)
Offline
CheeseMunchy wrote:
I sure hope it's in the final build.
Not me!
I want a true User Name block.
I, honestly, see way less ways for abuse with it.
If anyone makes a project like: if (username) = (BoltBait) then be mean
everyone will be able to easily see it in the code and report the project. If, on the other hand, we have to prompt for a username to create a high score table, and someone enters a bad word, who gets in trouble when a game displays it? And, how would something like that even get reported?
This is really disappointing.
Offline