Jump to content

Quick question about crafting tabs


Recommended Posts

Hi! My image for crafting a prefab in the crafting tab doesn't show correctly. Does anyone know why and how to fix it? :)

It works with the first prefab (pencil), but not with the second one for some reason (it keeps on using a different image from the game)

-- Make a pencil
local Ingredient = GLOBAL.Ingredient
local af_rec = AddRecipe("pencil_thibaud", 
{Ingredient("charcoal", 8), Ingredient("log", 2), Ingredient("nightmarefuel", 4)},
GLOBAL.RECIPETABS.DRAWINGS, GLOBAL.TECH.NONE, 
nil, nil, nil, nil, "paperdrawing_builder",
"images/inventoryimages/pencil_thibaud.xml", "pencil_thibaud.tex")
af_rec.sortkey = -4

-- Make a Wurm
local Ingredient = GLOBAL.Ingredient
local af_rec = AddRecipe("wurm_thibaud", 
{Ingredient("papyrus", 4), Ingredient("gunpowder", 4)}, 
GLOBAL.RECIPETABS.DRAWINGS, GLOBAL.TECH.NONE, nil, nil, nil, nil, "paperdrawing_builder","images/inventoryimages/wurm.xml", "wurm.tex")
GLOBAL.STRINGS.RECIPE_DESC.WURM_THIBAUD = "Draw a wurm!"
af_rec.sortkey = -3

And I do have the tex and xml files named "wurm" in inventory images along with pencil_thibaud's

Edited by Thibooms
Link to comment
Share on other sites

3 minutes ago, Muche said:

Hmm, wurm.xml atlas is correct in that it references wurm.tex and is not just renamed from previous filename, right?

Are the images specified in mod's assets?

Not but neither are the pencil's .tex and .xml and everything is in the modmain (FYI)

Edited by Thibooms
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
 Share

×
  • Create New...