Saints Row 2 Misc Utils

drums.gif


I spent some time looking at other formats than chunks. Turns out packfiles are pretty well figured out and smesh/cmesh consist of the same pieces I had already found in chunks.

Tools:
  • Packer
    A cli packfile tool that's probably worse than minimaul's in every way.
  • Model viewer
    It can be used to examine static mesh (smesh/cmesh) files and dump geometry.
    Smesh is mostly covered. Does nothing with the parts that are only used in cmesh (rigs/morphs/etc.)
    Contains some unfinished features that I'd rather not write a full how-to for yet.
And as always, it's open source so the next person doesn't have to reinvent the wheel.

Download from github: https://github.com/sevonj/v_utils/releases
 
How would I save a model with a altered texture in the application. Also how would I put that into the game itself?
 
How would I save a model with a altered texture in the application. Also how would I put that into the game itself?
Click File -> Save or just Ctrl+S. It'll prompt you to save into .smesh or .cmesh and the accompanying .g_ file.

Then put those into your patch.vpp_pc or among loose files like any other mod.
 
Last edited:
v0.1.2
  • Exposed materials in inspector.
    Material constants are editable.
1779363255991.png


For context, "material constants" are float values passed to the shader. They can be colors (remember this
1779363508064.png
from chunks), UV scale, etc. They are always grouped in 4, but probably not everything uses all 4 components, leaving some unused. They are further grouped into two different sets that I labeled A and B as I don't know what's the difference.

Maybe it'd be a good idea to try to find out and write down the usage of different constants for different shaders so the app would know when to show or not show the color picker and so on.
 
Back
Top