Author Topic: Weasle's Romantic Animations  (Read 1875 times)

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #15 on: September 22, 2011, 12:24:19 am »


                 Alright, assuming you have seperate *.mdl files for each race, in ascii format, these are the steps.  I'm using the default intimate animations as an example, since I don't have the romantic suite hak in a seperate state, just as part of Q.

Step 1:

copy pfa9.mdl through pfo9.mdl and pma9.mdl through pmo9.mdl to get backups.  If you're going with phenotype 10, for example, "pfa9 - Copy.mdl" will get renamed as pfa10.mdl after you do your copying step.

Step 2:
Open up each of the new phenotype models in notepad, or similar plain text editor.

You'll see a line that looks something like one of the following in each of the "female" ones:
setsupermodel pfa9 infh_anims
setsupermodel pfd9 alt_dfa9
setsupermodel pfe9 infh_anims
setsupermodel pfg9 infh_anims
setsupermodel pfh21 infh_anims
setsupermodel pfo9 alt_dfa9

Remove the "f" from each.  "setsupermodel pfa9 infh_anims" becomes "setsupermodel pfa9 inh_anims"

You'll do the opposite for the "male" mdl files, adding that "f" in.

Step 3:
After saving your changes, add the new phenotype mdls into your hak and save.  You're now done that part of it.



Step 4:
Setting the proper phenotype based on gender and role.  This is a bit trickier, since you need a system where the "male" role is assigned by the initiator, not by base gender.  Phenotypes are set within the script by something like this:

if (nRole == MALE)
     {
      nPheno1 = GetGender  (oPC1) == GENDER_MALE?9:10;
      nPheno2 = !GetGender (oPC2) == GENDER_MALE?9:10;
     }
 if (nRole == FEMALE)
     {
      nPheno1 = !GetGender (oPC1) == GENDER_MALE?9:10;
      nPheno2 = GetGender  (oPC2) == GENDER_MALE?9:10;
     }
 SetPhenoType (nPheno1, oPC1);
 SetPhenoType (nPheno2, oPC2);

The constants for male and female I'd used are these:
const int FEMALE = 1;
const int MALE   = 2;

  Given a bit of time I could probably get just the positioning scripts bundled up into an erf.  I'm not sure I still have the ones I'd done for sinfar with the tweaked racial positioning adjustments built into them, though.
               
               

               
            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #16 on: September 22, 2011, 12:31:40 am »


               Oh that would be awesome, I know I won't get to positioning them just right, even doing what you have listed will be a big learning experience. >.>
               
               

               
            

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #17 on: September 22, 2011, 02:22:56 am »


               The above will only work with IAS though, since RAS is animation based?  Is that correct?
               
               

               


                     Modifié par 3RavensMore, 22 septembre 2011 - 01:34 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #18 on: September 22, 2011, 02:40:16 am »


               They're both animation based, just the RAS that I've seen is a single mdl containing everything, in binary.  It's not that it's any more complicated to alter in theory, just that it can't be done in 10 minutes using only notepad.
 I'll have to take a look at it with nwnexplorer, and see how much work it'd be to do.
               
               

               
            

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #19 on: September 22, 2011, 02:54:59 am »


               The hak that I have -- sx_romance -- has 7 .mdl files, and they are viewable in notepad.  One of my players sent it to me some time ago; I assumed it was from Q, though I don't have Q installed, so I'm not certain of that.

Edit: Please forgive me if I'm asked questions that are painfully obvious to everyone here.   I build, I've never modded...
               
               

               


                     Modifié par 3RavensMore, 22 septembre 2011 - 01:57 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #20 on: September 22, 2011, 03:17:47 am »


               

3RavensMore wrote...

The hak that I have -- sx_romance -- has 7 .mdl files, and they are viewable in notepad. One of my players sent it to me some time ago; I assumed it was from Q, though I don't have Q installed, so I'm not certain of that.

Edit: Please forgive me if I'm asked questions that are painfully obvious to everyone here.   I build, I've never modded...


  There's nothing wrong with asking questions, even ones that may seem obvious.
  I know very little about the modeling and animation side of things myself, and that it only took a change of 1 letter took me a good two hours to figure out even knowing it could be done somehow.

  As for the hak you have, I haven't seen that one, so I'm not sure what you would need to do to alter that one.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #21 on: September 22, 2011, 05:05:49 am »


               If the file is a binary mdl you can run torlacks compiler to decompile the model to ascii usually.

