Page 1 of 1

[Oxyd] Crash when hovering mod-recipe that crafts base items

Posted: Sat Jul 23, 2016 8:43 pm
by Riley19280
there are a few bugs related to this, no icons being displayed in the recipe unlocks, as well as a crash when hovering over them related to RecipeSlot::createToolTip, the recipes are also not unlocked when the research is completed, however the recipies work fine on their own (when not being enabled by a tech research)

Screenshot of GUI:
Capture.JPG
Capture.JPG (30.95 KiB) Viewed 3748 times
icons should be iron ore, copper ore, stone and coal, but are not displayed

Re: Crash when hovering over mod-recipe that crafts base items

Posted: Sun Jul 24, 2016 7:55 am
by Loewchen
Please upload the log of the crash.

Re: Crash when hovering over mod-recipe that crafts base items

Posted: Sun Jul 24, 2016 1:00 pm
by Riley19280
Here you go!

Re: [Oxyd] Crash when hovering mod-recipe that crafts base items

Posted: Mon Jul 25, 2016 2:25 pm
by Oxyd
This part of your data.lua is wrong:

Code: Select all

{
        type = "unlock-recipe",
        recipe = {"iorn-to-copper"}
      },
	  {
        type = "unlock-recipe",
        recipe = {"copper-to-coal"}
      },
	  {
        type = "unlock-recipe",
        recipe = {"coal-to-stone"}
      },
	  {
        type = "unlock-recipe",
        recipe = {"stone-to-iron"}
      },
It is meant to be recipe = "copper-to-coal", etc – without the {}'s around the string. If you get rid of the {}'s, it works just fine.

Fixed in 0.13.11 – Factorio will correctly refuse to load with an invalid data.lua like that.

Re: [Oxyd] Crash when hovering mod-recipe that crafts base items

Posted: Mon Jul 25, 2016 2:27 pm
by Riley19280
Ah, thank you!