DanielKote / Foreman2

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

Error with instrument-after-data #75

Open Ldmf opened 9 months ago

Ldmf commented 9 months ago

I have a problem with the import form the foremanexport

Error Log Foreman

errorlog.txt errorExporting.json

Mod-List from factorio

mod-list.json

Curentlog Factorio

factorio-current.log

if more info is needed i will try and provide them

shadoworld56 commented 8 months ago

not sure anyone actively works on this anymore. I fixed this issue by changing line 24 ExportParameter('icon', (icon == nil) and 'null' or '"'..icon..'"', true, ',', 4) to ExportParameter('icon', (icon == nil) and 'null' or '"'..tostring(icon)..'"', true, ',', 4) as the tostring function seems to clear up the issue.

Edit: forgot to include where to find the files for anyone else having issues. Foreman 2 Folder\Release\Mods\foremanexport_1.0.0\instrument-after-data.lua

This seems to clear up issues with foreman 2 failing to export factorio data with some mods installed.

Ldmf commented 8 months ago

it works with all the mods exept SE

the error is now

<<>> 3.049 Checksum for core: 2152183905 3.049 Checksum of base: 2056641960 3.049 Checksum of simhelper: 0 3.049 Checksum of aai-containers: 1506515135 3.049 Checksum of aai-signal-transmission: 117271088 3.049 Checksum of alien-biomes: 4075303506 3.049 Checksum of foremanexport: 3412107626 3.049 Checksum of informatron: 3677685015 3.049 Checksum of jetpack: 705397686 3.049 Checksum of robot_attrition: 3717203635 3.049 Checksum of shield-projector: 1559000050 3.049 Checksum of space-exploration-graphics: 0 3.049 Checksum of space-exploration-graphics-2: 0 3.049 Checksum of space-exploration-graphics-3: 0 3.049 Checksum of space-exploration-graphics-4: 0 3.049 Checksum of space-exploration-graphics-5: 0 3.049 Checksum of space-exploration-menu-simulations: 1283024780 3.049 Checksum of aai-industry: 2584868198 3.049 Checksum of space-exploration: 533341966 3.049 Checksum of space-exploration-postprocess: 1055654810 3.533 Error Util.cpp:86: Error while loading entity prototype "se-gate-fragment-14-a" (simple-entity): Sprite height outside valid range (1-2048).

At ROOT.simple-entity.se-gate-fragment-14-a.picture.layers[0].hr_version Modifications: Space Exploration

------------- Error ------------- Error while loading entity prototype "se-gate-fragment-14-a" (simple-entity): Sprite height outside valid range (1-2048).

At ROOT.simple-entity.se-gate-fragment-14-a.picture.layers[0].hr_version Modifications: Space Exploration

All done.