Jump to content

Facial Expressions Update


Recommended Posts

You know what I've always missed from Jedi Knight? To see Kyle, Jaden, or Luke smile just even once throughout the SP campaigns! Is that really so hard? We smile with our friends nearly every day…

 

I've always felt that the characters' facial animations were lacking in the game, and that took away from the life-likeness of the story. Now that I've started working with SP cinematics in JKA, I felt that gaping void even more, so I decided to dig into the game and see what I could do about it.

 

It turns out that the Raven team had included more animations for the face than what appear in the story, but somehow no-one ever thought of making these animations scriptable for the cutscenes. With some generous help from the community (thanks @@Asgarath83), I ended up adding my own simple bit of code to the engine, and without compromising the original, "vanilla" engine and its code/setup, I've found a way to expand on the scriptable facial animations to include the following expressions:

 

 

expressions.jpg

 

 

Surprised, Angry, Smiling, Happy, Glad

 

I've put together a simple demo mod here that cycles through four characters and their facial expressions:

 

https://www.dropbox.com/s/evv91nfgcmafksr/expressions.pk3

 

You will need to bring up the console and type "devmap test" to run the demo, and type "quit" to exit it -- but you won't be able to see the new expressions unless you download and run the updated binary/DLL for your platform.

 

Mac:

https://www.dropbox.com/s/nyctk3vqpxz3i66/expressions_bin_mac.zip

 

Windows: --> Thanks so much @@eezstreet!

For Windows what you need to do is actually place the following DLL into your SP mod's folder:

https://www.dropbox.com/s/yjs5zzo1budwam3/jagamex86.dll

 

The new facial expressions are accessible with the following commands in Icarus:

 

SET_FACESMILE

SET_FACEGLAD

SET_FACEHAPPY

SET_FACESHOCKED

 

...and of course there's SET_FACEFROWN and the rest.

 

I sincerely hope that official releases of open source JK will adopt this code to provide the possibility for a slightly more lifelike cinematic experience. In the meantime, anyone working on an SP mod can use these expressions by including the custom binary file with their mod as a launcher (Mac), or including the updated DLL in their SP mod folder (Windows). The binary (launcher) needs to be placed in the GameData folder (above "base").

Bek, Asgarath83, Futuza and 1 other like this
Link to comment

Windows build up! ^ ♥

 

On a side note: you can also "simulate" sadness by having the character look solemn and tilt their head towards the floor.

 

And don't forget SET_ANIM_BOTH BOTH_HEADNOD, BOTH_HEADSHAKE, BOTH_HEADTILTRSTART/STOP and BOTH_HEADTILTLSTART/STOP. You can combine these with the new/old SET_FACE animations for more variety.

Asgarath83 likes this
Link to comment

I'd like to submit this code/patch/update to OpenJK. Can anyone explain me what to do? I'm not really familiar with Git… Do I just create a DIFF file and upload it somewhere, or is the procedure more difficult than that?

Link to comment

I'd like to submit this code/patch/update to OpenJK. Can anyone explain me what to do? I'm not really familiar with Git… Do I just create a DIFF file and upload it somewhere, or is the procedure more difficult than that?

Click the fork button on github to create a copy (a so-called fork) on your own profile, upload the changes to that fork and github will display a "create pull request" button.
Link to comment

Click the fork button on github to create a copy (a so-called fork) on your own profile, upload the changes to that fork and github will display a "create pull request" button.

Thanks Mrwonko. That means I need to create a Github account first, right?  :P What are the "changes" that I upload? This "pull request", does that generate the difference between the two sources?

 

I'm sorry, I'm totally clueless about Git(hub). >.<'

Link to comment

Thanks Mrwonko. That means I need to create a Github account first, right?  :P What are the "changes" that I upload? This "pull request", does that generate the difference between the two sources?

 

I'm sorry, I'm totally clueless about Git(hub). >.<'

EDIT: Huh that's wierd...it erased my post.

 

What I was trying to say was that you should get on the JACoders irc and you should be able to get some help there.  Also google has a lot of tutorials for how to use Github, that will probably explain it better then any of us can.

JKG Developer

Link to comment
  • 8 months later...

Update: we've finally merged this simple code enhancement with OpenJK. If you are using a build past March 2015, you can use the extra facial expressions without the need for this mod.

 

I've updated the official SDK Icarus documentation to reflect the additional options. @@Circa, @@Xycaleth, @@ensiform, @@eezstreet, I'm not sure what the best way to distribute this would be...

 

https://www.dropbox.com/s/roqi86hqz6vsnq8/ICARUS%20Manual.doc?dl=0

Noodle likes this
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...