Open sproott opened 1 year ago
I can't figure out what Eradicator's doing either. I believe I found an issue with YAFC's handling of pcall(require, ...)
, but that isn't the only problem here.
Until someone smarter can figure out how to fix it properly: (1) replace the two calls to does_file_exist
in shared.lua with false
, and (2) on line 346 of erlib/factorio/Stacktrace.lua, replace flag.IS_FACTORIO
with false
. I don't know if/how this will mess up anyone using erlib, though.
ShadowTheAge: I tried making FactorioDataSource.ReadModFile
return null when it intercepted pcall(require, '__00-toggle-to-enable-dev-mode__/empty')
, but I couldn't figure out how to get pcall to return false.
I'm using YAFC version 0.5.8 from FlatHub and Factorio version 1.1.76.
When loading YAFC with just Eradicator's L.I.B.R.A.R.Y., it crashes with the following error:
I tried to investigate a bit myself, but I couldn't really make much out of this, just that the mod does some interesting stuff with running
require
on00-toggle-to-enable-dev-mode
, which seems to be a small utility mod that you can install by copying it into your mods folder (see this subdir). Nonetheless, it works in Factorio but crashes YAFC.Here's a save file to sync mods.