Jump to content

Kirbyarm

Member
  • Posts

    12
  • Joined

  • Last visited

Community Answers

  1. Kirbyarm's post in Custom Item Icons was marked as the answer   
    Unortunately nothing in that thread helped me solve the problem as it seems to use the Packer method or default-available textures, but it did make me think outside the box a bit and try various assortments of the direct pathname. I am not 100% sure it worked, but I am 99.5% sure because the seedlings for each crop are no longer invisible, and they are using the correct icons and texture! Yay!
     
    Image files for Tobacco crop:
    -Item_tobacco1.png
    -Item_tobacco2.png
    -Item_tobacco3.png
    -Item_tobacco4.png
    -Item_tobaccoBloom.png
    -Item_tobaccoMature.png
    -Item_tobaccoRotten.png
     
    For those interested who have similar problems, here is what I had to change in the farming code to get it working (for one of my crops):
     
    planting = growNext(planting, "media/textures/Item_tobacco1.png", farming_vegetableconf.getObjectName(planting), nextGrowing,farming_vegetableconf.props[planting.typeOfSeed].timeToGrow + water + diseaseLvl);
     
    planting = growNext(planting, "media/textures/Item_tobacco" .. nbOfGrow .. ".png", farming_vegetableconf.getObjectName(planting), nextGrowing, farming_vegetableconf.props[planting.typeOfSeed].timeToGrow + water + diseaseLvl);
     
    planting = growNext(planting, "media/textures/Item_tobaccoBloom.png", farming_vegetableconf.getObjectName(planting), nextGrowing, farming_vegetableconf.props[planting.typeOfSeed].timeToGrow + water + diseaseLvl);
     
    farming_vegetableconf.props["Tobacco"].texture = "media/textures/Item_tobaccoMature.png";
     
    farming_vegetableconf.sprite["Tobacco"] = {
    "media/textures/Item_tobacco1.png",
    "media/textures/Item_tobacco2.png",
    "media/textures/Item_tobacco3.png",
    "media/textures/Item_tobacco4.png",
    "media/textures/Item_tobaccoBloom.png",
    "media/textures/Item_tobaccoMature.png",
    "media/textures/Item_tobaccoRotten.png"
    }
     
     
  2. Kirbyarm's post in Custom Item Icons was marked as the answer   
    Unortunately nothing in that thread helped me solve the problem as it seems to use the Packer method or default-available textures, but it did make me think outside the box a bit and try various assortments of the direct pathname. I am not 100% sure it worked, but I am 99.5% sure because the seedlings for each crop are no longer invisible, and they are using the correct icons and texture! Yay!
     
    Image files for Tobacco crop:
    -Item_tobacco1.png
    -Item_tobacco2.png
    -Item_tobacco3.png
    -Item_tobacco4.png
    -Item_tobaccoBloom.png
    -Item_tobaccoMature.png
    -Item_tobaccoRotten.png
     
    For those interested who have similar problems, here is what I had to change in the farming code to get it working (for one of my crops):
     
    planting = growNext(planting, "media/textures/Item_tobacco1.png", farming_vegetableconf.getObjectName(planting), nextGrowing,farming_vegetableconf.props[planting.typeOfSeed].timeToGrow + water + diseaseLvl);
     
    planting = growNext(planting, "media/textures/Item_tobacco" .. nbOfGrow .. ".png", farming_vegetableconf.getObjectName(planting), nextGrowing, farming_vegetableconf.props[planting.typeOfSeed].timeToGrow + water + diseaseLvl);
     
    planting = growNext(planting, "media/textures/Item_tobaccoBloom.png", farming_vegetableconf.getObjectName(planting), nextGrowing, farming_vegetableconf.props[planting.typeOfSeed].timeToGrow + water + diseaseLvl);
     
    farming_vegetableconf.props["Tobacco"].texture = "media/textures/Item_tobaccoMature.png";
     
    farming_vegetableconf.sprite["Tobacco"] = {
    "media/textures/Item_tobacco1.png",
    "media/textures/Item_tobacco2.png",
    "media/textures/Item_tobacco3.png",
    "media/textures/Item_tobacco4.png",
    "media/textures/Item_tobaccoBloom.png",
    "media/textures/Item_tobaccoMature.png",
    "media/textures/Item_tobaccoRotten.png"
    }
     
     
×
×
  • Create New...