Jump to content

Recommended Posts

I've got this great mod item, a reskinned hat item into a cigar, working like a dream. Only, when I unequip it and place it on the ground it is invisible. I can still pick it up and it still exists, just that there's no image or indicator it's on the floor. 

I have a second item, a weapon, that when I drop it it is visible on the ground. But my hat item doesn't show up. 

Not sure what's wrong or what folk will need to see to fix it, but here's the hat item code.  Let me know if you need to see more!

I've tried everything I can think of, including rebuilding it, at a loss. 

 

Come to think of it, while I'm here- how do I make this item craft able at the cost of health, like a heart or meat effigy? 

kopf.lua

Edited by DevilsRoost

Is there any more files I can provide to help someone figure this out? I've really hit  a wall with their invisibility. I swear the image files are named correctly (but maybe they're not? I just don't know) 

On 3/14/2021 at 12:01 PM, DevilsRoost said:

Come to think of it, while I'm here- how do I make this item craft able at the cost of health, like a heart or meat effigy? 

you use crafting ingredient health instead of an item in crafting recipe the value need to be like 5, 10, 50, 100, ect.

GLOBAL.CHARACTER_INGREDIENT.HEALTH

i will see if i can fix ur thing if you post the (expported folder texture with all the png img) texture of the thing not working here and its file

Edited by --- -.-
On 3/28/2021 at 9:40 AM, --- -.- said:

you use crafting ingredient health instead of an item in crafting recipe the value need to be like 5, 10, 50, 100, ect.

GLOBAL.CHARACTER_INGREDIENT.HEALTH

i will see if i can fix ur thing if you post the (expported folder texture with all the png img) texture of the thing not working here and its file

Oh, yeah that health one looks pretty easy to add, thanks!

Both hat items, the crown and cigar are invisible when dropped. I'll just chuck the whole character in here in case there's a problem with the inventory or the other bits.

Thanks a lot! 

King Bach.rar

The ground is sprite/animation is defined in these lines:

    inst.AnimState:SetBank("kopf")
    inst.AnimState:SetBuild("kopf")
    inst.AnimState:PlayAnimation("idle")

Do you have this animation bank/build and an "idle" animation inside it?

If so, you made de animation in Spriter?
(again) if so, how many frames you set in the animation in Spriter?
Show us some data from your Spriter

If the number of frames in Spriter is smaller than ~40 (if I remember as well), the autocompiler do not consider the frames in the animation, so you need to put a higher number
I usually use 127 for non-moving animations
 

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