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

#1 2012-07-30 11:39:41

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

script gets cut off when really long, help please

I was making a 3D rendering of a tower, and here's a screenshot of what happened when my script got very long:
http://oi49.tinypic.com/ilius9.jpg
Note: The red Box was added by me to point out the script.

Is there a way to stop this from happening?

Last edited by AgentRoop (2012-07-30 12:06:02)


La La
I wrote an album.

Offline

 

#2 2012-07-30 12:26:19

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

bump. Please help, I can't figure out how to stop this from happening.


La La
I wrote an album.

Offline

 

#3 2012-07-30 12:27:11

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: script gets cut off when really long, help please

No you cant fix it, thats not a glitch either. It just happens when a script is super long, the way to avoid it to split the script up when you edit it and only put the pieces together at the end.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-07-30 13:10:44

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: script gets cut off when really long, help please

Wes64 wrote:

No you cant fix it, thats not a glitch either. It just happens when a script is super long, the way to avoid it to split the script up when you edit it and only put the pieces together at the end.

It is a bug.
I'm not able to find it, but try searching for a thread by nXIII about this. It has an official answer from Lightnin.

Offline

 

#5 2012-07-30 13:13:37

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

scimonster wrote:

Wes64 wrote:

No you cant fix it, thats not a glitch either. It just happens when a script is super long, the way to avoid it to split the script up when you edit it and only put the pieces together at the end.

It is a bug.
I'm not able to find it, but try searching for a thread by nXIII about this. It has an official answer from Lightnin.

Thanks for the help, I'll be standing by.


La La
I wrote an album.

Offline

 

#6 2012-07-30 13:14:01

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: script gets cut off when really long, help please

I'd recommend just using repeats there instead of doing that, if possible. That way it would take up less space. The cut-off in 1.x Scratch is unavoidable, though.


Posts: 20000 - Show all posts

Offline

 

#7 2012-07-30 13:16:25

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: script gets cut off when really long, help please

veggieman001 wrote:

I'd recommend just using repeats there instead of doing that, if possible. That way it would take up less space. The cut-off in 1.x Scratch is unavoidable, though.

Actually his project is a 3D render, so it is necessary to use single-framing instead of repeats. (if you want it to rotate smoothly)

Last edited by Wes64 (2012-07-30 13:16:43)


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#8 2012-07-30 13:21:00

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: script gets cut off when really long, help please

Wes64 wrote:

veggieman001 wrote:

I'd recommend just using repeats there instead of doing that, if possible. That way it would take up less space. The cut-off in 1.x Scratch is unavoidable, though.

Actually his project is a 3D render, so it is necessary to use single-framing instead of repeats. (if you want it to rotate smoothly)

Ah, okay. Apologies for my ignorance. ^^


Posts: 20000 - Show all posts

Offline

 

#9 2012-07-30 13:27:46

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: script gets cut off when really long, help please

Wes64 wrote:

veggieman001 wrote:

I'd recommend just using repeats there instead of doing that, if possible. That way it would take up less space. The cut-off in 1.x Scratch is unavoidable, though.

Actually his project is a 3D render, so it is necessary to use single-framing instead of repeats. (if you want it to rotate smoothly)

which is why that idea about disabling delay in repeats should be implemented :)

Offline

 

#10 2012-07-30 13:50:29

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

777w wrote:

Wes64 wrote:

veggieman001 wrote:

I'd recommend just using repeats there instead of doing that, if possible. That way it would take up less space. The cut-off in 1.x Scratch is unavoidable, though.

Actually his project is a 3D render, so it is necessary to use single-framing instead of repeats. (if you want it to rotate smoothly)

which is why that idea about disabling delay in repeats should be implemented  smile

yes, that's the problem. The 3D rendering is such a long script, and I need a way to shorten it and make it more efficient, or I need a way around the bug.


La La
I wrote an album.

Offline

 

#11 2012-07-30 16:46:09

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: script gets cut off when really long, help please

They need a check for "atomic" like in byob.


........................................................................................................................................................................................................................................

Offline

 

#12 2012-07-30 17:59:28

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

zubblewu wrote:

They need a check for "atomic" like in byob.

I don't use BYOB.


La La
I wrote an album.

Offline

 

#13 2012-07-30 18:02:45

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: script gets cut off when really long, help please

