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

#26 2010-06-21 17:41:41

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: waiting....

16Skittles wrote:

now it gets only about half  sad  can anyone help?

It seems to stop printing soon after the counter reaches 5000. I think that means there's something wrong with the color2 list. I just opened your project and will try to find the bug now. ^^


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#27 2010-06-21 18:04:17

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: waiting....

Ok, I found the bug!

The scanner reads certain items from the lists depending on the value of the (counter) variable. At the point where (counter) passes the value of 5000, it switches to printing the pixels from color2. This means that the program reads items from the color2 list starting from item 5000, but it needs to start from item 1.

Solution:
replace all (item (counter) of [color2]) reporters with (item ((counter) - (4999)) of [color2])


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#28 2010-06-21 18:23:58

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: waiting....

MyRedNeptune wrote:

Ok, I found the bug!

The scanner reads certain items from the lists depending on the value of the (counter) variable. At the point where (counter) passes the value of 5000, it switches to printing the pixels from color2. This means that the program reads items from the color2 list starting from item 5000, but it needs to start from item 1.

Solution:
replace all (item (counter) of [color2]) reporters with (item ((counter) - (4999)) of [color2])

thanks! I don't know if what I did was this, but I think what I made is simpler than yours though. thanks anyways  wink  I didn't even know you posted until my most recent test started. I've just had scratch on like, all day because it takes so long  tongue  my last test had the first half repeat over and over again it's like someone typing:
FaiFaiFaiFai instead of it getting finished and being Fail.  hmm

Last edited by 16Skittles (2010-06-21 18:26:12)


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#29 2010-06-21 18:28:19

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: waiting....

16Skittles wrote:

MyRedNeptune wrote:

Ok, I found the bug!

The scanner reads certain items from the lists depending on the value of the (counter) variable. At the point where (counter) passes the value of 5000, it switches to printing the pixels from color2. This means that the program reads items from the color2 list starting from item 5000, but it needs to start from item 1.

Solution:
replace all (item (counter) of [color2]) reporters with (item ((counter) - (4999)) of [color2])

thanks! I don't know if what I did was this, but I think what I made is simpler than yours though. thanks anyways  wink

tongue  It didn't add much complexity, just tweaked the values a little. ^^


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#30 2010-06-21 18:34:24

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: waiting....

MyRedNeptune wrote:

16Skittles wrote:

MyRedNeptune wrote:

Ok, I found the bug!

The scanner reads certain items from the lists depending on the value of the (counter) variable. At the point where (counter) passes the value of 5000, it switches to printing the pixels from color2. This means that the program reads items from the color2 list starting from item 5000, but it needs to start from item 1.

Solution:
replace all (item (counter) of [color2]) reporters with (item ((counter) - (4999)) of [color2])

thanks! I don't know if what I did was this, but I think what I made is simpler than yours though. thanks anyways  wink

tongue  It didn't add much complexity, just tweaked the values a little. ^^

UPDATE: okay, I just tested it and it seems to have some minor problems. Please disregard what I said earlier and replace the reporters with (item ((counter) - (length of (color))) of [color2])

Try that, I think it should work good. xD

UPDATE2: I tested that and it works better now but has some distortion prrblems. I wonder what might be causing them... O.o

I'll come back to this tomorrow. I have to get some sleep now Dx


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#31 2010-06-21 20:40:18

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: waiting....

MyRedNeptune wrote:

16Skittles wrote:

MyRedNeptune wrote:

Ok, I found the bug!

The scanner reads certain items from the lists depending on the value of the (counter) variable. At the point where (counter) passes the value of 5000, it switches to printing the pixels from color2. This means that the program reads items from the color2 list starting from item 5000, but it needs to start from item 1.

Solution:
replace all (item (counter) of [color2]) reporters with (item ((counter) - (4999)) of [color2])

thanks! I don't know if what I did was this, but I think what I made is simpler than yours though. thanks anyways  wink

tongue  It didn't add much complexity, just tweaked the values a little. ^^

I didn't mean like that, I didn't mean your script was too difficult, I just removed some forever blocks and made it all one script. once I fix it I can also make it 1s1s.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

Board footer