Adding custom shield tutorial

From Dragon Age Toolset Wiki
Jump to: navigation, search

Author: amycus

Tools:

  • 3ds max (gmax) no older than 2011 year - Eshme Import/Export DAO Tools doesn't work with new versions.
  • Eshme Import/Export DAO Tools - Script for 3s max
  • Dragon Age Origins and Dragon Age Toolset - install it in the same folder as the game.
  • Adobe Photoshop and Nvidia DDS Plugin for textures.
  • Create GDA file. See also Compiling 2DAs. You can use this program GDA Editor to work with GDA type.
  • Engine won't work with models bigger than 45 000 polygons and 30 000 vertexes.

Before we begin extract DAO resources and keep it somewhere. You will need them.

You can use also the toolset to extract the models and textures, but fisrt you need to know the name of what you are looking for, in the tooset go File->Open file-> /packages/core/data/modelmeshdata.erf there you have some strings to help you find the models: shield:w_shd.

Extract from:

  • the modelmeshdata.erf the .msh files, the _0 files - high level of detail (LOD) and the _2 and _3 files - low level of detail when other NPCs are using them and they are far away from you.
  • in the .../core/data/modelmeshhierarchy.erf you need extract the .mmh and .phy files.
  • in the .../core/data/materialobjects.erf you need to extract the .mao file.
  • the textures.erf (.../core/textures/high/) the .dds files.
  • in the files .../core/data/textures.erf (props, placeables) and/or .../core/textures/high/textures.erf (characters and armours) you need to extract the .dds files.

Script Settings

Watch where you install Eshme script - program files(x86) for 32 programs at 64 bit computers. Eshme script and the game have to be in one folder of program files.

Take Eshme Import/Export: Startup, YAGG and DAOTools -> put into C(your disc):/Program Files/Autodesk/3dsmax/Scripts -> scripts

If your installation is correct them when you first open 3d man you will see window with the settings

The path setting depends on the installation path. It should look similiar to this setting: The export path : C:\Program Files (x86)\Dragon Age The game path : C:\Program Files (x86)\Dragon Age\packages\core\override

3d Max

1) Import any base shield of the vanilla game. Unlike for armor, you dont need to think how close the vanilla item is to the new one, ANY vanilla shield will do.

2) Import the new shield you want to import to the game. Take the extra time needed to get the size and angle right compared to the vanilla shield.

3) Collapse any active modifiers on the "new" item. Then add a new "unwrap UVW" modiefier to it, and double click it to open the UVW window. then drag and select everything you see there, and DRAG IT ANYWHERE OUTSIDE THE OUTLINED BOX IN THE CENTER. This will make life easier for you in step 6.

4) Then select the vanilla mesh, and select all modifiers BESIDES this one's "unwrap UVW" modifier. Then right-click and choose "cut" here (these modifiers we will want to use again soon). Make this vanilla mesh an "editable mesh" (right click the mesh and select "make editable mesh").

5) Now attach the vanilla shield with the "new" shield.

6) Add a new "unwrap uvw" modifier to the combined mesh. Make sure that it is listed above the other modifiers, and press the "+" sign to it's left. Select "face", and select everything that is inside the outlined box in the middle. Right click the "unwrap UVW" modifier and choose "collapse to".

7) Next press the "+" sign that is to the left of the words "editable mesh". Then choose "element" and press delete. Paste the old modifiers I asked you to cut in step 4.

9) Add all textures and export it with Eshmes tools.

See also