Difference between revisions of "Mini Custom Icons for Accessories by SnowStorm"

From SimsWiki
Jump to: navigation, search
(Overview)
(Insert the new Icon into the correct 3DIR)
Line 95: Line 95:
  
  
* Select a '''3IDR''' file.  
+
* Select one of the '''3IDR''' files that have your new mesh.  
 
* Click the '''Resource''' Tab.  
 
* Click the '''Resource''' Tab.  
 
* Copy the '''Group ID''.
 
* Copy the '''Group ID''.

Revision as of 20:19, 10 March 2013

Tutorials by Category

Build Mode | Walls & Floors | Body Shop | Object Recolouring | Careers | Sims | Object Creation | BodyShop Meshing | Hacks and Game Mods

Tutorials by Level
Level 1 (Newbie) | Level 2 (Beginners) | Level 3 (Intermediate) | Level 4 (Advanced) | Level 5 (Numenorean)
Mini Custom Icons for Accessories by SnowStorm
Basegame.gif

Base Game
AuthorSnowStorm


Contents

Overview

This tutorial will show you how to add custom images into your accessory packages so they show up correctly in CAS and BodyShop.


What you will need

  • SimPe
  • Image editing software
  • Attention to detail


Mini Custom Icons for Accessories

I've taken the information from SnowStorm's original tutorial and wikified it to incorporate the changes since the psje tool came out. Since the original was a pdf. I captured new images.



How to Match the 3DIR to the correct XMOL files

Important: EA is inconsistent with it's numbering so directions like pick the 3rd down don't always apply. The 3DIR reference files are also for other parts that aren't used for the icons so you need to pay attention to which part you are modding. The surefire way to get the correct parts is to sort by instance values. That matches the 3DIR 3D Reference file with the XMOL Mesh Overlay parts. This example shows 3 Instance sets in a mesh cloned from the even more hip glasses, for Teen, Young Adult, Adult and Elder female. The YAE parts all use the same XMOL name which in this case is the glasses called afaccessorysunglassesevenmorehip...
Note: These numbers are from this example.  Yours may vary
  • Teen - instance = 1025 tfaccessorysunglassesevenmorehip...
  • Adult - instance = 2049 afaccessorysunglassesevenmorehip...
  • Adult - instance = 4097 afaccessorysunglassesevenmorehip...
  • Adult - instance = 16385 afaccessorysunglassesevenmorehip...

To insert the icons into the correct place, you need to know which 3DIR goes with which XMOL part. This is how you sort and match them.

  1. Open your recolor package in SimPe.
  2. In the Resource Tree section, click All Resources
  3. On the Resource List side, click the INSTANCE heading.
  4. By sorting the Instance values, you can match up the 3IDR (3 D referencing file)goes with the correct XMOL (Mesh Overlay file).
  5. It's a good idea to get a screencapture of the instance values now. Or, write them down, whichever is easier for you. In this example the values are in parenthesis, (1025), (2049), (4097), (16385)
Sort-instances.jpg

An alternate way to find the correct sets via Instances is to select the Mesh Overlay XML (XMOL)(4) on the Resource Tree side. Then on Resource Lst, you'll find all the Mesh Overlay files and their corresponding values under the instance tab

Instances-2.jpg

Now that your know how to find the matched group sets under the Instance column, on with the tutorial.

Make Your ICON

  1. Take screenshot of your new item in game, save as a JPG or a PNG.
  2. Crop and resize to 128x128
  3. Save it where you can find it.
128-eagle-flat-fan.png

Add your new ICON into the Package

  1. Open your recolor package in SimPE
  2. On the right side in the TYPE section, Right click anywhere and select Add
  3. Select All Files (*.*)
  4. Click on your image file
  5. Click Open
Add-image.jpg

Now tell SimPe what type of file it is.

  1. On the Resource Tree side, Select 0x00000128(UNK)(1) - This is the image you added.
  2. On the Resource List side, Select 0x00000128
  3. At the bottom, click the Resource tab
  4. Next to Type: click the drop down box and select jpg/tga/png Image - This sets the file type to a jpg/tga/png Image type. The Type will change from 0x00000128 to 0x856DDBAC
Type-jpgtgapng.jpg

Insert the new Icon into the correct 3DIR

NOTE: If you didn't get the correct Instances go to the top of this tutorial to find out how.


  • Select one of the 3IDR files that have your new mesh.
  • Click the Resource Tab.
  • Copy the 'Group ID.
Groupvalue.jpg

  • Reselect jpg/tga/png Image (IMG) (1) on left.
  • Select jpg/tga/png Image on the right.
  • Select the Resource Tab.
  • Enter / Paste in the group id you had copied from the 3IDR.
  • Hit enter and tab to next field.
  • Verify group id was changed by hovering your cursor over the jpt/tga/png Image resource on the upper right. You

should see the group id change from 0x00000000 to your new group.


  • SAVE
  • Repeat for the remaining mesh groups



Drag and Drop your image file into the 3D Referencing File Editor

You need to modify the other 3IDR's Reference files with the updated icon image.

  • In the Resource Tree on the left, Select 3D ID Referencing File (3IDR).
  • In the Resource List, select your first 3IDR file with the instance 0x00000000
  • At the bottom, select the Plugin Tab.
  • Click the Package button
  • In the PackageSelectorForm popup window, Click on the jpg/tga/png Image...etc... file and Drag it to the 3D ID Referencing File box and Drop it there.
  • Click Commit
Drop-image.jpg

  • Repeat for each 3IDR that has the UI DATA in the plugin view.


Update the BINX files

Update the Binary Index (BINX) files.

  • On left in the Resource Tree, select BinX.
  • On the Resource List side, select the first Binary Index file.
  • Click the Plugin View tab.
  • In the plugin tab CPF Editor, select iconidx
  • In the Value Box change the value from 0x0000000 to 0x0000004.
  • Click Commit.
  • SAVE


BINX.jpg


  • Test in CAS or in Game.


If everything was done right, you should see your new image in CAS and in the game's Change Appearance.

AfterIconChange.jpg

Doneright.jpg

If you cloned Glasses, remember to make your accessory wearable with other accessories by changing the the bin number in the Mesh Overlay XML.

Glasses use 0x0000000F

That's 0x (for Hex) followed by 8 digits.

You must be sure to change the bin number of all the ages you are using, but you only need to do it to your original BodyShop .package in your Saved Sims folder. Then if you later make recolors from it, BodyShop will include the new bin number in your recolors.

What is a Hex number?

Hex numbers use 0-9 and A-F as their digits. They're written in SimPE as 0x followed by 8 digits.

So, the glasses value 0x0000000F has the numeric value of 15

What you need to do is create some random 8 digit long number in hex (using any combination of 0-9 A-F) and put that value in instead, after the 0x part. so, 0x0000CD3F or some value of your own choosing.

Credit

  • Originally written by SnowStorm
  • wikified and updated by porkypine

Related Links

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox