Page 1 of 1

What is "util" which some mods use

Posted: Fri Sep 16, 2016 8:39 am
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?

Re: What is "util" which some mods use

Posted: Fri Sep 16, 2016 8:49 am
by Nexela
It is just a set of lua functions used in the game

It is located in Data/Core/Lualib

Re: What is "util" which some mods use

Posted: Fri Sep 16, 2016 11:37 am
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...?