MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Electronics Mods

by simler90 Posted 24th Mar 2021 at 6:23 PM - Updated 13th May 2021 at 5:42 PM by simler90
9 Comments / replies (Who?) - 5 Feedback Posts, 4 Thanks Posts
There is a number of electronics-related mods on this page that either fix existing issues or add new features.

Electronics Mod: This mod modifies a large number of electronics-related interactions in the game that do the following:
- When a sim considers using a computer, the game now checks to see if there is an available chair that the sim can sit on to use the computer. If not, sims won't try to autonomously use computers. This fixes the annoying issue of sims constantly routing to computers and throwing a route failure tantrum.
- When a sim considers turning on a TV or stereo, or playing a video game console, or initiating a computer interaction that has the ability to wake sims up, then this mod prevents the sim from autonomously initiating such an interaction if there is at least one sleeping sim in the same room that the sim is not furious at or enemies with. This means that sims are now much less likely to barge into a room and turn on an electronic object which then wakes sims up.
- When a sim is sleepy, they will be a bit smarter about turning off electronics around the house. They will be more likely to turn off electronics which are in the same room, or if it is night-time (day-time for vampires), and so on. This should allow sims to eventually be able to autonomously turn off disturbing electronic objects before they sleep, or after they are woken up by such an object.
- When a sim finishes watching TV, they will be a bit smarter about whether they should leave it on or turn it off. Note that this is a chance roll, so what the sim decides to do may be different every time. They will be more likely to turn off if their energy is low and so on.
- When a sim tries to turn off a stereo, the game allows the sim to do so from their seat (if they are sitting) even if the stereo is in another room. This mod makes the sim get up and route towards the stereo to turn it off if the stereo is in another room.
- When a sim is playing an instrument, the instrument will now wake sims up. Maxis added this necessary check to the piano, but not to any other instrument.
Resources: Check the image.

TV Watch Seat Mod: Sims can only sit on a seat which is directly facing the TV in order to watch TV. I dislike this. This mod allows sims to watch TV from any seat that is within the cone of vision of the TV and as long as the TV is also in the cone of vision of the seat. I have set the maximum distance of the seat from the TV to 10 tiles if the seat is directly facing the TV, or 7 tiles if it is not. Sims will initially try to sit on a seat that is directly facing the TV, but if they can't find such a seat, then they will look for any other available seat within the cone of vision.
UPDATE 1: I found out that certain types of seats, especially custom ones, may end up blocking their own line of sight with other objects, which causes sims to skip those items while choosing a seat to watch TV. This update adds a check to see if the blocking object is the seat itself and allows sims to sit on such seats to watch TV.
UPDATE 2: I found further interesting facts about line of sight. Basically, if an object is somehow blocking their own line of sight, it seems to be impossible to check if any other object may as well be blocking the line of sight, which means sims would consider sitting on such a seat even if there was a wall between the seat and the TV. So, I am reverting the change I made in UPDATE 1. This means that if you have a seat like that (most are low, bench-like seats), sims will not consider sitting on them to watch TV if they are not directly facing the TV, and if they are directly facing the TV, then sims will not prefer them.
UPDATE 3: This update completely changes the mod. I wrote it from scratch, because I realized that the way I did it before is really not the proper way of doing it. Technically speaking, you should never use the RayTrace primitive to check to see if there is a load-bearing wall blocking sight, because you can't. If you play with walls down, the primitive actually returns true. Maxis very rarely specifically checks for walls between two points, and they seem to do it within a lua script. Otherwise, they use find best object primitives, which is precisely what this mod now does. However, this means that sims may prioritize seats which are closest to the TV. This means if you put a living chair at a 90 degree angle to the TV, and a sofa directly facing the TV, the sim may first consider sitting in the living chair as long as it is closer to the TV. Which seat the sim chooses actually depends on both the distance of the seat, and how attractive the seat is for sitting (sitting function score). Note that this update also fixes the entire issue of certain seats blocking their own line of sight, so you don't have to worry about that any more. This is really the only proper way of doing it.
UPDATE 4: I have figured out how to use the lua method Maxis uses to check if there is a load-bearing wall between two objects, and I am adding this to the mod. This is an important update, because before this update, sims who were already sitting in a suitable seat would get up and try to find another seat to watch TV, making them play musical chairs. There was no way around this except figuring out the lua code, because otherwise I would have to allow them to watch TV even if there was a wall blocking their sight. All of these issues have been fixed, and sims who are already sitting in a suitable seat can now stay in their seat when they initiate the Watch TV interaction. I believe this lua script will be very useful for other modders whenever they want to check if a wall may be blocking sight between two objects. I named the lua "IsThereWallBetweenT0T1". The way you use it is very simple: you set Temp0 to the Object ID of the first object, and set Temp1 to the Object ID of the second object, then call the lua. It will return true if there is a wall blocking sight, and false if not.
UPDATE 5: I have found a way to make sims first consider sitting in a seat that is directly facing the TV, and only consider sitting in any other seat if no such seat exists, so this update adds this feature to the mod.
UPDATE 6: The mod now allows sims to sit on barstools which are not directly facing the TV.
UPDATE 7: The mod now does not affect sims who are trying to play a video game console. This is because the animations for playing a video game console do not allow the sim to turn to face the TV, meaning that they should only be allowed to play while facing the TV straight on.
Resources:
TV - Route to Watch/0x7F92832C/0x0000204D
simler90 - TV - Route to Watch - Get in T0 - Available Seat/0x7F92832C/0x00002095

You need the latest version of 7zip or WinRAR to get this mod.

Requirements: Apartment Life and/or M&G.

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 2 Apartment Life + 1 SPs
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
TVWatchSeatMod-UPDATE7.rar

