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

#126 2012-04-24 12:46:49

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

Re: Block Files

What am I saying? I always think control is the first category for some reason. Motion. I'm going to test this out in the Scratch > motion section of the library first (unless you've just done all the control ones and want to do that one  tongue  )


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

Offline

 

#127 2012-04-24 14:48:49

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

sparks wrote:

What am I saying? I always think control is the first category for some reason. Motion. I'm going to test this out in the Scratch > motion section of the library first (unless you've just done all the control ones and want to do that one  tongue  )

It's almost done, I just asked Greenatic to find glitches and report them to me. When he's done, I will fix them and then the patch is pretty much done.

Offline

 

#128 2012-04-24 15:47:51

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

Re: Block Files

That's pretty cool! (I still can't get the patch to work on my Scratch  tongue  maybe an earlier version of the patch that I ran through wrong has interfered...)


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

Offline

 

#129 2012-04-24 19:13:23

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Block Files

Debugging Time!   big_smile

For Create Arg, the selector given in this part:

Code:

ChoiceArgMorph new getOptionsSelector: #graphicEffectNames;
         choice: 'color'

...will be placed in a "Message not understood" error, without the first letter (i.e. raphicEffectNames).

Having created a custom arg, the above-mentioned error message appears whenever one tries to make a new block.

Selecting 'cannot become watcher' has no effect.

Blocks created in non-expert info have no block info and report "Error!".  They suffer errors when exported, removed, edited, or used as templates.  Selecting "remove icon" on these blocks results in the error "subscript is out of bounds: 0".

Selecting 'view block info' on these blocks and responding to the yes/no prompt causes the following:
If yes selected: error "_______BlockMorphs are not indexable"
If no selected: error "selector not found"

Changing between normal/stop blocks requires refreshing the block palette for the appearance to change.

Last edited by Greenatic (2012-04-24 19:29:42)

Offline

 

#130 2012-04-25 08:35:37

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Greenatic wrote:

Debugging Time!   big_smile

For Create Arg, the selector given in this part:

Code:

ChoiceArgMorph new getOptionsSelector: #graphicEffectNames;
         choice: 'color'

...will be placed in a "Message not understood" error, without the first letter (i.e. raphicEffectNames).

Having created a custom arg, the above-mentioned error message appears whenever one tries to make a new block.

Selecting 'cannot become watcher' has no effect.

Blocks created in non-expert info have no block info and report "Error!".  They suffer errors when exported, removed, edited, or used as templates.  Selecting "remove icon" on these blocks results in the error "subscript is out of bounds: 0".

Selecting 'view block info' on these blocks and responding to the yes/no prompt causes the following:
If yes selected: error "_______BlockMorphs are not indexable"
If no selected: error "selector not found"

Changing between normal/stop blocks requires refreshing the block palette for the appearance to change.

Thanks for testing, I will fix these glitches. It's nice to have people like you around.

Offline

 

#131 2012-04-25 09:45:02

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

sparks wrote:

That's pretty cool! (I still can't get the patch to work on my Scratch  tongue  maybe an earlier version of the patch that I ran through wrong has interfered...)

Download the Scratch Source Code, so you have a 'fresh' version of it. Then install the patch.

Offline

 

#132 2012-04-25 10:34:42

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Sparks, could you host a text document (plain text) on some url, which the block importer would update from?

Offline

 

#133 2012-04-25 10:38:17

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Re: Block Files

dreamod wrote:

rookwood101 wrote:

Where can we download the latest version of the patch?

It's on my project 'Block Importer 2.0'

it dosent work AT ALL!


http://pekkit.net/banners/pekkit.png

Offline

 

#134 2012-04-25 11:09:38

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Squawkers13 wrote:

dreamod wrote:

rookwood101 wrote:

Where can we download the latest version of the patch?

It's on my project 'Block Importer 2.0'

it dosent work AT ALL!

What do you mean?

Offline

 

