Sims 3:How To Clone A Painting And Change the Texture

From SimsWiki
Revision as of 12:26, 18 November 2012 by Geekgirl101 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Creation Of Cloned Paintings

Using s3pe, s3oc and Photoshop

A tutorial written by

Xanathon
http://xanathon.rumschlauen.de
http://www.modthesims.info/member.php?u=9069

Creation Of Cloned Paintings - Abstract

This tutorial shows you how to clone a painting and how to replace the original picture with your own.

Important: Modding of Sims 3 is in a very early stage and the software used is highly experimental. Because of that I want to point out explicitly that the way to do this may change. Further you should be absolutely clear about the fact that custom created objects may take the game into an incoherent state which may lead to it no longer being playable. To try this is your choice, but you do this on your own responsibility.

Even if the approach shown here is not really complex (main action is to just change one packages-resource), a beginner may be overwhelmed. You will need basic knowledge about computers, Windows and graphic editing.

We need:

What this tutorial will tell you:

  • How to clone an object
  • How to change a texture
  • How to change the thumbnails
  • How to change the catalog-strings

What this tutorial will not tell you:

  • Basic handling of Windows
  • Usage of a graphic editing software
  • What side is up on a mouse
  • The meaning of life

The Start: Clone The Object

THIS SECTION IS OUT OF DATE AND USES AN OLD VERSION OF THE CLONER -- SOME INTERPRETATION IS REQUIRED FOR USE WITH THE CURRENT VERSION

We start s3oc via double click.

First we check that soc3 has located where Sims 3 is installed. You do this via the menu entry "Settings → Game Folders".

Set instfolder.jpg

Set instexpansions.jpg

Now you enter your creators nick under "Settings → Creator Name". This is important, since the nick is used for the generation of unique object Ids.

Set creator.jpg

After that you start the cloning via the menu entry "Cloning".

s3oc has 9 categories which objects are stored under, for now we will use "Normal Objects".

Set cloning.jpg

s3oc starts to list the objects it knows under the chosen category. This may take a while.

We will clone a painting for this tutorial – a poster to be precise – scroll down until you see the entry "PaintingGoth" and mark it with a left click. Again this will take a while.

PaintingGoth.jpg

Next we start the cloning process with a click on "Clone of Fix..." in the bottom right, and then in the Options window click on "Start".

PaintingGothOptions.jpg

Pick a name for your project and save it in the next window, then click "Ok".

Save.jpg

I would recommend now to create a working folder for the new object where we will gather all needed files and resources. This way you have all things at one place and will not loose track. Call the folder as you wish.

We can close s3oc for now.

Processing The Package In s3pe

In this step we will substitute the texture.

Start s3pe and open the package you just saved in s3oc.

Open in s3pe.jpg

Fileselector.jpg

Mark the checkboxes for „Display: Names“ and „Tags“ so you can better see what resouces you have in the package. Now the resource names and tags are shown in the resource list. This of course is way more descriptive than the hexadecimal values.

Tags and names.jpg

Interlude: You need to copy the DDS-Viewer into the folder „c:\program files“ so it works. You can use another folder but then you have to change the path in the file „handler.txt“ in the installation directory of s3pe. If you want to use another viewer you can also enter the path to that viewer here.

In the resource list you see some entries with the tag _IMG. These are different textures of the poster, for example the shadow texture (dropShadow_object_a_0x937c71e144222c2c) and the textures for a „burned“ state (objects_burnt_0xa4d80fb45ae9066b). But we are not interested in those and we are also not interested in paintingGoth_s_0x15ef49aa7d8bca95.

View texture.jpg

The texture we are looking for is in paintingGoth_o_0x15ef49aa7d8bca89. We can ascertain that if we mark the resource and click the „Viewer“-Button. A window opens that shows ... nothing. This happens because the alphachannel is active and shown. Remove the checkmark at „Alpha“ and the texture will be shown.

If you want to change another painting or poster you probably have to search for the correct texture-resource, but you will always find it in an _IMG-resource.

Again: If you do see nothing in the DDS-Viewer window, the cause may be that the texture you choose does not even have an alphachannel.

Texture alpha.jpg

If you remove the „Alpha“-checkmark, the texture will be shown.

