Yep, do you get how to see the current ones?
Offline
sparks wrote:
I see them
![]()
Under the motion category?
Offline
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.
Offline
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
EDIT: The one in Claw
Last edited by sparks (2011-04-11 07:44:26)
Offline
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.
Offline
Ok click the PHP menu and set the URL to: http://scratchlive.xtreemhost.com/
Offline
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.
Offline
I'm on that page
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?
Oh. Duh, there is no "onlineUsername" variable!
Last edited by sparks (2011-04-11 08:03:53)
Offline
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)
Offline
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.
Offline
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
Offline
@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.
Offline
sparks wrote:
I see what you mean about spaces. did you choose % as the symbol? Standard space representation is %20
![]()
Hmm you want to change it to _? (It has to be 1 character)
Offline