Replies: 4 (Who?), Viewed: 1415 times.
Test Subject
Original Poster
#1 Old 10th Aug 2020 at 2:41 AM
Adding a pie menu interaction to almost all non-Sim objects?
I'm trying to create a mod that allows you to select almost any non-Sim object on the lot and "steal" it with the burglar sack. I've already been able to do this by modifying one object's pie menu and BHAVs, so I already have the BHAV for it figured out for the most part. Is it possible to add a pie menu option to all objects without having to modify each object's TTAB and TTA files? If not, is there an easier alternative that would allow me to select a particular object to use this interaction on? I've noticed every object has "Force Error" in their pie menus if you shift-click on it with testing cheats enabled, but I haven't been able to confirm whether that's part of objects.package or not.

I apologize if this question has already been answered on here before. I haven't been able to find a post that addresses this particular question.
Advertisement
Instructor
#2 Old 16th Aug 2020 at 1:06 AM
I'm not a modder, but I don't think it's possible to add a pie menu to every object without editing their own TTAB and TTA unfortunately :-( your mod sounds really amazing though, I hope someone can help you!

Edit: perhaps it would be possible for you to make a "controller", "token" or "social" of some sort? Which could run in the background to check for objects available to steal? I'm sorry for my shitty explanation, I don't know what I'm talking about tbh!

You can find more of my downloads over at my tumblr: https://vegan-kaktus.tumblr.com/downloads
Test Subject
Original Poster
#3 Old 16th Aug 2020 at 1:21 AM
Quote:
Originally Posted by vegan_kaktus
I'm not a modder, but I don't think it's possible to add a pie menu to every object without editing their own TTAB and TTA unfortunately :-( your mod sounds really amazing though, I hope someone can help you!

Edit: perhaps it would be possible for you to make a "controller", "token" or "social" of some sort? Which could run in the background to check for objects available to steal? I'm sorry for my shitty explanation, I don't know what I'm talking about tbh!

Thanks. I'll definitely look into that. Maybe it's possible to use "Add/Change the action string" to add the pie menu option that way.
Test Subject
Original Poster
#4 Old 21st Aug 2020 at 12:30 AM Last edited by jmanlfd : 22nd Aug 2020 at 2:36 AM.
Does anyone know if it's possible to add a pie menu option from a controller's BHAV to another object? I'd prefer to add the pie menu option to the actual object itself if possible, but if it's not, I guess I'll have to settle for making a dynamic pie menu that lists all the objects you can steal when you click on your Sim.

Edit: I've done some testing with the "Expression" primitive to see what attributes I could add/change for different objects, and so far, it's not looking like there's a way to add to a stack object's pie menu without changing the tree table it uses, but I could be wrong. I think what I'll do instead is add a dynamic pie menu for the active Sim that only lists objects that are in the same room that your Sim is currently in.
Test Subject
Original Poster
#5 Old 1st Sep 2020 at 11:41 PM Last edited by jmanlfd : 25th Sep 2020 at 9:04 AM.
For anyone that may be interested in testing what I've made so far: right now it's just an object that uses the "placeholder" model. Its pie menu will show you a list of all of the objects that are in the same room that it's in, and when you click on one, your selected Sim will run over to it and "steal" it, and the object will then be moved to your Sim's inventory. There's still some bugs and I haven't figured out what the best way to add the pie menu to a Sim is yet. In the meantime, I'll keep trying to find the best way to either add the pie menu to the selected Sim, or add the interaction to the individual objects themselves if I can find a way to do it that wouldn't cause too many conflicts with other mods. You'll find the controller in the miscellaneous section in buy mode.

Update: Fixed a bug that causes some multi-tile objects to have interactions disabled on some of its tiles when the object is moved from a Sim's inventory back into the world, and the placeholder object can now be placed on community lots.
Download - please read all instructions before downloading any files!
File Type: zip steal_controller.zip (3.6 KB, 7 downloads)
Back to top