#Infinite looping
1 messages · Page 1 of 1 (latest)
Hard close MT and hope autosave saves you.
whelp. Is there a way to make a macro fire of every 30 seconds for like 5 minutes then?
Did you actually cause an infinite loop, MTScript has a built in loop ceiling that should kill the macro so I wonder how you managed to not get caught by that
yes i did :/
using defered macros
[h: id = currentToken()]
[h: loopamount = loopamount-1]
[h, if (loopamount > 0), code:{
[h: link = macrolinktext("turn2@lib:rock","none",loopamount,id)]
[h: execLink(link, 1)]
};{}]
but i messed up the if condition
well... I think
yeah defered macro is run an new macro... 😦
managed to get it to run. I was trying to make some kind of animation with a rotating token.
For some reason it absolutely lag the whole thing (even when it dosnt loop infinitely)
Anyway I dropped the whole thing, was a dumb attempt
The map rendering lagged?
yea, rotation where super choppy
Can't say it would have interrupted this particular looping issue... but in the past I've had some success with holding down the ESC key while the loop is in progress.
for animation purposes if you could delay how long of a delay would you want, because that would also be choppy
MTScript wouldn't be reliable with < 1 second timers
probably that yea
delay loop was like 200 ms
nah, checked, when i start 2 rotating object the whole interfac elag
even zooming in/out
yeah, sadly MTScript runs on the GUI thread, so you have
Script->Refresh Map->Script->Refresh Map->... (and so on) so other UI messages like zoom, menus macro buttons get interspersed between that meaning they could take a while to process
Wait for the auto-save time to pass before killing it.
Find the feature request for a macro killing button or key combo and vote me too.
I'd done a good bit of playing around with token rotation and animation.
Locally, things are good, but for remote players, token rotation has always been choppy. The timing is a busy loop.
I can point you to the code bits in ActionPads if you're interested.
Another example with two tokens:
Animation will never work for tokens over a network. You have no control over the timing.
I know in 1.11.5 remote performance in my testing was pretty good, but you're correct, it will never be "really good".
In 1.12.x performance went down to a really choppy remote experience.
I haven't d-loaded the 1.15 (still on 1.15.rc3), performance seems "really good" via a LAN but yeah, network remoteness will be a problem
The one thing on my list was to use CSS instead of the token (like lib:slide or the dice).
@zealous patrol stop spending your time on it and get smart, learn Java, and implment agif and webp in MT code