michael-n-kaplan / ta-scripts

Some scripts for tele-arena, tintin++ based to start
4 stars 0 forks source link

Movement not multicall safe #1

Open michael-n-kaplan opened 10 years ago

michael-n-kaplan commented 10 years ago

TODO: runpath is not thread / multi-call safe. If called multiple times, chaos can ensue. Need to add a check so "runpath" fails if another is already in progress. Or append to the end of the existing runpath ISSUES: global variables: next_step (number of path step) mpath (list of steps) ... these are an issue if say "t1food" is called while running "t1heal", since now we're not at the known start location QUESTION: is tt++ threaded? or can I treat #list add as an atomic operation that won't be interuppted?

michael-n-kaplan commented 10 years ago

ex: change #list mpath create to #list mpath add

change step counter to #list mpath get 1

change step increment to #list mpath delete 1