|Search this Thread|
|3rd Jun 2011, 07:37 AM||Mini-tutorial: Adding a custom queue icon to your self-interactions. #1|
Note 1: This mini-tutorial is somewhat a work-in-progress. I wanted to get this tidbit of information out here before I forget anything. (I haven't seen anything on this site about this.) I intend to make a proper self-interaction tutorial when I can. No promises on when though.
Note 2: This mini-tutorial is not a beginner's tutorial. It assumes some familiarity with and is intended to show how to update an existing self-interaction. It does not show how to create your own self-interactions. If you are looking to start working with BHAVs, I strongly suggest you start with Echo's Tutorial: Making Your First Custom BHAV.
Note 3: Is there a better or different way than this? Perhaps. I'm just showing how I did it.
Background: A self-interaction is an interaction that is invoked by clicking on the Active Sim, such as "Do Yoga." You will notice that the icon for the action is the Sim's portrait. However, by no means are we necessarily confined to this.
Now, you may be wondering why would I want to change that? Naturally, the answer is going to vary. You might want something more illustrative of your action, such as the microphone graphic for Free-styling. In my case, I wanted to change it because of what may be a bug or simply the downside to some well-meaning EA code. In particular, a goof associated with self-interactions that offer skilling. The problem is when Sims 100% the skill and get a memory of it. When you click on the memory to show its full text, you will see a blank icon for the object with which they have used to achieve this milestone. If it was a treadmill, you'd see a treadmill. But since the self-interaction is an off-world object with no mesh, it doesn't really have an object thumbnail. I have seen this with custom skilling self-interactions and even with Free Time's jogging interaction.
Now, you might be able to go through the process of creating a mesh or a custom thumbnail like you would for normal object. I haven't tried this, but I honestly think creating your own thumbnail/icon to be a much easier and quicker way. Besides, actions such as jogging are perhaps a bit too abstract and better illustrated with an icon. (No need to mesh a foot or athletic shoe to render a thumbnail for jogging when an icon could work just as well as at conveying "jogging." ) This custom icon will show up in the Sim's queue when the action is performed and will automatically show up as the object thumbnail in the expanded 100% Skill complete memory when the Sim maximizes a skill using the self-interaction.
Creating the Icon:
From what I've seen, the icons are 40 pixels by 40 pixels. So let's create a .png of that size. What your icon looks like is up to you and transparency is acceptable.
Importing the Icon:
Applying the Icon:
Self-interactions push the interaction onto the Sim's queue. The key is in this pushing. (So, yes, this technique could work anytime the 0x000D primitive is used...but for now, we're focusing on self-interactions.)
That's it. When the Push Interaction node pushes the interaction, it should use your icon as the action's icon. Below is my icon and a picture of my surfing self-interaction with the custom icon in the Active Sim's queue. It also shows up as the object in the expanded text for the 100% skill completion memory.
I don't mind if you call me "MSD" or something for short.
Perhaps someday I'll have leisure time back...
4 users say thanks for this.
[ Click here to view a longer list ]