Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

Cutest Little PlumBob MTS Baby/Toddler Photo Contest for Sims 2, 3, and 4 - posted on 2nd Oct 2018 at 5:07 AM
Replies: 27 (Who?), Viewed: 24610 times.
Page 1 of 2
Field Researcher
Original Poster
#1 Old 9th Dec 2006 at 9:27 AM
Default How to Make Social Mods
How To Make a Conflict-Free Social mod:

It's one thing to make an object that changes how a sim interacts with it, it's quite another for an object to change how sims interact with each other (or with themselves).

You could change the Pie Menu Functions for the Person Globals object (which I actually did once upon a time), but this can cause conflicts with other mods and will definitely cause problems with future EPs.

Fortunately, you can also do this via the "Social Plug In". Simply by creating an object that has this category, you can add interactions between sims.

To create your own social object, clone the SocialDownloadTest (0x7FB44ED9), and change the Hug behavior to whatever social your object performs.

Macrotastics is a good example of a mod that uses this feature, albeit that mod only changes a sim's self-interactions. Social objects you create this way can change the way a sim interacts with any sim.

Object trees (functions):

CT - Object Menu(person, mode)

To test whether a particular group of interactions should occur between the Me person and the person indicated in the parameter, the above function is used to check the conditions that permit these actions, then add the interaction strings when appropriate. The mode specifies whether the interactions are autonomous (1 = yes, 0 = no).

CT - Object Menu Command(person, index)

To perform an interaction, the above function is used. The interaction to be performed is between the Me person and the person indicated in the parameter. The index shows which particular function is being selected.

---

The above was originally posted on Variousimmers Forum (July 16th, 2005).
7 users say thanks for this. (Who?)
Advertisement
*shrugs*
staff: moderator
#2 Old 9th Jan 2007 at 9:18 PM Last edited by maybesomethingdunno : 11th Jan 2007 at 7:13 AM.
Forgive my possibly stupid questions (I would like some clarification whether or not this is in fact what I am looking for), but is this how I would make my own custom interaction between two Sims via an object?
(In other words: If I had an object where Sim A goes to the object and goes through a loop of animations until certain motives reach certain levels, I could click--either on the object or on Sim B--and have Sim B join Sim A who then do something together?)

From my clone of the SocialDownloadTest, I just change and export the "CT - Object Menu" and "CT - Object Menu Command" BHAVs and insert them into my object? Then I just make Pie Menus for the interaction? I can't help but feel I'm wrong, because it sounds a little too easy.

EDIT:
So, I would have a BHAV "CT - Object Menu(Sim B, 0)"
and another called "CT - Object Menu Command(Sim B, Name of my Custom BHAV for the Interaction?)"? Or is the "CT - Object Menu Command(person, index)" BHAV the actual BHAV for the interaction between two Sims via the object?

I don't mind if you call me "MSD" or something for short.
Tumblr
Perhaps someday I'll have leisure time back...
Field Researcher
Original Poster
#3 Old 11th Jan 2007 at 10:50 AM
If you already have an object which isn't a Social, then you have no need to clone the SocialDownloadTest. Simply make that interaction part of your existing object.
*shrugs*
staff: moderator
#4 Old 11th Jan 2007 at 5:16 PM Last edited by maybesomethingdunno : 11th Jan 2007 at 5:27 PM.
Errr...okay. I had a feeling I was doing something wrong.
But, I think this has given me a push in the right direction towards what I am trying to do since it showed me how to alter Pie Menus via BHAVs. Thank you.

I don't mind if you call me "MSD" or something for short.
Tumblr
Perhaps someday I'll have leisure time back...
Mad Poster
#5 Old 17th Sep 2007 at 1:15 AM
Would it be the tutorial I am looking for ?...I would like to add " join casual group" for toddlers...so they can go shopping with their parents, or go to any outing...

Thank you,
Rosemary :0)
Lab Assistant
#6 Old 17th Oct 2007 at 5:08 AM
so this would allow me to, oh say, make a mod for OFB so sims can't quit?

I will do requests. in fact, I would like them. I'm bored! Note to self:mention I have no idea how to mesh.
Field Researcher
Original Poster
#7 Old 17th Oct 2007 at 7:39 AM
The basic upshot of this is that it lets you modify the sim menu without having to change the personglobal TTAB/TTAs (which is what you would have to do otherwise).

For the mentally challenged, this means the menu you get when you click on a sim. :P
Test Subject
#8 Old 4th Apr 2008 at 3:25 AM
Does this still work? I've tired it for hours, many ways, to the best I can understand but no new menu. Or is that even what I'm looking for? Please help.
Retired Duck
retired moderator
#9 Old 4th Apr 2008 at 3:36 AM
Yep, still works. If you can post your object someone here can take a look.
Test Subject
DELETED POST
4th Apr 2008 at 3:42 AM
This message has been deleted by jokerswild. Reason: No longer relevent
Retired Duck
retired moderator
#10 Old 4th Apr 2008 at 6:42 AM
When you post you have the option to add attachments. Just do it there. I wouldn't stress about it being posted, the number of people who even make it into this forum is pretty low, and even fewer would go to the trouble of actually opening a file which doesn't work. But once it's fixed, you can always edit the post and remove the attachment, if you so desire!
Test Subject
DELETED POST
4th Apr 2008 at 8:05 AM
This message has been deleted by jokerswild. Reason: no longer relavent
Retired Duck
retired moderator
#11 Old 4th Apr 2008 at 10:30 AM
Okay, try this:
- Open the objd file
- Find the "Obj. Type" field
- Change that to "SimType"
- Commit, save, and try in game.

