Skip to content

lualib/vanilla/util

A copy of Factorio's engine util file.

Source lualib/vanilla/util.lua
Origin fork of __core__/lualib/util
Access require(ritnlib.defines.vanilla.util)

Nature — These vanilla/ files are copies of the engine files with their functions made local (instead of global as in the game), which makes them more optimized in use. The public API is still vanilla Factorio's util — refer to the official docs/source for the function details.

Deliberately excluded from RitnLib's LuaLS annotations (like all of vanilla/), so not re-documented function by function here.

See also