You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really love your calculator! I've just discovered the offline version which imports local mod data and would like to use it.
If I do, I see error messages like: [string "bobassembly_0.17.2/prototypes/assembly-electr..."]:1: attempt to index a nil value (field 'startup')
or [string "BigDrills_0.5.4/prototypes/tech/tech.lua"]:47: attempt to call a nil value (global 'unpack')
The relevant lua code from said mods looks like this: if settings.startup["bobmods-assembly-electronicmachines"].value == true then
and prerequisites = {"logistics-2", "bucket-wheel-excavator", "advanced-material-processing-2", unpack(preMK2 or {})},
If I start the calculator with an empty mod dir everything works fine. As do most mods, except those that reference settings.startup or try to call unpack.
The second one I cannot reproduce. Given that unpack has been moved to table.unpack in Lua 5.2 and the fact that there is a backward compatibility flag that can be enabled somewhere I suspect this might be a platform dependent issue:
Function unpack was moved into the table library and therefore must be called as table.unpack.
attempt to index nil error happens in [boblibrary_0.17.5/resource-generator.lua]. Editing this file shows it's masking similar errors further along in the dependency graph.
This is on Windows.
I really love this calculator and having the option to use it to manage the sheer complexity of Angels + Bob's would be a great help. factorio-current.log
I really love your calculator! I've just discovered the offline version which imports local mod data and would like to use it.
If I do, I see error messages like:
[string "bobassembly_0.17.2/prototypes/assembly-electr..."]:1: attempt to index a nil value (field 'startup')
or
[string "BigDrills_0.5.4/prototypes/tech/tech.lua"]:47: attempt to call a nil value (global 'unpack')
The relevant lua code from said mods looks like this:
if settings.startup["bobmods-assembly-electronicmachines"].value == true then
and
prerequisites = {"logistics-2", "bucket-wheel-excavator", "advanced-material-processing-2", unpack(preMK2 or {})},
If I start the calculator with an empty mod dir everything works fine. As do most mods, except those that reference settings.startup or try to call unpack.
Factorio version: 0.17.28
Calculator version: 0.3 binary for windows
Mods causing error messages: bobassembly_0.17.2.zip, BigDrills_0.5.4.zip
Is there anything I can do to fix this issue on my end?
The text was updated successfully, but these errors were encountered: