What is "util" which some mods use

Place to get help with not working mods / modding interface.
Hannu
Filter Inserter
Filter Inserter
Posts: 850
Joined: Thu Apr 28, 2016 6:27 am
Contact:

What is "util" which some mods use

Post by Hannu »

Some mods have line
require "util"
in control.lua. However, there is no such file. What is it and where can I find information of it?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: What is "util" which some mods use

Post by Nexela »

It is just a set of lua functions used in the game

It is located in Data/Core/Lualib
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: What is "util" which some mods use

Post by aubergine18 »

Isn't util included by default these days (ie. no need to `require` it anymore)? Similar to how `defines` is now included by default...?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding help”