Eradicator's Library.
My library contains the reusable functions I use in many of my mods. This version of the library is built for Factorio 1.1.39.
The official repository is on GitHub. Latest builds are on the ModPortal.
The Factorio Api Documentation 1.1.39 and the Lua 5.2 Reference Manual are included for convenient offline reading.
Modules
Core | Instead of requiring each component of the library seperately you can require this Core file which fill automatically loads all modules. |
Types | A general overview over the (custom) data types used throughout this documentation. |
Concepts | Abstract programming and behavioral concepts used by the library. |
Cache | Useful cache constructors. |
Data | Data stage helpers. |
Entity | [Control Stage] LuaEntity manipulation. |
EventManagerLite | Native multi-handler events. |
Force | Description
Module Status: Work in progress. |
Gui | Description
Module Status: Work in progress. |
Locale | Description
Module Status: Work in progress. |
Player | LuaPlayer methods. |
PluginManagerLite | Helper for developing mod-like plugins and softmods. |
Prototype | Description
Module Status: Work in progress. |
Remote | Description
Module Status: Polishing. |
Setting | Methods for Mod Settings. |
Stacktrace | Automatic mod-name and load-stage/phase detection. |
Surface | Methods for LuaSurface. |
Train | Description
Module Status: Work in progress. |
Wube | Documents some of factorios built-in data-stage functions. |
Array | Numerically indexed table manipulation. |
Class | Reusable class creation patterns. |
Coding | En-/Decodes to/from various formats. |
Color | Description
Module Status: Work in progress. |
Compare | Description
Module Status: Polishing. |
Debug | Manipulation of upvalues and locals. |
Error | Produces auto-formatting auto-serializing errors handlers. |
Filter | Some simple filter functions. |
Iter | Specialized iteration of tables and other objects. |
Lambda | Short in-line definition of functions, similar to Python. |
LocalisedString | Description
Module Status: Work in progress. |
Lock | Protects tables against accidential read/write. |
Log | Description
Module Status: Work in progress. |
Logic | N-Argument logic operators. |
Math | Description
Module Status: Work in progress. |
Meta | Produce function wrappers from other functions. |
Polygon | Description
Module Status: Work in progress. |
Replicate | Inline replication of object references. |
Set | Manipulates key->value Sets. |
String | Module Status: Experimental 2020-10-31. |
Table | Table manipulation. |
Time | (This module is not factorio compatible.)
Module Status: Work in progress. |
Tool | A bunch of small experimental utilities that don't clearly belong into any of the other modules or do not have a good name yet. |
Vector | Point-to-Point 2D Vectors. |
Verificate | Performance optimized multi- and complex-type detection and comparison. |
Version | Comparison of "Major.Minor.Patch" triplets. |
remotes | Easy remote data access for other mods. |
snippet | Random junk. |
Babelfish | Localised string search for mods. |
Source
Introduction | Eradicator's Library or "ErLib" is a pure-lua library for Factorio that can also survive in non-factorio environments. |