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

#26 2011-04-11 07:27:52

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

Right, I'm in the claw browser, I will have a look at adding those blocks, is that what you wanted me to do?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#27 2011-04-11 07:28:30

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

Yep, do you get how to see the current ones?


You can now reach me on Twitter @johnnydean1_

Offline

 

#28 2011-04-11 07:29:08

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

I see them  smile

Last edited by sparks (2011-04-11 07:31:03)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#29 2011-04-11 07:30:32

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

sparks wrote:

I see them  smile

Under the motion category?


You can now reach me on Twitter @johnnydean1_

Offline

 

#30 2011-04-11 07:31:07

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

but before I try to edit them, are we going to try and create hidden variables and a "onlineUsername not set" dialogue?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#31 2011-04-11 07:38:47

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

How about this:
Global Variable called 'OnlineName' which is checked by that meathod I told you (here). This will allow people to use their Scratch username as a variable. (Security).
It then shares all variables online, like it does in mesh.


You can now reach me on Twitter @johnnydean1_

Offline

 

#32 2011-04-11 07:39:18

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

your get $String$ var block does not appear to work currently.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#33 2011-04-11 07:40:35

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

The one in Claw or posted here?


You can now reach me on Twitter @johnnydean1_

Offline

 

#34 2011-04-11 07:44:09

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

johnnydean1 wrote:

How about this:
Global Variable called 'OnlineName' which is checked by that meathod I told you (here). This will allow people to use their Scratch username as a variable. (Security).
It then shares all variables online, like it does in mesh.

That would work, but a password has to be supplied which means they cannot share their project with other people - those people would then either be unable to read the variables for the project or be able to see the username and password of the project. Even if the password was not needed for a shared project, the project would still have access to the variables for that user and so could change and spam with them as they wished... I'm a bit lost as to how to make this secure AND shareable  hmm

EDIT: The one in Claw

Last edited by sparks (2011-04-11 07:44:26)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#35 2011-04-11 07:47:14

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

Claw patch here
The username and pass thing can be worked around. Make it unsecure at the moment, then later we can add a security meathod.


You can now reach me on Twitter @johnnydean1_

Offline

 

#36 2011-04-11 07:52:38

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

alright. What's in the patch? The get variable still reports nothing.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#37 2011-04-11 07:53:36

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

Ok click the PHP menu and set the URL to: http://scratchlive.xtreemhost.com/


You can now reach me on Twitter @johnnydean1_

Offline

 

#38 2011-04-11 07:54:48

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

Did you say you changed the argument representation from %s to $String$? They seem to still be in the %s form at the moment...


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#39 2011-04-11 07:55:59

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

No I never changed it to $String$


You can now reach me on Twitter @johnnydean1_

Offline

 

#40 2011-04-11 07:56:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

Didn't realise I had to set the url. Are they not specifically for that site? And then your set and exists blocks work fine without the url being set, but the read does not?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#41 2011-04-11 07:59:57

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

Random.
The site is where they are hosted. It has to be linked up to one with the pages named accordinly.

Remember visit here is a way to check all variables and values.


You can now reach me on Twitter @johnnydean1_

Offline

 

#42 2011-04-11 08:02:51

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

I'm on that page  tongue

I tried replacing the code for the "get %s var" block with mine. Mine works in Panther but not in claw. Is there something I'm missing?

http://dl.dropbox.com/u/22935223/blockspec.png

Oh. Duh, there is no "onlineUsername" variable!

Last edited by sparks (2011-04-11 08:03:53)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#43 2011-04-11 08:05:12

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

right, it works now, that's a great deal less code than what you had  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#44 2011-04-11 08:05:35

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

Fine, but rember you have to replace % in the value with a space. (They have to be changed)

Last edited by johnnydean1 (2011-04-11 08:06:47)


You can now reach me on Twitter @johnnydean1_

Offline

 

#45 2011-04-11 08:07:22

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

hmm... I need to put a "mesh username not set" dialogue into this code:

|t2|
t2_ self reportVar: 'onlineUsername'.
^ self readLine: 4  FromUrl: 'http://scratchlive.xtreemhost.com/set.php?user=', t2, '_',  t1, '&pass=1'

I'm going for some lunch now, be back in a bit.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#46 2011-04-11 08:08:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

johnnydean1 wrote:

Fine, but rember you have to replace % in the value with a space. (They have to be changed)

Sorry? I don't know what you mean?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#47 2011-04-11 08:12:59

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

If you send a variable spaces need to be replaced with %, otherwise it fails. When you recive a variable you then have to change it back.

So:
set Test to Test 1 2 3 (Try it)
turns into
set Test to Test%1%2%3

and when you do
get Test

it gets Test%1%2%3


You can now reach me on Twitter @johnnydean1_

Offline

 

#48 2011-04-11 08:32:00

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

@Sparks
Added a way to clear all and backup of all files kept.
See here
I will remove clear function when we are done with blocks.


You can now reach me on Twitter @johnnydean1_

Offline

 

#49 2011-04-11 10:37:58

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Live

I see what you mean about spaces. did you choose % as the symbol? Standard space representation is %20  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#50 2011-04-11 10:53:04

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch Live

sparks wrote:

I see what you mean about spaces. did you choose % as the symbol? Standard space representation is %20  smile

Hmm you want to change it to _? (It has to be 1 character)


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer