Jump to content

Custom animations in SP


Recommended Posts

Posted

So I managed to create custom animations in MP using some tools from this site. But if I want to try my animation in SP it won't work. The model just stays in T-Pose position during the animation. I tried unchecking the multiplayer box in assimilate settings and recompile it again but still nothing. Anyone got an idea of how to make them work in SP?

Posted

If it's just for a specific map, you don't need to modify the existing animations; animations in _humanoid_levelname are loaded in addition to the default animations. But I'm unfamiliar with carcass/assimilate, so I don't know how to properly export them that way.

Posted

Well the export/compile part is no problem because the animations work in ModView and MP but there seems to be one small step in the process missing for it to work in SP.

 

@@Alvar007 Explain what you're doing exactly, like what animation are you replacing? Also, are you doing it with a clean base folder? SP tends to break easily with a lot of mods installed even if the problem isn't there in MP.

Posted

You need to leave the setting as it was for both MP and SP. can't remember if sp or MP was the default in assimilate for creating animation.cfg. Might be best to upload your compiling files so we can take a look.

Posted

Well, the thing is that assimilate creates everything except animation.cfg, since it gives me an error. But I modify the base animation.cfg and I replace the BOTH_GESTURE1 animation (taunt saber fast animation from JO) with mine. As for the base folder, I don't think I have a mod that changes SP in an important way, but I used Openjk to try the animation, maybe in the vanilla game would it work?

Posted

What are the errors you get from carcass? You wouldn't use the animation.cfg that it makes anyways since you're replacing an animation. You could try it in vanilla to see if it works.

Posted

I don't get more errors other than the "couldn't create animation.cfg" one. And what exactly do you mean with the anim header file?

Posted

Ok I uploaded the folder containing the compiling files + the XSI root file

 

https://mega.nz/#!6dIjwZyR!o9Mus3T8b9RjzBjGRPr58AZvlBPDFx3AOgkTxTDmMf4

 

(it seems it doens't add correctly, just copy and paste in your browser manually).

Posted

I don't think it's something wrong with your files but possibly an extra step that's needed for SP that I sadly don't know, all my SP animation experience is from things that have their own skeleton and animation set, nothing that I added to the _humanoid.gla.

 

Maybe someone who knows the games code may be able to shed some light on this?

 

@@Xycaleth or @@eezstreet maybe?

Posted

Ok so a small error in the .car file:

$aseanimgrabinit
$scale 0.64
$keepmotion
$pcj $flatten
$pcj upper_lumbar
$pcj lower_lumbar
$pcj cranium
$pcj cervical
$pcj thoracic
$pcj pelvis
$pcj face_always_
$pcj Motion
$pcj rradius
$pcj lradius
$pcj rtibia
$pcj ltibia
$pcj rhumerus
$pcj lhumerus
$pcj lfemurYZ
$pcj rfemurYZ
$aseanimgrab models/players/both_gesture1/root.xsi -loop -1
$aseanimgrabfinalize
$aseanimconvertmdx_noask models/players/both_gesture1/root -makeskel /models/players/both_gesture1/both_gesture1 -origin 0 0 24

Need to get rid of the / so change /models/players/both_gesture1/both_gesture1 to models/players/both_gesture1/both_gesture1. This doesn't stop the creation of an animation.cfg though, it worked for me. You need to have multiplayer unchecked for creating any animation.cfg for JK2 SP/MP or JKA SP/MP otherwise it will not be compatible. Now the animation BOTH_GESTURE1 does already exist in the game code, so no problems there. However, the animation already exists in the base humanoid GLA so you'll need to edit the animation.cfg (once you've merged your GLA into the main GLA using GLAmerge) like so:

 

From this - BOTH_GESTURE1           6765    130    -1    20

To This - BOTH_GESTURE1           21376    24    -1    20

 

Let me know of any other issues. :)

Posted

Hmm well I'm not sure what's going on, it works for me in the original assimilate. But you don't really need a cfg if you're doing GLA merging, just edit the existing cfg for the humanoid GLA as I mentioned above and it should work.

Posted

That's what I did, but it still doesn't create the animation.cfg although I don't need it. I just modified the original cfg but no success. Did you try the animation in game? I tried it on vanilla game and it didn't work either. I'm using the assimilate version that comes with the SDK, is that the same as yours?

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...