Useful Lua Libraries

Come in here to talk about your sky-net style world-destroying super bots!

Moderator: Defcon moderators

User avatar
Posts: 33
Joined: Thu Jan 13, 2011 6:04 pm
Location: Iowa, US

Useful Lua Libraries

Postby poptart911 » Thu Feb 03, 2011 8:19 am

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.
User avatar
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm
Location: ::1

Postby martin » Thu Feb 03, 2011 6:59 pm

All of the code for Joshua can be found here:

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: ... /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.
User avatar
Posts: 6745
Joined: Tue Apr 19, 2005 2:28 pm
Location: London, England

Postby Montyphy » Fri Feb 04, 2011 9:42 am

Uplink help: Check out the Guide or FAQ.
Latest Uplink patch is v1.55.

Return to “AI Bots”

Who is online

Users browsing this forum: No registered users and 1 guest