#1  
Old 09-09-2016, 09:31 PM
Ceno's Avatar
Ceno Ceno is offline
Praetorian
 
Join Date: Jul 2014
Location: Mars
Posts: 8,858
Question Working with .msh Files

I have no 3D modeling experience whatsoever (not entirely true, I have voxelation experience...).

I want to shamelessly edit some properties of existing GD items.

Can I do so in a text editor?

Particularly I'm interested in reskinning stuff and applying different FX to existing models. I'm not interested in changing the actual models of things (as I believe that's well beyond the scope of my ability at present). By looking into the .msh file for the Mask of Infernal Truth, for instance, I can find this information in a text editor:

Code:
glowTexture   #   Items/gearhead/head_026_01a_glo.tex   baseTexture   #   Items/gearhead/head_026_01a_dif.tex   bumpTexture   #   Items/gearhead/head_026_01a_nml.tex   specTexture          l  AttachPoint
{
    name   = "FXHead"
    parent = "Bip01 Head"
    origin = (0.299526, 0.047181, -0.000000)
    xAxis  = (-0.161568, -0.987063, -0.000000)
    yAxis  = (0.987063, -0.161568, -0.000000)
    zAxis  = (-0.000000, 0.000000, 1.000000)
}
CreateEntity
{
    attach = "FXHead"
    entity = "Records\FX\ItemFX\MagicalFX\FireGeneric02_FX.dbr"
}
If I were to copy/paste the rest of the gibberish-data of the .msh file into a new .msh file, but edit some of the above information (changing the .tex links, changing the FX.dbr link, etc.), could that functionally work? Or are .msh files signed in some capacity and I'm just totally out of luck?

Thanks.
Reply With Quote
  #2  
Old 09-09-2016, 09:37 PM
ASYLUM101's Avatar
ASYLUM101 ASYLUM101 is offline
Praetorian
 
Join Date: Jan 2010
Location: Miami, FL
Posts: 7,801
Default

There is a tutorial by solemn(I think is his username) about using the editor to change attachment data. Look for that.
Reply With Quote
  #3  
Old 09-11-2016, 10:30 AM
SolemnXII's Avatar
SolemnXII SolemnXII is offline
Supporter
 
Join Date: Jan 2016
Location: USA
Posts: 138
Default

Other than adding/editing an attach point or physics data, the best reason to change the inherent properties in a .msh file is if the mesh is using more than one shader and texture set. Otherwise mentioned type of edits can simply be done though dbr editing.

Editing any of the text references to to point to new files/directories can be done, but the Textdata (Length) needs to be changed to match the amount that is added or decreased. I'm unfamiliar how to do that with notepad++.
The method I use is through the use of Tamschi's Meshview.
I've been wanting to do a write up of my workflow using that tool with Grim Dawn...one of these days

Last edited by SolemnXII; 09-11-2016 at 11:27 AM.
Reply With Quote
Reply

Tags
modding, msh, text editor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Grim Dawn ©2017 Crate Entertainment, LLC.
vBulletin® 3.8.4 ©2000-2014, Jelsoft Enterprises Ltd.