Jump to content

Help "Obsolete:true" RecipeFeature


Snakeman

Recommended Posts

Well i get Build 36.4 and try to Overrides or make a recipe Obsolete but not working... i want some help to make it work.
I want to make this base game recipes obsolete and make it another two with some variations.
But this script not delete the base recipe.

module Base
{

    recipe Slice Bread
    {
        keep KitchenKnife/ButterKnife/HuntingKnife,
        Bread,

        Result:BreadSlices=3,
        Sound:PZ_SliceBread,
        Time:40.0,
        Category:Cooking,
        OnGiveXP:Give3CookingXP,
        Obsolete:true,
    }

    recipe Slice Bread
    {
        keep KitchenKnife/ButterKnife/HuntingKnife,
        BreadDough,

        Result:BreadSlices=3,
        Sound:PZ_SliceBread,
        Time:40.0,
        Category:Cooking,
        OnTest:SliceBreadDough_TestIsValid,
        OnGiveXP:Give3CookingXP,
        Obsolete:true,
    }

}

Edited by Snakeman
Link to comment
Share on other sites

Quote

Just put the obsolete on the one you want to override, don't add the Obsolete on YOUR new recipe

The two recipes in this thread are a base game recipes and have the same name...
I want to set obsolete on all (Slice Bread) to make it dissapear on the game and let me to create a new ones but for some reason obsolete not working on basegame recipes... if i copy the entire base recipe on a new script.txt file and add Obsolete:true (system take obsolete only for the recipe i was created and not for base game recipe)
I need to create a new recipe.txt with all recipes on the game but not Slice Bread recipes?

Sorry about my language: I speak spanish

Edited by Snakeman
Link to comment
Share on other sites

9 minutes ago, RobertJohnson said:

Add an Override:true on your recipe

Done!! but now in-game i have 4 Slice Bread Recipes (Two new ones and the two base recipes) I think the game not replacing the base recipes with new ones (Override:true).

Link to comment
Share on other sites

This is the script for new recipes (Only changing the keep strings and add Override:True):

module SnakeWeaponPack
{
imports
    {
        Base
    }

    recipe Slice Bread
    {
        keep KitchenKnife/ButterKnife/HuntingKnife/SnakeWeaponPack.SurvivalKnife/SnakeWeaponPack.MilitaryKnife,
        Bread,

        Result:BreadSlices=3,
        Sound:PZ_SliceBread,
        Time:40.0,
        Category:Cooking,
        OnGiveXP:Give3CookingXP,
        Override:True,
    }

    recipe Slice Bread
    {
        keep KitchenKnife/ButterKnife/HuntingKnife/SnakeWeaponPack.SurvivalKnife/SnakeWeaponPack.MilitaryKnife,
        BreadDough,

        Result:BreadSlices=3,
        Sound:PZ_SliceBread,
        Time:40.0,
        Category:Cooking,
        OnTest:SliceBreadDough_TestIsValid,
        OnGiveXP:Give3CookingXP,
        Override:True,
    }

}

Link to comment
Share on other sites

  • 3 weeks later...
18 hours ago, TheLeonBM said:

I had a similar problem with a mod of mine. Your recipes have a different module name, that's why it's not working. If you want to override vanilla recipes you have to call the Base module. 

i tried with Base module but not work

Link to comment
Share on other sites

Recién caigo que hablas español, va a ser mucho mas fácil. Te explico como hice: creé dos archivos .txt separados (por una cuestión de organización más que nada). Al primero le puse Base_recipes.txt (el nombre es irrelevante, puede ser cualquier cosa menos recipes, que es el nombre del archivo original del juego y puede generar varios errores) y ahi puse las recetas originales que quería sobreescribir con el correspondiente Obsolete:true, Pongo una sola receta de ejemplo para no tener que copiar el contenido de todo el archivo de gusto:

module Base
{
    recipe Slice Bread
    {
        keep KitchenKnife/ButterKnife/HuntingKnife,
        Bread,
        Result:BreadSlices=3,
        Sound:PZ_SliceBread,
        Time:40.0,
        Category:Cooking,
        OnGiveXP:Give3CookingXP,
        Obsolete:true,
    }
}

Al otro archivo le puse LBMKnives_recipes.txt (de nuevo, el nombre no importa, es solo por tener todo ordenado) y adentro meti mi versión de las recetas con el Override:true, de la siguiente manera:

module Base
{
    recipe Slice Bread
    {
        keep KitchenKnife/ButterKnife/LBMKnives.Cknife/LBMKnives.BFknife/LBMKnives.SBknife/HuntingKnife,
        Bread,
        Result:BreadSlices=3,
        Sound:PZ_SliceBread,
        Time:40.0,
        Category:Cooking,
        OnGiveXP:Give3CookingXP,
        Override:true,
    }
}

Y listo, una vez hecho esto debería funcionar perfectamente. Adjunto foto.

 

 

20170209161952_1.jpg

Link to comment
Share on other sites

  • 2 weeks later...

Todo eso lo se... baje tu mod pero tampoco me funciona, hice fresh reinstall version 37.2 siguen repitiendose las recetas. Encontre el error, es un bug de lenguaje! a reportarlo!!!
En idioma ingles Obsolete:true y Override:true funcionan correctamente, intenta cambiar el lenguaje a español y verás que no funciona.

There is a issue for another game languages this needs to be fixed...
Report here: https://theindiestone.com/forums/index.php?app=tcbugtracker&module=tracker&controller=issues&id=723

Edited by Snakeman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...