Slit the script into several parts and use broadcasts


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#14 2012-07-30 18:08:15

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: script gets cut off when really long, help please

I thought of a nice (but sprite consuming) workaround for 2.0. You just divide it into nice sized portions, and make them into procedures. Then, to avoid lag stick them in seperate sprites. It should only have to be a few blocks then.


........................................................................................................................................................................................................................................

Offline

 

#15 2012-07-30 18:15:53

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

joefarebrother wrote:

Slit the script into several parts and use broadcasts

it's a 3d rendering, so broadcasts would take up too much time and it would glitch.


La La
I wrote an album.

Offline

 

#16 2012-07-30 18:19:24

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

zubblewu wrote:

I thought of a nice (but sprite consuming) workaround for 2.0. You just divide it into nice sized portions, and make them into procedures. Then, to avoid lag stick them in seperate sprites. It should only have to be a few blocks then.

that's a good idea, but I'd need 2.0.


La La
I wrote an album.

Offline

 

#17 2012-07-30 18:49:36

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: script gets cut off when really long, help please

I have 2.0, but it wouldn't matter if you did. No saving or anything. But that should work when 2.0 fully comes out  smile


........................................................................................................................................................................................................................................

Offline

 

#18 2012-07-30 18:54:49

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

zubblewu wrote:

I have 2.0, but it wouldn't matter if you did. No saving or anything. But that should work when 2.0 fully comes out  smile

...you have 2.0? WHERE!? > yikes


La La
I wrote an album.

Offline

 

#19 2012-07-30 18:58:07

zubblewu
Scratcher
Registered: 2011-02-17
Posts: 1000+

Re: script gets cut off when really long, help please

AgentRoop wrote:

zubblewu wrote:

I have 2.0, but it wouldn't matter if you did. No saving or anything. But that should work when 2.0 fully comes out  smile

...you have 2.0? WHERE!? > yikes

From http://alpha.scratch.mit.edu/scratchr2/static//Scratch_new.swf. There's a certain thing you have to do but...


........................................................................................................................................................................................................................................

Offline

 

#20 2012-07-30 19:20:30

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: script gets cut off when really long, help please

AgentRoop wrote:

zubblewu wrote:

I have 2.0, but it wouldn't matter if you did. No saving or anything. But that should work when 2.0 fully comes out  smile

...you have 2.0? WHERE!? > yikes

I have it too put paddle told us not to acces it.


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#21 2012-07-31 02:17:12

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: script gets cut off when really long, help please

ftf841 wrote:

AgentRoop wrote:

zubblewu wrote:

I have 2.0, but it wouldn't matter if you did. No saving or anything. But that should work when 2.0 fully comes out  smile

...you have 2.0? WHERE!? > yikes

I have it too put paddle told us not to acces it.

Use a code.


internet's all about cats today.

Offline

 

#22 2012-07-31 05:49:12

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: script gets cut off when really long, help please

2.0's saving function is working (I have access but use it very rarely.)

Another thing you might want to know is that, as mentioned before, procedures will make this possible; 3D rendering scripts will work much better. I can verify by sending a video, though.

You might want to edit the scripts as separate pieces and then join them together, bottom to top, in your forever loop. The cutting only happens if a single script is too long, and it only happens for that piece, so try breaking it into smaller pieces and assembling it later.  smile


http://i50.tinypic.com/312u714.jpg

Offline

 

#23 2012-07-31 09:56:08

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: script gets cut off when really long, help please

soniku3 wrote:

ftf841 wrote:

AgentRoop wrote:


...you have 2.0? WHERE!? > yikes

I have it too put paddle told us not to acces it.

Use a code.

use js


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#24 2012-08-01 21:36:36

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: script gets cut off when really long, help please

BirdByte wrote:

2.0's saving function is working (I have access but use it very rarely.)

Another thing you might want to know is that, as mentioned before, procedures will make this possible; 3D rendering scripts will work much better. I can verify by sending a video, though.

You might want to edit the scripts as separate pieces and then join them together, bottom to top, in your forever loop. The cutting only happens if a single script is too long, and it only happens for that piece, so try breaking it into smaller pieces and assembling it later.  smile

thank you.  smile


La La
I wrote an album.

Offline

 

Board footer