Jump to content
The Dark Mod Forums

AI gets permanently stuck trying to close a door


Sotha

Recommended Posts

If a body is blocking the doorway, the AI gets stuck.

 

KkUG4Zu.jpg

The girl is closing the door. The door is blocked by the body. The door bounces open again. The girl tries to close it again, the door hits the body again. This cycles forever.

 

I dunno how this could be stopped. Perhaps the AI should give up doing something after a while?

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

If a body is blocking the doorway, the AI gets stuck.

[...]

 

I dunno how this could be stopped. Perhaps the AI should give up doing something after a while?

Better would be the action of the AI starts to ignore things. While the AI giving up is probably easier to do, usually the player is responsible somehow when such things occur. And that shouldn't be "rewarded". A door that should be closed for example, should close.

 

Then again, the cases were it would be helpful for the player and he wouldn't have already had a possibility for what he wanted are probably few, might be that ignoring just does the job.

 

I just have to think of the cases I did myself, of using gameplay techniques to trick AIs (in several games), that shouldn't have worked (like stapling boxes around entrances to stop them, and them walking mindlessly against them, using carried boxes as shield against visual contact and the like).

Those are always a bit weird to me, thus my initial instinct of not having AI stopped of doing something by things the player leaves in the world, when in reality that would be no issue for them.

Link to comment
Share on other sites

Occasionally I've used this to my advantage legitimately. In Lords and Legacy, for example, I was proud of myself when I pinned Sir Antony in his bedroom by piling urns in front of the door. But when you can see the AI, I guess it's jarring. AI already react differently when it's the player's body blocking the door: on the third try they ram it hard, so that the player gets shoved out of the way. That would be harder to do with an AI body lying in the doorway. The only solutions I can think of are (1) have the door cut the body in half, which would need new models and would look a bit unrealistic, (2) have the AI drag the body away from the door which would be really complicated to get right in awkward spaces, and it'd need new animations, (3) have the AI give up and wander off, which would need new goals, or (4) have the blocking body become nonsolid so the AI can step over it without closing the door. (4) sounds the least unachieveable.. but this isn't my area of expertise. What else could we do?

Link to comment
Share on other sites

Is the problem the AI can't get past the body, or that they can't close the door? If the latter, then just having them stop closing the door sounds like the most useful behaviour. I imagine the same thing could happen if the door was blocked with a sword or other movable.

Link to comment
Share on other sites

Occasionally I've used this to my advantage legitimately. In Lords and Legacy, for example, I was proud of myself when I pinned Sir Antony in his bedroom by piling urns in front of the door. But when you can see the AI, I guess it's jarring. AI already react differently when it's the player's body blocking the door: on the third try they ram it hard, so that the player gets shoved out of the way. That would be harder to do with an AI body lying in the doorway. The only solutions I can think of are (1) have the door cut the body in half, which would need new models and would look a bit unrealistic, (2) have the AI drag the body away from the door which would be really complicated to get right in awkward spaces, and it'd need new animations, (3) have the AI give up and wander off, which would need new goals, or (4) have the blocking body become nonsolid so the AI can step over it without closing the door. (4) sounds the least unachieveable.. but this isn't my area of expertise. What else could we do?

 

Try to close door. Retry. Retry. If not succesful, emit a forcefield to kick moveables and ragdolls away. Retry. If not succesful, emit a strong forcefield to kick moveables and ragdolls away. Retry. Detect moveables and ragdolls near the stuck AI and remove them from game. Retry. Give up and go do something else.

 

Sure, would look like a fricking wizard was pounding the door. ;)

 

Why would you ever leave a body in a doorway? :laugh:

 

Well, shooting someone who is opening a door with their back turned is a golden opportunity...

 

 

IIRC, if the door user has come through the door, they'll give up trying to close it and continue on. This needs some studying, since that's not happening here, so pls file an issue for it.

 

Tracked: http://bugs.thedarkmod.com/view.php?id=4152

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Wait a minute? What if the AI could break doors that are problematic. If a door is stuck, and the AI cannot manage it, the AI would play a kick/breach anim. The offending door is removed from play and replaced with soon dissipating dust cloud and wood fragments. The doorway would be clear of doors and should no longer present and obstacle to the AI.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...