DanielKote / Foreman2

Visual planning tool for Factorio
Other
166 stars 19 forks source link

Couldn't export preset from Factorio #59

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

KompetenzAirbag commented 1 year ago

Where and how do I fix it then? Couldn't find anything like that.

DanielKote commented 1 year ago

Please download the current version from this git repository (the latest will be: Foreman V2.0 - dev.13-current fix) and try it again. If you still get this same issue please post the list of mods you were using and I will see what the problem is.