#135 2012-04-25 12:06:10

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

Re: Block Files

dreamod wrote:

Sparks, could you host a text document (plain text) on some url, which the block importer would update from?

Absolutely!


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

Offline

 

#136 2012-04-25 14:51:04

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

I recently added a thing to the patch, so that when you select 'help' on a custom block it shows the first comment in the block code.

Offline

 

#137 2012-04-25 19:54:53

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Block Files

"reinitializing custom block specs" blocks have Link Errors (i.e. glitches mentioned above).  Adding blockspecs doesn't seem to make the blocks show up.

Offline

 

#138 2012-04-26 01:15:15

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Greenatic wrote:

"reinitializing custom block specs" blocks have Link Errors (i.e. glitches mentioned above).  Adding blockspecs doesn't seem to make the blocks show up.

Why did I even make those in the first place? I'll just remove them.
What do you mean by "Adding blockspecs doesn't seem to make the blocks show up."

Offline

 

#139 2012-04-26 01:20:34

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

sparks wrote:

dreamod wrote:

Sparks, could you host a text document (plain text) on some url, which the block importer would update from?

Absolutely!

Could you make a text file with this content and upload it?

Code:

2.5
'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 18 April 2012 at 5:47:08 pm'!
!ScratchFrameMorph methodsFor: 'versions'!
version
^ 2.5! !

It's a test.

Offline

 

#140 2012-04-26 14:29:57

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

There is now an arg translator, it's easy to add your own translations as well. It works similar to the block specs. here is a 'arg translation spec':

Code:

($s 'String')

It's pretty self explanatory if you ask me.

Offline

 

#141 2012-04-26 16:10:28

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Block Files

dreamod wrote:

Greenatic wrote:

"reinitializing custom block specs" blocks have Link Errors (i.e. glitches mentioned above).  Adding blockspecs doesn't seem to make the blocks show up.

Why did I even make those in the first place? I'll just remove them.
What do you mean by "Adding blockspecs doesn't seem to make the blocks show up."

I created a block, but it didn't show up.   tongue

Now adding a block made a syntax error:

CommandBlockMorph   as yet unclassified     <none>
^ Array with: #Unmatched parenthesis ->('Sprites' 'control' ('command spec' #- #Test) with: '^ self'

It seems self-explanatory what the problem is here.   tongue

Last edited by Greenatic (2012-04-26 16:15:20)

Offline

 

#142 2012-04-27 01:20:45

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Greenatic wrote:

dreamod wrote:

Greenatic wrote:

"reinitializing custom block specs" blocks have Link Errors (i.e. glitches mentioned above).  Adding blockspecs doesn't seem to make the blocks show up.

Why did I even make those in the first place? I'll just remove them.
What do you mean by "Adding blockspecs doesn't seem to make the blocks show up."

I created a block, but it didn't show up.   tongue

Now adding a block made a syntax error:

CommandBlockMorph   as yet unclassified     <none>
^ Array with: #Unmatched parenthesis ->('Sprites' 'control' ('command spec' #- #Test) with: '^ self'

It seems self-explanatory what the problem is here.   tongue

Unlike the usually block spec, this one has extra information. the block spec is included in a bigger spec with the category and wether it's for sprites or not. So it has to end with two parentheses.

Offline

 

#143 2012-04-27 09:23:46

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Block Files

dreamod wrote:

Greenatic wrote:

dreamod wrote:


Why did I even make those in the first place? I'll just remove them.
What do you mean by "Adding blockspecs doesn't seem to make the blocks show up."

I created a block, but it didn't show up.   tongue

Now adding a block made a syntax error:

CommandBlockMorph   as yet unclassified     <none>
^ Array with: #Unmatched parenthesis ->('Sprites' 'control' ('command spec' #- #Test) with: '^ self'

It seems self-explanatory what the problem is here.   tongue

