Tutorial:AssetEditor: Difference between revisions

From Total War Modding
No edit summary
(Elon and calm&normalwalked me through the basics for finding a rigid model and I update the text with their guidance here.)
Line 31: Line 31:
Select a .rmv2 file to open the Kitbash Editor
Select a .rmv2 file to open the Kitbash Editor


Some text to come here, maybe someone want to write it?
Find your self a model to play with.  Go to:
 
variantmeshes/
 
wh_variantmodels/
 
There is folders named after skeletons.  hu1 is for humans.
 
In hu1 you have files for each factions that use it.
 
Look for a file that ends with .rigid_model_V2
 
Ignore the .wsmodels for now


Youtube tutorial: https://www.youtube.com/watch?v=LeObDGqV2PM
Youtube tutorial: https://www.youtube.com/watch?v=LeObDGqV2PM
Line 54: Line 66:
[[File:BmiTool After.png|none|thumb|After]]
[[File:BmiTool After.png|none|thumb|After]]


===Mount Animation Creator===
===Mount Animation Creator ===
The tool also allows for attaching an animation to a vertex on an other skeleton. This is useful for creating mount animations for mount that does not exist in the game.  
The tool also allows for attaching an animation to a vertex on an other skeleton. This is useful for creating mount animations for mount that does not exist in the game.  


Line 62: Line 74:
A run-through of the UI components:
A run-through of the UI components:


# Information about the rider and mount (mesh, skeleton and animation)
#Information about the rider and mount (mesh, skeleton and animation)
# Control how the rider is attached to the mount
#Control how the rider is attached to the mount
#* Rider root bone (probably never change this)
#* Rider root bone (probably never change this)
#* Leg animation (disabled for now)
#*Leg animation (disabled for now)
#* The vertex the rider is attached to. Select the mount, press F3 then select the vertex that the rider should be select to and press Set. The first selected vertex is used if multiple vertexes are selected
#*The vertex the rider is attached to. Select the mount, press F3 then select the vertex that the rider should be select to and press Set. The first selected vertex is used if multiple vertexes are selected
# Settings for the animation - Hopefully pretty intuitive
#Settings for the animation - Hopefully pretty intuitive
# Rider and mount animation fragment and active slots  
#Rider and mount animation fragment and active slots  
#* Mount is the animation fragment used by the mount
#*Mount is the animation fragment used by the mount
#* Rider is the animation fragment used by the rider
#*Rider is the animation fragment used by the rider
#* Mount animation tag is the animation used by the mount
#* Mount animation tag is the animation used by the mount
# Save and Preview:
#Save and Preview:
#* Update the preview to reflect changes done in the animation settings view
#*Update the preview to reflect changes done in the animation settings view
#* Active fragment to add items to
#*Active fragment to add items to
#* Slot in the active fragment to add to
#*Slot in the active fragment to add to
#* Batch process based on the values in "Mount link shortcut view"
#*Batch process based on the values in "Mount link shortcut view"
# Drawing related things
#Drawing related things
[[File:Mount tool defaultworkflow.png|none|thumb|Screenshot]]
[[File:Mount tool defaultworkflow.png|none|thumb|Screenshot]]
[[File:Image2.png|none|thumb|Selecting vertex]]
[[File:Image2.png|none|thumb|Selecting vertex]]


==== Workflow ====
====Workflow====
# Select rider and mount meshes
#Select rider and mount meshes
# Select attachment point
#Select attachment point
# Select rider and mount fragment
#Select rider and mount fragment
# Play around with the settings until you are happy with how it looks
#Play around with the settings until you are happy with how it looks
# Press Batch prosess to generate animpack, bin and fragment.
#Press Batch prosess to generate animpack, bin and fragment.
# Look at the report to see if manual tweaks are needed.
#Look at the report to see if manual tweaks are needed.
# If manual tweaks are needed:
# If manual tweaks are needed:
## Load the new fragment into "selected fragment"
##Load the new fragment into "selected fragment"
## Find a slot that needs to be fixed.
##Find a slot that needs to be fixed.
## Select the correct Mount tag for the selected rider slot
## Select the correct Mount tag for the selected rider slot
## Select a rider tag that looks good
##Select a rider tag that looks good
## Press add to fragment
##Press add to fragment
## Repeat
##Repeat
[[File:Mount tool defaultworkflow fixstuff.png|none|thumb]]
[[File:Mount tool defaultworkflow fixstuff.png|none|thumb]]


==== Sliding ====
====Sliding====
If the rider is sliding around or popping, make sure that the scale of the mount is correct.
If the rider is sliding around or popping, make sure that the scale of the mount is correct.


