Langerd Posted February 3, 2016 Share Posted February 3, 2016 Well i want to make my crystal guard model use diffrent animations. I imported the _humanoid from the "models/players/_humanoid_crys_guard/_humanoid folder" to blender and selected whole modeland than export. I also put in this folder animation and animevents. I gave the paths and checked the animations of him in modview. But when i wanted to see him in the game.. he was using basic _humanoid animations :S (In my mod we dont have guns but elemental powers. Players are shooting stuff from left hand.. but for him i want to use two hands just simply using the force lightning animation)How to make that work? Is there a path thing in _humanoid as well? Link to comment
Langerd Posted February 3, 2016 Author Share Posted February 3, 2016 Help! Maybe i could upload here the model for someone to make it work.http://jkhub.org/topic/2072-how-to-replace-the-animation-for-just-one-character/ I got this but the Hex editor didnt worked :S Link to comment
Asgarath83 Posted February 4, 2016 Share Posted February 4, 2016 @@Psyk0Sith ?@@katanamaru ? Link to comment
Langerd Posted February 4, 2016 Author Share Posted February 4, 2016 Ramikad likes this Link to comment
Psyk0Sith Posted February 4, 2016 Share Posted February 4, 2016 Psyk0Sith has no idea. Link to comment
Asgarath83 Posted February 4, 2016 Share Posted February 4, 2016 @@Langerdokay, houston, we got a problem.Mmmm... let me think. you want a custom animation for an NPC of your mod, however it use the _humanoid.gla of default of _humanoid.mmm, well for not humanoid enemy, if you are looking for it.example saber droid folder. you find. GLM: it's the model rigged.humanoid.gla -> skeleton animations in sequence.animations.cfg ->animation sequenzce script information.animevents ->sound or special efx played by an animation to a specificic frame. what you need to do?mmm, try that.-copy _humanoid.gla into the folder of your crystal guard.- copy animation.cfg and animevents.cfgopen animation.cfg of default _humanoid folder of JKA. go to the animation BOTH_FORCE_2HANDEDLIGHTNING (now i not remember exactly it's name) and copy all numerical value of his line.Paste these numerical values, for repliacing the BOTH_ATTACK3 and BOTH_ATTACK2 animation (blaster and rifle shooting animation) of the custom animation.cfg file of your crystal guard. Now crystal guard should use the lightning shoot animation for shooting the projectiles. i tryed these in past and the result was not much good for some problem of tag alignment. D: i hope it works. good luck. Link to comment
Langerd Posted February 4, 2016 Author Share Posted February 4, 2016 (edited) @@Langerdokay, houston, we got a problem.Mmmm... let me think. you want a custom animation for an NPC of your mod, however it use the _humanoid.gla of default of _humanoid.mmm, well for not humanoid enemy, if you are looking for it.example saber droid folder. you find. GLM: it's the model rigged.humanoid.gla -> skeleton animations in sequence.animations.cfg ->animation sequenzce script information.animevents ->sound or special efx played by an animation to a specificic frame. what you need to do?mmm, try that.-copy _humanoid.gla into the folder of your crystal guard.- copy animation.cfg and animevents.cfgopen animation.cfg of default _humanoid folder of JKA. go to the animation BOTH_FORCE_2HANDEDLIGHTNING (now i not remember exactly it's name) and copy all numerical value of his line.Paste these numerical values, for repliacing the BOTH_ATTACK3 and BOTH_ATTACK2 animation (blaster and rifle shooting animation) of the custom animation.cfg file of your crystal guard. Now crystal guard should use the lightning shoot animation for shooting the projectiles. i tryed these in past and the result was not much good for some problem of tag alignment. D: i hope it works. good luck.In Glm there is a path to the skeleton so i made it like that : models/players/_humanoid_crys_guard/_humanoidIn Modview the animations works fine! Because it is actually using the animation file... but not in the game..The catch is that .. the gla file has the same stupid thing. It has path but for normal _humanoid... There were tutorials that wanted me to use the hex editor and even notepad (but in the desperate situations..) but they didnt help :/ The Gla after saving the changes was crashed..I wanted to make it work in blender but blender is crashing too..Is there any program (3D program) where i can fix this? Edit: I remember that it is possible because the Movie Duels 2 modification had diffrent animations for all characters so it is possible to do it.. Edited February 4, 2016 by Langerd Link to comment
Asgarath83 Posted February 4, 2016 Share Posted February 4, 2016 Aw, craps. so the humanoid_gla get some reading troubles for engine.mmmm i really ask to myself how is possible that the not humanoid gla working fine... but maybe they are builded for works exactly in their path. this can happen also to humanoid.gla and that can explain is strange behavour.that's go over my skills. :\ i never had much good for animation.i think your unique hope for fix this is to contact the staff of movie battle II.sure they know how to fix this problem. >.< Link to comment
AshuraDX Posted February 4, 2016 Share Posted February 4, 2016 @@Langerd it definitely requires a hex editor - or recompiling the model with another GLA pass me your files and I'll have a look, maybe I can find and fix the problem Link to comment
Langerd Posted February 4, 2016 Author Share Posted February 4, 2016 @@Langerd it definitely requires a hex editor - or recompiling the model with another GLA pass me your files and I'll have a look, maybe I can find and fix the problemhttps://www.dropbox.com/s/bu1x3cp82lvkex8/crys.RAR?dl=0 Here Ya go! Like i said this is just copied _humanoid but in the other folder and with diffrent animations. Check it in the game. Link to comment
AshuraDX Posted February 5, 2016 Share Posted February 5, 2016 hmI just had a quick look over it and I don't see anything wrong really, didn't get to try it out yet but I have a theory :try renaming your new _humanoid folder _humanoid_cg and change the file path in the model.glm again I suspect that the game simply refuses to load the GLA because the filepath is too long, as the current filepath you have is 44 characters longwhile I seem to recall that the game has problems with filepaths exceeding 32 characters Link to comment
Langerd Posted February 5, 2016 Author Share Posted February 5, 2016 hmI just had a quick look over it and I don't see anything wrong really, didn't get to try it out yet but I have a theory :try renaming your new _humanoid folder _humanoid_cg and change the file path in the model.glm again I suspect that the game simply refuses to load the GLA because the filepath is too long, as the current filepath you have is 44 characters longwhile I seem to recall that the game has problems with filepaths exceeding 32 charactersStill .. basic animations. First i fought that is it because of the npc class - Rocketrooper.. but nope.I still thinks that it is caused by this : As i said.. even hex editor didnt work on that. It destroys the file. This is _humanoid in models/players/_huamnoid_cg folder..But path in the gla goes to the default one. Link to comment
AshuraDX Posted February 6, 2016 Share Posted February 6, 2016 @@Langerd the path in the GLA file shouldn't matterAnyway after taking a look at the model in modview, which animations were it that you changed ?okay, I found the changed animations - you changed the animations for the pistol as far as I can tell seeing that it works in modview there are only a few other possible problems :1. make sure you don't have a duplicate of the crystal guard model in your base folder that still has the original GLA path in it2.Does the weapon you made him use in his NPC file even use the WEAPON2 stance? Maybe the weapon you gave him uses the rifle instead of pistol stance and that's why your change won't appear? this seems not too far off going by the information you supplied here, going by the appeareance of this guard I'd expect him to use Ice or Lightning based attacks and both of those weapons use the rifle stance, isntead of the pistol stance which is the one you replaced Link to comment
Langerd Posted February 6, 2016 Author Share Posted February 6, 2016 (edited) @@Langerd the path in the GLA file shouldn't matterAnyway after taking a look at the model in modview, which animations were it that you changed ?okay, I found the changed animations - you changed the animations for the pistol as far as I can tell seeing that it works in modview there are only a few other possible problems :1. make sure you don't have a duplicate of the crystal guard model in your base folder that still has the original GLA path in it2.Does the weapon you made him use in his NPC file even use the WEAPON2 stance? Maybe the weapon you gave him uses the rifle instead of pistol stance and that's why your change won't appear? this seems not too far off going by the information you supplied here, going by the appeareance of this guard I'd expect him to use Ice or Lightning based attacks and both of those weapons use the rifle stance, isntead of the pistol stance which is the one you replacedThanks for helping me btw :3 Hmm He is using the one hand like on these screens. But i want him use his weapons with two hands.And I made him using - Trip mines with alt function and ATST side attack. I change the looking of trip mines to crystals and atst side effect to be crystal bolts. My modification is based on my story and there are no Atst's XD but i remembered that his side shots cannot be deflected with the saber and these shots take a lot of damage. Still doesnt work.. but i find out now that Blender dont import the glm with the path of animation that i want and i start to lose my patience I am goin to destroy my f@$king keyboard... Edit: Maybe it is because i have these files in folders not in zip files?~- Edit2: Nope still ot work.. And i find out that some models have their animations in the same folder... But i am using the humanoid and find out that animations.cfg file do nothing.. Edited February 6, 2016 by Langerd Link to comment
Darth Sion Posted February 6, 2016 Share Posted February 6, 2016 That awkward moment when you realize those WERE the droids you were looking for.. Langerd and Ramikad like this Link to comment
Solution katanamaru Posted April 29, 2016 Solution Share Posted April 29, 2016 Okay here I am.Here's a guide I wrote up on the file front forums:___Here is how I did it for my Galen backhand animations.1a. Have the _humanoid.gla and animation.cfg that you want to use1b. Have the playermodel you want to use.2. make a new set of folders in the playermodels folders following this pathmodels/players/_humanoid_dbgalen3. Put the _humanoid.gla, animation.cfg, and animevents.cfg in the new _humanoid_dbgalen folder.4. Use the hex editor HxD and open the _humanoid.gla.5. Find the path that reads: models/players/_humanoid/_humanoid6. Change it to: models/players/_humanoid_dbgalen/_humanoid_dbgalen7. Save as _humanoid_dbgalen.gla8. Using the hex editor HxD open the playermodels model.glm9. Find the path: models/players/_humanoid/_humanoid and change it to models/players/_humanoid_dbgalen/_humanoid_dbgalen and save it (don't rename this one, make sure it stays model.glm.10. Delete the original _humanoid.gla. Zip, pk3, and test it out.Doing this will allow you to set multiple characters to have their own animations. The only down side is that this will mess up most of the sp cutscenes. That is because the cutscenes reference the _humanoid.gla and since we just changed it to _humanoid_dbgalen.gla they will not work.It could be fixed by changing the path of all the cutscene animations but really it is not worth the effort.___ Langerd, Ramikad, Asgarath83 and 1 other like this Link to comment
Langerd Posted April 29, 2016 Author Share Posted April 29, 2016 Strange because .. exporting the model WITH the path to the skeleton crushed the model and the skeleton before O.oNow when i edited both files in Hex editor - They work fine :3You deserve the Millenium Falcon cookie!Many Thanks Guys and specially @katanamaru Okay here I am.Here's a guide I wrote up on the file front forums:___Here is how I did it for my Galen backhand animations.1a. Have the _humanoid.gla and animation.cfg that you want to use1b. Have the playermodel you want to use.2. make a new set of folders in the playermodels folders following this pathmodels/players/_humanoid_dbgalen3. Put the _humanoid.gla, animation.cfg, and animevents.cfg in the new _humanoid_dbgalen folder.4. Use the hex editor HxD and open the _humanoid.gla.5. Find the path that reads: models/players/_humanoid/_humanoid6. Change it to: models/players/_humanoid_dbgalen/_humanoid_dbgalen7. Save as _humanoid_dbgalen.gla8. Using the hex editor HxD open the playermodels model.glm9. Find the path: models/players/_humanoid/_humanoid and change it to models/players/_humanoid_dbgalen/_humanoid_dbgalen and save it (don't rename this one, make sure it stays model.glm.10. Delete the original _humanoid.gla. Zip, pk3, and test it out.Doing this will allow you to set multiple characters to have their own animations. The only down side is that this will mess up most of the sp cutscenes. That is because the cutscenes reference the _humanoid.gla and since we just changed it to _humanoid_dbgalen.gla they will not work.It could be fixed by changing the path of all the cutscene animations but really it is not worth the effort.___ katanamaru likes this Link to comment
Langerd Posted April 29, 2016 Author Share Posted April 29, 2016 The only problem i see is that ragdoll doesnt work on the character. They act like Jk2 bodies or bodies after broadsword 0 Link to comment
katanamaru Posted May 9, 2016 Share Posted May 9, 2016 Sorry, I can't help with ragdoll. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now