Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Another procedural animation I've been playing with.

There is already predefined "look at" event in the game. When I set up NPC to look at the path node it was a little buggy. Anyone tried to set up NPCs looking at player? They do seem to look up when they throw stones.

tdm_ai_head_tracking_humanoid.script

  • Like 4

It's only a model...

Posted

Now tracking stops when NPCs play random idle animations. There is no tracking on head joint, just the neck, which doesn't look as good. Unfortunately head joint is already used by existing random head turns and mixing it with a new script creates a conflict resulting in sudden jumps.

I uploaded it to repository.

I added

"canHeadTrackPlayer"        "1"

into tdm_ai_humanoid.def

tdm_ai_head_tracking_humanoid.script

  • Like 1

It's only a model...

Posted

Unfortunately because of how characters are set up in Darkmod using neck joint for animation is problematic. In noblewoman's head model, the chest is assigned to neck joint and so it clips when tracking is on.

noblerwoman.thumb.jpg.15aba3ef48c7ada70afcb828fca89036.jpg

So tracking script will have to be off by default, or at least turned off for some NPCs.

  • Like 1

It's only a model...

Posted

The real question is if you will recognise this during gameplay - I barely do by this screenshot. 

"Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager

Posted

@SeriousToni It's definitely noticeable. NPCs with décolletage are affected the most, although you can see some clipping on a city watch. Ideally head joint should be used in stead, but that would require modifying the existing procedural animation system. I think for now I will just disable it on noblewoman, wench, female rouge, etc. Female characters in Dark Mod are weirdly contorted enough already.

  • Like 1
  • Haha 1

It's only a model...

Posted

This could potentially negatively affect existing missions. Characters turn their torso a little bit, and with them their arms.

  • Like 1

It's only a model...

  • 2 weeks later...
Posted

I booted into Inn Business FM and got these warnings:

WARNING:script\tdm_ai_head_tracking_humanoid.script(245): Thread 'ai_darkmod_base::updateHeadTrackLoop': Tried to call function on non-existent entity (#805)
WARNING:script\tdm_ai_head_tracking_humanoid.script(246): Thread 'ai_darkmod_base::updateHeadTrackLoop': Tried to call function on non-existent entity (#805)
WARNING:script\tdm_ai_head_tracking_humanoid.script(245): Thread 'ai_darkmod_base::updateHeadTrackLoop': Tried to call function on non-existent entity (#805)
WARNING:script\tdm_ai_head_tracking_humanoid.script(246): Thread 'ai_darkmod_base::updateHeadTrackLoop': Tried to call function on non-existent entity (#805)

 

Posted

@stgatilov The same warning appears when you type in killmonsters which deletes all NPCs. I don't know why in this mission it can't find this particular NPC. When I load the map it prints a warning about entity #78, but when I list entities in the map, there is no one with that id.

It's only a model...

Posted
23 hours ago, Arcturus said:

@stgatilov The same warning appears when you type in killmonsters which deletes all NPCs. I don't know why in this mission it can't find this particular NPC. When I load the map it prints a warning about entity #78, but when I list entities in the map, there is no one with that id.

The same happens if you execute "kill Streetwalker", and will probably happen on any map for any AI that is completely removed from the game. Your threads holds entity reference and uses it all the time, and when the entity dies we get this warning.

Posted

The warning appears once.

I'm disabling it by default, if somebody wants to enable tracking they can put

canHeadTrackPlayer
1

on an NPC.

It's only a model...

  • 4 weeks later...
Posted

tdm_ai_head_tracking_humanoid.script

I swapped idle anim with a t-pose to see what's going on. And it looks ok, head joint doesn't seem to cause too many issues. There is a small stutter when random idle starts, for example at 1:23 monk's head is a bit jerky.

Random head turn is disabled when tracking begins. But they also turn around when they talk to each other, that doesn't count as random head turning. Anyone knows how to disable those? Tracking pauses when random idle animations play.

Main idle animation has those stupid sways. Here you can see some stutters on the head joint. Perhaps swaying back and forth in the idle anim causes some issues?

It's only a model...

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

    • taaaki

      The post editor for the dark themes should be working again. Apologies for the inconvenience.
      · 1 reply
    • jaxa

      Talk GabeCube:
      https://forums.thedarkmod.com/index.php?/topic/18055-2016-cpugpu-news/page/39/#findComment-508710
      · 3 replies
    • The Black Arrow

      Things have been so bad these days for me...
      Just a year ago, I've been feeling dizzy, I thought it was nothing, today's stress, that type of thing, went to sleep...Still dizzy! 9 more days dizzy, went to doctor (I would have gone on the first day if NOT for the long appointment time)
      Said it may be Neck Dizziness...I did exercises for 6 months, no changes.
      Went to a Physical Therapist, went to another, no changes.
      I've asked my doctor for a full check this time.
      I hated yesteryear so much due to personal reasons, this year might be the same.
      To be brutally honest, I'd rather have cancer or/and chronic pain than suffer dizziness any second longer, especially when nothing helps.
      Hard to enjoy Thief when you're dizzy so I was hoping this year, Winter will be best for me.
      · 7 replies
    • JackFarmer

      Hello mappers and taffers! 

      Are you still out there? It is so calm here these days and I am afraid this is no good sign.
      Proof me wrong, tell your best friend (=me), that you are still here and that you will not go away!
      · 7 replies
    • JackFarmer

      Happy Labour Day, my taffing taffers & hard working mapping friends!
      And remember the poor souls who, within the Inventors’ organization, labor under Jonus’s yoke to ensure the success of that very guild! Always remember the hard workers!
      · 2 replies
×
×
  • Create New...