Factorio Standard Library

by Nexela

The Factorio Standard Library is a project to bring Factorio modders high-quality, commonly-required utilities and tools.

Internal
1 year, 5 months ago
0.17 - 1.1
367K

g Regarding to config.skip_script_protections in event.lua

2 years ago

How do you set this skip_script_protections option to true for /stdlib_1.4.6/stdlib/event/event.lua:63? Do I set it on my controller.lua? If so how?

if not config.skip_script_protections then
...
end

2 years ago

I figured it out. The following made it work.

local config = require('stdlib/stdlib/config')
config.skip_script_protections = true

local Event = require('stdlib/stdlib/event/event')

2 years ago

That is the correct way to do it. I will put it on the list to add better documentation for this.

New response