View Full Version : [Tutorial] Creating Recolorable Modular Stairs

8th Jan 2013, 5:06 AM
This is not a beginners tutorial! You should know how to mesh, make clone packages, make items recolorable, and be familiar with adding subsets and the repository method. I will not be showing how to add these resources, but how to link all these together to make recolorable stairs.

This tutorial will show you how to clone and make modular stairs recolorable. Stairs are not recolorable in the usual way though. First you must place your stairs, and then use the Design Tool (R) on each step. If the resources listed below are not included in your clone, then you will need to add them.

The example I am using for this tutorial are my Chic Modular Open Underneath Stairs (http://www.modthesims.info/d/382206).

Custom Script File

#HugeLunatic Chic Modular Open Stairs

catalogTextResource HL_ChicStairsMAIN_Open 139

modularStairs 4000
objectID landing 0x00639D13
objectID placeholder 0x00639D12
objectID step 0x00639D14
objectID topStep 0x00639D11
objectID bottomStep 0x00639D0F
catalogTextIndex 0


A comment line that the game does not read, but can be very informative
This line references your stairs package name (HL_ChicStairsMAIN_Open) and the Instance number (139) of the Stairs Info STR# in your package.
The custom number of your stairs. Be sure to check the MTS2:Creator_Guidelines/Modular_Stairs_Numbers_Repository to make sure the number is free.
This is the GUID from the Hi Stub OBJD
This is the GUID from the Hi Cutout OBJD
This is the GUID from the Bridge OJBD
This is the GUID from the Portal OBJD
This is the GUID from the Deck End OBJD
This tells the catalog at what index in the catalogTextStringSet to find the descriptive text for the stairs

CTSS Resource
Catalog Description
0x0000 - Catalog Name
0x0001 - Catalog Description
0x0002 - Catalog Price

STR# Resource
Stairs Info STR#
0x0000 - Stair Price
0x0001 - Stair Name
0x0002 - Stair Description

Creating a Recolorable Stair Package

Clone your stair choice.
Change your meshes as necessary (GMDC)
Get new GUIDs (6 of them)
Add in a MMAT for each subset (6 for a single subset) (I import one from another package then make the changes to the subsetName and name then copy that one)

Import from another package
Change subsetName to your stairs subset name
Change modelname to your stairs cres name including the ##0x1C050000!
Change name to the same filename that your TXMT has
Give each a unique instance
In each one change objectGUID to have one of your GUIDs
In each one use the Hash Generator to get a new GUID for the family string
In each one change the defaultMaterial to True
In each one change subsetName to your stairs subset name
Repeat if you have a second subset using the other six MMATs

In GMND add the tsDesignModeEnabled with your subset defined as an array
Add a new Text List (STR#) called Stairs info with an instance number 0x0000008B
Create your text file with your GUIDs (see above)

If you want to allow passage under the first tile then you will need to add the BHAV "CT - No Supports?".

lucy kemnitzer
15th Sep 2013, 9:37 PM
So if there is a set of custom modular stairs and I just want to make them recolorable, do I have to clone them, or could I edit the original stairs?

15th Sep 2013, 9:46 PM
You can just edit the existing stairs, as I did with the CS ones (at my site).

lucy kemnitzer
16th Sep 2013, 1:01 AM
GHreat! Thank you. Now off to figure out the TOU and decide whether I'm doing it just for me or for the world.