Page 1 of 1

[0.11.2] Rats Cant Climb Stairs

Posted: Sun Apr 04, 2021 2:44 pm
by Teralitha
Not sure if this has always been the usual behavior for rats, but I only just noticed they cant climb stairs. I suppose this is why most places have ramps instead of stairs.

Re: [0.11.2] Rats Cant Climb Stairs

Posted: Mon Apr 05, 2021 5:03 am
by pango
Just checked, and they can climb stairs in classic.

Re: [0.11.2] Rats Cant Climb Stairs

Posted: Mon Apr 05, 2021 5:49 am
by Teralitha
So its a bug then.

Re: [0.11.2] Rats Cant Climb Stairs

Posted: Mon Apr 05, 2021 10:40 pm
by Interkarma
Thanks for checking Pango. Will move to bug reports so we can investigate later.

Re: [0.11.2] Rats Cant Climb Stairs

Posted: Mon Apr 05, 2021 11:41 pm
by Teralitha
https://www.youtube.com/watch?v=FmFJyaXeKeA

I tried changing the option for improved combat AI to see if that caused it but made no difference. The stairs have a weird shape though, and that may have something to do with it.

Re: [0.11.2] Rats Cant Climb Stairs

Posted: Mon Apr 05, 2021 11:47 pm
by Interkarma
Yeah, stairs suck in Daggerfall. They're all kinds of weird in terms of riser and tread ratio, and don't have nice physics meshes to help traverse. Everything is scooting around on raw arbitrary geometry which is painful to code for.

My guess is that rats are having troubles because their collider height relative to stair riser height is beyond the controller's maximum step property. Hopefully it's something we can tune out without breaking something else.

Re: [0.11.2] Rats Cant Climb Stairs

Posted: Sun May 09, 2021 10:39 pm
by Interkarma
Have taken a first pass at this one. Problem appears to partly involved with obstacle avoidance. I think the lower eyeline of the rat perceives the step in front of it as a wall and tries to route around it.

What's interesting is that just disabling obstacle avoidance alone doesn't solve the issue. Also needed to increase height of capsule to be in line with taller mobs so rat can step that high. So full issue appears to cross over a couple of areas - AI and controller physics.

Will need to loop back to this one later.