Jump to content

Recommended Posts

Just when I think my issues are at there limits..
I messed up on the character artwork. I got most of the facial features done, legs, feet. It's the headbase and headbase hat parts. She has long hair, which doesn't seem to want to show up..at all without oddness.
 

Is it possible just not use the headbase hat folders at all? Just let her unable to equip hats? 

Is there a code perk that makes a character unable to equip any headgear?

 

I want the front view & the back view to have the long hair like she has on the side.
 

The first screenshot is the older model of her, the hair clips through.
post-502721-0-65816100-1439627808_thumb.
Second is the edited model with without the long hair clip,

post-502721-0-11378100-1439627809_thumb.
and I took away the long hair & going to get rid of the hair folder, which contains the ears, Since i'll just have the ears stick to her head.

 

Any help would be lovely!
 

Is it possible just not use the headbase hat folders at all? Just let her unable to equip hats?  Is there a code perk that makes a character unable to equip any headgear?

 

Yes, Yes, and Yes. You can just setup the character to not be able to wear hats, which in turn makes it so whatever you have in the headbase_hat folder to never get used anyway (you should still keep it there though).

 

But as for your issue, the Head will always be behind the torso when the character is facing up, and in front of the torso when the character is facing down. What you could have done to fix the long hair, was to make the hair and ear's on the hair layer instead of the headbase layer. The Extended_Character_Template may not show it, but normally character's with large hair (like wilson) have hair on it's own layer, so that it it's in the back. Wendy also has pigtails, which are on the back layer, and bounce when the character move's around. Also, take note that modifying the .scml that your working with will not change anything, so what you see in the .scml is what you will see in the game no matter what.

 

But if you still wish to have the character not wear hats, might I suggest this alternative

 

here's code to allow your character to wear hats, but they don't display. Just put this in your character prefab within the function master_postinit

-- master_postinit    inst:ListenForEvent("equipped", function(inst,data)		local owner = data.owner		local slot = data.slot		if slot and slot == "head" and owner then			owner.AnimState:Hide("HAT")			owner.AnimState:Hide("HAT_HAIR")			owner.AnimState:Show("HAIR_NOHAT")			owner.AnimState:Show("HAIR")		end	end)
Edited by Zackreaver

 

Yes, Yes, and Yes. You can just setup the character to not be able to wear hats, which in turn makes it so whatever you have in the headbase_hat folder to never get used anyway (you should still keep it there though).

 

But as for your issue, the Head will always be behind the torso when the character is facing up, and in front of the torso when the character is facing down. What you could have done to fix the long hair, was to make the hair and ear's on the hair layer instead of the headbase layer. The Extended_Character_Template may not show it, but normally character's with large hair (like wilson) have hair on it's own layer, so that it it's in the back. Wendy also has pigtails, which are on the back layer, and bounce when the character move's around. Also, take note that modifying the .scml that your working with will not change anything, so what you see in the .scml is what you will see in the game no matter what.

 

But if you still wish to have the character not wear hats, might I suggest this alternative

 

here's code to allow your character to wear hats, but they don't display. Just put this in your character prefab within the function master_postinit

-- master_postinit    inst:ListenForEvent("equipped", function(inst,data)		local owner = data.owner		local slot = data.slot		if slot and slot == "head" and owner then			owner.AnimState:Hide("HAT")			owner.AnimState:Hide("HAT_HAIR")			owner.AnimState:Show("HAIR_NOHAT")			owner.AnimState:Show("HAIR")		end	end)

Thank you so much!

 

@Zackreaver

 

Now I got a new issue. 
post-502721-0-82164100-1439701831_thumb.

 

I was trying to redo the head, and that keeps happening.

 

DarkXero was very kind enough to help fix up all the coding and transformation, but now I want to try to fix the problem I took a picture of. 

@AmaaDivine, First off, if you made any adjustments to the .scml you need to undo it, copy the .scml from the extended character template's mod folder, overwrite the one you have in your folder, and rename it like you did before.

 

If the .scml wasn't the issue, then the headbase_hat folder might have a different file.  Check to see if your headbase_hat and headbase folder have the exact same files, the only difference is the headbase_hat files will have _hat in them.

 

The one in the screenshot looks like headbase-2 and headbase_hat-2.

@Zackreaver hey! I know that this thread is very old and I'm sorry I'm commenting so late, but I'm trying to use the template to make a character that doesn't wear hats whatsoever- not just invisible, but they refuse to wear them. is it possible to stop them completely from wearing hats, and maybe add dialogue when the player tries to equip a hat, like wigfrid with eating plants? thanks!

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