Page 1 of 1

Adding a second recipe for one item

Posted: Sun Mar 13, 2016 10:20 am
by Paned
Hi there :)

I would like to add a second recipe for the item iron-plate.

If i just use this:

Code: Select all

  {
     type = "recipe",
	 name = "iron-plate",
	 category = "smelting",
	 energy_required = 20,
	 enabled = true,
	 ingredients = 
	 {
	   {"iron-dust", 1}
	 },
	 result = "iron-plate",	 
  }
i only can smelt it by having iron-dust


and i got a second question too..

is there any way to update my save game? I do not like to play every time i would like to try my mod until i'm prepared for building everything i need..

thank you ::)

Re: Adding a second recipe for one item

Posted: Sun Mar 13, 2016 10:42 am
by Choumiko
change the name of the recipe to something other than iron-plate. The way you have it right now overwrites the original one.

As for updating, there are either migration files (https://wiki.factorio.com/index.php?tit ... on_scripts) or a console command: /c game.local_player.force.reset_recipes() (https://wiki.factorio.com/index.php?tit ... et_recipes)
You have to restart Factorio when you make changes to recipes, etc.

Re: Adding a second recipe for one item

Posted: Sun Mar 13, 2016 10:49 am
by Paned
yes, i know that it overwrites it.
But i like to simply add a second recipe for it - just to use it after that process as the vanilla iron-plate.

If i add my own item it will not be the iron-plate and i have to update every recipe of the game. i do not like to do that ;)
maybe there is a other way to "transform" my item after the smelting process to the iron-plate?


Thank you with your help about the update thing :)

Re: Adding a second recipe for one item

Posted: Sun Mar 13, 2016 10:54 am
by prg
Don't add your own item, just change the name of the recipe and leave the result as it is.

Re: Adding a second recipe for one item

Posted: Sun Mar 13, 2016 10:56 am
by Paned
Baaam ... im an idiot..
thank you XD