Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Sir Not Appearing In This Film
Original Poster
#1 Old 15th Sep 2014 at 12:30 PM Last edited by Snaitf : 16th Sep 2014 at 7:13 PM.
Default So, this is cool - Custom icons and tool-tips for CAS thumbnails.
First, take a look at the attached screenshot, and be impressed.

Ok, so here's a "brief" explanation of how I did it.

First, I noticed that the animal hats from the Deluxe edition (the ones with the icon over the thumbnail in CAS with a tool-tip) had a unique RK in their TGI list. The Type ID (0x0x6017E896) however was nowhere to be found. I looked in every .package file that came with the game, and nothing.

So, I looked for the Instance ID instead. And I found both a data file and an image file. Then, to test, I cloned an item, changed the first RK in the TGI list (the one that's all zero's), to the same Type and Group IDs as the animal hat, giving it a unique Instance ID.

I then exported the image and data file from the animal hat. Then I edited the data file and changed the references of icon and icon_highlight to the same unique Instance ID I created above. Then I imported both the data file and the image into my cloned item, giving them that same Instance ID as well. Tested it in the game, and sure enough, there was the icon on my cloned item's thumbnail, with the accompanying tool-tip.

Next, I opened the image in photo shop, and for some reason it just showed up as a small black square. I've noticed this happens with a lot of the small images I export from the .package files. Anyhow, I took the image I wanted to use, shrunk it to the same size as the 'black square' and copied it over it. Saved as a DDS, and re-imported. Then tested in game, and it worked. The icon now had the my image.

Now, in the data file, there were two references to keys in the STBL file. One was the buff_name (the top line of the tool-tip), and one was the buff_description (the bottom line). So, I gave each reference a unique key, and then created a STBL file with my 2 strings using those keys. (I made a new STBL with the same Type and Instance IDs as the original, but with a unique Group ID, so I didn't have to include the entire original STBL that might cause conflicts with other CC.)

And finally, I thought that my item might give the sad buff when worn because of the data file I had used, but for some reason it didn't, which was a good thing. But just to make certain, I edited the data file again and changed the refrences to audio_string_on_add, audio_string_on_remove, and mood_type to all zero's. I wanted to make sure I could use these files on any of my creations without them changing my sims moods.

Phew, that's a lot of work for a little icon, but if you decide to give it a go, I wish you luck and happy simming.

EDIT: Attached example, and could someone without the version with the animal hats please let me know if this works for them, thanks.

EDIT: Attached example updated to work in all languages (hopefully). Can someone confirm? Thanks...

EDIT: Ok, it seems that using the first RK in the TGI list (the one that's all zeros) can cause some items to crash, so, unfortunately, to do this properly, you need to insert a new RK into the TGI list, and then edit the mBuffResKey BYTE to point to your new RK. Currently, this requires hex editing your CASP file. The attached example has been updated.
Screenshots
Attached files:
File Type: zip  Snaitf_cuTop_Superman.zip (131.7 KB, 118 downloads) - View custom content
1 users say thanks for this. (Who?)
Advertisement
Lab Assistant
#2 Old 15th Sep 2014 at 7:06 PM
I am impressed uhhh thx for sharing man, I rly appreciate it

♘ visit my tumblr here
Lab Assistant
retired moderator
#3 Old 15th Sep 2014 at 7:36 PM
Brilliant! I will be giving this a try tonight!
Ms. Byte (Deceased)
#4 Old 15th Sep 2014 at 7:55 PM
Very nice discovery! A lot of creators will appreciate being able to personalize like this. I don't suppose you could upload the package as an example? Have you tested in a non-deluxe installation?

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Lab Assistant
#5 Old 15th Sep 2014 at 8:36 PM
Genius!!! , Thanks for sharing this
Sir Not Appearing In This Film
Original Poster
#6 Old 15th Sep 2014 at 8:58 PM
Quote: Originally posted by CmarNYC
Very nice discovery! A lot of creators will appreciate being able to personalize like this. I don't suppose you could upload the package as an example? Have you tested in a non-deluxe installation?


Example attached to first post, and no, I haven't tested with non-deluxe yet, hopefully someone without the animal hats will try this and let me know if it works for them.
Inventor
#7 Old 16th Sep 2014 at 3:29 AM
I would love to customize this for my CC! I hope modders can add such option on their tools soon :D
Ms. Byte (Deceased)
#8 Old 16th Sep 2014 at 7:39 AM
I can confirm it works in limited edition.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Lab Assistant
#9 Old 16th Sep 2014 at 9:06 AM
I have a trouble here.
my game is in Spanish and the file doesn't work correctly
I changed settings in windows registry to put my game in english and the file works fine.

I think the STBL file needs multi language support
Sir Not Appearing In This Film
Original Poster
#10 Old 16th Sep 2014 at 1:36 PM
Quote: Originally posted by xdarkshadowx
I have a trouble here.
my game is in Spanish and the file doesn't work correctly
I changed settings in windows registry to put my game in english and the file works fine.

I think the STBL file needs multi language support


Hmm, thanks for letting me know, something I'll have to look into.
Sir Not Appearing In This Film
Original Poster
#11 Old 16th Sep 2014 at 1:36 PM
Quote: Originally posted by CmarNYC
I can confirm it works in limited edition.


Awesome, thanks...
Sir Not Appearing In This Film
Original Poster
#12 Old 16th Sep 2014 at 2:24 PM
@xdarkshadowx - Can you test the new one, see if it works now?
Lab Assistant
#13 Old 16th Sep 2014 at 3:31 PM
Everything works fine now
Sir Not Appearing In This Film
Original Poster
#14 Old 16th Sep 2014 at 3:37 PM
Quote: Originally posted by xdarkshadowx
Everything works fine now


Excellent! TYVM
Test Subject
#15 Old 21st Sep 2014 at 12:47 AM
I've been trying for hours to figure this out but it seems that I can't even find the Type ID that you're saying was unique. So I looked for the unique instance ID and went through all the files and nothing even came up.

I'm so lost. =S
Pettifogging Legalist!
retired moderator
#16 Old 12th Nov 2014 at 1:23 AM
Woops, I think this was posted before the Tutorials forum existed? Moving to Tutorials.

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Test Subject
#17 Old 20th Nov 2014 at 5:29 PM
Somebody here who can help me? A tutorial with pictures would help. I'm German and I didn't understand ANYTHING altough my English is very good.
Pettifogging Legalist!
retired moderator
#18 Old 20th Nov 2014 at 5:51 PM
I can translate if you tell me exactly which parts of the text you don't understand.

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Sir Not Appearing In This Film
Original Poster
#19 Old 20th Nov 2014 at 7:44 PM
The easiest way to do this, now, is to use S4CASTools
Back to top