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

#2626 2012-03-26 18:08:13

eggwin1
Scratcher
Registered: 2011-09-29
Posts: 4

Re: ITopic: Welcome to your local block library!

hi

Offline

 

#2627 2012-03-26 18:20:34

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

Re: ITopic: Welcome to your local block library!

joletole wrote:

Greenatic wrote:

joletole wrote:

Also, one more thing. I want to add a block. I am still confused on how to make the block, so could you change it so it looks like a sound block. Here is the block:

stop sound [meow v] for (1) sec
What this block does:
It stops the sound for 1 seconds. Then, after the 1 second, starts playing the song again.

Do you have code for it?  Or are you requesting it?  (Also, making it pink like a sound block requires images.) 

If you want us to code it:  when it starts playing again, should it restart or pick up where it left off?

Could you code it, I am very bad at coding.  And it would pick up where it left off.

I can't seem to find a way to pause a method without pausing all of Scratch...   hmm

Offline

 

#2628 2012-03-27 03:17:00

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

Re: ITopic: Welcome to your local block library!

Squawkers13 wrote:

Shared by SSSS
Blockspec:

    ('Import theme %s') #- #themepacks:)

Code:

    themepacks: t1
        ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: t1)

What this block does:
You download the ScratchSkin, edit it, then you can use this block to import the skin during a project.




THIS DOES NOT WORK!!!

It seems you've made a typo.

Code:

('Import theme %s')#- #themepacks:)

should be:

Code:

('Import theme %s' #- #themepacks:)

Because wether you noticed it or not, there are 3 parentheses in the block spec instead of 2!

Offline

 

#2629 2012-03-27 04:22:23

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ITopic: Welcome to your local block library!

dreamod wrote:

Squawkers13 wrote:

Shared by SSSS
Blockspec:

    ('Import theme %s') #- #themepacks:)

Code:

    themepacks: t1
        ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: t1)

What this block does:
You download the ScratchSkin, edit it, then you can use this block to import the skin during a project.




THIS DOES NOT WORK!!!

It seems you've made a typo.

Code:

('Import theme %s')#- #themepacks:)

should be:

Code:

