Free crafting

Place to get help with not working mods / modding interface.
etn
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Aug 18, 2014 2:21 am
Contact:

Free crafting

Post by etn »

I wanted to create a simple mod that adds recipes for all the ores, enables the player to smelt items, and sets the crafting speed higher, so you can mess with the game. It loads and works fine, except every time I attempt to open my inventory with it active, the game freezes. Is this because I haven't defined the crafting time somewhere(didn't see a field for it), it doesn't like recipes with no cost, or something else?
LordFedora
Filter Inserter
Filter Inserter
Posts: 310
Joined: Fri Nov 07, 2014 3:46 am
Contact:

Re: Free crafting

Post by LordFedora »

for the "base cost" (i think thats what it's called, the list of materials on the bottom of the popup) crash if it becomes recursive, e.g. you have an item that is a material for it's self (or a few steps out) or if it's free
etn
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Aug 18, 2014 2:21 am
Contact:

Re: Free crafting

Post by etn »

thanks for telling me the problem. I guess I'll just make a dummy item and stock the inventory in control.lua
Post Reply

Return to “Modding help”