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

#1 2012-08-14 20:26:22

brockgs
New Scratcher
Registered: 2012-08-12
Posts: 5

Updated Info on Importing Blocks?

Hi all, I've spent several hours today pouring through pages of posts and trying several different scripts to add the Import Block feature to Scratch...and I can't get it to work. I get to opening up the Workspace, pasting in the code, then selecting the 'File It In' menu item...and nothing happens, no prompt, Scratch doesn't quit, no menu add...all I can seem to do it either save the file from the Workspace or quit the program...I just don't know where I'm going wrong. I'd LOVE to be able to import all of the hundreds/dozens of blocks I see in the library, but I'm feeling just a little undereducated in using Scratch to get this done.

Could someone point me to the latest/best method for importing blocks into Scratch and/or a video showing how to set this up? Thanks so much, I know this is a very basic question in this forum, but I truly am struggling after a good deal of time trying every implementation method I could find in the forums. :-)

Offline

 

#2 2012-08-14 21:08:22

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Updated Info on Importing Blocks?

Not sure if this is the problem, but before you file it in, you need highlight the text.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#3 2012-08-14 21:23:34

brockgs
New Scratcher
Registered: 2012-08-12
Posts: 5

Re: Updated Info on Importing Blocks?

I've got it selected (highlited in green on my screen), but whenever I navigate to the 'File It In' the text loses focus and seems to lose the highlight, I've tried keeping my cursor over the text in the workspace to keep it highlighted and to navigate to the menu item using keyboard, but can't seem to do that or figure out another way...blergh. Feeeling pretty newbie right now.

Offline

 

#4 2012-08-14 21:52:59

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Updated Info on Importing Blocks?

This isn't really a basic question, I myself never really got a nice, clean import. Do you want a user-friendly menu, or do you want to add the code yourself?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5 2012-08-15 06:55:58

brockgs
New Scratcher
Registered: 2012-08-12
Posts: 5

Re: Updated Info on Importing Blocks?

Hardmath123 wrote:

This isn't really a basic question, I myself never really got a nice, clean import. Do you want a user-friendly menu, or do you want to add the code yourself?

Frankly, I'd be happy either way. I'd been pursuing the menu as I figured that would be the best way in the long run, but you raise a good point that focusing on simply adding in the blocks myself more manually might be the more robust way. I'll scan the forums for how to handle that, give it a shot, then cry for help again if needed. :-)

Offline

 

#6 2012-08-15 07:10:36

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Updated Info on Importing Blocks?

Great, good luck. If you still need help, check out http://scratch.mit.edu/forums/viewtopic.php?id=31200. To add the menu, you'll need to talk to the Scratcher  dreamod.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#7 2012-08-18 15:23:09

brockgs
New Scratcher
Registered: 2012-08-12
Posts: 5

Re: Updated Info on Importing Blocks?

Well, no luck so far. I followed the links and read through everything I could. I certainly understand using the browser to find the block specs and can copy/paste the block spec for the block I want and then save it...but then when I switch over to 'instance' I can't seem to copy/paste the code into any of the files I find, and when I paste the code into a new Workspace I can find the option to save to a file...but don't know where and suspect this is not what I should be doing. It would be nice for people not familiar with Squeak/Scratch class hierarchy and environment to have a video by someone showing how to install custom blocks. :-(

Help. :-) I'm trying to get some of the blocks implemented that would help my 9 year old complete here game which is I why I won't quit until I figure this out.

Offline

 

#8 2012-08-18 22:19:55

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Updated Info on Importing Blocks?

Alright, I'll help you out.

Open up the Browser, and navigate to Scratch-Objects > ScriptableScratchMorph > (class button) > block specs > blockSpecs

I assume you know how to add a blockspec, so moving on to the code:

Navigate to Scratch-Objects > ScriptableScratchMorph > (instance button) > other ops. Then look at the coding pane. There's a sample method highlighted in green. Replace it with the block's actual code.

Whenever you change something, remember to alt-click on the coding pane and select "accept".

Enjoy!  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#9 2012-08-19 02:47:21

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Updated Info on Importing Blocks?

By the way, we're you saving the image and then re-opening Scratch when filing in those patches? Menus and most other interface objects don't appear until you tell them to -- which is what saving the image does  smile

Offline

 

#10 2012-08-19 10:41:31

brockgs
New Scratcher
Registered: 2012-08-12
Posts: 5

Re: Updated Info on Importing Blocks?

Hardmath123 wrote:

Alright, I'll help you out.

Open up the Browser, and navigate to Scratch-Objects > ScriptableScratchMorph > (class button) > block specs > blockSpecs

I assume you know how to add a blockspec, so moving on to the code:

Navigate to Scratch-Objects > ScriptableScratchMorph > (instance button) > other ops. Then look at the coding pane. There's a sample method highlighted in green. Replace it with the block's actual code.

Whenever you change something, remember to alt-click on the coding pane and select "accept".

Enjoy!  smile

WONDERFUL! It works flawlessly. When I have time later today I'm going to create a YouTube video for other people like me who need a little extra help getting this far. Thanks so much.

Offline

 

#11 2012-08-19 12:26:42

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Updated Info on Importing Blocks?

brockgs wrote:

Hardmath123 wrote:

Alright, I'll help you out.

Open up the Browser, and navigate to Scratch-Objects > ScriptableScratchMorph > (class button) > block specs > blockSpecs

I assume you know how to add a blockspec, so moving on to the code:

Navigate to Scratch-Objects > ScriptableScratchMorph > (instance button) > other ops. Then look at the coding pane. There's a sample method highlighted in green. Replace it with the block's actual code.

Whenever you change something, remember to alt-click on the coding pane and select "accept".

Enjoy!  smile

WONDERFUL! It works flawlessly. When I have time later today I'm going to create a YouTube video for other people like me who need a little extra help getting this far. Thanks so much.

That's great, I'm glad I could help.  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#12 2012-08-26 01:21:24

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: Updated Info on Importing Blocks?

I can give you a .image file with the menu for it if you still want it.


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

Board footer