Jump to content

The Great Mystery of vanishing vegetables


Recommended Posts

So I'm trying to find out why my crops are invisible on the farms, but not when I pick them. To reiterate, they are not invisible once as you put them down.

8e15d94ae56973c970d2871655957b04.png

On the plant, there's a custom crop I added called the "Banato". It's invisible, however.

d1662d609f753ff13e8604cd484c12be.png

Here I've picked it and set it down.

 

I've tried looking at the prefabs in the Waiter 101 mod and seeing if I was missing things, I even decompiled their anim files to see if there's an animation I need to call, and nothing. This has been eluding me for months. What do I do?

 

Link to comment
Share on other sites

This is what the plant calls

local function onmatured(inst)
    inst.SoundEmitter:PlaySound("dontstarve/common/farm_harvestable")
    inst.AnimState:OverrideSymbol("swap_grown", inst.components.crop.product_prefab,inst.components.crop.product_prefab.."01")
end

which would be basically

inst.AnimState:OverrideSymbol("swap_grown", "banato", "banato01")

Now the question is the following: the symbol used for your "banato" build is "banato01"?

You should decompile/imitate the tomango anim of the Waiter 101 mod.

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