Need help with Factorio-Stdlib?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Afforess
132 Stars 39 Forks ISC License 796 Commits 12 Opened issues

Description

Factorio Standard Library Project

Services available

!
?

Need anything else?

Contributors list

# 153,347
ics
Gradle
PHP
Linux
138 commits
# 359,300
Shell
portage
TeX
Lua
64 commits
# 651,226
Shell
HTML
PHP
factori...
3 commits
# 107,932
ESLint
static-...
ecmascr...
Sublime...
1 commit
# 132,726
Shell
Objecti...
Sublime...
board-g...
1 commit
# 96,238
solidit...
Django
gitlab
Electro...
1 commit

Factorio-Stdlib

Factorio Standard Library Project

About

The Factorio Standard Library is a project to bring Factorio modders high-quality, commonly-required utilities and tools that developers have been often copying around, remixing, and rewriting poor quality copies of. Factorio mods often re-implement basic tools like logging, math calculations, and position or area manipulation. These common operations can be a subtle source of errors and their regular occurance has encouraged the creation of the Factorio Stdlib, as a toolbox and set of utilities for modders. Factorio Standard Library APIs are all unit-tested, documented, and high quality, and written to be simple and straightforward for the earliest beginners and seasoned developers alike.

Usage

  1. Install the Factorio Standard Library mod from the mod portal latest release
  2. In your
    info.json
    add
    stdlib
    as a dependency.
  3. In your
    control.lua
    or other lua modules, you can import the stdlib modules you need.

Documentation

See the wiki for an introduction and usage/examples.

See the github pages for the latest generated documentation of the Factorio-stdlib

Unit Tests

The codebase is tested with

busted
. Test specifications are located under

spec/

Contributing

Contributions are welcome! Please follow general lua coding standards and include ldoc-compatible comments.

Circle CI

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.