Difference between revisions of "Tutorials:STF Conversion Tute Step 14"

From SimsWiki
Jump to: navigation, search
(Step X: Recompile)
(Reconfiguring Image Sizes in MLOD/MODL Files Before Recompiling)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Step X: Recompile==
+
==Reconfiguring Image Sizes in MLOD/MODL Files Before Recompiling==
 
<br clear="all" \>
 
<br clear="all" \>
[[File:poly-count.jpg|thumb|alt=Alt text|poly-count.jpg]]
+
[[File:width-height.jpg|thumb|alt=Alt text|width height]]
 +
It's time to rebuild your mesh with the new parts. Open Wes's '''S3 Object Mesh Tool V1.01'''
  
Now that the sizes are fixed in the material resource blocks you can recompile the mesh parts. Navigate to your MLOD-00000 folder and select the only file that appears (*MODL_cfg.mcfg)
+
'''Overview:''' We changed the original images to '''512 x 512'''. The material resource files need to be changed to the correct size before you recompile. You will need to edit the '''.mtlsrc''' of the blocks that are responsible for your texture ''(block 13 and 14 in the MLOD-00000 and block 8 and 9 in the MODL-00001)''. To find them use ObjTool and select Model Info. Using WIndows Notepad,  Edit those blocks. Find the two lines that list '''MaskWidth''' and '''MaskHeight'''. Change these to whatever your new image size is.  
  
Once you import your new mesh part (MLOD-00000), get the poly count -
+
'''Mask Width/Height Values: '''
* Click MODL/MLOD info button and navigate to the MLOD-00000 folder and open the *MLOD.lod file.
+
* '''00000080''' is ''128''
(poly-count.jpg)
+
* '''00000100''' is ''256''
 +
* '''00000200''' is ''512''
 +
* '''00000400''' is ''1024''
  
 +
You will be changing the blocks ''width'' and ''height'' to ''512'' for this project.
  
* Recompile the mesh for MLOD-10000
+
'''Note:''' There are only 8 (hex) characters in the masks so when changing the hex value
* Recompile the mesh for MLOD-10001
+
* 00000'''080''' change the last 3 numbers
* Recompile the mesh for MODL-00001
+
* 00000'''200''', Like this, instead of
 +
* 00000'''020'''[[font:red|'''0''']] like this. The extra zero is wrong.
  
Close the object mesh tool
+
# Using Notepad, navigate to your '''MLOD-00000''' folder,
 +
# Stretch the column out so you can see the full file names
 +
# Select '''All Files''' so you can see the '''.mtlsrc''' files
 +
# Select the '''*MLOD_block13.mtlsrc''' file first and ''Open'' it.
 +
# Change the '''mask width and height to 200''' 
 +
# Save and fix the *MLOD_block14.mtlsrc and save it.
 +
# Navigate to the '''MODL-00001''' folder
 +
# Open the '''*MODL_block08.mtlsrc''' and the '''*MODL_block09.mtlsrc''' and fix the '''mask width and height''' there also.
 +
 
 +
* [[Tutorials:STF Conversion Tute Step 15]]
 +
 
 +
[[Category:Sims 3 Modding Tutorials]][[Category:Sims 3 Objects Tutorials]][[Category:Tutorials by porkypine]]

Latest revision as of 00:27, 10 March 2013

[edit] Reconfiguring Image Sizes in MLOD/MODL Files Before Recompiling


Alt text
width height

It's time to rebuild your mesh with the new parts. Open Wes's S3 Object Mesh Tool V1.01

Overview: We changed the original images to 512 x 512. The material resource files need to be changed to the correct size before you recompile. You will need to edit the .mtlsrc of the blocks that are responsible for your texture (block 13 and 14 in the MLOD-00000 and block 8 and 9 in the MODL-00001). To find them use ObjTool and select Model Info. Using WIndows Notepad, Edit those blocks. Find the two lines that list MaskWidth and MaskHeight. Change these to whatever your new image size is.

Mask Width/Height Values:

  • 00000080 is 128
  • 00000100 is 256
  • 00000200 is 512
  • 00000400 is 1024

You will be changing the blocks width and height to 512 for this project.

Note: There are only 8 (hex) characters in the masks so when changing the hex value

  • 00000080 change the last 3 numbers
  • 00000200, Like this, instead of
  • 000000200 like this. The extra zero is wrong.
  1. Using Notepad, navigate to your MLOD-00000 folder,
  2. Stretch the column out so you can see the full file names
  3. Select All Files so you can see the .mtlsrc files
  4. Select the *MLOD_block13.mtlsrc file first and Open it.
  5. Change the mask width and height to 200
  6. Save and fix the *MLOD_block14.mtlsrc and save it.
  7. Navigate to the MODL-00001 folder
  8. Open the *MODL_block08.mtlsrc and the *MODL_block09.mtlsrc and fix the mask width and height there also.
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox