collapse

Author Topic: How to add PCs internal animations into NPCs models and show it ingame?  (Read 637 times)

Offline VickiLeekx

  • Fledgling
  • *
  • Posts: 19
So i know that DDLullu created a tool that allows adding character sheet animations to npc models. Now we can use any model for our pc, without them looking like a zombie in the character sheet, but is there a way to swap the default animation poses ingame? like for example, when your character is standing, each clans has their own little animations, toreador females have this weird sassy pose, the malkavian female also has a specific pose, and i wondered if there was a way of taking the toreador body animations and adding them to an NPC like Jeanette or Heather?
« Last Edit: January 23, 2019, 04:22:50 AM by VickiLeekx »

Offline Ghanima_Atreides

  • Libera Me de Ignem
  • Methuselah
  • ****
  • Posts: 282
I would like to know this too!  :smile:
Strange is the night where black stars rise,
And strange moons circle through the skies,
But stranger still is
Lost Carcosa.

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308
I was going to ask it too soon

(Grammar question: too soon or soon too?)
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me

Offline Ghanima_Atreides

  • Libera Me de Ignem
  • Methuselah
  • ****
  • Posts: 282

(Grammar question: too soon or soon too?)

Soon too (or "as well")

Too soon = the opposite of "too late"

Strange is the night where black stars rise,
And strange moons circle through the skies,
But stranger still is
Lost Carcosa.

Offline DDLullu

  • Neonate
  • **
  • Posts: 71
You are in luck! I have already made such a mod for the plus patch, saddly Wesp is not using it. Go to the patch 10.0 thread page 3 here: https://forums.planetvampire.com/bloodlines-tech-support/unofficial-patch-10-0-released!/msg138252/#msg138252, download the mod, unzip, copy the shared folder put it in the  models\character\ (i rename the shared found in the patch to shared1 in case we need it later) part one finish!

Now make a copy of vamputil.py, open it with notepad, find i = randin(1, 7)
Add below it these 2 lines:
(8 spaces) gender = pc.IsMale
(8 spaces) clan = pc.clan
Use real space of course!

Save the file, that's it, part two finish! Play the game enjoy the new animations for any character you will use.

That procedure work with UP10.2rc1. I made the switch for each patch Wesp made, no problem so far.

Offline Ghanima_Atreides

  • Libera Me de Ignem
  • Methuselah
  • ****
  • Posts: 282
Thank you, DDLullu!  :rock: :rock:



EDIT: Nevermind, I found out the answer myself; yes, female PCs need to use the pc.IsMale line too.
« Last Edit: January 22, 2019, 06:52:42 PM by Ghanima_Atreides »
Strange is the night where black stars rise,
And strange moons circle through the skies,
But stranger still is
Lost Carcosa.

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 5997
  • Unofficial Patcher
That procedure work with UP10.2rc1. I made the switch for each patch Wesp made, no problem so far.

Maybe I messed something up when I tried this at the time, so please if this works for others, please report back! I may add it to the UP after all. But DDLullu, while you are here ;), can you please take a look at the spiderchick animations in the warrens and the Hallowbrook Atrium? I think I see some ugly outsticking segments during these...

Offline Ghanima_Atreides

  • Libera Me de Ignem
  • Methuselah
  • ****
  • Posts: 282
That procedure work with UP10.2rc1. I made the switch for each patch Wesp made, no problem so far.

Maybe I messed something up when I tried this at the time, so please if this works for others, please report back! I may add it to the UP after all. But DDLullu, while you are here ;), can you please take a look at the spiderchick animations in the warrens and the Hallowbrook Atrium? I think I see some ugly outsticking segments during these...




It works! Here's my PC using Lily's model and Toreador idles.

However...I am not sure if this is normal (it's been a really long time since I last played the game) she seems to be "cycling" between the Toreador animations/pose and the default "hands on hips" one.
« Last Edit: January 22, 2019, 08:48:50 PM by Ghanima_Atreides »
Strange is the night where black stars rise,
And strange moons circle through the skies,
But stranger still is
Lost Carcosa.

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308

(Grammar question: too soon or soon too?)

Soon too (or "as well")

Too soon = the opposite of "too late"

<3 thanky
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308
You are in luck! I have already made such a mod for the plus patch, saddly Wesp is not using it. Go to the patch 10.0 thread page 3 here: https://forums.planetvampire.com/bloodlines-tech-support/unofficial-patch-10-0-released!/msg138252/#msg138252, download the mod, unzip, copy the shared folder put it in the  models\character\ (i rename the shared found in the patch to shared1 in case we need it later) part one finish!

Now make a copy of vamputil.py, open it with notepad, find i = randin(1, 7)
Add below it these 2 lines:
(8 spaces) gender = pc.IsMale
(8 spaces) clan = pc.clan
Use real space of course!

Save the file, that's it, part two finish! Play the game enjoy the new animations for any character you will use.

That procedure work with UP10.2rc1. I made the switch for each patch Wesp made, no problem so far.


I'll try it as soon as I can :)
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 5997
  • Unofficial Patcher
Re: How to change the ingame internal model animations when playing with NPCs?
« Reply #10 on: January 22, 2019, 09:21:06 PM »
I'll try it as soon as I can :)

I got it to work but map loading times are again much longer than before (e.g ch_cloud_1 from 5 seconds to 35 seconds) and the same goes for swapping clans, so I still don't want to include this! The console shows a lot of warnings similar to this one here:

chained model character/pc/male/ventrue/armor0/ventrue_Male_Armor_0.mdl has a bone Bip01 R Femoris that isn't in chaining model character/shared/male/allsequences.mdl
« Last Edit: January 22, 2019, 09:22:44 PM by Wesp5 »

Offline VickiLeekx

  • Fledgling
  • *
  • Posts: 19
Re: How to change the ingame internal model animations when playing with NPCs?
« Reply #11 on: January 22, 2019, 10:29:15 PM »
I'll try it as soon as I can :)

I got it to work but map loading times are again much longer than before (e.g ch_cloud_1 from 5 seconds to 35 seconds) and the same goes for swapping clans, so I still don't want to include this! The console shows a lot of warnings similar to this one here:

chained model character/pc/male/ventrue/armor0/ventrue_Male_Armor_0.mdl has a bone Bip01 R Femoris that isn't in chaining model character/shared/male/allsequences.mdl

Maybe you could add it as an option in the installer? just like we can choose to install the plus content or not+

EDIT: Just tested it and i personally didnt notice or experienced any map loading issues, it works just fine.
« Last Edit: January 23, 2019, 01:17:13 AM by VickiLeekx »

Offline DDLullu

  • Neonate
  • **
  • Posts: 71
Re: How to change the ingame internal model animations when playing with NPCs?
« Reply #12 on: January 23, 2019, 04:39:09 AM »
to Wesp:
It's because you are using the -dev  parameter. Try it without that parameter. For me it takes 11 seconds, i have a usb3 drive.

I have no idea it do that with the extra bones of the PC character. I will try to put zero  for all the animations of these bones and look what will happen with the -dev para.  But  it still work well with an ordinary game play. The engine simply discarded the extra bones when doing the animation. Anyway i think you can not play with the - dev on.

For the spiderchick, she has 30 or more animations in the MDL. What animation she is doing? Maybe a picture or a video of the glitch? 

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308
Re: How to change the ingame internal model animations when playing with NPCs?
« Reply #13 on: January 23, 2019, 08:05:13 AM »


It's only me or she looks a bit curvy (specially the one on the right)? Not that I'm complaining....
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 5997
  • Unofficial Patcher
Re: How to change the ingame internal model animations when playing with NPCs?
« Reply #14 on: January 23, 2019, 10:13:01 AM »
It's because you are using the -dev  parameter. Try it without that parameter.

Damn, you are right! Without it everything is as fast as before and I will include it in the next patch :). Now I only need to figure out how to disable the -dev parameter when working with the SDK, which automatically sets it to on. Any idea where this -dev slow down is coming from in the first place?

Quote
Anyway i think you can not play with the - dev on.

If you mean the normal game, yes you can, I do it all the time ;)!

Quote
For the spiderchick, she has 30 or more animations in the MDL. What animation she is doing?

In the warrens she makes "scripted_snatch", in the Hallowbrook Atrium "Whole_GetUpBack" and "Whole_GetUpFront".