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
5 months ago
1.1 - 2.0
584
Cheats

b [FIXED] Crash with a custom command

2 years ago

This mod crash the game when I try to open any script ("tl" or "candram") in the category "Custom commands"


414.411 Error MainLoop.cpp:1288: Exception at tick 208800059: The mod Useful book (0.20.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event useful_book::on_gui_click (ID 1)
useful_book/models/useful_book.lua:812: attempt to concatenate global 'name' (a nil value)
stack traceback:
useful_book/models/useful_book.lua:812: in function 'switch_code_editor'
useful_book/models/useful_book.lua:1415: in function 'f'
useful_book/models/useful_book.lua:1692: in function <useful_book/models/useful_book.lua:1684>


Thanks

2 years ago

I uploaded a new version, it should fix it in theory.
https://mods.factorio.com/mod/useful_book/downloads

2 years ago

Thanks, it's working now!

New response