Creating a Lua Library for Command

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
jkgarner
Posts: 175
Joined: Thu Apr 30, 2020 12:42 pm

Creating a Lua Library for Command

Post by jkgarner »

Across the Forum there are many examples of excellent and useful functions. Some of the forum posters have expressed a desire to create a Lua Library for Command with their collection of functions as a way to give back to the community.

I have been working the last month or more on how to put together a library within the Command Lua environment that meets the needs of software developers and customers alike.

Developers need organization of the code base, a way to build test harnesses and execute them easily, and the ability to track versions. Ease of distribution generation is a plus.

Customers require ease of use and code that functions flawlessly. They also require documentation of the library.

I have not yet answered the documentation part, however the rest I believe is solved. At least good enough for my own use.

The attached zip file contains my solution. It has a simple (not useful) library implemented that showcases the process in sufficient detail to allow a developer to replicate the process, should he or she decide this is a good idea.

Feel free to examine it and if you find the ideas or processes useful, build a library of your own functions.

Good luck.

Attachments
AFWILuaLibrary.zip
(47.4 KiB) Downloaded 116 times
Post Reply

Return to “Lua Legion”