Here are some tutorials that I got off filefront forums over Dragon. The big one was made by HeavymetalGungan who works on the JAU mod.
The second is a list of commands for Dragon.
*edit* Seems I can't attach the files.
Someone asked how to get animations in game, after I'd told then I was so proud of my answer I decided to share it with the world!
1. Open your stance/animation in dragon.
2. Make sure that your character's feet are on the floor, otherwise in game you'll be flying.
3. Type into the console: savegla filename. Make sure it isn't the same name as the original dragon file.
4. Copy and Paste your .GLA file into your _humanoid folder, if you don't have one you can make it:
5. If your made a new folder copy and paste the _humanoid.gla file, animation.cfg file and animevents.cfg* file from assets1.PK3 into your folder, if you already had it miss this stage.
6. Put the glamerge.exe file in your folder as well, it should be located in the same place as dragon.exe.
7.Open notepad and make a file with this in it:
"glamerge.exe" "_humanoid.gla" "Put your filename here.gla" -o
Save it as gla_merge.bat file in your _humanoid folder.
8. Check every thing is where it should be:
Your .GLA file
Then double click on the gla_merge.bat file.
You should get a message asking for a file name, if you don't then you have probably miss-typed something somewhere or don't have a file in the right place.
When typing in your file name DO NOT add .gla on the end or Glamerge will have a tantrum.
9.When GLAmerge has finished look in your _humanoid folder, you should now have a new file.
Delete the _humanoid.gla file then rename the new file _humanoid.gla.
10. Now open Modveiw (Comes with this Modeling/Skinning Guide and Tools, Jedi Knight 3 Downloads, Jedi Knight 3 Modding Tools)
and chose the animation/stance you want to replace.
11. Once you have chosen, find the animation in animation.cfg. If you are using a completely un-edited copy of _humanoid.gla, change the first number to 21376, this the starting frame of your animation. If your are using an edited copy of _humanoid.gla then find the newest animation added by looking at the final frame number of the animation right at the bottom of the list of animations. Put this new number instead of 21376. Also if you are using a changed _humanoid.gla you should also have a changed version of animation.cfg. Edit this instead of the default one.
12. Change the next number across to the amount of frames in your animation.
13. Change the 3rd number across to 0 if you want your animation to loop over and over until it is told to stop (eg. walking animation) or -1 if you want it to only play once and stay on the final frame until the event is over. For 1 frame stances either will work.
14. Change the final number across to the speed you want to play at. The default is 20, the dragon preview speed is 12. Negative numbers will make your animation play backwards.**
15. Save and close the animation.cfg file then open up Modveiw again. Scroll right to the bottom of the list of animations and you should find the animation you wanted to replace. Double click on it to veiw it.
16. Package your new _humanoid.gla file and animation.cfg file into a PK3 under. Models\players\_humanoid
17. Save and test!***
*Putting animevents.cfg in is not nessesary for this tutorial but can be usefull in other circumstances.
**When testing in modveiw the animation can only play at 20 and -20 fps, so don't be worried if it's going too fast/slow.
*** In SP it is best to load a new map instead of loading a saved game as sometimes JKA will try to load the old animations. Once they've been loaded once they should work on saved games.
Note: If you have already added an animation to the game you can miss out stages 5, 6 and 7. Just change the gla_merge.bat file to suit your new gla.
Once you've got used to it it's easy to get animations ingame. I can now do it in about 2 minutes.
Added (2009-05-07, 8:38 Pm)
Create a hierarchy of folders. Base -> Models -> Players -> _Humanoid.
In the _Humanoid folder, you should have the following files: GlaMerge.exe, Gla_Merge.bat, _humanoid.gla, and the gla you made in Dragon.
For the Gla_Merge.bat, create a text file in Notepad containing this:
"glamerge.exe" "_humanoid.gla" "X.gla" -o
Replace X with the name of your gla. Save it as "gla_merge.bat" (with the quotes)
Open the BAT file. It will ask you for the output filename. Whatever you call it, be sure to put .gla at the end.
Now, the gla you made is merged with the rest of the motions that were in the _humanoid.gla
Move this new GLA to Models-> Players-> _Humanoid, and rename it "_humanoid". This will replace the default one.
The next step is to mess with the Animation.cfg to get your desired results.
Then you just pack it, along with the modified Animation.cfg, into a PK3.
Hope that helps.____
HOW TO IMPORT ANIMATIONS!!
Ah, that is quite a simple matter:
1. Go into your dragon folder and replace JA_humanoid.gla with the _humanoid file from your base.
2. Find the startframe and length of the animation you want to edit.
3. In dragon type the following into the console
Impframe "Startframe" "length" (remover quotes)
You only ever have to do step 1 once. You don't have to do it each time your import a series of frames.
Added (2009-05-07, 8:41 Pm)
Hit T to load up the dragondefault.cfg and get started! - You can also add "exec dragondefault" to your autoexec.cfg file, so that it'll automagically load up from now on.
Finally. This test has the bone tree list, with scroll bars, rotates like usual, the list has some functionality to change the interpolation of bone blending, and lets you enable/disable blending for a bone with a click. You also get to hit TAB to complete commands, which seems to work for the most part. It'll list all the commands if there's several to choose from. There's some bugs, but it's also a lot of improvement.
Also, I added a command to list all the possible console commands, "cmdlist" - here's the output, I'll be expounding upon this list and organizing it so that it can be incorporated in to the manual.
Dragon Command List (added some descriptions 10-18-2006)
Dragon General Commands
echo - prints out everything after 'echo' to the console.
quit - exits dragon.
exit - exits dragon.
exec - executes a configuration file. Functionally the same as the 'load' command.
cmdlist - with an argument, prints out a list of commands that start with the argument. Without an argument, it prints all commands.
screenshot - takes a screenshot. If there is no 'screenshots' directory, this crashes dragon. Dragon now attempts to create a screenshots directory when it loads up, if there isn't one.
texflush - flushes the textures, which causes Dragon to reload textures.
togui - toggles the UI, good for screenshots Smile.
Dragon Animation commands
finsb - Insert a frame before the current frame.
finsa - Insert a frame after the current frame
fblend <number> - Inserts a number of frames between the current one and the next one, they are all set to blend.
fnext - Goes to the next frame. If you're already at the end, adds a frame.
fprev - Goes to the previous frame.
fcnext - Goes to the next frame. If you're at the end, it goes to the start.
fcprev - Goes to the previous frame. If you're at the start, it goes to the end.
fcpy <number> - Copies the given frame number.
fcpynext - Copies the frame after the current frame.
fcpyprev - Copies the frame before the current frame.
fdel - Deletes the current frame.
animset <sequencename> - sets playback animation to sequencename. (needs animplay)
animnext - sets playback animation to the next sequence in the animation config. (needs animplay)
animprev - sets playback animation to the previous sequence in the animation config. (needs animplay)
animmake - Tells dragon you want to make an animation for the currently selected scene member.
animplay - Tells dragon you want to play animations for the currently selected scene member.
bonesel <number> - Picks bone by number.
boneprev - Picks the bone before the currently selected bone.
bonenext - Picks the bone after the currently selected bone.
bonereset - Resets the posing information for the currently selected bone.
limbreset - Resets the posing information for the currently selected bone, as well as the bones below it in the hierarchy.
boneallreset - Resets the posing information for all bones.
mbtog <number> - Turns bone blending on and off for either the currently selected bone (no arguments) or the bone specified (by number).
mbtype <type> - Sets the blend type (linear, sin, cos, sininv, cosinv) for the currently selected bone.
mbcycle <number> - Cycles bone blend type for either the currently selected bone (no arguments) or the bone specified (by number). Cyle is: linear, sin, cos, sininv, cosinv, manual
seqnew <name> -
seqsel <name> -
seqname <name> -
seqdel <name> -
frame <number> - Jumps to frame
bone - Used by the save/load system to save a bone's transform info.
fspeed <number> -
save <path> -
savegla <path> -
load <path> - Functionally the same as exec, exists as a partner to the 'save' command which saves the animation sequences for the currently
Dragon Scene Member commands
smcreate <name> - creates a scene member with the given name. If there's already one with that name, it'll just select that one. If you dont' give a name, it'll make up one, such as Dragon000, Dragon001 and so on.
smmodel <path> - loads a model at the given path. If there is no model there, it won't load it, for obvious reasons.
smanim <path> - loads the animation file at the given path.
smskin <path> - loads the model's skin at the given path.
smflag <flagname> - sets a flag for the current scene member. Currently the only flag is "noautoload", which affects the way the model loads. If it's not set, Dragon attempts to automatically load the models specified animation file. For player models (JKA) this path is models/players/_humanoid/_humanoid.gla
smclearflags - this clears flags for the current scene member.
smbolt <scene member target> <bolt name> - will attach the current scene member to 'scene member target' at 'bolt name'. To attach a gun to the 'hand' tag on a scene member 'Bob', the command would be 'smbolt Bob hand'. You'd use smcreate to select the gun scene member first, though.
smrotz <number> - adjusts the Z rotation (ie, the direction the scene member is facing) for the current scene member.
smorg <position x> <position y> <position z> - adjusts the origin for the current scene member, ie where the member is located.
Dragon Spoon Onion Skin Commands
spnonitog - toggles the display of the 'onion skin'. An onion skin basically shows the positions of the bones in the frames before and after the current frame. Can be a big aid in posing.
spnoniback <number> - specifies a number of frames for the onion to display prior to the current frame.
spnonifore <number> - specifies a number of frames for the onion to display follwing the current frame.
spnoniforecolst <red> <green> <blue> <alpha> - specifies the color of the onions for the frames before the current frame
spnoniforecolen <red> <green> <blue> <alpha> - specifies the color of the onions for the frames before the current frame
spnonibackcolst <red> <green> <blue> <alpha> - specifies the color of the onions for the frames after the current frame
spnonibackcolen <red> <green> <blue> <alpha> - specifies the color of the onions for the frames after the current frame
Dragon Interface Scripting commands
litinfo <position x> <position y> <position z> <position val> - sets the lighting origin.
litambi <red> <green> <blue> <value> - sets the ambient light color.
litdiff <red> <green> <blue> <value> - sets the diffuse light color.
bgcolor <red> <green> <blue> <alpha> - sets the background color.
textcolor <red> <green> <blue> <alpha> - sets the text color. Doesn't affect the UI boxes.
newbutton <name> <command down> <command up> <rate_in> <ref_in> - Buttons have the power to move around smoothly, and execute commands on keypress or key-release.
bind <key> <command> - key should be in upper case (though I'll fix that someday), the rest of the line is a command you'd enter normally.
bindname <filename> - filename is the name of your binds save file. That way your key binds are preserved across sessions.
r_fullscreen <number> - 1 = fullscreen, 0 = not fullscreen. Changes the mode right away.
rfull - changes to and from fullscreen.
r_znear - changes the near extent of the view, setting it reasonably can help the depth buffer. Some nVidia cards had problems with really high values.
r_zfar - changes the far extent of the view, setting it reasonably can help the depth buffer. Some nVidia cards had problems with really high values.
r_fov - changes the 3d view's field of vision.
r_mode <number> - set screen size. Dragon will attempt to 'reel in' the UI boxes. Sizes are: 0 = 400x300, 1 = 640x480, 2 = 800x600, 3 = 1024x768, 4 = 1280x1024.
r_maxfps <number> - will limit the framerate of Dragon. Too low is bad, around 24-96 would be good.
Dragon Spoon Scripting commands
Dragon UI scripting commands