collapse

Author Topic: How to edit facial expressions?  (Read 1799 times)

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
How to edit facial expressions?
« on: November 22, 2012, 09:38:22 AM »
Hi all,

I've been playing around, trying to change the facial expressions of characters during conversation, but to no avail. Tthe modifications I make have no impact. Can someone help me with this? I did download the mod tutorial by Deus, but am still left with questions.

Ok, so for example...I have the Steam version of VTMB, so I open up the dlg folder. Let's say I want to alter Chunk's expressions during the conversation...

{   1   }{   [Excited]Hey there, chief. Small world, uh? Yup, after that gallery, I didn't think I'd be able to get a job guardin' a room full o' jack squat from the boogedy man, but then I get a call offering me this sweet night shift slot and I'm back in the security game.   }{   [Excited]Hey there, missy. Small world, uh? Yup, after that gallery, I didn't think I'd be able to get a job guardin' a room full o' jack squat from the boogedy man, but then I get a call offering me this sweet night shift slot and I'm back in the security game.   }{   #   }{   pc.SetCamera("Chunk2"); npc.SetDisposition("PrinceSitting", 1)   }{   }{   }{   }{   }{   }{   }{   }{   }
{   2   }{   (Auto-Link)   }{   (Auto-Link)   }{   41   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   3   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   4   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   5   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   6   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   7   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   8   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   9   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   10   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }


Ok, so say just for fun I want to make chunk look pissed ("Anger") until he gets to the part where he starts to say, "but then I get a call...", where I change his expression to "Joy".

 How the heck do I do that? And how do I make the expressions stick until I want them to change? Am I going into the right folder, Vampire the Masquerade-Bloodlines/Vampire/dlg?


(This is just an example, I don't want to change Chunk's expression, per say, I just want to know how to change any NPC expression.)

Any info would be much appreciated! Thanks! :smile:

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1672
Re: How to edit facial expressions?
« Reply #1 on: November 22, 2012, 03:40:11 PM »
If I recall right, you have to dig the vcd file for the dialog line where you want to change the expression out of the archives. They are stored along with the mp3 and lip files in \vampire\sound\character\dlg\... but usually don't gez unpacked. The vcds are simple text files with infos for the game and dialog engines. In the differnt channels you can set things like volume, expressions, gestures...
I haven't used them much, so I can't help you any further.
Co Author of Camarilla Edition Mod

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6077
  • Unofficial Patcher
Re: How to edit facial expressions?
« Reply #2 on: November 22, 2012, 05:20:32 PM »
Usually you could do that by changing his disposition, but as he is sitting, this doesn't work as easily as with other characters.

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
Re: How to edit facial expressions?
« Reply #3 on: November 23, 2012, 01:57:27 AM »
Ok thanks.

I have dug out all of the VCD files and am now figuring out which expressions therein correspond with different parts of the game. I am altering them just for goofs and because I don't like the expressions certain characters "wear" during conversation. I'm trying to make things look more realistic.

 I know next to nothing about computer language. As far as setting the diposition, it seems like when I do this it does not "stick", like Chunk will keep sitting down. So I guess I should try altering another character and learning how to keep the disposition from changing until I want it to. May Dheus's mod guide can help me with this.


Offline Claudia Vonigner

  • Antediluvian
  • *****
  • Posts: 545
Re: How to edit facial expressions?
« Reply #4 on: November 23, 2012, 04:36:45 PM »
One line, one expression. You'd need to cut it in two parts, with a "go on" dialogue by the PC, and "npc.SetDisposition" with the correct wording for the first part, then "go on", then "npc.SetDisposition" again for the second part. That would mean adding new lines, changing numbers of lines, cutting the MP3, and doublechecking all conditions.

Open up Lacroix's or Damsel's DLG, he has tons of expressions names, and most NPCs have all facial expressions coded somewhere. the npc.SetDisposition line appeals to those.

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
Re: How to edit facial expressions?
« Reply #5 on: November 24, 2012, 01:32:49 AM »
Ah ok...Claudia, thank you very much. Ok, so what do you mean when you say that the npc.SetDisposition appeals to expressions?

 I'm sorry but I'm very in dark about all of this stuff. If no one wants to help me, I understand!  :razz:

 I suppose I could just figure it out, hehehe. Hmmm, maybe if I post an example. Here is a portion of Lacroix's dlg file...

{   61   } {There you are. I was informed of your presence in the building. Since you're here, I'll take the liberty of assuming you've destroyed the warehouse.... This is correct, yes?   }{   There you are. I was informed of your presence in the building. Since you're here, I'll take the liberty of assuming you've destroyed the warehouse.... This is correct, yes?   }{   #   }{   npc.SetDisposition("PrinceSitting",1)   }{   }{   }{   }{   }{   }{   }{   }{   }
{   62   }{   Yes, that is -   }{   Yes, that is -   }{   71   }{   }{   }{   }{   }{   }{   }{   }{   }{   Yes.   }
{   63   }{   Yes, but -   }{   Yes, but -   }{   71   }{   }{   }{   }{   }{   }{   }{   }{   }{   Done.   }
{   64   }{   Of course I -   }{   Of course I -   }{   71   }{   }{   }{   }{   }{   }{   }{   }{   }{   Boom.   }
{   65   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   66   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   67   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   68   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   69   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   70   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }{   }
{   71   }{   Most excellent. I had no doubt you'd prove my decision a prudent one. I trust you encountered no... impediments to your progress on account of my personnel?   }{   Most excellent. I had no doubt you'd prove my decision a prudent one. I trust you encountered no... impediments to your progress on account of my personnel?   }


Ok, so would I start editing this, adding things to it? Or do I first have to find a VCD file and edit it? I changed LaCRoix's expression to confused. How would I find where this corresponds to the game?

// Choreo version 1
actor "kalliyan"
{
  channel "Speech"
  {
    event speak "NPC Line"
    {
      time 0.000000 7.000
      param "character/dlg/chinatown/kalliyan/line26_col_e.wav"
      param2 "120dB"
      fixedlength
    }
  }
 
 
  channel "Expressions"{
    event expression "Confused_NoDeform"
    {
      time 0.0000 1.7000
      param "kalliyan"
      param2 "Confused_NoDeform"
      event_ramp
      {
        0.4000 0.9838
      }
    }
   
    event expression "mad 02"
    {
      time 2.520000 3.533334
      param "lacroix_expressions"
      param2 "Confused"
      event_ramp
      {
        0.1857 0.6324
        0.2232 0.6347
        0.7648 0.6301
        0.8023 0.6301
      }
    }
   
   
    event expression "Raised Right"
    {
      time 4.866666 5.880000
      param "kalliyan"
      param2 "Raised Right"
      event_ramp
      {
        0.9357 0.9791
        2.1278 0.9838
      }
    }   
   
  }
}

fps 60
snap off


How do I even know which VCD responds to which part of the game? This is just a random VCD file I found. I see Lacroix's expression in there. For whatever reason, his expressions in the VCD files almost all seem paired up with Jeanette and Kalliyan. This line26_col_e.vcd .

Again, I apologize for posting so much stuff and understand if no one wants to help me, lol!!! I really want to learn this stuff, though! I am dedicated.

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
Re: How to edit facial expressions?
« Reply #6 on: November 24, 2012, 01:59:30 AM »
LOLZ okay, I know it's dumb, but I just edited Lacroix's disposition to "Lay, 3". It's soooo funny to me when the dialouge starts, he lays down on his desk, bwhaha... That would be great if someone did a "goof" version where he's laying down on the desk and he's like "Hey giiiiirl/booooy, did ya bring me my sarcophagus yet?"

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1672
Re: How to edit facial expressions?
« Reply #7 on: November 24, 2012, 09:29:52 AM »
For working with the vcd files.
First of all, there is a vcd file for every npc dialog line somewhere in the archives.
The vcd path and filename have to match the dlg file, line, and column. So if you need the vcd for a LaCroix line, Let's say prince1, line 61, the dialog engine looks for the file \vampire\sound\character\dlg\downtown\prince1\l61_col_e.vcd (I have written the path from memory, so it's perhaps not 100% accurate, but you get the idea). If there is a special text for female playercharacters, it is col_f instead of _e. Rarely there is a special text for Malks in the same line. Then that is col_n.

"Actor" is the "targetname" of the map entity that speaks the dialog line. Usually this is the name of the npc, but there are exceptions. For example when you talk to Gimble on the phone in the tattoo parlor, the dialog file is Gimble's dialog, but "actor" in the vcds for the lines spoken on the phone is the map "targetname" of the phone. This will tell the game from where on the map the sound originates.

The name given in the expression chanal tells the engine from which character it should use the expression parameters for deforming the face. I don't recall which file contains the info, but it is a simple text file, probably somewhere in \vdata\
So that name does not have to match the name of the speaker.

Time is always absolute time counted from the start of the dialog line.

This is all I can recall for vcd editing without having to look it up in the files, or Dheu's manual. Hope this helps a bit.
Co Author of Camarilla Edition Mod

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
Re: How to edit facial expressions?
« Reply #8 on: November 26, 2012, 01:44:37 AM »
Ok Malkav, thanks. That helps quite a bit.

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
Re: How to edit facial expressions?
« Reply #9 on: November 30, 2012, 12:29:46 PM »
Hey people,

Okaay...Completely different topic, but still in relation to modding...

I am trying to decompile mdl files. I have downloaded the handy-dandy source code, SDK thing via Steam. Then, I downloaded CannonFodder's version 0.5 MDL decompiler and put it in my Steamapps/(Username)/SourcesSDK/Bin directory.

However, when I try to run the mdl decompiler(I click on the icon that says "mdldecompiler"), nothing...HAPPENS! :facepalm:

I should mention that I use Linux Ubuntu version 12.10. Can anyone possibly pointeth me in the right direction? What could I be doing wrong here? Or is there perhaps another program that I could use to decompile MDL files? I can't seem to find that VampEd .92 program anywhere...

Thanks in advance. Sorry, I'm really new to all of this. Any help would be much appreciated.

EDIT: Or...and I don't know if this is possible or if anyone is willing, but would there be a way to have the converted MDL files sent to me directly? Like in zip file form that I could download? I wanted to convert LaCroix and Jeanette's mdl files to start with and mess with them in Blender.
« Last Edit: November 30, 2012, 12:42:33 PM by ventrue_maxine »

Offline Kiyoshi555

  • Fledgling
  • *
  • Posts: 21
Re: How to edit facial expressions?
« Reply #10 on: November 30, 2012, 03:01:03 PM »
You should be able to use the SDK that some folks around here have got up and working... or at least that will get you access to the decompiler which will get you the SMD file... I think there's probably a blender SMD plugin you might be able to use to import it, however I seem to recall some folks saying that the .qc files weren't accurate... so you're probably just going to be stuck with the model in an A-pose (which might be ok).

SDK: here

I think overall it depends on what you're trying to do? If you're trying to modify existing models and re-import them into the game, I don't think you can really do that... as there isn't really a working mdl compiler that allows for geometry changes.

Offline ventrue_maxine

  • Fledgling
  • *
  • Posts: 20
Re: How to edit facial expressions?
« Reply #11 on: December 01, 2012, 10:59:30 AM »
Kiyoshi: Thanks.

Well, I just wanted to mess around a bit with the outfits. I don't mind if the character models stay in the A pose. I also know that the extent of what I can alter is limited.

I have downloaded VampireSDK but am still having trouble. I must be making this way harder than it needs to be, although I am doing my damnedest to search the forums for help. I cannot seem to open up mdl files in VampEd or Hammer.

I read that Hammer does not read MDL files, but does this one that comes with VampireSDK do so?

As for finding MDL decompiler plugins for Blender--yes, I have found them and can't seem to get those work yet either.

Exactly which program included in the VampireSDK link would allow me to open MDL files? Hammer, VampEd, Vmex?

Offline Kiyoshi555

  • Fledgling
  • *
  • Posts: 21
Re: How to edit facial expressions?
« Reply #12 on: December 01, 2012, 02:33:25 PM »
Under the java based tools there should be a MDL to SMD decompiler. If you run that, it should be able to get a SMD file that you can then (hopefully?) use with the SMD blender plugin to get it imported.

Alternatively, I think you can run the launcher (sdklauncher.exe) and just click on the model decompiler (instead of hunting around for the .jar file).

In terms of what you want to do, it really only matters if you want to re-import them back into the game I believe. I haven't really done any of that, so I can't speak to how hard it is... or what issues you may run into (Wesp or someone else might be able to speak to that?).

If you just want to do some renders or something, you should probably be fine.  :smile:
« Last Edit: December 01, 2012, 02:36:33 PM by Kiyoshi555 »

Offline Wesp5

  • Administratrix
  • Antediluvian
  • *****
  • Posts: 6077
  • Unofficial Patcher
Re: How to edit facial expressions?
« Reply #13 on: December 01, 2012, 06:08:56 PM »
Wesp or someone else might be able to speak to that?

I'm not really firm about model editing, I did only one model myself yet, but as far as I know the reimporting into Bloodlines is the problem.