Discuss Scratch

Nathanator1416J
Scratcher
100+ posts

How to hack your own magic custom blocks

nXIII wrote:

I think limiting the format to prevent stuff like this is not a good idea. We're not introducing Scratchers to any really new concepts—they've seen all the argument types we can use, they've seen custom block inputs, and they've seen reporters answering their value in place of input slots. We're just putting some of these concepts together to achieve specific functionality that helps us write better, more concise, and more useful Scratch projects.

A curious Scratcher can leave a comment like "How did you do X?," and I'm sure everyone here would be happy to reply with a short message and a link to this topic if the Scratcher is interested.

I most thoroughly agree. It was easy enough to make “corrupt” scratch programs that ran on the scratch system in 1.4, but no one did. WWe shouldn't stop supporting slightly modified scratch programs just because some may think they are confusing!

PEPPERTREE LABS! (PtP/PtL)
Tourmaline Scientific Research Programs at PEPPERTREE LABS!
Someone actually used that link! (They were from Virginia….)
GEOLOGY ROCKS! (chemistry too!)
I Tried Supporting Klingons here! But It Was Too late!!!!!
Running Windows XP SP3 (Home) With a 2.2 GHz Dual Core AMD Athlon 64 X2! Support my petition! (here)
nXIII
Scratcher
1000+ posts

How to hack your own magic custom blocks

lalala3 wrote:

to prevent interface cluttering, there could be scrollbars. Yeah.
That's still cluttered; that's just cluttered and hidden.

nXIII · GitHub
Hardmath123
Scratcher
1000+ posts

How to hack your own magic custom blocks

Nathanator1416J wrote:

It was easy enough to make “corrupt” scratch programs that ran on the scratch system in 1.4
No, it was much harder. Messing with the binary was practically impossible until Kurt, and simple hacks with shift-click-r (moving variable) didn't normally work with the Java player anyway.
Nathanator1416J
Scratcher
100+ posts

How to hack your own magic custom blocks

Hardmath123 wrote:

Nathanator1416J wrote:

It was easy enough to make “corrupt” scratch programs that ran on the scratch system in 1.4
No, it was much harder. Messing with the binary was practically impossible until Kurt, and simple hacks with shift-click-r (moving variable) didn't normally work with the Java player anyway.
Thats hard??? I don't personally think that was hard with Textpad.

PEPPERTREE LABS! (PtP/PtL)
Tourmaline Scientific Research Programs at PEPPERTREE LABS!
Someone actually used that link! (They were from Virginia….)
GEOLOGY ROCKS! (chemistry too!)
I Tried Supporting Klingons here! But It Was Too late!!!!!
Running Windows XP SP3 (Home) With a 2.2 GHz Dual Core AMD Athlon 64 X2! Support my petition! (here)
nXIII
Scratcher
1000+ posts

How to hack your own magic custom blocks

Hardmath123 wrote:

Messing with the binary was practically impossible until Kurt,
Back in the old days before Kurt, we used to have to write our own readers in JavaScript…



But seriously, it wasn't that difficult.

nXIII · GitHub
SFollis
Scratcher
500+ posts

How to hack your own magic custom blocks

How do you open .json file? it doesn't have the ‘right program’ to view it.

SFollis
Scratcher
500+ posts

How to hack your own magic custom blocks

Lightnin wrote:

