Jump to content

Recommended Posts

When adding a custom item as an ingredient you need to specify the atlas and the image in the recipe.

AddRecipe2("your_book", { Ingredient("your_ingredient", 1, "images/ingredient_atlas.xml", nil, "ingredient_image.tex") }, TECH,
{
    atlas = "images/recipe_atlas.xml",
    image = "recipe_image.tex",
    builder_tag = "bookbuilder"
},{
    "CHARACTER",
    "BOOKS
})

 

  • Thanks 1
4 minutes ago, -LukaS- said:

When adding a custom item as an ingredient you need to specify the atlas and the image in the recipe.

AddRecipe2("your_book", { Ingredient("your_ingredient", 1, "images/ingredient_atlas.xml", nil, "ingredient_image.tex") }, TECH,
{
    atlas = "images/recipe_atlas.xml",
    image = "recipe_image.tex",
    builder_tag = "bookbuilder"
},{
    "CHARACTER",
    "BOOKS
})

 

 Asset("IMAGE", "images/images_revive_upgrade.tex"),

 Asset("ATLAS", "images/images_revive_upgrade.xml"),

 Asset("ATLAS_BUILD", "images/images_revive_upgrade.xml", 256),

Didn't these line specify the atlas and the image, bro?

  • Like 1
12 hours ago, giabao1107 said:

 Asset("IMAGE", "images/images_revive_upgrade.tex"),

 Asset("ATLAS", "images/images_revive_upgrade.xml"),

 Asset("ATLAS_BUILD", "images/images_revive_upgrade.xml", 256),

Didn't these line specify the atlas and the image, bro?

No, you need RegisterInventoryItemAtlas to really register.

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...