Useful book (customizable scripts and more)


Store and use any script in Lua/Candran/Teal/MoonScript or create custom commands/events. Admins can share access to an executable code to players and to rcon. It's more practical than "Lua Compiler" mod. This mod is designed to be safe, simple and fast. Anyone can translate the mod on Crowdin. https://crowdin.com/project/factorio-mods-localization

Utilities
a month ago
1.1 - 2.0
561
Cheats

b [Fixed] Crash for non-Lua

3 months ago

Tried to insert non-lua code there, just a bunch of console commands like /foo /bar ...
Got a crash =)


The mod Useful book (0.23.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event useful_book::on_gui_click (ID 1)
zk-lib/lualib/luacheck/utils.lua:149: attempt to call field 'getmetatable' (a nil value)
stack traceback:
zk-lib/lualib/luacheck/utils.lua:149: in function 'is_instance'
zk-lib/lualib/luacheck/check.lua:61: in function <zk-lib/lualib/luacheck/check.lua:47>
(...tail calls...)
useful_book/models/useful_book.lua:2012: in function 'f'
useful_book/models/useful_book.lua:2093: in function 'handler'
zk-lib/static-libs/lualibs/event_handler_vZO.lua:63: in function <zk-lib/static-libs/lualibs/event_handler_vZO.lua:61>

3 months ago

Ran the script with click on UI in the code editor popup.

3 months ago
(updated 3 months ago)

Fixed the crash.

New response