DanielKote / Foreman2

Visual planning tool for Factorio
Other
158 stars 14 forks source link

Couldn't export preset from Factorio #53

Closed KompetenzAirbag closed 1 year ago

KompetenzAirbag commented 1 year ago

Game runs just fine if I launch it. errorlog.txt says Foreman export failed partway. Consult errorExporting.json for full output (and search for <<<END-EXPORT-P1>>> or <<<END-EXPORT-P2>>>, at least one of which is missing). errorExporting is in fact missing END-EXPORT-P2 and at the end it states:

 16.741 Goodbye
   0.000 Error Util.cpp:83: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_nth_tick(1)
__foremanexport__/instrument-control.lua:442: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: in function 'pairs'
    __foremanexport__/instrument-control.lua:442: in function 'ExportResources'
    __foremanexport__/instrument-control.lua:517: in function <__foremanexport__/instrument-control.lua:502>

------------- Error -------------
The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_nth_tick(1)
__foremanexport__/instrument-control.lua:442: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: in function 'pairs'
    __foremanexport__/instrument-control.lua:442: in function 'ExportResources'
    __foremanexport__/instrument-control.lua:517: in function <__foremanexport__/instrument-control.lua:502>
---------------------------------
DanielKote commented 1 year ago

Duplicate