QeMistry Queue Manager
Posted: Thu Mar 17, 2011 8:01 am
I've been sitting on this for quite a while, and finally decided to post it here one bored evening.
This is a Queue Manager, for handling multiple actions you might like to take in sequence. It was designed with a balance-based MuD in mind (the IRE MuDs, specifically), but it's generic enough to work with any MuD; it can be used with or without a flag-variable of some sort. There is no fancy logic in here; it's a fairly straightforward FIFO list, save that it will distinguish between actions that require balance and those that consume balance, and execute all actions that only require balance first.
Below is the guide, as found in the package itself:
Alternatively, you can send me a PM, but if it's a question you think might be of benefit to all involved, it'd be better to leave it here.
And, who knows, if this proves popular I might be motivated enough to finally finish my GUI framework I've been sitting on for a long, long time.
Updated April 2011:
This is a Queue Manager, for handling multiple actions you might like to take in sequence. It was designed with a balance-based MuD in mind (the IRE MuDs, specifically), but it's generic enough to work with any MuD; it can be used with or without a flag-variable of some sort. There is no fancy logic in here; it's a fairly straightforward FIFO list, save that it will distinguish between actions that require balance and those that consume balance, and execute all actions that only require balance first.
Below is the guide, as found in the package itself:
As always, post here if you have questions, find bugs, or require some feature (I have in mind automatic actions that execute between other actions, for example). I will respond to inquires and concerns, and I may be motivated to add features based on interest.
Alternatively, you can send me a PM, but if it's a question you think might be of benefit to all involved, it'd be better to leave it here.
And, who knows, if this proves popular I might be motivated enough to finally finish my GUI framework I've been sitting on for a long, long time.
Updated April 2011:
- Added support for options:
- strict_order: Will preserve the order of actions in the queue, regardless of balance consumption.
- single_step: Will only execute a single action at a time.
- Added support for functions in balance fields.
- Fixed a bug in getField(); was trying to pass a table to gfind, which it did not appreciate.
- Removed some leftover debug messages, which were probably annoying. Hopefully, I didn't repeat that mistake.
- Fixed a bug in the tempTimer generated by consumed actions. Specifically, the table version was incorrectly judging whether or not the action needed to be re-executed if it used multiple balances.