I have a problem.
In my game, you start out with an empty recipe book which you will fill over time. This is my code for the book:
<recipe_book>
category: 0
</recipe_book>
When I do this, I get an error even before the game menu screen loads: "TypeError - Cannot read property 'forEach' of null".
Removing the "category: 0" helps, however the recipes I add using the plugin command "CraftingSystem add_recipe 3: i1" do not show up.
So I did this:
<recipe_book>
category: 0
i:
</recipe_book>
That prevents the error, but it also adds an empty recipe that will cause the game to crash whenever I select it: "TypeError - Cannot reat property '_ingredients' of undefined.
This means apparently it is not possible to add an empty recipe book to the game. The book must contain at least one recipe from the get-go. Can this be fixed so one can add an empty recipe book?
In my game, you start out with an empty recipe book which you will fill over time. This is my code for the book:
<recipe_book>
category: 0
</recipe_book>
When I do this, I get an error even before the game menu screen loads: "TypeError - Cannot read property 'forEach' of null".
Removing the "category: 0" helps, however the recipes I add using the plugin command "CraftingSystem add_recipe 3: i1" do not show up.
So I did this:
<recipe_book>
category: 0
i:
</recipe_book>
That prevents the error, but it also adds an empty recipe that will cause the game to crash whenever I select it: "TypeError - Cannot reat property '_ingredients' of undefined.
This means apparently it is not possible to add an empty recipe book to the game. The book must contain at least one recipe from the get-go. Can this be fixed so one can add an empty recipe book?