('Import theme %s' #- #themepacks:)

Because wether you noticed it or not, there are 3 parentheses in the block spec instead of 2!

Now someone should make a

download theme from [url]
block lol. It would also be useful sometimes if there were a Theme Library.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2630 2012-03-27 10:34:17

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

Re: ITopic: Welcome to your local block library!

If you make a block like this:

Download Scratch Themepack    [    v]
(the v is a dropdown bar)
it would add a function to download new themes into Squeak, the block would select one for importing, and you could also create and upload themes by installing a plugin which works with all mods!


Simplified:
a plugin which adds a toolbar to:
Upload themes
Create themes
Download themes (the block)


They would be made to work for all mods.

Click me!

Last edited by Squawkers13 (2012-04-04 10:54:40)


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

Offline

 

#2631 2012-03-27 10:41:13

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

joletole wrote:

Greenatic wrote:


Do you have code for it?  Or are you requesting it?  (Also, making it pink like a sound block requires images.) 

If you want us to code it:  when it starts playing again, should it restart or pick up where it left off?

Could you code it, I am very bad at coding.  And it would pick up where it left off.

I can't seem to find a way to pause a method without pausing all of Scratch...   hmm

Try making it into a ('mute sound for (1) sec'  #- mutesound)


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

Offline

 

#2632 2012-03-27 17:07:10

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

Re: ITopic: Welcome to your local block library!

Squawkers13 wrote:

Greenatic wrote:

joletole wrote:


Could you code it, I am very bad at coding.  And it would pick up where it left off.

I can't seem to find a way to pause a method without pausing all of Scratch...   hmm

Try making it into a ('mute sound for (1) sec'  #- mutesound)

That would still require making it wait, which is what I can't figure out.   hmm

Offline

 

#2633 2012-03-27 17:20:57

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

Squawkers13 wrote:

Greenatic wrote:


I can't seem to find a way to pause a method without pausing all of Scratch...   hmm

Try making it into a ('mute sound for (1) sec'  #- mutesound)

That would still require making it wait, which is what I can't figure out.   hmm

Is it possible to just set the volume of that sound to zero for whatever seconds?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#2634 2012-03-27 19:33:50

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

Re: ITopic: Welcome to your local block library!

technoboy10 wrote:

Greenatic wrote:

Squawkers13 wrote:


Try making it into a ('mute sound for (1) sec'  #- mutesound)

That would still require making it wait, which is what I can't figure out.   hmm

Is it possible to just set the volume of that sound to zero for whatever seconds?

The key part is doing it for ___ seconds.  I even tried telling it to wait based on the system clock, but that paused other things as well.   sad

Offline

 

#2635 2012-03-28 10:00:50

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

Re: ITopic: Welcome to your local block library!

nathanprocks wrote:

Squawkers13 wrote:

This Currently Is On A Planning Stage.

Is this going to be a patch file to add a

download theme [id v]
block? Because I figured out that you can apply a skin without saving the image first. (That means if the theme doesn't work as expected, you don't have to use a backup or start again!)

hey block library...

Last edited by Squawkers13 (2012-03-28 10:01:10)


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

Offline

 

#2636 2012-04-04 04:48:38

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

Re: ITopic: Welcome to your local block library!

I've just started my easter holidays so I'm assuming most of you are too. There's a big job for the librarians who are free, I'll be taking part too, but here's the thing:

Images are being brought back to the fora, but they're only allowed to be from certain hosts to make sure they're safe.

Our block images are currently hosted all over the place, and most of them are not safe, so I want to move them all to blocks.scratcher.org

I need to wait for

a)lightnin to whitelist the site and
b) for me to make an image uploader on the blocks site for librarians

let me know if you're up for it!


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

Offline

 

#2637 2012-04-04 05:17:58

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

Re: ITopic: Welcome to your local block library!

*makes weird noise something between a gasp and a cough*
What? Images? Yay!


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

Offline

 

#2638 2012-04-04 09:42:59

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: ITopic: Welcome to your local block library!

Finally! Now (well... soon) I can use the block library again!  smile

Last edited by LiquidMetal (2012-04-04 09:43:11)

Offline

 

#2639 2012-04-04 10:55:56

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

Re: ITopic: Welcome to your local block library!

Squawkers13 wrote:

nathanprocks wrote:

Squawkers13 wrote:

This Currently Is On A Planning Stage.

Is this going to be a patch file to add a

download theme [id v]
block? Because I figured out that you can apply a skin without saving the image first. (That means if the theme doesn't work as expected, you don't have to use a backup or start again!)

hey block library...

THIS IS A BLOCK REQUEST!


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

Offline

 

#2640 2012-04-04 13:05:11

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

Re: ITopic: Welcome to your local block library!

Squawkers13 wrote:

Squawkers13 wrote:

nathanprocks wrote:


Is this going to be a patch file to add a

download theme [id v]
block? Because I figured out that you can apply a skin without saving the image first. (That means if the theme doesn't work as expected, you don't have to use a backup or start again!)

hey block library...

THIS IS A BLOCK REQUEST!

Sorry Squawkers, you didn't submit the request reminder in the correct format (i.e. shouted) so our servers were unable to understand you. Please try again meeting the format requirements.

~~automated message.


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

Offline

 

#2641 2012-04-04 13:19:30

MrMonk999
Scratcher
Registered: 2011-12-17
Posts: 500+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Squawkers13 wrote:

Squawkers13 wrote:


hey block library...

THIS IS A BLOCK REQUEST!

Sorry Squawkers, you didn't submit the request reminder in the correct format (i.e. shouted) so our servers were unable to understand you. Please try again meeting the format requirements.

~~automated message.

Automated message?? How did you do that??


http://i.imgur.com/CAMJe.png

Offline

 

#2642 2012-04-04 14:36:20

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: ITopic: Welcome to your local block library!

MrMonk999 wrote:

sparks wrote:

Squawkers13 wrote:


THIS IS A BLOCK REQUEST!

Sorry Squawkers, you didn't submit the request reminder in the correct format (i.e. shouted) so our servers were unable to understand you. Please try again meeting the format requirements.

~~automated message.

Automated message?? How did you do that??

lol, he's joking.


http://i.imgur.com/zeIZW.png

Offline

 

#2643 2012-04-04 17:08:36

MrMonk999
Scratcher
Registered: 2011-12-17
Posts: 500+

Re: ITopic: Welcome to your local block library!

rookwood101 wrote:

MrMonk999 wrote:

sparks wrote:


Sorry Squawkers, you didn't submit the request reminder in the correct format (i.e. shouted) so our servers were unable to understand you. Please try again meeting the format requirements.

~~automated message.

Automated message?? How did you do that??

lol, he's joking.

oh. I was like "what the what????"


http://i.imgur.com/CAMJe.png

Offline

 

#2644 2012-04-04 18:44:39

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Squawkers13 wrote:

Squawkers13 wrote:

hey block library...

THIS IS A BLOCK REQUEST!

Sorry Squawkers, you didn't submit the request reminder in the correct format (i.e. shouted) so our servers were unable to understand you. Please try again meeting the format requirements.

~~automated message.

block request

Last edited by Squawkers13 (2012-04-04 18:45:24)


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

Offline

 

#2645 2012-04-05 15:55:20

djdolphin
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: ITopic: Welcome to your local block library!

I'd like to request a

open project [test.pt]
block for Panther.

Last edited by djdolphin (2012-04-05 17:05:47)

Offline

 

#2646 2012-04-05 17:16:34

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

I've just started my easter holidays so I'm assuming most of you are too. There's a big job for the librarians who are free, I'll be taking part too, but here's the thing:

Images are being brought back to the fora, but they're only allowed to be from certain hosts to make sure they're safe.

Our block images are currently hosted all over the place, and most of them are not safe, so I want to move them all to blocks.scratcher.org

I need to wait for

a)lightnin to whitelist the site and
b) for me to make an image uploader on the blocks site for librarians

let me know if you're up for it!

There's a problem, Sparks.

In Lightnin's post, it's checked at post time, meaning that new posts or editing posts triggers the filter.  ...You know what that means.   sad

It might be best to hold off on an update until we have a working blockspec parser.

Last edited by Greenatic (2012-04-05 17:18:17)

Offline

 

#2647 2012-04-05 17:48:04

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

sparks wrote:

I've just started my easter holidays so I'm assuming most of you are too. There's a big job for the librarians who are free, I'll be taking part too, but here's the thing:

Images are being brought back to the fora, but they're only allowed to be from certain hosts to make sure they're safe.

Our block images are currently hosted all over the place, and most of them are not safe, so I want to move them all to blocks.scratcher.org

I need to wait for

a)lightnin to whitelist the site and
b) for me to make an image uploader on the blocks site for librarians

