Forums » Community Projects

DockWorker Plugin

Jan 30, 2012 PaKettle link
Automated repair, replenishment, and cargo loading.
Replaces the URR and Cpreset plugins

http://www.zumodrive.com/share/fuNzODI4OW

Comments, feature requests and bug reports are welcome
Jan 31, 2012 meridian link
As a fellow writer of plug-ins, I have to take exception to how you are cluttering up the global namespace with lots of global functions. I counted 35 different global functions used, and with generic names like GetMode() it could cause problems if another plugin author were to decide to name their own global function the same. GetDockWorkerMode() would be a bit more tolerable, but even better would be DockWorker.GetMode().

Also, it seems that you are aiming to incorporate features similar to MfgAide on your todo list. I don't mind if you borrow from it (just don't copy/paste code directly). Also note I plan to release a very minor update shortly to address an issue that has been brought to my attention.
Jan 31, 2012 PaKettle link
I wasnt aware of any limits on the global namespace but you are right in that some of the routines do need to be renamed to prevent interferance outside my plugin. I wasnt considering the larger enviroment since I just started lua last week....I will fix it in the next version.

I may take the time to peek at aide when I get the time...
Jan 31, 2012 draugath link
There aren't really any substantial limits on the use of the global namespace. But I suppose it's more of an unwritten rule that we don't use the global namespace, and leave that to Incarnate, Raybondo, and Momerath to clutter up for us. Try to keep in mind the affect your plugin could have when it's loaded alongside of another.
Feb 01, 2012 PaKettle link
Actually there are several useless functions that need to be cleaned out and so on that deserve more complaining about. (Note the 0.55 version number......) :} Solo work tends to allow a certain laxity when it comes down to it. Bad habits I know.

Mostly I need feedback on its operation and what I can do to make it more useful. I do intend to add a GUI in the future but first I want to get its features stabilised and cleaned up. I also need to see if there are any bugs I havent found.
Feb 01, 2012 PaKettle link
@Meridian BTW thanks for letting me peek at aide. I couldnt figure out why I kept getting garbage back when ever I tried to retrieve the item requirements from mission info. I assumed it was a string and never considered it was an array. DOH!
while (true)
<HeadDesk>
end

Yeah in a way we are duplicating work but mostly only in one area. DockWorker is intended to help with the day to day stuff. I think I may drop some of my work in this area for a while at least. DockWorker does well at the smaller crafting loads but I am a long ways from handling the large crafting missions. For the moment I will need to consider other issues as well. Much of what I would like it to do will require a large database like trade assistant and that is a lot more then I really intend.

If its ok with you I would like tol add a blurb in my read me file to use aide for the larger crafting missions...
Feb 01, 2012 meridian link
I have no objections to a mention of MfgAide in your read me file.
Feb 12, 2012 Keller link
PaKettle is still in the process of learning writing plugins, although he seems to be coming along nicely.
Feb 13, 2012 PaKettle link
Aye I rewrote a lot of it to get rid of a lot of the globals but I havent had time to do any testing yet. RL has been very busy for me of late. I will post it when I m satisfied it works well.
Feb 14, 2012 Keller link
Namespacing and local are your friends. ;)
Feb 14, 2012 PaKettle link
I thought My friends were JD and Captain Morgan. :}

These new guys drink much?
Feb 26, 2012 PaKettle link
Finally got around to doing some clean up this is version 0.57

http://www.zumodrive.com/share/fFyRMTgxYm

I have been wondering if the modes (off/normal/pvp/bomb/mission) are all that useful and if just controlling the operation by toggling the various functions (launch/load/unload) on and off might be a better and simpler arrangement.

edit - found and fixed a minor bug
Apr 27, 2012 PaKettle link
This plugin was broken due to internal changes in VO - It has also been superceded so it will not be repaired..