Size: 1.1 KB · Downloads: 1,917 · 13th May 2021
1.1 KB 1,917 13th May 2021
ElectronicsMod.rar

Size: 3.7 KB · Downloads: 1,741 · 24th Mar 2021
3.7 KB 1,741 24th Mar 2021
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:

1. Download: Click the download link to save the .rar or .zip file(s) to your computer.

2. Extract the zip, rar, or 7z file.

3. Place in Downloads Folder: Cut and paste the .package file(s) into your Downloads folder:
  • Origin (Ultimate Collection): Users\(Current User Account)\Documents\EA Games\The Sims™ 2 Ultimate Collection\Downloads\
  • Non-Origin, Windows Vista/7/8/10: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\
  • Non-Origin, Windows XP: Documents and Settings\(Current User Account)\My Documents\EA Games\The Sims 2\Downloads\
  • Mac: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads
  • Mac x64: /Library/Containers/com.aspyr.sims2.appstore/Data/Library/Application Support/Aspyr/The Sims 2/Downloads
Need more information?
 
9 Comments / Replies (Who?) - 4 Feedback Posts, 4 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Lab Assistant
THANKS POST
#2 Old 24th Mar 2021 at 7:00 PM
Is a good mod for more options, fantastic, thank
Lab Assistant
#3 Old 24th Mar 2021 at 7:37 PM
Another amazing mod but far too many conflicts CJ's Practice Perform Changes, CJ's Loop Fixes, CJ's Visitors Behave, Midge's More Computer Options, Simsky's TV Mod (this is one more personal preference, I like how Simsky's mod makes it so they always turn the TV off after use instead of a random chance/depending on energy but cool idea). The TV Watch Seat Mod also seems to do the exact same thing as Mog Hughson's Watch TV from All chairs but since this mod is newer perhaps it works better so I'll give it a try!
Field Researcher
#4 Old 24th Mar 2021 at 9:00 PM
Cool stuff, simler. Was going to echo BellaDovah, though. The Watch TV mod seems very similar to Mog's Watch TV from all Chairs and the stereo control is similar to Numenor's Instant Stereo Op Global Fix. Can you clarify any key differences or is there are conflicts?

@BellaDovah, have you encountered issues with Mog's mod the past few years? I think it has been working just fine for me, but if this works better, I'm happy to update.
Test Subject
THANKS POST
#5 Old 25th Mar 2021 at 2:39 AM
thanks a bunch! Johnny Smith is a light sleeper regardless of whether he has the trait for it. he's also a dancing fool who doesn't turn his radio off before he goes to bed!
Lab Assistant
#6 Old 25th Mar 2021 at 6:55 PM
Quote:
Originally Posted by daman19942
Cool stuff, simler. Was going to echo BellaDovah, though. The Watch TV mod seems very similar to Mog's Watch TV from all Chairs and the stereo control is similar to Numenor's Instant Stereo Op Global Fix. Can you clarify any key differences or is there are conflicts?

@BellaDovah, have you encountered issues with Mog's mod the past few years? I think it has been working just fine for me, but if this works better, I'm happy to update.


@daman19942 I've never had any issues with Mog's mod no but I've taken it out and I'm going to trial this one for now to see if I notice any differences. I noticed with Mog's that they do sometimes prioritise chairs that don't have the best viewing angle so since Simler90 says that this version makes them pick chairs directly opposite the TV first it sounds like it could be a bit better. I haven't heard of that Stereo mod by Numenor so I'll check it out since I'm not going to be using the Electronics bit of this mod, thanks!
Field Researcher
#7 Old 26th Mar 2021 at 12:19 AM
Quote:
Originally Posted by BellaDovah
@daman19942 I've never had any issues with Mog's mod no but I've taken it out and I'm going to trial this one for now to see if I notice any differences. I noticed with Mog's that they do sometimes prioritise chairs that don't have the best viewing angle so since Simler90 says that this version makes them pick chairs directly opposite the TV first it sounds like it could be a bit better. I haven't heard of that Stereo mod by Numenor so I'll check it out since I'm not going to be using the Electronics bit of this mod, thanks!


Turns out I'm going to trial this as well. I was building and playtesting a bar with the television screens above the barstools and bar area, and the sims were choosing chairs that, ahem, weren't in the best spots (there is a row of booths a few tiles back). So maybe this will encourage them to sit at the bar (unless sims don't sim at bars and watch TV? I guess I have never really experimented with that before).
Lab Assistant
THANKS POST
#8 Old 27th Mar 2021 at 11:22 PM
This makes so much sense! There quite often seems to be a sim reading a book or the newspaper sitting in the computer chair. Then they stamp and carry on. Thanks for fixing this. The tv issue is much more complex, but what you have done seems to cover all events. I am looking forward to seeing what changes I see in their routing for tv viewing. Thanks!
Lab Assistant
THANKS POST
#9 Old 1st Apr 2021 at 7:48 PM
Intresting. I once had one of the Curious brothers sit in a chair facing the wrong way in another room from the TV set and happily watch TV with Mog's mod. I will give yours a try hopefully with better results! Thanks for your work and sharing of same!
Test Subject
#10 Old 24th Jul 2021 at 6:55 AM
Now that I think about it, Mog's never worked right for me quite the way I wanted to--they would watch tv from the weirdest places sometimes. There was also that other mod that had them sit on floor if there was no seating but they would skip using an empty arm chair and seeing my elder sims sit on the floor to watch tv was just sorta weird after awhile.

With this mod I can finally have sims watch TV from the arm chair placed diagonally (when the sofa is fully occupied) I LOVE it. This is how it should've always worked.

Screenshots