==== Matched animations ====
====Matched animations====
Matched animations does not work well right now, I recommend deleting them.  
Matched animations does not work well right now, I recommend deleting them.  


Line 106: Line 118:
The tool can display and edit most meta file, more information will be added later[[File:ImageMeta.png|none|thumb]]
The tool can display and edit most meta file, more information will be added later[[File:ImageMeta.png|none|thumb]]


== Tips and tricks ==
==Tips and tricks==

Revision as of 20:23, 10 July 2021

The AssetEditor is a poor man's 3d program for Total war games (currently only supports WH2).

It aims at trying to recreate the Kit bashing feeling you get when working with plastic models.

Download link: https://github.com/olekristianhomelien/TheAssetEditor/releases/latest

Youtube tutorials: https://www.youtube.com/channel/UCXnf2q9fRNYlMn4XULPLKgg

Disclaimer: I am not good at technical writing or enjoy it, so if someone feels the desire to improve this, then please!

Basics

Camera

All the visual editors uses ALT+ Mouse to move the camera.

Zoom = Alt+ Mouse Wheel

Move = Alt + Right button

Rotate = Alt + Left button

Saving

The tool works both with individual files and the pack files themselves. As a result of this each of them has to be saved separately. Saving a file in an editor adds it to the in memory packfile (which then goes red), which have to be right clicked then saved.


Sub Tools

Kitbash Editor

Select a .rmv2 file to open the Kitbash Editor

Find your self a model to play with. Go to:

variantmeshes/

wh_variantmodels/

There is folders named after skeletons. hu1 is for humans.

In hu1 you have files for each factions that use it.

Look for a file that ends with .rigid_model_V2

Ignore the .wsmodels for now

Youtube tutorial: https://www.youtube.com/watch?v=LeObDGqV2PM

Re-Regging

One of the key parts of the Kitbash editor is the ability to re-rig a mesh from one skeleton to an other. If this is not done, the mesh will turn into spaghetti when an animation is applied.

It works by doing a 1:1 mapping between bones in the original skeleton (left side) and the target skeleton (right side)

It works by selecting bones one by one on the left side and then selecting a bone on the right side. When this is done the column on the left side that says -1 should turn into the same the bone selected on the right side.

The tool can also attempt to auto fit the mesh onto the skeleton by selecting the "Fit mesh to skeleton" checkbox.

ReriggingImage.png
Bone selected and mapped correctly
Old and messy tutorial

BMI tool

The BMI editor allows the scaling of a mesh along its normals. This gives the impression of adding or removing thickness to and object.

All the bones that are selected in the tree view is applied to the scale when the apply button is pressed.

Before
After

Mount Animation Creator

The tool also allows for attaching an animation to a vertex on an other skeleton. This is useful for creating mount animations for mount that does not exist in the game.

An example of this would be adding a Squig mound to Karl Franze or a Lion animation to the High Elf Princess. https://www.youtube.com/watch?v=4dKFXAu4R1Y


A run-through of the UI components:

  1. Information about the rider and mount (mesh, skeleton and animation)
  2. Control how the rider is attached to the mount
    • Rider root bone (probably never change this)
    • Leg animation (disabled for now)
    • The vertex the rider is attached to. Select the mount, press F3 then select the vertex that the rider should be select to and press Set. The first selected vertex is used if multiple vertexes are selected
  3. Settings for the animation - Hopefully pretty intuitive
  4. Rider and mount animation fragment and active slots
    • Mount is the animation fragment used by the mount
    • Rider is the animation fragment used by the rider
    • Mount animation tag is the animation used by the mount
  5. Save and Preview:
    • Update the preview to reflect changes done in the animation settings view
    • Active fragment to add items to
    • Slot in the active fragment to add to
    • Batch process based on the values in "Mount link shortcut view"
  6. Drawing related things
Screenshot
Selecting vertex

Workflow

  1. Select rider and mount meshes
  2. Select attachment point
  3. Select rider and mount fragment
  4. Play around with the settings until you are happy with how it looks
  5. Press Batch prosess to generate animpack, bin and fragment.
  6. Look at the report to see if manual tweaks are needed.
  7. If manual tweaks are needed:
    1. Load the new fragment into "selected fragment"
    2. Find a slot that needs to be fixed.
    3. Select the correct Mount tag for the selected rider slot
    4. Select a rider tag that looks good
    5. Press add to fragment
    6. Repeat
Mount tool defaultworkflow fixstuff.png

Sliding

If the rider is sliding around or popping, make sure that the scale of the mount is correct.

Matched animations

Matched animations does not work well right now, I recommend deleting them.

Anm.Meta files Editor

The tool can display and edit most meta file, more information will be added later

ImageMeta.png

Tips and tricks