Page 1 of 1

Useful Lua Libraries

Posted: Thu Feb 03, 2011 8:19 am
by poptart911
I thought it would be a good idea to have a thread where everyone could post links to useful lua modules/libraries/whatevertheyarecalledinlua for making bots. So that way people who aren't the greatest coders can get a jump start on making a bot. I've got some good stuff (i hope) cooking for dr. strangebot, and I'll post it here when it is ready. In the meantime, read my thread for all of strangebot's code.

Posted: Thu Feb 03, 2011 6:59 pm
by martin
All of the code for Joshua can be found here:

https://github.com/martindevans/Joshua-Bot/tree/master

This directory includes my rather basic whiteboard functions.

There is a subdirectory there which contains various useful Lua libraries. At the moment:
    Queue -> First in first out
    Set -> An item can only be in a set once (efficient to add, remove, and check for membership of things)
    Stack -> First in, last out
    Quadtree -> Subdivide a region of space into 4 quadtrees, recursively, based on a predicate
    Multithreading -> Perform long running tasks across multiple frames
    Minmaxheap -> Allows efficient retrieval of the minimum and maximum items of all items within the heap (extremely fast for huge datasets)
    Enumeration -> Querying library inspired by LINQ


If anyone wants more specifics on how to use them, you can either find them scattered about the Joshua code, or ask me. I can't be bothered to type up proper documentation for them all ;)

these can be found here:

https://github.com/martindevans/Joshua- ... /Utilities

Posted: Fri Feb 04, 2011 9:42 am
by Montyphy