Texture wo alpha.jpg

Now that we know the correct texture, we mark it and click „File → Export“ in the menu. Save the DDS- to your workfolder.

Export dds.jpg

Interlude: Some details about DDS-files. There are two variants of DDS-files, thos who have an alphachannel and those who don't. If an alphachannel exists then usually parts of the painting can be changed in the game, for example color options for the frame. If there is no alphachannel then there are not recolorable part, for example in a poster (which traditionally has nor frame).

Close s3pe now.

Next: Photoshop (Or The Image-Editor Of Your Choice)

Open the DDS-file you just exported in Photoshop using the import-option „Load using default sizes“.

Importdds.jpg

We now see a graphic that has the actual poster in the upper area and some additional parts below that. You have to only change the upper part of the texture, since the lower ones are used for shading and stuff that does not interest us at the moment. Draw a selection marquee around the poster texture to get it's dimensions. You have to scale and crop your picture to exact this dimensions to include it here (in this case 255x345 pixels).

Painting texture.jpg Dimensions.jpg

When you have changed your image into the needed dimensions, just replace the old texture with your new one. Do nothing with the other parts of the texture!

Newimage.jpg

After you did that you choose „flatten image“ in your layer window (via context menu that opens when you right click over the layer window). This is important. If you skip this step you will not be able to export the texture as a DDS.

Flattenimage.jpg

After that you choose „File → Save As“ in the Photoshop-menu and overwrite your existing DDS-file. Thsi is important, since the numbers and signs of the filename will be used as parameters when reimporting the texture into s3pe. Choose DDS as export format. Since we have no alphachannels you can use DXT1. If you have alphachannels in your painting you would have to use DXT3 or DXT5

Ps save as.jpg Export options.jpg

Now you have to create a png-file with a transparent background that will be imported in s3oc and will be shown as a thumbnail in the game. For this you create a file with the dimensions 128x128 pixels, background transparent. Place a preview of your image into this file. You can choose is you want to be the thumbnail isometric as the Maxis ones or flat. Save this as PNG24.

That's it in Photoshop (or the graphic editor of your choice).

Import the changed graphic file

Open s3pe again and load your cloned package-file. Again mark the _IMG-resource you want to replace and choose „File → Import“ in the menu.

Mark resource.jpg Menu import texture.jpg
Import texture.jpg

Because of the filename some parameters are adopted into the fields of the import dialogue. Keep everything as it is and click OK.

Resource details.jpg

The texture you changed is now in the package. Save it with a new filename (that way you have access to an earlier version if something goes wrong)

Save as.jpg

That's it again in s3pe, so close it.

Finishing The Package in s3oc

Open the package again in s3oc, but this time use the menu entry „File → Open (Fix)“.

Open fix.jpg

Right in the overview you can now change some things.

Click „Replace“ besides the thumbnail to replace the original preview with the PNG-file you created earlier.

Replace thumb.jpg

Change the „Catalog Name“ und „Catalog Description“ to your liking and set the checkmark for „Copy English to all languages“. That way your new english catalog strings are copied to all languages. If you would not do that the old descriptions would still be present in the other languages.

Change cat.jpg

If you want, change the „Price“.

After that click on „Start“ and enter a unique (!) identification for the object.

Make unique.jpg

Smart would be for example to use the creators nick and your name for the object separated by an underscore, in my example „xanathon_PaintingPaladins“. After you confirm the new name with „OK“ the changed you just made will be written into the package and then you save it with „Save“.

Your new poster is finished.

Closing And Credits

If you have problems or questions please ask them in the thread on MTS where you found this tutorial. Please be patient if I am not able to answer immediately.

Thanks to Peter L. Jones, the creator of s3pe and s3oc (http://www.simlogical.com/Sims3ToolsForum/). Also thanks to WintermuteAI1 (http://www.sims3tinkers.com) who pointed out an error with saving of files. And of course Delphy of ModTheSims (http://www.modthesims.info)

This tutorial may only be hosted at ModTheSims, please do not offer it at your site without my permission. In no case whatsoever may this tutorial be hosted or offered on paysites.

Please excuse my grammar – english is not my native language. :o)

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox