cmomoney
11th Nov 2009, 08:42 PM
Tutorial: Creating Paintings with Multiple Images pt. 2
- Changing the Default Patterns
This tutorial is the second part of my tutorial, Tutorial: Creating Paintings with Multiple Images (http://www.modthesims.info/showthread.php?t=377737). I will be describing a method to change the default pattern and color of objects to an in-game pattern. This only works on similarly formated patterns (in this case, changing a single color metal to a single color wood) because anything else requires modifying the material block, something I haven't figured out yet. Instead of adding patterns/textures to our package, we will be linking to in-game patterns.
What you need:
* S3PE (http://www.modthesims.info/showthread.php?t=362412)
* Sims3pack Multi Extracter (http://www.modthesims.info/download.php?t=364038)
* Completed painting from previous tutorial (http://www.modthesims.info/showthread.php?t=377737)
Gathering the Information
1. First, start up TS3 and change the pattern and color of our frame. Once you have what you want (and while still in CAS), click the Save button in the presets window in the top left corner of your screen. After it saves, click the Share button (next to the Save button). Give it a name, click OK, and once its done, click OK again. Exit the game.
http://thumbs.modthesims.info/getimage.php?file=1025549
2. Start the Sims3pack Multi Extracter, click the first browse button, and browse to your Exports folder (Documents\Electronic Arts\The Sims 3\Exports). Click the second browse button and browse to where you want to put your recolour package. Make sure the Rename files on Save box is checked, and click Extract. Close the extracter.
http://thumbs.modthesims.info/getimage.php?file=1025550
3. Start s3pe and open the recolour package. There should be three files: _XML, _COMP, and _THUM. Select the _COMP, and click the Value button. In this window, scroll down until you see the 1st entry: <pattern name="pattern name". Here is the information we will need:
a. pattern name
b. pattern_xml instance number
c. specmap instance number
d. background image instance number
e. H, S, and V Bg values
f. Base H, S, and V values
g. HSVShift Bg values
http://thumbs.modthesims.info/getimage.php?file=1025551
Once you have all these, close the value window, go to the File menu and open our painting.
Linking to the Pattern
4. Now we need to link the our painting to the pattern, but first we need to know where to put our info. Select the PaintingCars_OBJD and click the Grid button. Select Materials and click the open box on the right.
http://thumbs.modthesims.info/getimage.php?file=1025552
Now click the plus sign next to MaterialBlock, select MaterialBlocks and click the open box on the right.
http://thumbs.modthesims.info/getimage.php?file=1025553
In this window, you will see an entry "XMLIndex 0x06". This means that our pattern_xml is listed 7th in the TGIBlock (starting with zero and counting in hex).
http://thumbs.modthesims.info/getimage.php?file=1025554
5. Select TypeCodes and click the open box. Go down the TypeCode list until you see ControlCode 0x0A (list number [9]). 0x0A is the control code for the specmap. In our painting, its TGI index is 0x0B (11th in the TGIBlock list).
http://thumbs.modthesims.info/getimage.php?file=1025555
6. Continue looking through the TypeCode list until you see ControlCode 0x0B (list number [1]). 0x0B is the control code for the background image. In our painting, its TGI index is 0x08 (9th in the TGIBlock list).
http://thumbs.modthesims.info/getimage.php?file=1025556
7. Now click OK twice to get back to the TGIBlock list. Select the TGIBlock and click the open box. In the List Editor, count down 7 from the top (should be the 2nd _xml reference). Select this entry, and on the right, change its instance number to our new pattern's xml instance number. Next, count down 11 from the top, select it, and change its instance number to our new specmap's instance number. Finally, count down 9 from the top, select it, and change its instance number to our new background image's instance number and click the Save button.
http://thumbs.modthesims.info/getimage.php?file=1025557
Changing the Color
8. Open the MaterialBlocks>TypeCodes again. Now go through the TypeCode list, changing the values according to the control codes:
0x01 = Material/pattern category/pattern name (i.e. Material/Wood/cocobolo01VerLrg_1)
note: changing the name may be unecessary; please read comments below
0x0D = H Bg value
0x0F = S Bg value
0x0E = V Bg value
0x10 = Base H value
0x12 = Base S value
0x11 = Base V value
0x0C = HSVShift Bg values
http://thumbs.modthesims.info/getimage.php?file=1025558
9. After all the values have been entered, click OK. In the current window, click the plus sign next to Unknown 1 to expand it. Then change the data entry to the new pattern name.
http://thumbs.modthesims.info/getimage.php?file=1025559
Click OK, OK, and Commit. Finally, save your package and test in-game. If everything is okay, apply these steps to the other materials.
note: You may need to delete your thumbnail cache in order for your thumbnails to show correctly. Also, you can delete the recolour you made in the beginning.
http://thumbs.modthesims.info/getimage.php?file=1025560
Resources
Pattern list (extracted from game by Cocomama) (http://upload.modthesims.info/getfile.php?file=1025573)
String Table (Wiki) (http://www.simswiki.info/wiki.php?title=Sims_3:Catalog_Resource/StringTable)
- Changing the Default Patterns
This tutorial is the second part of my tutorial, Tutorial: Creating Paintings with Multiple Images (http://www.modthesims.info/showthread.php?t=377737). I will be describing a method to change the default pattern and color of objects to an in-game pattern. This only works on similarly formated patterns (in this case, changing a single color metal to a single color wood) because anything else requires modifying the material block, something I haven't figured out yet. Instead of adding patterns/textures to our package, we will be linking to in-game patterns.
What you need:
* S3PE (http://www.modthesims.info/showthread.php?t=362412)
* Sims3pack Multi Extracter (http://www.modthesims.info/download.php?t=364038)
* Completed painting from previous tutorial (http://www.modthesims.info/showthread.php?t=377737)
Gathering the Information
1. First, start up TS3 and change the pattern and color of our frame. Once you have what you want (and while still in CAS), click the Save button in the presets window in the top left corner of your screen. After it saves, click the Share button (next to the Save button). Give it a name, click OK, and once its done, click OK again. Exit the game.
http://thumbs.modthesims.info/getimage.php?file=1025549
2. Start the Sims3pack Multi Extracter, click the first browse button, and browse to your Exports folder (Documents\Electronic Arts\The Sims 3\Exports). Click the second browse button and browse to where you want to put your recolour package. Make sure the Rename files on Save box is checked, and click Extract. Close the extracter.
http://thumbs.modthesims.info/getimage.php?file=1025550
3. Start s3pe and open the recolour package. There should be three files: _XML, _COMP, and _THUM. Select the _COMP, and click the Value button. In this window, scroll down until you see the 1st entry: <pattern name="pattern name". Here is the information we will need:
a. pattern name
b. pattern_xml instance number
c. specmap instance number
d. background image instance number
e. H, S, and V Bg values
f. Base H, S, and V values
g. HSVShift Bg values
http://thumbs.modthesims.info/getimage.php?file=1025551
Once you have all these, close the value window, go to the File menu and open our painting.
Linking to the Pattern
4. Now we need to link the our painting to the pattern, but first we need to know where to put our info. Select the PaintingCars_OBJD and click the Grid button. Select Materials and click the open box on the right.
http://thumbs.modthesims.info/getimage.php?file=1025552
Now click the plus sign next to MaterialBlock, select MaterialBlocks and click the open box on the right.
http://thumbs.modthesims.info/getimage.php?file=1025553
In this window, you will see an entry "XMLIndex 0x06". This means that our pattern_xml is listed 7th in the TGIBlock (starting with zero and counting in hex).
http://thumbs.modthesims.info/getimage.php?file=1025554
5. Select TypeCodes and click the open box. Go down the TypeCode list until you see ControlCode 0x0A (list number [9]). 0x0A is the control code for the specmap. In our painting, its TGI index is 0x0B (11th in the TGIBlock list).
http://thumbs.modthesims.info/getimage.php?file=1025555
6. Continue looking through the TypeCode list until you see ControlCode 0x0B (list number [1]). 0x0B is the control code for the background image. In our painting, its TGI index is 0x08 (9th in the TGIBlock list).
http://thumbs.modthesims.info/getimage.php?file=1025556
7. Now click OK twice to get back to the TGIBlock list. Select the TGIBlock and click the open box. In the List Editor, count down 7 from the top (should be the 2nd _xml reference). Select this entry, and on the right, change its instance number to our new pattern's xml instance number. Next, count down 11 from the top, select it, and change its instance number to our new specmap's instance number. Finally, count down 9 from the top, select it, and change its instance number to our new background image's instance number and click the Save button.
http://thumbs.modthesims.info/getimage.php?file=1025557
Changing the Color
8. Open the MaterialBlocks>TypeCodes again. Now go through the TypeCode list, changing the values according to the control codes:
0x01 = Material/pattern category/pattern name (i.e. Material/Wood/cocobolo01VerLrg_1)
note: changing the name may be unecessary; please read comments below
0x0D = H Bg value
0x0F = S Bg value
0x0E = V Bg value
0x10 = Base H value
0x12 = Base S value
0x11 = Base V value
0x0C = HSVShift Bg values
http://thumbs.modthesims.info/getimage.php?file=1025558
9. After all the values have been entered, click OK. In the current window, click the plus sign next to Unknown 1 to expand it. Then change the data entry to the new pattern name.
http://thumbs.modthesims.info/getimage.php?file=1025559
Click OK, OK, and Commit. Finally, save your package and test in-game. If everything is okay, apply these steps to the other materials.
note: You may need to delete your thumbnail cache in order for your thumbnails to show correctly. Also, you can delete the recolour you made in the beginning.
http://thumbs.modthesims.info/getimage.php?file=1025560
Resources
Pattern list (extracted from game by Cocomama) (http://upload.modthesims.info/getfile.php?file=1025573)
String Table (Wiki) (http://www.simswiki.info/wiki.php?title=Sims_3:Catalog_Resource/StringTable)