Jump to content

Recommended Posts

Hello, I'm new here and coding stuffs. I have manage to finished my mod character thanks to this forum. My character works fine but I have no idea if her perks works like the sanity and warmth aura since I am still testing my character alone.

 

Right now I'm struggling to give my character a hat, a hair clip that glows a bit and gives sanity (I still haven't added the glowing effect yet) that only she can wear and not lose it upon death. I was using this character mod 's codes and replace the names to my character's name. My first try is that my game runs fine but the item is not showing or just didn't exist in her inventory (Not invisible like most people have). But now, once I edited the codes again after I look up some tutorials and other mods as references, the game crashed... My character mod is fine when I removed the codes and files of the hat. Just the hat I made is the problem.

I also have my mod character to hide her equips cause I don't like them cover my character up so I really don't mind if the custom hat I made for her is not showing.

I attached the file here if someone can look through it. The custom hat I made is called bonhairclip. Also my last test of my mod, a screenshot of the crash. I honestly don't know what to fix with the hat anymore... 

Bon Bon the Pink Bunny.zip

image.png

Update: I made a separate file for my custom hat hair clip now before fusing it with my character mod. It finally appear in the game and inventory but my problem now is that I'm trying to make it glow as I equip it. The sanity part works but it won't glow as I wear it. Also when I drop the item, it's invisible but I can still pick it up but hey, it glows at least.. but doesn't glow when I equip it.

I tried using the code from the miner hat's code, it didn't work.

I tried using the code from a mod that has a custom weapon that glows. It didn't work.I also tried to find similar problems from people about the item being invisible when dropped. Is it something to do with the anim? I'm still unsure about it since I really don't know how to fix it... image.png.0587ec4893787566f1f555f43d33b406.pngimage.png.1336affc0fe8927bd8bb1f62254aa2e1.png

I don't mind the part here where Wilson's hair is gone lmao. At least the hairclip is shown. This mod is for my private use only, and it doesn't hide my character mod's hair when equipped.

Despite some parts are not working right, the game doesn't crash anyways. I included the hairclip file here if anyone can check it.

 

Bon Hairclip.rar

I will take a look at this tomorrow. In the meantime you can try understanding inventory items with this tutorial
https://forums.kleientertainment.com/forums/topic/115694-templatetutorial-custom-crafting-tab-and-items/

 

On 2/26/2020 at 9:02 AM, Roshimii said:

I don't mind the part here where Wilson's hair is gone lmao. At least the hairclip is shown. This mod is for my private use only, and it doesn't hide my character mod's hair when equipped.

This happens when certain symbols of the animstate are being hidden.

Since your hat is just a side clip, then it should on equip:

Show: "HAT", "HAIR", "HAIR_NOHAT"

Hide: "HAIR_HAT"

And if it's a player tagged entity also:

Show: "HEAD"

Hide: "HEAD_HAT"

Edited by CarlZalph
  • Like 1
  • Haha 1

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