Useful Lua Libraries
Moderator: Defcon moderators
- poptart911
- level1
- Posts: 33
- Joined: Thu Jan 13, 2011 6:04 pm
- Location: Iowa, US
- Contact:
Useful Lua Libraries
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.
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:
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
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
Last edited by martin on Fri Feb 04, 2011 2:05 pm, edited 1 time in total.
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
Who is online
Users browsing this forum: No registered users and 4 guests