@kuxynator: Can you provide a save where this happens? I got the crash earlier today, then added some logging directives to BBR, all of a sudden the game started without crash -- even when I restarted the game with the original zipped mod. I don't know why, but I can't reproduce this anymore.
@GeneralTank: Some issues I noticed with your mod, in data-final-fixes.lua:
-- setup id helper maps
ingredients_id_map = {old = false}
for id, item in pairs(data.raw["recipe"]["rail"].ingredients) do
ingredients_id_map[item[1] or item["name"]] = id
if item[1] then
ingredients_id_map["old"] = true
end
end
This isn't safe. I've noticed that some ingredients have item[1]
while others (I think those changed by BI) have item.name
. Of course, I could change the format of the ingredients we exchange in BI, but there would still be the chance that other mods change the format of individual ingredients. products_id_map
has the same issue. (Also: recipes have no property products
, only result
and results
; however, there are main_product
and always_show_products
.) You really should check the format of each ingredient/result.
By the way, I've sent you a reworked version of data-final-fixes.lua as PM on the forum.