DevilsRoost Posted March 14, 2021 Share Posted March 14, 2021 (edited) 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 March 14, 2021 by DevilsRoost Link to comment https://forums.kleientertainment.com/forums/topic/127957-help-custom-item-disappears-when-placed-on-the-ground/ Share on other sites More sharing options...
DevilsRoost Posted March 25, 2021 Author Share Posted March 25, 2021 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) Link to comment https://forums.kleientertainment.com/forums/topic/127957-help-custom-item-disappears-when-placed-on-the-ground/#findComment-1441398 Share on other sites More sharing options...
. . . Posted March 28, 2021 Share Posted March 28, 2021 (edited) 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 March 28, 2021 by --- -.- Link to comment https://forums.kleientertainment.com/forums/topic/127957-help-custom-item-disappears-when-placed-on-the-ground/#findComment-1442259 Share on other sites More sharing options...
DevilsRoost Posted April 10, 2021 Author Share Posted April 10, 2021 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 Link to comment https://forums.kleientertainment.com/forums/topic/127957-help-custom-item-disappears-when-placed-on-the-ground/#findComment-1447194 Share on other sites More sharing options...
DevilsRoost Posted May 8, 2021 Author Share Posted May 8, 2021 bump Link to comment https://forums.kleientertainment.com/forums/topic/127957-help-custom-item-disappears-when-placed-on-the-ground/#findComment-1457999 Share on other sites More sharing options...
Gleenus Posted May 8, 2021 Share Posted May 8, 2021 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 Link to comment https://forums.kleientertainment.com/forums/topic/127957-help-custom-item-disappears-when-placed-on-the-ground/#findComment-1458014 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now