This is a cool hack, but my concern is that when anyone who doesn't know what you've done (or how you've done it) tries to view your project, they won't be able to understand your scripts - they won't even make sense.

I wouldn't mind at all if this was being done only with downloaded, local projects. But these are public, shared ones, that people are likely to “see inside”.

Any thoughts on the issue?
I have a great idea!
How about a comment linked to the block that says this:
'This is a custom block.
I did NOT use the make a block function.
I used Hard math's way of making a block.
This was VERY hard and if you cannot do it,
it is okay.'
That is the end of the comment.
Would that work?

MrScribblenaut
Scratcher
19 posts

How to hack your own magic custom blocks

Lightnin wrote:

This is a cool hack, but my concern is that when anyone who doesn't know what you've done (or how you've done it) tries to view your project, they won't be able to understand your scripts - they won't even make sense.

I wouldn't mind at all if this was being done only with downloaded, local projects. But these are public, shared ones, that people are likely to “see inside”.

Any thoughts on the issue?

I think that this should be fixed as soon as possible, because it's going to mess things up if it isn't. I agree with your concern: people reading your project won't understand your scripts. I think Scratch should be a community where everyone programs in the same language, and if people start implementing these custom blocks into their scripts, Scratch will become, well, different, in many ways.

We've gotta come up with an idea on how to stop this from happening. I was thinking that Scratch should only allow you to import and export .sb2 files. Do you think that would work?

Last edited by MrScribblenaut (Feb. 23, 2013 13:54:45)





lalala3
Scratcher
100+ posts

How to hack your own magic custom blocks

MrScribblenaut wrote:

Lightnin wrote:

This is a cool hack, but my concern is that when anyone who doesn't know what you've done (or how you've done it) tries to view your project, they won't be able to understand your scripts - they won't even make sense.

I wouldn't mind at all if this was being done only with downloaded, local projects. But these are public, shared ones, that people are likely to “see inside”.

Any thoughts on the issue?

I think that this should be fixed as soon as possible, because it's going to mess things up if it isn't. I agree with your concern: people reading your project won't understand your scripts. I think Scratch should be a community where everyone programs in the same language, and if people start implementing these custom blocks into their scripts, Scratch will become, well, different, in many ways.

We've gotta come up with an idea on how to stop this from happening. I was thinking that Scratch should only allow you to import and export .sb2 files. Do you think that would work?
By my priorities, usefulness trumps that kind of standardization. If a goal simply can't be achieved in the base editor, I feel we should not be limited to only what we're given. That being said, there are two apparent options for fixing the possible conflict without limiting Scratchers' options, which should be a last resort as opposed to an instant solution to every problem, and by last resort I mean last. One way is to promote it as a basic skill for Scratch programming, and not as something that only advanced people who should probably be using higher/better languages know how to do. The other is to make the standard system more flexible and versatile, so there are official ways to accomplish almost everything that would have required hacking.

Epicness123
Scratcher
1000+ posts

How to hack your own magic custom blocks

when i try to open project.json it says ‘Windows can not open this file.’
help?

Sadly, my kumquats were eaten by an evil forum signature.
botcrusher
Scratcher
500+ posts

How to hack your own magic custom blocks

The idea for scratch is to teach programing right?
So if somone hacks a block to do cool things and somone asks how to do it, they understand programming a little better as they now know how to program that in the .json file.
I think the fact that you can do these hacks in scratch is great since it opens up many possibilities

Pondering what to work on.
soniku3
Scratcher
100+ posts

How to hack your own magic custom blocks

Awesome. I'm gonna try it.

Random Advice! Click here.
bullelk12
Scratcher
100+ posts

How to hack your own magic custom blocks

cool, it works. I wonder if there's a way to create reporter blocks or boolean blocks with this >.>

Scratch 2.0 = Cloud Variables!
1st_scratcher
Scratcher
100+ posts

How to hack your own magic custom blocks

bullelk12 wrote:

cool, it works. I wonder if there's a way to create reporter blocks or boolean blocks with this >.>
hmm
Hardmath123
Scratcher
1000+ posts

How to hack your own magic custom blocks

Epicness123 wrote:

when i try to open project.json it says ‘Windows can not open this file.’
help?
Rename it to project.txt, edit, and when you're ready, make it project.json again.

(sorry for the late response)
SFollis
Scratcher
500+ posts

How to hack your own magic custom blocks

Hardmath123 wrote:

Epicness123 wrote:

when i try to open project.json it says ‘Windows can not open this file.’
help?
Rename it to project.txt, edit, and when you're ready, make it project.json again.

(sorry for the late response)
thanks! (i asked it too )

scimonster
Scratcher
1000+ posts

How to hack your own magic custom blocks

SFollis wrote:

How do you open .json file? it doesn't have the ‘right program’ to view it.
Use Notepad (Windows), TextEdit (Mac), or gedit (Linux), or any other plaintext editor you want.

Retired Community Moderator
BTW, i run Google Chrome 41.0.2272.101 on a Linux system - Ubuntu 14.04. NEW: iPad 4th gen. w/retina.

418 I'm a teapot (original - to be read by bored computer geeks)
THE GAME (you just lost)
; THE SEMICOLON LIVES ON IN OUR SIGS
comp500
Scratcher
100+ posts

How to hack your own magic custom blocks

scimonster wrote:

SFollis wrote:

How do you open .json file? it doesn't have the ‘right program’ to view it.
Use Notepad (Windows), TextEdit (Mac), or gedit (Linux), or any other plaintext editor you want.
but mine says it doesnt have the left editor to view it


Ubuntu 13.04: Chrome 29.0.1547.76, Flash 11.8 (release 800) Windows 7: Same Both: Dell Inspiron 545: Dual-Core w/3GB RAM… let's stop boasting now…
For more info ask me on my profile page…
AttackScratch.php
scimonster
Scratcher
1000+ posts

How to hack your own magic custom blocks

comp500 wrote:

scimonster wrote:

SFollis wrote:

How do you open .json file? it doesn't have the ‘right program’ to view it.
Use Notepad (Windows), TextEdit (Mac), or gedit (Linux), or any other plaintext editor you want.
but mine says it doesnt have the left editor to view it
Oh, you're hilarious.

Retired Community Moderator
BTW, i run Google Chrome 41.0.2272.101 on a Linux system - Ubuntu 14.04. NEW: iPad 4th gen. w/retina.

418 I'm a teapot (original - to be read by bored computer geeks)
THE GAME (you just lost)
; THE SEMICOLON LIVES ON IN OUR SIGS
thisisntme
Scratcher
96 posts

How to hack your own magic custom blocks

AWESOME

SCRATCH 1.4 GET TO TEH FUTURE new scratch TWO POINT O

Powered by DjangoBB