Sitting pants: What am I doing wrong?

Post » Fri May 04, 2012 4:07 pm

Hi guys.

I've got some NPCs who are wearing Mykul's Sitting Pants and I'm trying to make them sit on chairs at a table. The problem is that when I load the game, they are hovering over the chairs because they're "standing" on the floor. Nothing I try seems to fix this. I tried putting a collision box underneath the floor for them to "stand" on, it doesn't work. I tried using a script to setpos z, and it doesn't work. I tried using positioncell, and it doesn't work. I also tried putting a collision box over the NPCs so that when the game loads up they won't rise out of the chair and float, but ... it doesn't work!

I can't figure out what I'm doing wrong. I have looked at the Clothiers of Vvardenfell mod as there are sitting-pants-wearing NPCs in that mod, but I can't figure out what they're doing in that mod that I'm not doing in mine that is making theirs work. As far as I can tell, in that mod the thing preventing the NPCs from floating up is that there is a collision box under the floor for them to stand on, but, as I said, I tried that and it isn't working, the NPCs still insist on standing with their feet on the floor.

If I can't figure out a better solution, I'm going to have my dad (who knows how to use Blender, I don't) remove the collision from the floor. Hopefully that will work. And if it doesn't, I'm probably just going to make really really tall chairs and table... but that would look really weird and I'd rather not do that if I don't have to.

Please someone answer this as it's driving me CRAZY. Thanks in advance.
User avatar
joseluis perez
 
Posts: 3507
Joined: Thu Nov 22, 2007 7:51 am

Post » Fri May 04, 2012 6:38 am

I think it was Korana who had a script for those pants, in any case there are some great examoles of how to do that in "The Clothiers of Vvardenfell". You do need to have a collision box under the floor, but I don't remember the details of the script.
User avatar
Doniesha World
 
Posts: 3437
Joined: Sun Jan 07, 2007 5:12 pm

Post » Fri May 04, 2012 4:49 am

You may try to look for RX31's animations - AFAIR, there's sitting one as well. No special pants needed.
User avatar
Celestine Stardust
 
Posts: 3390
Joined: Fri Dec 01, 2006 11:22 pm

Post » Fri May 04, 2012 7:53 am

Thank you for your replies.

Neildarkstar -- I looked at her scripts, but they only make it so that if the character gets into combat with the player, they get regular pants on.

Kir - I'm not sure that will work as I have the characters sitting at a table and the NPCs would clip with the table.

I ended up downloading meshes for just the ceiling, walls and floors in the common architecture and then putting them together to make a big hole in the floor for them to go through when "standing" on the collision boxes. Then stuck a rug over it to hide the hole. Not a perfect solution, there is some clipping on the corners, but it works.
User avatar
Spaceman
 
Posts: 3429
Joined: Wed May 23, 2007 10:09 am

Post » Fri May 04, 2012 1:41 pm

I haven't done anything with sitting pants for a long time, but I have used them in the past. My memory's coming back a bit on the subject. Yeah, the script isjust to keep the sitter facing one way but it never really worked out very well...

It works like this though... put the sitting pants on your NPC, then place him so his butt is on (level with)the chair. The last step is to place a collision wall under the floor so that his feet are just barely touching it. If the NPC is too high or too low, the game engine will think it's "unsafe" and raise him to floor level.

the part of the script I was thinking of was something I added myself to Korana's script, sorry about that. I added scripting to remove the sitting pants if you started a fight with the NPC... so he's not looking like some sort of spider with four legs as he fights. Somebody else did the same thing with the pants, but I don't remember who.
User avatar
Abel Vazquez
 
Posts: 3334
Joined: Tue Aug 14, 2007 12:25 am

Post » Fri May 04, 2012 9:43 am

Haha, spider XD I did that by accident one time, had one of my NPCs put the sitting pants and then I forgot to tell him to stay in one place so he was just wandering around... haha. Anyway, thank you for your tips. Next time I need sitting pants (this is a big project so probably pretty soon) I'll see how they work. :D
User avatar
Ashley Campos
 
Posts: 3415
Joined: Fri Sep 22, 2006 9:03 pm

Post » Fri May 04, 2012 12:29 pm

My sitting pants people worked when there was only one floor to my structure. In another location, I attempted sitting pants people in a second floor room, and then the problems began.... either dropping down to the bottom floor or up above their chairs.
I ended up giving a lot of my characters animation sitting poses from clothiers of vvardenfell that did not require sitting pants, and I also tried out archimaestro anteres download of sitting poses, though I could not figure it out completely. I tried the sitting poses from rx31 and the character would animate from a standing position to a sitting position, and then snap to standing again and repeat the animation. So, that didn't work for me. Even with sitting pants that worked, I had to use stools rather than chairs because the characters would turn to face you, or turn away, etc, causing them to swivel their lil butts around. So, I ended up with a whole variety of different ways to solve the problem, and I'm sure I'll get more information from other modders once my mod is released.
User avatar
Sierra Ritsuka
 
Posts: 3506
Joined: Mon Dec 11, 2006 7:56 am


Return to III - Morrowind