This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-09-01 18:24:08

xJira
Scratcher
Registered: 2012-03-24
Posts: 91

Cloud-Data Problem / [User Leaves Project?]-Block

Hey everybody!

I guess I am not the only one who is wondering how to use the new cloud data.
Of course a great idea would be a chat or a game which people can play together.

But I found something that could be ... problematic.

Imagine we have a chat. There is a List to show who's online. When you click the green flag, your Chat-Name will be added to the list. When you click the "Sign-Off" Icon, your Name will be removed. BUT WHAT if you don't sign off, but just close the Window/Click the Stop-Icon?

Your name will still be there. That might not be a big problem, but after a while, there will be a hundret people in the list, who never signed off.

So what about a hat-Block that is activated, if the User clicks the Stop-Icon or leaves the Page?

[User Leaves Project?]
Delete [X] item of List [Who's Online?]

(When the User logs in and his name is added to [Who's online], the variable X remembers his Number in this list)

What do you think, would such a block make sense? Or are there other solutions, maybe?

xJira wrote:

kayybee wrote:

I think that you should only be able to add a certain type of blocks to the "when user leaves project" block

Such as: variables, lists, operators and "if"
anything else that might be useful and not abusive?


and perhaps only 5 like big blocks can be added (I forgot what they're called but they're just the normal blocks)

Yeah right! I've already mentioned that and you are totally right. Ofc this function should not be abused to make unstoppable projects with loops or long sounds!

And heres to the Scratch-Team: Could something like this be this possible? In my opinion it would be a great help for many projects that use the new Cloud Data - not just chats, but also games and other stuff.

Supporters
benjamin2
jontmy00
northmeister
soniku3
KyleK7
ErnieParke
OverPowered (does only support Ping-Idea)
Wes64
BirdByte
Molybdenum
MrFlash67
pizza22
funelephant
dvd4
xJira

THANK YOU!

Last edited by xJira (2012-10-01 12:27:25)

Offline

 

#2 2012-09-02 03:32:09

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

I like this idea. A workaround could be to disconnect a user if they go inactive on the project.

Or if their mouse goes off the screen.

Last edited by benjamin2 (2012-09-02 03:32:41)


http://i.imgur.com/gp6tZ.gif

Offline

 

#3 2012-09-02 03:33:23

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

benjamin2 wrote:

I like this idea. A workaround could be to disconnect a user if they go inactive on the project.

Or if their mouse goes off the screen.

Exactly like a timeout.

I support.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-09-02 03:59:16

northmeister
Scratcher
Registered: 2011-07-12
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Nice idea. Support.


http://i48.tinypic.com/5a25g5.png

Offline

 

#5 2012-09-02 04:43:53

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

northmeister wrote:

Nice idea. Support.

Same here. It could slow down projects massive if this block is not listed.


internet's all about cats today.

Offline

 

#6 2012-09-02 05:27:57

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

but someone could do a project wich you can't stop with the stop button


http://blocks.scratchr.org/API.php?action=projects&type=newest&return=image&user=taddl
http://blocks.scratchr.org/API.php?user=taddl&action=projects&type=newest&return=text&num=1

Offline

 

#7 2012-09-02 05:51:20

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

taddl wrote:

but someone could do a project wich you can't stop with the stop button

But once the stop button has been clicked, everything stops. The only way anything can start working again is that scripts that start with key pressed or sprite clicked can still be activated.


http://i.imgur.com/gp6tZ.gif

Offline

 

#8 2012-09-02 08:25:55

KyleK7
Scratcher
Registered: 2011-06-14
Posts: 500+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Support.


http://i46.tinypic.com/zwxnhh.gif

Offline

 

#9 2012-09-02 09:02:32

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

I support because it can save space and help speed up some projects.


http://i46.tinypic.com/35ismmc.png

Offline

 

#10 2012-09-02 09:20:19

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Support!


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#11 2012-09-02 11:09:16

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

support

its currently impossible, and thus renders many uses of "user id" useless


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#12 2012-09-02 11:19:34

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Ssssssssuuuuuuuuuuuppppppppppppoooooooooooooorrrrrrrrrtttttttttttt.


http://i50.tinypic.com/312u714.jpg

Offline

 

#13 2012-09-02 12:28:14

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Even though I support, I wanted to say something:
You could implement a ping every 2 minutes or so, and delete all users who don't respond to the ping (like in IRC). The problem is there's not really anyone who can ping everyone, but I saw another suggestion about serverscripts that would work.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#14 2012-09-02 15:22:19

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Support!


Who would win, SOPA or PIPA?

Offline

 

#15 2012-09-02 16:20:03

pizza22
Scratcher
Registered: 2012-04-30
Posts: 500+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Support

when disconnected 
delete position (user number) of [conected]

Last edited by pizza22 (2012-09-02 16:22:27)

Offline

 

#16 2012-09-02 16:48:54

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Wait. If the entire "when disconnected" script happened when the user closed/stopped, couldn't people troll by doing something like this?

when disconnected
forever
play sound [LOL I'M GONNA PLAY THIS FOREVER!!!!11one1eleven v] until done
end
And what about if a user presses end task (task manager)? Then its automaticly stopped, and the disconnected script wouldn't run.

Last edited by Molybdenum (2012-09-02 16:49:26)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#17 2012-09-02 17:00:04

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

how about a hat block like

when stop sign clicked

or something


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#18 2012-09-02 18:30:52

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Wes64 wrote:

how about a hat block like

when stop sign clicked

or something

'
Exploit:

when gf clicked
broadcast [start everything v] //This would be used in place of all of the when gf clickeds.
when stop clicked
say [Y U NO PLAY MY GAME?] for (3) secs
broadcast [start everything v]

Last edited by Molybdenum (2012-09-02 19:57:20)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#19 2012-09-02 19:20:42

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Wes64 wrote:

how about a hat block like

when stop sign clicked

or something

That wouldn't exactly work since they could do

when gf clicked
broadcast whatever

when stop sign clicked
broadcast whatever

Then you'd never be able to stop the project

...As molybdenum said

Last edited by RedRocker227 (2012-09-02 19:21:09)


Why

Offline

 

#20 2012-09-03 15:28:02

xJira
Scratcher
Registered: 2012-03-24
Posts: 91

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Well then this hat-block which notices when the user goes offline just allows the next blocks to a few save blocks?
Yeah well, the taskmanager-thing is a serious problem, but if projects run and are created online, maybe it will just check if the user is still connected. Then it would not matter, How the connection is cutted.

Offline

 

#21 2012-09-03 21:00:25

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

*cough* you could use a ping *cough*


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#22 2012-09-03 23:08:58

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Retracting my support due to possible trollifications.  tongue
The ping does seem more realistic...


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#23 2012-09-04 04:35:34

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

it should work with ips or something like that...
then there could be a list wich contains every ip of the players, and appears as soon as you create a cloud variable/list.
there sould also be a variable called user ip.


http://blocks.scratchr.org/API.php?action=projects&type=newest&return=image&user=taddl
http://blocks.scratchr.org/API.php?user=taddl&action=projects&type=newest&return=text&num=1

Offline

 

#24 2012-09-05 15:27:08

xJira
Scratcher
Registered: 2012-03-24
Posts: 91

Re: Cloud-Data Problem / [User Leaves Project?]-Block

OverPowered wrote:

Retracting my support due to possible trollifications.  tongue
The ping does seem more realistic...

Thats why I asked for other possibilities  big_smile

Maybe it would make sense that this hat block (user leaves/project is stopped) can only be used in combination with any kind of variable-blocks and operators. That would totally do, to make sure the user is removed from the list "Online" for instance ^.^

but maybe there are more convenient... =S

Last edited by xJira (2012-09-05 15:30:07)

Offline

 

#25 2012-09-05 15:28:29

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Cloud-Data Problem / [User Leaves Project?]-Block

Program in that if there's a user who hasn't posted for 15 minutes they are automatically taken offline?

Offline

 

Board footer