Creating new Animations (3DS MAX): Difference between revisions

From OuroDev
pc>Fuzzy c
pc>Fuzzy c
Line 18: Line 18:
== GetAnimation2 ==
== GetAnimation2 ==
This tool converts the ANIMX file exported from 3DS in to the ANIM file format which the game uses for animation.
This tool converts the ANIMX file exported from 3DS in to the ANIM file format which the game uses for animation.
It is simple to use and only needs a few command line switches to work.
It is simple to use and only needs a few command line switches to work. For a full reference of flags, go to [[#Command Line flags Reference]].


All Command Line flags from GetAnimation2:
Before you can convert to ANIM, You will need a SKELX file which can be generated by GetAnimation2. While it says "DO NOT USE" for the -s flag, it can used and it generated the ANIM file without errors (resulting ANIM file untested currently). Once you have SKEL files, you can skip this step.<br />
*Extract an ANIM file from the pigg files using tool of choice (like Piglet).
*Run <code>GetAnimation2 -s <extractedfile>.anim</code> This will generate the SKELX file.
 
To generate the '''ANIM''' files, all you need to do is run <code>GetAnimation2 models\<youranimxfile>.animx</code> (It complains about paths, can't remember right now)<br/>
Pack this file in to a pigg and test it out.
 
=== Command Line flags Reference ===
<pre>-monitor          Continue running and monitor the given folder for animation changes
<pre>-monitor          Continue running and monitor the given folder for animation changes
-prescan          When starting monitor mode scan the hierarchy for files that need processing
-prescan          When starting monitor mode scan the hierarchy for files that need processing
Line 39: Line 46:


-?                Print this help</pre>
-?                Print this help</pre>
Before you can convert to ANIM, You will need a SKELX file which can be generated by GetAnimation2. While it says "DO NOT USE" for the -s flag, it used it and generated the ANIM file later. You can skip this step once you have SKEL files<br />
Extract an ANIM file from the pigg files using tool of choice (like Piglet). Run <code>GetAnimation2 -s <extractedfile>.anim</code> This will generate the SKELX file. <br />
Run <code>GetAnimation2 <youranimxfile>.animx</code> and it will generate an ANIM file. Pack this file in to a pigg and test out.


== Notes ==
== Notes ==
<pre>Fuzzy_c: I copied the name from an emote and replaced it when testing.
<pre>Fuzzy_c: I copied the name from an emote and replaced it when testing.
ANIM files have a relation to SKEL files. You can reverse an ANIM file then read the resulting ANIMX file (plain text) to find the SKEL file it used. You can then extract the SKELX file from the SKEL file using the same process as ANIM using the -s flag.</pre>
ANIM files have a relation to SKEL files. You can reverse an ANIM file then read the resulting ANIMX file (plain text) to find the SKEL file it used. You can then extract the SKELX file from the SKEL file using the same process as ANIM using the -s flag.</pre>

Revision as of 23:04, 21 May 2019

Introduction

This page intends to document the process to create new animations for the game. It attempts to re-create some of the same steps Cryptic/Paragon would have used to achieve the same goal. You will need a few prerequisites before you will be able to build animations for the game.

  • 3DS Max 2011 (or 2008) Note: I have used and tested 3DS Max 2011
  • Master rig files from the Scrapyarders dump.
  • ANIMX Export Plug-in for 3DS - found in the source and needs to be compiled.
  • GetAnimation2.exe Note: This version is the current, the GetAnimation doesn't use the new anim format
  • SKELX files - These can be generated from game files. Looking for the original files.
  • PIGG packing tool (Piglet, pigg tool from source)

3DS Max

Open 3DS Max and load the master rig file. Create an animation using the rig. (some thing might go wrong later as I used the default animation in the rig) Load the export plugin if you don't have it already loaded: Customize > Manage Plugins > right click > load plugin > find the plugin and open it. Export from 3DS and pick the ANIMX format from the list and saving the file.

You are finished with 3DS at this point.

GetAnimation2

This tool converts the ANIMX file exported from 3DS in to the ANIM file format which the game uses for animation. It is simple to use and only needs a few command line switches to work. For a full reference of flags, go to #Command Line flags Reference.

Before you can convert to ANIM, You will need a SKELX file which can be generated by GetAnimation2. While it says "DO NOT USE" for the -s flag, it can used and it generated the ANIM file without errors (resulting ANIM file untested currently). Once you have SKEL files, you can skip this step.

  • Extract an ANIM file from the pigg files using tool of choice (like Piglet).
  • Run GetAnimation2 -s <extractedfile>.anim This will generate the SKELX file.

To generate the ANIM files, all you need to do is run GetAnimation2 models\<youranimxfile>.animx (It complains about paths, can't remember right now)
Pack this file in to a pigg and test it out.

Command Line flags Reference

-monitor           Continue running and monitor the given folder for animation changes
-prescan           When starting monitor mode scan the hierarchy for files that need processing
-f                 Force all animations to be reprocessed regardless of age comparison
-noperforce        Does not access asset version control system during processing. This can be used to
                     work offline from Perforce. Also handy for development testing.

-e <.anim>         Given a path to a runtime .anim file this will convert it to human readable
                     text files and then quit. Useful for debugging and examining the runtime data.
-s <.anim> <dest>  Given a path to a runtime .anim file this will convert it to source asset
                     files, .SKELX and .ANIMX, placed in the destination.
                     These files can be fed back as source assets or imported to MAX.
                     DEVELOPMENT IN PROGRESS - DO NOT USE!
-batch_src         Start at the current working directory and convert old .WRL associated .anim
                     files to the new source animation formats: .SKELX and .ANIMX.
                     Don't use this command unless you are aware of the files it will overwrite.
                     DEVELOPMENT IN PROGRESS - DO NOT USE!

-?                 Print this help

Notes

Fuzzy_c: I copied the name from an emote and replaced it when testing.
ANIM files have a relation to SKEL files. You can reverse an ANIM file then read the resulting ANIMX file (plain text) to find the SKEL file it used. You can then extract the SKELX file from the SKEL file using the same process as ANIM using the -s flag.