Torchmodders

Mod Projects => Lord Nyriox's Playground => Topic started by: Lord Nyriox on May 29, 2018, 03:22:05 pm


Title: [SCRIPT] Automatic Mesh Rebuilding
Post by: Lord Nyriox on May 29, 2018, 03:22:05 pm
Windows Scripts:
Automatic Mesh Rebuilding

As I mentioned during the discussion (https://torchmodders.com/forums/modding-questions/(tl2)-monster-class-general-questions/msg8694/#msg8694) on my "Emberdrake" class project, when @Anarch16sync suggested converting meshes to XML (to fix bugs in a previous project of mine), I ended up creating a small suite of recursive Windows command scripts to fully automate that process (using the official OGRE command-line tools). 

They do require some initial set-up, but once that is finished, they should be more or less easy to run automatically.

Steps to Use: 

Included Scripts: 



Notes:
Title: Re: [SCRIPT] Automatic Mesh and Skeleton Rebuilding
Post by: Phanjam on May 30, 2018, 02:42:37 am
This is fantastic @Lord Nyriox ! Thanks for sharing your tools and work!
Title: Re: [SCRIPT] Automatic Mesh and Skeleton Rebuilding
Post by: Lord Nyriox on May 30, 2018, 03:21:42 pm
This is fantastic @Lord Nyriox ! Thanks for sharing your tools and work!

I figured that, given the almost complete lack of automation tools in Torchlight modding, anything to make mod-development easier can only improve the variety and quality of mods out there. 

Speaking of which, do you think anyone would be interested in a "Mesh optimization" mod (in which all vanilla Model files are rebuilt with these)? 

Given how much smoother gameplay gets with just the used player model optimized like this, what benefit could having every Model in the game optimized as well?  ;> 
Title: Re: [SCRIPT] Automatic Mesh and Skeleton Rebuilding
Post by: steffire3 on May 30, 2018, 03:37:48 pm
@Lord Nyriox If any tool helps to cut down the time required to build mods and fix or avoid buggy writing then I am all in favor of it.
Title: Re: [SCRIPT] Automatic Mesh and Skeleton Rebuilding
Post by: Lord Nyriox on June 12, 2018, 11:08:25 am
Updated the script package.  Now includes a script for OgreMeshUpgrader as well. 

I removed the Tangent-generation script, since it is currently useless for Torchlight modding. 

You can find the latest version in the OP. 
Title: Re: [SCRIPT] Automatic Mesh and Skeleton Rebuilding
Post by: DragonDawn on December 17, 2018, 11:59:03 am
Can you include a readme in the zip explaining how these tools work in detail along with installation instructions?
Title: Re: [SCRIPT] Automatic Mesh and Skeleton Rebuilding
Post by: Lord Nyriox on December 26, 2018, 07:41:03 am
Can you include a readme in the zip explaining how these tools work in detail along with installation instructions?
In retrospect, my description of each script's functionality does seem a bit dense.

These scripts are the product of extensive research on the OGRE model format, so a proper description of their behavior would probably wind up more technical than readable. 

I will see about adding comments (and a "readme" file) to the script package.
Title: Re: [SCRIPT] Automatic Mesh Rebuilding
Post by: Phanjam on October 31, 2019, 10:58:39 am
Hi @Lord Nyriox . I made a readme for myself, from the info in the OP.  Sharing it with you here (attached) in case you can use it ;)
Title: Re: [SCRIPT] Automatic Mesh Rebuilding
Post by: Kva3imoda on January 09, 2020, 05:33:48 pm
Thanks for these scripts @Lord Nyriox. They saved me a ton of time right now.  :)
Title: Re: [SCRIPT] Automatic Mesh Rebuilding
Post by: Lord Nyriox on May 21, 2020, 08:33:07 pm
Thanks for these scripts @Lord Nyriox. They saved me a ton of time right now.

That is great to hear, @Kva3imoda!

I may one day come back and clean my scripts up (i.e. add proper variables and better documentation).  But I am glad that even in its incomplete state, my TL2 toolchain has proven useful for you. 

P.S.  For now, I will be locking all my forum topics while I am away.

Thank you so very much for all your support!