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

#1 2010-02-24 11:47:18

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Long Scripts are Truncated

OK, I am making a 1s1s project with a fairly long script. If I scroll down past a certain point, the script just stops rendering at that certain point. I tried dragging a block out from past that point, and it became visible again and followed my mouse around perfectly normally until I dropped it somewhere else. Does anyone know how to fix this? (Not being able to see the scripts is a bit of an inconvenience...)

Screenshot:

http://i45.tinypic.com/28ip7k2.png

Last edited by nXIII (2010-02-24 11:58:22)


nXIII

Offline

 

#2 2010-02-25 04:16:00

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Long Scripts are Truncated

Off-topic: What are those blocks at the blocks palette?

Offline

 

#3 2010-02-25 04:28:43

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Long Scripts are Truncated

Off topic: It has to do with this, I think...

On topic: For long scripts, sometimes it can go far enough that you reach a point in which it can't... I don't know the perfect way to say this.  hmm


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#4 2010-02-25 04:46:09

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Long Scripts are Truncated

mathematics wrote:

Off-topic: What are those blocks at the blocks palette?

That's either BYOB or blocks created by changing the Scratch code.


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#5 2010-02-26 16:36:59

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Long Scripts are Truncated

mathematics wrote:

Off-topic: What are those blocks at the blocks palette?

Yea... they are blocks I made by modifying the blockSpecs. Interestingly enough, all of them use already-defined functions. I find them very useful, along with my 'sprite name' blocks, etc.

Last edited by nXIII (2010-02-26 16:38:03)


nXIII

Offline

 

#6 2010-02-26 22:24:13

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Long Scripts are Truncated

nXIII wrote:

mathematics wrote:

Off-topic: What are those blocks at the blocks palette?

Yea... they are blocks I made by modifying the blockSpecs. Interestingly enough, all of them use already-defined functions. I find them very useful, along with my 'sprite name' blocks, etc.

Could you list your collection? I would like to see them.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#7 2010-02-27 00:52:05

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Long Scripts are Truncated

nXIII wrote:

mathematics wrote:

Off-topic: What are those blocks at the blocks palette?

Yea... they are blocks I made by modifying the blockSpecs. Interestingly enough, all of them use already-defined functions. I find them very useful, along with my 'sprite name' blocks, etc.

For some of those made-up blocks, couldn't you just use a list?  hmm


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#8 2010-02-27 09:25:15

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: Long Scripts are Truncated

mathematics wrote:

Off-topic: What are those blocks at the blocks palette?

http://i45.tinypic.com/28ip7k2.png <---- There's the pic.

Last edited by scratch_yoshi (2010-04-11 21:00:29)


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

#9 2010-02-27 16:18:33

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Long Scripts are Truncated

Jonathanpb wrote:

For some of those made-up blocks, couldn't you just use a list?

Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...


nXIII

Offline

 

#10 2010-02-27 16:25:29

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Long Scripts are Truncated

nXIII wrote:

Jonathanpb wrote:

For some of those made-up blocks, couldn't you just use a list?

Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...

I just can't figure out how to make the blocks actually work... i know how to make them, though.

Offline

 

#11 2010-02-27 19:17:33

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Long Scripts are Truncated

The-Whiz wrote:

nXIII wrote:

Jonathanpb wrote:

For some of those made-up blocks, couldn't you just use a list?

Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...

I just can't figure out how to make the blocks actually work... i know how to make them, though.

But you're a Whiz! You have to know!  yikes

I wish I knew.  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#12 2010-02-27 20:02:18

3-14159265358979323
Scratcher
Registered: 2009-11-22
Posts: 14

Re: Long Scripts are Truncated

yes it's annoying! this is what i did ,i used [blocks]<move( 10 )steps>[/blocks] about 4096 times and about 15/4096 remains hidden and when i clicked on it ,you just cant move the mouse-pointer for about 1 sec. and it hides again                                                                                                                                                                    any ideas??  smile  smile

Last edited by 3-14159265358979323 (2010-02-27 20:04:40)

Offline

 

#13 2010-02-27 20:33:12

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Long Scripts are Truncated

The-Whiz wrote:

nXIII wrote:

Jonathanpb wrote:

For some of those made-up blocks, couldn't you just use a list?

Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...

I just can't figure out how to make the blocks actually work... i know how to make them, though.

OK, now that I have BBCode and no 500-character limit:

1. Turn fill screen off (by shift-clicking on the R in the Scratch logo)

2. a) Open the world menu by clicking in the whitespace
    b) Click Open..., browser

3. You can make the window that pops up a bit bigger, if you want, by clicking near the corner and dragging, or click the menu icon near the top left and selecting fullscreen.

4. Select Scratch-Objects, then:
    a) Click ScriptableScratchMorph if you want your block available to both the stage and the sprites
    b) Click ScratchSpriteMorph if you want your block to be available to just the sprites
    c) Click ScratchStageMorph if you want your block to be available to just the stage

