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
26 days ago
1.1 - 2.0
548
Cheats

g Console to Lua

2 years ago
(updated 2 years ago)

To avoid nil player error when pasting commands from https://wiki.factorio.com/Console:
Keep "local player = ..." without quotes
Omit "/c"
Replace all instances of "game.player." with "player."

Unlike console commands, these scripts won't disable modded achievements.
I don't know Lua, so please correct me if any of this is wrong :)

2 years ago

It seems like you missed some context.
You want to describe some main parts of the mod for people who have a little/none experience with lua, right?

2 years ago
(updated 2 years ago)

The context was that I didn't know Lua and wanted to simply copy paste console commands from the wiki. I kept getting a nil player error and after a lot of guessing that ^^ finally worked. I don't understand why, but it's a simple edit so I thought I'd share it here. The observation about modded achievements was from loading a new freeplay, starting a script, and not getting the console cheat warning. That sums up all I know about Lua and this mod combined so far.

New response