ShadowTheAge / yafc

Powerful Factorio calculator/analyser that works with mods
GNU General Public License v3.0
161 stars 50 forks source link

[Loading error] Robot Army mod #189

Closed EnzoMartin closed 1 year ago

EnzoMartin commented 1 year ago

Hi,

When loading in the Robot Army mod, YAFC throws a critical error (can't seem to copy-paste errors from the YAFC window):

Collection was modified; enumeration operation may not execute at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at YAFC.Parser.FactorioDataDeserializer.CalculateMaps() in C:\projects\YAFC\YAFCparser\Data\FactorioDataDeserializer_context.cs:line 253

Screenshot: image

Error only happens when enabling that 1 mod, save file attached: RobotArmyNew.zip

DaleStan commented 1 year ago

This is almost certainly a duplicate of #164. If you can't build YAFC, unzip the Robot Army mod and delete the lines in prototypes/item.lua that say place_result = "",

EnzoMartin commented 1 year ago

Thanks for the reply! I can build YAFC locally yeah, I'll try and delete the line you mention in the mod files 👍

EnzoMartin commented 1 year ago

Built locally and tested with the mod, I can confirm that the problem is resolved with commit 70d171c82015747d3df7b4b6e7628a5bd8db140c in master, thank you 👍👍