let me know if you're up for it!

There's a problem, Sparks.

In Lightnin's post, it's checked at post time, meaning that new posts or editing posts triggers the filter.  ...You know what that means.   sad

It might be best to hold off on an update until we have a working blockspec parser.

Yup, which is why we need to wait for blocks.scratchr.org to be whitelisted. Then we can take the time and move all the images to their safe new home  smile


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

Offline

 

#2648 2012-04-06 09:49:35

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I made a block:

(ask for file with title [Choose a file] accepting extensions [txt doc])
Block Spec Code:

Code:

('ask for file with title %s with extension(s) %s'    #r #fileDlg:withExts: 'What file?' 'txt')

Actual code:

Code:

fileDlg: t1 withExts: t2     
    | t3 |
    t3 _ ScratchFileChooserDialog
        chooseExistingFileType: #any
        "extensions: (Array with: t2)"
        extensions: (t2 findTokens: ' ')
        title: t1.
    t3 = 'cancelled'
        ifTrue:[^ false]
        ifFalse:[^ t3].

http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2649 2012-04-07 05:29:30

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ITopic: Welcome to your local block library!

jvvg wrote:

I made a block:

(ask for file with title [Choose a file] accepting extensions [txt doc])
Block Spec Code:

Code:

('ask for file with title %s with extension(s) %s'    #r #fileDlg:withExts: 'What file?' 'txt')

Actual code:

Code:

fileDlg: t1 withExts: t2     
    | t3 |
    t3 _ ScratchFileChooserDialog
        chooseExistingFileType: #any
        "extensions: (Array with: t2)"
        extensions: (t2 findTokens: ' ')
        title: t1.
    t3 = 'cancelled'
        ifTrue:[^ false]
        ifFalse:[^ t3].

Cool. That is useful for reading/writing files.  big_smile


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2650 2012-04-07 20:14:58

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nathanprocks wrote:

jvvg wrote:

I made a block:

(ask for file with title [Choose a file] accepting extensions [txt doc])
Block Spec Code:

Code:

('ask for file with title %s with extension(s) %s'    #r #fileDlg:withExts: 'What file?' 'txt')

Actual code:

Code:

fileDlg: t1 withExts: t2     
    | t3 |
    t3 _ ScratchFileChooserDialog
        chooseExistingFileType: #any
        "extensions: (Array with: t2)"
        extensions: (t2 findTokens: ' ')
        title: t1.
    t3 = 'cancelled'
        ifTrue:[^ false]
        ifFalse:[^ t3].

Cool. That is useful for reading/writing files.  big_smile

It's one of the few blocks in my mod that was completely original. Most were ripped from other mods or made by someone else.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer