It is currently April 18th, 2024, 5:44 am
MWA release 1.0
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: MWA release 1.0
Cute. Too bad Chipzilla didn't test it to see that using Counter that way will count from 0-8 and he has images from 1-8 so it "blinks" and floods the log with errors.
-
- Rainmeter Sage
- Posts: 16143
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: MWA release 1.0
In fact the measure counted from 0 to 7, not to 8 and because of this, beside the blinking, the last image never appeared (I'm talking about the first version, which in the meantime was removed by dvo).jsmorley wrote:Cute. Too bad Chipzilla didn't test it to see that using Counter that way will count from 0-8 and he has images from 1-8 so it "blinks" and floods the log with errors.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: MWA release 1.0
Right. He is still missing image 8.png, due to how Counter counts from 0 and not 1, and modulo math in this case means go back to zero when it "IS 8", not "WAS 8". Also, rather than just creating a copy of 1.png as 0.png, which causes a little "pause", he could use either of these two measures:
[ImageNumberCalc]
Measure=Loop
StartValue=1
EndValue=8
[ImageNumberCalc]
Measure=Calc
Formula=(ImageNumberCalc % 8) + 1
Note, to use the Counter variable exactly as he had it, and not have to change the code at all, he could have simply renamed 8.png to 0.png. Then it would be 0-1-2-3-4-5-6-7-0... and since it is just a "looping" animation, that would be fine. No particular one of them has to be the "starting point", they just need to be in order.
[ImageNumberCalc]
Measure=Loop
StartValue=1
EndValue=8
[ImageNumberCalc]
Measure=Calc
Formula=(ImageNumberCalc % 8) + 1
Note, to use the Counter variable exactly as he had it, and not have to change the code at all, he could have simply renamed 8.png to 0.png. Then it would be 0-1-2-3-4-5-6-7-0... and since it is just a "looping" animation, that would be fine. No particular one of them has to be the "starting point", they just need to be in order.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: MWA release 1.0
Well yeah, but I did say "either" of those two measures, not "both"...dvo wrote:i believe the loop is now oke ...
The second one is ignored, but you don't need it.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: MWA release 1.0
The second one is ignored, but you don't need it.dvo wrote:it still works fine lol
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: MWA release 1.0
Nothing like putting out something quick and cute and having a gang of nerds nitpick you to death eh?
"When you're a Bit, you're a Bit all the way. From your first endless loop, to your last math array..."
"When you're a Bit, you're a Bit all the way. From your first endless loop, to your last math array..."