I'd say CompDComp Front end, but some of microsofts fixes broke the visual C++ runtime used to create it.

I can do the notepad slicing, but as I said I always wind up breaking something with default animations, be it the 1.68 cloaks or something.  If someone with animation experience has done it, would be nice to have as a community release (Vaei's + Ninjaweaselmans RAS).
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #22 on: September 22, 2011, 05:26:46 am »


               I've done a bit of notepad splicing of base animations myself.  I added some of the c.r.a.p. teams animations into my mod that way.
 The issue with altering the Q animations, is that I don't know enough about the animations to know how to tell which of them is which in the ones that are gender keyed.  I can likely figure it out through trial and error, but I don't expect I could get them in a format that could be added into existing mods in an unobtrusive way through that method.

 That's part of why I prefer the specialty emotes on different phenotypes, easier to just plug in, but you lose support for animating the robes and cloaks most times if they're moved off the base pheno.
 Unfortunately, there are drawbacks to both systems.  They're much smoother and better supported on the base pheno, but getting them set up for cross-gender support there would take up 9 of the 20 custom slots.
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #23 on: September 22, 2011, 06:33:14 am »


               Well, I yanked the romantic animations out of Sinfar's hak to take a look at them, just using nwnexplorer to extract them and convert them to text at the same time.
 Those can be converted to work for the opposite gender in the same manner, but they do lose support for the robes and cloaks as I'd expected.

 Unfortunately, if you want to wear a dress while waltzing, at least as a female, it means you can't lead using that method of converting.
 I'll take another look at the other system again, but at the moment it looks like a hybrid of the two methods might be the best I can manage with my limited skill with mdl files.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #24 on: September 22, 2011, 07:19:22 am »


               Well fixing the robes (at least sort of) is possible.  What you need to do is make a copy of all the robe mdls (don't need textures).  Then you go and change the file name and all internal references.  So pfh0_robe149 would become pfh11_robe149, and you would have to do a find replace on the internal contents of the mdl as well.

Basic supermodel heirarchy.  For some robes you will wind up with badly synched animations that don't really fit, but unless you want to create new robe anims to fit the custom pheno.. it's the best you are going to do.
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #25 on: September 22, 2011, 09:09:29 am »


                 Not perfect by any means, but I did get it to work using the base RAS animations from the Q haks, combined with the alternate gender support set up on a different pheno.
  Sadly, the human femal leading the waltz with a female elf partner didn't line up quite right still, and that was the best aproximation of a m/f pairing I could set up.

  There's a little demo clip of it here for anyone curious.  I still have to rewrite chunks of my positioning wand scripts to support it, I "faked" the positioning for this demo with a seperate tool.
  Some time tomorrow I might put up a link for the wand and cross-gender support hak, but since NinjaWeaselMan apparently doesn't want the standard RAS hak circulated that won't be included with it.

  Edit:  Uploaded a better version of the demo.  I keep forgetting that uploading in 800x600 gets hacked down to 480 or less, and the quality loss with the amount it was pulled back on the camera made it harder to see than I'd realized.
               
               

               


                     Modifié par Failed.Bard, 22 septembre 2011 - 10:32 .
                     
                  


            

Legacy_Gleym

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #26 on: September 22, 2011, 10:14:47 am »


               That was a female human? I could barely tell it was zoomed out that much. >_>
               
               

               
            

Legacy_Wall3T

  • Hero Member
  • *****
  • Posts: 748
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #27 on: September 22, 2011, 11:44:04 am »


               i do recall the Server Gameworld: Cormanthor (Cormanther?) uses the same animations in an emote version, you can always ask them as well
               
               

               
            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #28 on: September 22, 2011, 06:30:34 pm »


               Oh wow, that's really impressive. Definitely want that on WSI.
               
               

               
            

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
Weasle's Romantic Animations
« Reply #29 on: September 23, 2011, 10:16:17 pm »


               This indeed would be a wonderful addition.