16Skittles wrote:
now it gets only about half
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. ^^
Offline
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])
Offline
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
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
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.
Last edited by 16Skittles (2010-06-21 18:26:12)
Offline
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
![]()
It didn't add much complexity, just tweaked the values a little. ^^
Offline
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
![]()
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
Offline
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
![]()
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.
Offline