CommandFlow drafts
Hey, guys!
We decided to switch our current project from RL1 to RL2.
Everything went smooth so far, but now we need some tool for clear
and straightforward way of command sequencing. In our RL1 projects
we always used excellent MacroBot lib by Aaron Hardy. I have read
some pieces of discussions about CommandFlow at robotlegs' issues
tracker, but as far as I understood it was eliminated from codebase
for some reason. So, now I have to make decision between to
options: rewrite MacroBot to let it work in RL2 environment, or get
some CommandFlow drafts and tune it a bit.
Here my questions. Why CommandFlow was eliminated? Where could I get it's drafts? Is it a best-practice to use such tools (CommandFlow, MacroBot, etc.) for commands sequencing? =)
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Ondina D.F. on 07 Feb, 2013 03:59 PM
Hi pa3,
I think, Shaun could answer your question much better than me.
As far as I know, Shaun is currently intensively working on rl2’s release, but hopefully he’ll find some time to give you an overview of the new possibilities that rl2 offers regarding commands in general, and async processes, or sequencing of commands in particular. Until then, I suggest taking a look at this utility:
https://github.com/FranklinCovey/RL2-SimpleCommand
I haven’t had a chance to use it or even study it properly, so, you’ll have to decide for yourself, whether it is something you can use, directly or as an inspiration.
And, by all means, if you can write a better utility or port the old ones to rl2, we’d be glad to have it/them :)
Of course, everyone is invited to chime in with a suggestion or an example!
Ondina
Support Staff 2 Posted by creynders on 10 Feb, 2013 06:51 PM
@pa3 How soon do you need this? I've been working on an extensive RL2 command sequencer, but am a bit swamped with work at the moment.
3 Posted by pa3 on 11 Feb, 2013 05:31 AM
@Ondina Thanks for the link! I am not excited about design of SimpleCommand, but in general it's good and simple substitute for MacroBot. For now I will use it instead of MacroBot, but still it's damn interesting to read some Shaun's insights about how to deal with asynchronous and sequential stuff.
@creynders As I've already said I'd decided to switch to SimpleCommand at the moment. But I certainly will look forward for your sequencing solution. I'm following you on github, so I think I won't miss it's release. =)
Support Staff 4 Posted by Ondina D.F. on 12 Feb, 2013 12:25 PM
Hi pa3,
I’ve found the CommandFlow:
https://github.com/robotlegs/robotlegs-framework/tree/779420740432b...
https://github.com/robotlegs/robotlegs-framework/tree/779420740432b...
+1
Ondina
Support Staff 5 Posted by Shaun Smith on 27 Feb, 2013 10:24 PM
You should investigate Promises (the proper ones, not the terrible attempt I made some years ago):
http://domenic.me/2012/10/14/youre-missing-the-point-of-promises/
There's a decent AS3 implementation here:
https://github.com/CodeCatalyst/promise-as3
Promises provide a way to compose asynchronous operations whilst keeping a somewhat sane approach to error handling.
Support Staff 6 Posted by Ondina D.F. on 11 Mar, 2013 02:31 PM
@pa3 I’m closing this thread for now. Don’t hesitate to reopen it, if need be.
Ondina D.F. closed this discussion on 11 Mar, 2013 02:31 PM.