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
15 days ago
1.1 - 2.0
544
Cheats

Changelog

Version: 0.24.0
Date: 29. 10. 2024
  Changes:
    - Updated for Factorio 2.0
    - Disabled candran (I have to fix it somehow)
  Locale:
    - Added Catalan translation (thanks to @badall on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
Version: 0.23.3
Date: 22. 09. 2024
  Bugfixes:
    - Fixed crashes with invalid Lua code
  Locale:
    - Added Polish translation (thanks to @megalordgier2.0 (megalordgier) on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
Version: 0.23.2
Date: 06. 01. 2024
  Changes:
    - Moonscript has been broken because of new Factorio changes
Version: 0.23.1
Date: 06. 01. 2024
  Locale:
    - Updated Ukrainian translation (thanks to @Met_en_Bouldry on crowdin)
Version: 0.23.0
Date: 16. 11. 2023
  Changes:
    - You can unbind scripts by repeating the bind commands
    - Removed some unnecessary files
    - Changed some icons
Version: 0.22.0
Date: 15. 11. 2023
  Features:
    - Added https://github.com/mpeterv/luacheck as linter
Version: 0.21.2
Date: 13. 11. 2023
  Features:
    - Added new command: /bind-public-script <public script hotkey name> <hotkey number>
  Bugfixes:
    - Improved data stability for removed players
    - Fixed resetting of scripts for hotkeys
    - Fixed bindings for demoted admins
Version: 0.21.1
Date: 13. 11. 2023
  Changes:
    - Added exporting admin/public hotkey scripts
  Bugfixes:
    - Fixed importing of scripts (bug from 0.21.0)
Version: 0.21.0
Date: 13. 11. 2023
  Features:
    - Added hotkey scripts (only admin script hotkeys works now)
    - Added new command: /bind-admin-script <admin script hotkey name> <hotkey number> (for example: /bind-admin-script unstuck 1)
  Bugfixes:
    - Fixed closing of the code editor (bug from 0.20.9)
Version: 0.20.9
Date: 09. 11. 2023
  Changes:
    - Updated libraries
    - Updated and fixed Teal
    - Improved some GUIs
  Bugfixes:
    - Returned missing lbraries from v0.20.7
    - Other languages are safer now
Version: 0.20.8
Date: 09. 11. 2023
  Changes:
    - Updated libraries
  Bugfixes:
    - Moonscript is slightly safer
Version: 0.20.7
Date: 28. 03. 2023
  Locale:
    - Probably, fixed a crash when a command was changed
  Locale:
    - Updated Russian translation (thanks to @oZeDo on crowdin)
Version: 0.20.6
Date: 12. 02. 2023
  Locale:
    - Added Ukrainian translation (thanks to @Met_en_Bouldry on crowdin)
Version: 0.20.5
Date: 24. 01. 2023
  Changes:
    - Updated integration with zk-lib
Version: 0.20.4
Date: 08. 11. 2022
  Bugfixes:
    - Improved data stability when on_configuration_changed happens after on_init
Version: 0.20.3
Date: 06. 11. 2022
  Changes:
    - Logs events and commands
Version: 0.20.2
Date: 06. 11. 2022
  Bugfixes:
    - Fixed resetting of scripts
Version: 0.20.1
Date: 04. 11. 2022
  Bugfixes:
    - Fixed crash when on_runtime_mod_setting_changed event was caused by a script
Version: 0.20.0
Date: 20. 10. 2022
  Major Features:
    - Added custom events
  Changes:
    - Improved UI
    - Refactored some stuff
Version: 0.19.7
Date: 21. 09. 2022
  Bugfixes:
    - Added additional check for command names
Version: 0.19.6
Date: 04. 09. 2022
  Locale:
    - Updated German translation (thanks to @knnide (knniDE) on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
Version: 0.19.5
Date: 30. 08. 2022
  Changes:
    - Improved check of code for "teal"
Version: 0.19.4
Date: 30. 08. 2022
  Features:
    - Added support of moonscript
Version: 0.19.3
Date: 28. 08. 2022
  Locale:
    - Added German translation (thanks to @knnide (knniDE) on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
Version: 0.19.2
Date: 26. 08. 2022
  Bugfixes:
    - Fixed dependencies
  Changes:
    - Added access to other libraries ("basexx", "bitwise", "Locale", "Version" variables)
Version: 0.19.1
Date: 26. 08. 2022
  Bugfixes:
    - Improved data consistency for custom commands
Version: 0.19.0
Date: 26. 08. 2022
  Major Features:
    - Added support of teal (see https://github.com/ZwerOxotnik/zk-lib for details) (access via "tl" variable)
  Changes:
    - Refactored some code
    - Added 2 new commands: /tl /candran for executing code by admins
    - Changed API slightly (I should improve remote interface)
  Bugfixes:
    - Removed unnecessary lua output in custom commands after player's executions
    - Fixed loading of commands for saves
    - Fixed changing of custom commands (bug from 0.17.0)
    - Corrected default custom command code
Version: 0.18.1
Date: 24. 08. 2022
  Changes:
    - Improved interactions with candran
  Bugfixes:
    - Made safer to compile with candran if there are errors with candran
Version: 0.18.0
Date: 24. 08. 2022
  Major Features:
    - Added support of candran (see https://github.com/ZwerOxotnik/zk-lib for details) (access via "candran" variable)
  Changes:
    - Improved data consistency between versions
Version: 0.17.1
Date: 23. 08. 2022
  Changes:
    - Fixed small annoyance about the error in a custom command
Version: 0.17.0
Date: 23. 08. 2022
  Major Features:
    - Added custom commands
  Changes:
    - Refacored some code
  Scripting:
    - Changed slightly API
Version: 0.16.2
Date: 22. 08. 2022
  Bugfixes:
    - Fixed switching of code editor (it crashed for some scripts)
  Changes:
    - Saves mod version in export
    - Added new library for scripts (see https://github.com/luafun/luafun ) (access via "fun" variable)
  Locale:
    - Added German translation (thanks to @Xman1109 on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
Version: 0.16.1
Date: 02. 07. 2022
  Bugfixes:
    - Fixed crashes for old saves with older mod versions (bug from 0.16.0)
Version: 0.16.0
Date: 01. 07. 2022
  Features:
    - Added new tool for admins. Admins can select entities by new tool (see shortcuts) and apply a custom script on them.
Version: 0.15.1
Date: 13. 05. 2022
  Scripting:
    - Optimized stuff for rcon, see https://github.com/ZwerOxotnik/factorio-RCON-stuff
Version: 0.15.0
Date: 11. 05. 2022
  Locale:
    - Updated Ukrainian translation (thanks to @de_jure (Yuriy) on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
  Bufixes:
    - Fixed "Print Twitch message" script for rcon
Version: 0.14.0
Date: 07. 05. 2022
  Features:
    - Added support of rcon scripts /sc __useful_book__ RunRCONScript("script name", ...)
  Changes:
    - Slightly changed interface for admins
Version: 0.13.1
Date: 10. 04. 2022
  Changes:
    - Added /Ubook-import command again
    - Changed import button style
Version: 0.13.0
Date: 10. 04. 2022
  Features:
    - Added import UI to avoid some Factorio limitation (removed /Ubook-import command)
  Translation:
    - Changed description of commands
Version: 0.12.1
Date: 10. 04. 2022
  Bugfixes:
    - Properly deleting entities now (reset your default admin scripts)
Version: 0.12.0
Date: 08. 04. 2022
  Features:
    - Added import and export of scripts + setting
    - Added new commands: /Ubook-export /Ubook-import /Ubook-reset
  Changes:
    - 2 spaces instead of tabulation
    - No more unnecessary spaces in the code
    - Slightly improved events
  Bugfixes:
    - It's safe to remove scripts via the remote interface now
  Scripting:
    - Added "reset_scripts" in the remote interface
    - Some functions are global now
    - Added function for RCON:
    -   /sc __iFreeMarket__ getRconData("name of data")
Version: 0.11.0
Date: 14. 01. 2022
  Changes:
    - Added new script (deletes half enemies)
    - Optimized other scripts (it won't affect old saves)
Version: 0.10.0
Date: 23. 12. 2021
  Changes:
    - Remade the button fully at data stage (adds full customization for other mods)
    - Refactored slightly
Version: 0.9.2
Date: 22. 12. 2021
  Changes:
    - Changed event handler (slightly better performance)
Version: 0.9.1
Date: 29. 09. 2021
  Bugfixes:
    - Fixed deleting of scripts
Version: 0.9.0
Date: 29. 09. 2021
  Locale:
    - Added Brazilian Portuguese translation (thanks to @BM123499 (Bruno Melo) on crowdin)
    - Translations: https://crowdin.com/project/factorio-mods-localization (thank you for contributions, I really appreciate it)
  Notes:
    - First public release
    - book.png and thumbnail.png from https://www.svgrepo.com/svg/272206/book-engineering
    - Added and modified some images from Factorio
    - Some info from https://wiki.factorio.com/Console