Search found 5 matches

by Bong_Cat
Sat Aug 19, 2023 6:27 pm
Forum: Modding help
Topic: The real hierarchy of recipes
Replies: 3
Views: 1035

Re: The real hierarchy of recipes

Okay, in the deep of K2 data I found this:

-- Add a new recipe variation for one mod
-- (call this function two time with the same mod_name, science_pack_name will overwrite the previus variation)
-- this function must be called with the same argument in setting-update stage and in data-update ...
by Bong_Cat
Sat Aug 19, 2023 3:34 pm
Forum: Modding help
Topic: The real hierarchy of recipes
Replies: 3
Views: 1035

Re: The real hierarchy of recipes

Okey, I find some K2(?) functions and they help me replace recipe of stone-furnace
krastorio.recipes.overrideIngredients("stone-furnace", {
{"stone-brick", 5},
{"alumina", 1}
})
https://prnt.sc/S-kqf2eIWC8i

But with tech-cards this function do not work, I don't even see the mark:
krastorio ...
by Bong_Cat
Sat Aug 19, 2023 2:38 pm
Forum: Modding help
Topic: The real hierarchy of recipes
Replies: 3
Views: 1035

The real hierarchy of recipes

Hello guys!
I solved my previous problem, but now, even when changing the recipe in data-final-fixes.luca, I don't see any changes in the game, although a note that the recipe has been changed by my mod appears.
Please explain to me, someone, how do I change the recipe 100%?

This piece of code is ...
by Bong_Cat
Sat Aug 19, 2023 2:28 pm
Forum: Modding help
Topic: Changing recipes in a bunch of k2sebz mods
Replies: 1
Views: 535

Re: Changing recipes in a bunch of k2sebz mods

Okay, I find that K2 have own function addIngredient, and K2 recipes, I, now, can tweak)

Code: Select all

krastorio.recipes.replaceIngredient("basic-tech-card", "wood", {"stone-tablet", 5})
by Bong_Cat
Wed Aug 16, 2023 5:16 pm
Forum: Modding help
Topic: Changing recipes in a bunch of k2sebz mods
Replies: 1
Views: 535

Changing recipes in a bunch of k2sebz mods

Hello dudes!
Some time ago, I wanted to comprehensively change recipes and technologies in a bundle of k2+se+ mods, and I, however, unexpectedly ran into the fact that I can't just prescribe, for example, krastorio.add_ingredient("repair-pack", "stone-tablet", 5) , since I'm from I call nil, which ...

Go to advanced search