I can't test it at the moment, but I have a feeling that might get it working.
Test Subject
#12 Old 2nd May 2008 at 5:15 AM
Help making a new social
I'm fairly new at modding on sims 2 (though not new to modding or programming in general), and I'm having trouble with my current project, which is to create a few basic spells that sims can cast. I'm using the social download test object as suggested in this thread, but I can't get it to show up. Despite hours of trying different things and looking at mods which do similar things, I've been unable to get the new command to appear on a sim's pie menu.

So, I'd like some help looking over my mod file, and maybe answers to a couple of questions that I've been trying to figure out.

First, I've noticed that temp 0x0000 is always set right before the add/change action string command, but I can't figure out why (though it does seem to be set with a number corresponding to the text of the add/change action string command being added). How is this useful/necessary?

Secondly, both of the other mods I've examined have SLOT files, but it seems empty. I added such a file to my mod to see if it's lack was my problem, but it didn't seem to help. Is there any reason to have a SLOT file in a mod of this nature?

Thanks for your help.
Download - please read all instructions before downloading any files!
File Type: rar Dejoy Spell.rar (694 Bytes, 39 downloads) - View custom content
Test Subject
#13 Old 9th May 2008 at 2:17 AM
Hoping to see answers on this one myself since I seemed to end up back trying this and having similar issues.
Hopefully we'll get more information soon.
One horse disagreer of the Apocalypse
#14 Old 19th May 2008 at 8:55 AM Last edited by Inge Jones : 19th May 2008 at 11:04 AM.
With this method, what happens about settings that would usually appear in a TTAB, such as the ticks for which types of sims can use the interation - eg "visitors". What I am getting at is, is the interaction considered automatically eligible to *all* sims unless you restrict it in the test BHAV? What about attenuation also?

JokersWild and Lady of Ravens, I don't think this type of object would want SLOTs because it's not an object the sims use like a bathtub or coffee maker. It's an abstract object just used for carrying some code.

Also in addition to Echo's advice about setting to "Sim Type" in OBJD, there is another field on the Raw Data tab, "Is global sim object", which needs to be set to value 1

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Instructor
#15 Old 19th May 2008 at 11:11 AM Last edited by Jasana_BugBreeder : 19th May 2008 at 11:49 AM. Reason: corrected mistake about Param0/1
Quote:
Originally Posted by Lady of Ravens
First, I've noticed that temp 0x0000 is always set right before the add/change action string command, but I can't figure out why
Because value of Temp0 is get passed to the interaction bhav, as Param1 (sorry, was MISTAKE here - Param0 is stack object, Param1 is Temp0 ). I'm not sure if it's applicable for social mods, but when you are using it in normal objects, it's handy to be able to pass different params.

Your mod probably doesn't work because it is not set as global object (thus noone loads it, thus its functions never executed).
It's not mentioned in the title post somehow, but it was mentioned somewhere else - here - that you need to make 2 changes to the clone: first, change type to SimType (you did it), second, set it to be a global object (you didn't it).
One horse disagreer of the Apocalypse
#16 Old 19th May 2008 at 7:42 PM
Bleah my interaction shows up on the menu ok, but it never makes it as far as the sim's queue after clicking it

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Retired Duck
retired moderator
#17 Old 20th May 2008 at 12:20 AM
Inge - is the "CT - Object Menu Command(person, index)" being called at all?
One horse disagreer of the Apocalypse
#18 Old 20th May 2008 at 8:09 AM
I don't think so, because for testing purposes I made the first line of it return error, but no error is occurring. The test BHAV is definitely running, because the option appears and disappears in line with the test condition.
Download - please read all instructions before downloading any files!
File Type: zip ijCatchPatch.zip (605 Bytes, 31 downloads) - View custom content

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Retired Duck
retired moderator
#19 Old 20th May 2008 at 1:21 PM
You're changing the SO ID to the target Sim, but you're not changing it back again before you run the "add/change". I have a feeling you need to do that, so that it knows which object to run the "CT - Object Menu Command" on... But I'm not certain, and too short of time to test. Worth a try though?
One horse disagreer of the Apocalypse
#20 Old 20th May 2008 at 3:13 PM
Ok I'll try that, thanks.

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Test Subject
#21 Old 21st May 2008 at 3:10 AM
Inge Jones, actually the slots wasn't on my list of issues but thanks a ton for the second setting in RAW data information, that seemed to fix the menu showing problem for me.
Now I can move on to other puzzles and mysteries of package making.
One horse disagreer of the Apocalypse
#22 Old 21st May 2008 at 8:58 AM
Echo, thank you! That was it

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Retired Duck
retired moderator
#23 Old 21st May 2008 at 11:19 AM
Yay! :D
Test Subject
#24 Old 22nd May 2008 at 12:35 AM
Can't seem to get the autonomous turned off. Can someone point out exactly where the mode change in CT Object Menu for autonomous is?

Thanks
Retired Duck
retired moderator
#25 Old 22nd May 2008 at 1:28 AM
First line should be something like:
Expression (param 0x1 == 0x0)
then make the false target of that point to false.
Page 1 of 2
Back to top