5. Click the category you would like to put the function in (or ctrl-click and click new category...

6. In the bottom panel, delete the selected text

7. Type the function name in the following format:

name: t1 nameContinued: t2

Where name and nameContinued make up the name of the function (split between the arguments, t1 and t2)
For example:

setVar: t1 to: t2

8. If you use temporary variables in your function, on the next line put the variables, separated by spaces, between two '|'s. For example:

| t3 t4 t5 |

9. On the next line, write your code, for example: (this opens a SystemWindow with the given label, sorry I didn't have time to make it display text too)

openWindow: t1
    | window |
    window _ SystemWindow new.
    window setLabel: t1 asString.
    window openInWorld: World

VERY IMPORTANT NOTE: the _ (underscore) character is used for assignment; it appears as a left-pointing arrow.

10. Press alt + s to save your changes

11. Click class where you see the three buttons instance, ?, and class

12. Add to the blockSpecs the correct spec for you block, with the format:

('spec %s etc.' #symbol #callToMethod 'defaultArg')

For example (using my method above):

('open window (label %s)' #- #openWindow: 'A Window!')

See this forum topic for specifics on making blockSpecs

13. Press alt + s again

14. Close all windows and turn fill screen back on

15. Click your new block to test if it runs properly

Last edited by nXIII (2010-02-27 20:36:53)


nXIII

Offline

 

#14 2010-02-27 20:41:24

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Long Scripts are Truncated

3-14159265358979323 wrote:

yes it's annoying! this is what i did ,i used [blocks]<move( 10 )steps>[/blocks] about 4096 times and about 15/4096 remains hidden and when i clicked on it ,you just cant move the mouse-pointer for about 1 sec. and it hides again                                                                                                                                                                    any ideas??  smile  smile

That's my problem. The delay when you click it is because it is doing something with the script you're taking it out of, and the scripts are hidden for the same reason mine are.


nXIII

Offline

 

#15 2010-02-27 21:08:38

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Long Scripts are Truncated

nXIII wrote:

The-Whiz wrote:

nXIII wrote:


Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...

I just can't figure out how to make the blocks actually work... i know how to make them, though.

OK, now that I have BBCode and no 500-character limit:

1. Turn fill screen off (by shift-clicking on the R in the Scratch logo...

Wow... thanks!


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#16 2010-02-27 21:24:40

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Long Scripts are Truncated

<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>

I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?

Without answers, I won't be able to help you.

Offline

 

#17 2010-02-27 21:25:57

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Long Scripts are Truncated

ThePCKid wrote:

<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>

I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?

Without answers, I won't be able to help you.

Um... XP, 2GB, kind of.


nXIII

Offline

 

#18 2010-02-27 21:28:50

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Long Scripts are Truncated

nXIII wrote:

ThePCKid wrote:

<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>

I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?

Without answers, I won't be able to help you.

Um... XP, 2GB, kind of.

Okay uhh...

#1: Have you tried a newer version of Windows?
#2: That is the same amount of RAM that I have!
#3: You might have to optimize it a bit more... *long pause*

Offline

 

#19 2010-02-28 09:51:01

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Long Scripts are Truncated

ThePCKid wrote:

nXIII wrote:

ThePCKid wrote:

<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>

I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?

Without answers, I won't be able to help you.

Um... XP, 2GB, kind of.

Okay uhh...

#1: Have you tried a newer version of Windows?
#2: That is the same amount of RAM that I have!
#3: You might have to optimize it a bit more... *long pause*

It has nothing to do with what OS he's running, it happened to my Mac.

Offline

 

#20 2010-02-28 10:20:46

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Long Scripts are Truncated

The-Whiz wrote:

ThePCKid wrote:

nXIII wrote:


Um... XP, 2GB, kind of.

Okay uhh...

#1: Have you tried a newer version of Windows?
#2: That is the same amount of RAM that I have!
#3: You might have to optimize it a bit more... *long pause*

It has nothing to do with what OS he's running, it happened to my Mac.

Hey The-Whiz, IT HAPPENED TO ME TOO!!! (BTW I use Vista)

Offline

 

#21 2010-02-28 10:58:47

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Long Scripts are Truncated

This is getting off-topic ...

Offline

 

#22 2010-02-28 12:38:09

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Long Scripts are Truncated

<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>

Stop getting off topic, please.

Offline

 

#23 2010-02-28 14:05:18

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Long Scripts are Truncated

ThePCKid...
XP is one of the slim-est OS's. It's better to use XP than Vista or 7.

Mathematics...
It isn't really that off-topic. I posted a screenshot with nonexistent blocks, so what would you expect?


nXIII

Offline

 

#24 2010-02-28 14:33:12

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Long Scripts are Truncated

nXIII wrote:

XP is one of the slim-est OS's. It's better to use XP than Vista or 7.

Your right! *smacks myself in my face*

Offline

 

#25 2010-03-01 08:54:20

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Long Scripts are Truncated

Yes - this is a bit of a glitch.  smile
Scratch sets aside a certain size memory buffer in which to store the image for each Script. When we designed it, we never imagined that 1S1S would become a trend, so we just set it to a size which, for most projects that use multiple scripts, is way more than you'd ever need. But with large 1S1S projects, that limit is sometimes crossed. So the picture of the script just ends.  oops!

I think RHY mentioned that they actually code things in two scripts, and then stick them together just at the end. So you could try that technique. Hope that helps  smile


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

Board footer