[Solved] Modifying Vanilla Recipes 0.12
[Solved] Modifying Vanilla Recipes 0.12
Hey guys,
I am working on including a new storage tank into my new mod and I managed to get everything working so far... but the problem I am facing is simple in context, I want to modify the vanilla storage tank to include the vlaue fast_replaceable_group in it's entity.
Is there a quick and easy way to do this?
Thanks in advance
I am working on including a new storage tank into my new mod and I managed to get everything working so far... but the problem I am facing is simple in context, I want to modify the vanilla storage tank to include the vlaue fast_replaceable_group in it's entity.
Is there a quick and easy way to do this?
Thanks in advance
Last edited by ClayC on Thu Jul 30, 2015 12:34 pm, edited 1 time in total.
Re: Modifying Vanilla Recipes 0.12
In data.lua:
I have tested it, with a second type of storage-tank and it works.
Btw. McGuten's method also works, but you'll have a bigger chance of conflicting with other mods, since you'll overwrite the whole entity.
Code: Select all
data.raw["storage-tank"]["storage-tank"].fast_replaceable_group = "storage-tanks";
Btw. McGuten's method also works, but you'll have a bigger chance of conflicting with other mods, since you'll overwrite the whole entity.
Re: Modifying Vanilla Recipes 0.12
yeah, i know it but him question about easy form so... it is a easy formXyfi wrote:In data.lua:
I have tested it, with a second type of storage-tank and it works.Code: Select all
data.raw["storage-tank"]["storage-tank"].fast_replaceable_group = "storage-tanks";
Btw. McGuten's method also works, but you'll have a bigger chance of conflicting with other mods, since you'll overwrite the whole entity.
Re: Modifying Vanilla Recipes 0.12
Xyfi wrote:In data.lua:
I have tested it, with a second type of storage-tank and it works.Code: Select all
data.raw["storage-tank"]["storage-tank"].fast_replaceable_group = "storage-tanks";
Btw. McGuten's method also works, but you'll have a bigger chance of conflicting with other mods, since you'll overwrite the whole entity.
Thanks that's exactly what I wanted
I'm going to take this opportunity to ask you if there is a way to see the whole array in data.raw? so I can know what elese is in there.
Re: Modifying Vanilla Recipes 0.12
awesome thanks a bunch
-
- Burner Inserter
- Posts: 14
- Joined: Sat Aug 01, 2015 2:31 am
- Contact:
Re: [Solved] Modifying Vanilla Recipes 0.12
Would somebody help me with recipes? I need to apply recipe changes in current map, but it works only on new map.
Re: [Solved] Modifying Vanilla Recipes 0.12
Run this:chernosliv wrote:Would somebody help me with recipes? I need to apply recipe changes in current map, but it works only on new map.
Code: Select all
/c game.player.force.reset_recipes()
Ideally it should be in migration script of mod.
Might need to use players[1] if in multiplayer.
-
- Burner Inserter
- Posts: 14
- Joined: Sat Aug 01, 2015 2:31 am
- Contact:
Re: [Solved] Modifying Vanilla Recipes 0.12
Thanks for advice it works.orzelek wrote: Run this:from console after loading save with modified recipes to update the save.Code: Select all
/c game.player.force.reset_recipes()
Ideally it should be in migration script of mod.
Might need to use players[1] if in multiplayer.
Re: [Solved] Modifying Vanilla Recipes 0.12
is there anything else like this that reset like the technologies etc?orzelek wrote:Run this:chernosliv wrote:Would somebody help me with recipes? I need to apply recipe changes in current map, but it works only on new map.from console after loading save with modified recipes to update the save.Code: Select all
/c game.player.force.reset_recipes()
Ideally it should be in migration script of mod.
Might need to use players[1] if in multiplayer.
-
- Fast Inserter
- Posts: 157
- Joined: Fri Jun 26, 2015 11:13 pm
Re: [Solved] Modifying Vanilla Recipes 0.12
/c game.player.force.reset_technologies()ClayC wrote:is there anything else like this that reset like the technologies etc?
The wiki has information on all these methods.