Unlike the usually block spec, this one has extra information. the block spec is included in a bigger spec with the category and wether it's for sprites or not. So it has to end with two parentheses.

That was my point.   tongue   Is the bug fixed?

Offline

 

#144 2012-04-27 09:38:22

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Greenatic wrote:

dreamod wrote:

Greenatic wrote:

I created a block, but it didn't show up.   tongue

Now adding a block made a syntax error:

CommandBlockMorph   as yet unclassified     <none>
^ Array with: #Unmatched parenthesis ->('Sprites' 'control' ('command spec' #- #Test) with: '^ self'

It seems self-explanatory what the problem is here.   tongue

Unlike the usually block spec, this one has extra information. the block spec is included in a bigger spec with the category and wether it's for sprites or not. So it has to end with two parentheses.

That was my point.   tongue   Is the bug fixed?

That's not a bug. You're supposed to have two parentheses.
('Sprites' 'control' ('command spec' #- #selector))

Offline

 

#145 2012-04-27 09:51:08

Squawkers13
Scratcher
Registered: 2010-11-20
Posts: 500+

Re: Block Files

dreamod wrote:

Squawkers13 wrote:

dreamod wrote:


It's on my project 'Block Importer 2.0'

it dosent work AT ALL!

What do you mean?

i downloaded it but how do you use it?


http://pekkit.net/banners/pekkit.png

Offline

 

#146 2012-04-27 10:03:23

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Squawkers13 wrote:

dreamod wrote:

Squawkers13 wrote:


it dosent work AT ALL!

What do you mean?

i downloaded it but how do you use it?

You copy the code (it's invisible) from the loose 'say %s' block.
Then you copy it into the workspace and file it in. If you can't do that, than wait about a week for the block importer 2.0 image.

Offline

 

#147 2012-04-27 10:51:26

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Download link here: http://www.mediafire.com/download.php?b1uimly0wq83m3q
The application is based off of the Scratch VM for Mac.

Offline

 

#148 2012-04-27 16:04:41

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Block Files

dreamod wrote:

Greenatic wrote:

dreamod wrote:


Unlike the usually block spec, this one has extra information. the block spec is included in a bigger spec with the category and wether it's for sprites or not. So it has to end with two parentheses.

That was my point.   tongue   Is the bug fixed?

That's not a bug. You're supposed to have two parentheses.
('Sprites' 'control' ('command spec' #- #selector))

Oh, my bad.  I assumed I had typed it correctly.

However, my blocks still aren't appearing in the palette.  No errors are given.

Offline

 

#149 2012-04-27 16:10:16

dreamod
New Scratcher
Registered: 2012-01-22
Posts: 100+

Re: Block Files

Greenatic wrote:

dreamod wrote:

Greenatic wrote:


That was my point.   tongue   Is the bug fixed?

That's not a bug. You're supposed to have two parentheses.
('Sprites' 'control' ('command spec' #- #selector))

Oh, my bad.  I assumed I had typed it correctly.

However, my blocks still aren't appearing in the palette.  No errors are given.

this could be caused by 'broken' arrays. Which somehow are split into symbols and strings which are used to change the category while generating blocks in the ScratchViewerMorph. That also means they're not block specs. The best way to get rid of this is to 're-initialize CustomBlockSpecsDictionary'.

Offline

 

#150 2012-04-27 16:17:57

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Block Files

dreamod wrote:

Greenatic wrote:

dreamod wrote:


That's not a bug. You're supposed to have two parentheses.
('Sprites' 'control' ('command spec' #- #selector))

Oh, my bad.  I assumed I had typed it correctly.

However, my blocks still aren't appearing in the palette.  No errors are given.

this could be caused by 'broken' arrays. Which somehow are split into symbols and strings which are used to change the category while generating blocks in the ScratchViewerMorph. That also means they're not block specs. The best way to get rid of this is to 're-initialize CustomBlockSpecsDictionary'.

That fixed it.  Thanks!   smile

Offline

 

Board footer