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

Custom Channels Injector

by SashaT1804 Posted 14th Apr 2022 at 9:25 PM - Updated 3rd May 2022 at 4:49 PM by SashaT1804
26 Comments / replies (Who?) - 2 Feedback Posts
The Custom Channel Injector mod aims to facilitate the addition of custom radio and TV channels, as well as video games, to The Sims™4. It is mostly made for fellow modders, as it still requires the creation of the XML tuning files for both the channels and the corresponding listening interactions. It also requires an extra snippet tuning file, that is explained in details in this documentation. If you are not familiar with XML modding yet, I recommend first experimenting, and making sure your channels work fine on custom objects. What this mod provides is, once you are done with the XML files, it will automatically add your custom radio/TV channels to every stereo/TV object in game. It is injecting with a script, not overriding any file, so it is compatible with any mod already touching to channels or stereo objects.

Let me know if you have any issue or if you find any bugs, I will do my best to help


3.1 Update
- Added an option to make channels non dance-able.
- Corrected an issue with DJ booths, the music would play and the sims could listen, but the object would officially stay in OFF mode and the music animation would not show up.

3.0 Update
- Added support for computer video games.
- Gave a proper instance ID to the string table in the test package. It was previously set to 0, which might have caused compatibility issues.

2.0 Update
- Added support for TV channels.

1.1 Update
- Channels can now be added to hot tubs, DJ booths, water scooters, bots, humanoid robots, and smart hubs.
- Corrected an issue preventing the channels from appearing on the entertainment centers from Tiny Living (TV/Stereo/Bookshelf/Whatever combos).

Operating System:
      Windows: Windows XP, Windows Vista, Windows 7, etc
      Linux: Various flavours of Linux, may need Mono or Wine
      Mac OS X: OS X, may need Mono
Utility Type:
      CC Managers: Tools for installing and managing custom content, custom music, custom paintings etc.
Plugin Type:
      Not Applicable: Standalone tools

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

Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date | v3.1 - added option to make channels non dance-able

Size: 96.7 KB · Downloads: 1,675 · 3rd May 2022
96.7 KB 1,675 3rd May 2022 | v3.0 - added support for computer video games

Size: 95.1 KB · Downloads: 630 · 22nd Apr 2022
95.1 KB 630 22nd Apr 2022
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 File tab to see the download link. Click the link to save the .rar or .zip file(s) to your computer.
2. Extract: Use WinRAR (Windows) to extract the file(s) from the .rar or .zip file(s).
3. Cut and paste the file(s) into your Mods folder
  • Windows XP: Documents and Settings\(Current User Account)\My Documents\Electronic Arts\The Sims 4\Mods\
  • Windows Vista/7/8/8.1: Users\(Current User Account)\Documents\Electronic Arts\The Sims 4\Mods\
Need more information?
  • Anyone can use both .rar and .zip files easily! On Windows, use WinRAR.
  • If you don't have a Mods folder, just make one.
26 Comments / Replies (Who?) - 21 Feedback Posts, 4 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 2 of 2
Test Subject
Original Poster
#26 Old 23rd Sep 2022 at 7:35 AM
Originally Posted by Aijajacob
I get a last exception from using this mod's ts4 script, it doesn't work

Can you please share the exception? Do the channels still appear on stereos or not? The test package gives an exception sometimes but that doesn't affect the mod itself, you can just remove the test package if the interactions appear
Test Subject
#27 Old 30th Sep 2022 at 4:09 PM Last edited by KitsuInari : 30th Sep 2022 at 4:11 PM. Reason: more details
Originally Posted by SashaT1804
Can you please share the exception? Do the channels still appear on stereos or not? The test package gives an exception sometimes but that doesn't affect the mod itself, you can just remove the test package if the interactions appear

I'm also getting one for every one of your custom channels. The function seems to be trying to add them to earbuds. Every other error is the same but for its own channel. I don't have Fitness Stuff, and AFAIK earbuds are exclusive to that stuff pack.

    Last Module Called:
    Last Function Called: inject_radio_channels_to_earbuds
    Error message: [manus] Exception in <class 'sims4.tuning.instances.SashaT1804_SashaT1804_injector_KPop'>._tuning_loaded_callback. (UnboundLocalError: local variable 'temp_states' referenced before assignment), CategoryID: channelinjector:1134

File 'T:\InGame\Gameplay\Scripts\Server\', line 154, in c_api_server_init_tick
File 'T:\InGame\Gameplay\Scripts\Core\sims4\', line 164, in start_service_tick
File 'T:\InGame\Gameplay\Scripts\Core\sims4\', line 331, in start_single_service [ self : <sims4.service_manager.ServiceManager object at 0x00007FF4C207F7D0>, service : tuning_instance_manager]
File 'T:\InGame\Gameplay\Scripts\Core\sims4\tuning\', line 157, in update_incremental_start [ self : tuning_instance_manager, time_stamp : 1664550297.9375582, delta : 0.15195059776306152]
File 'T:\InGame\Gameplay\Scripts\Core\sims4\tuning\', line 216, in _execute_gen [ self : tuning_instance_manager, log_fn : <bound method Logger.debug of <sims4.log.Logger object at 0x00007FF4E522C610>>, instance_manager : InstanceManager_snippet]
File 'T:\InGame\Gameplay\Scripts\Core\sims4\tuning\', line 615, in invoke_registered_callbacks_gen [ self : InstanceManager_snippet, cls : <class 'sims4.tuning.instances.SashaT1804_SashaT1804_injector_KPop'>, start_time : 1664550298.0895088]
File 'T:\InGame\Gameplay\Scripts\Server\sims\masked\v35\', line 26, in _wrapped_function [ args : (<sims4.log.Logger object at 0x00007FF4E522C610>, 'Exception in {}.{}.', <class 'sims4.tuning.instances.SashaT1804_SashaT1804_injector_KPop'>, '_tuning_loaded_callback'), kwargs : {'owner': 'manus'}, new_function : <function _on_exception_occurrence at 0x00007FF4C5AAD170>, original_function : <function Logger.exception at 0x00007FF4C55093B0>]
File 'T:\InGame\Gameplay\Scripts\Server\sims\masked\v35\', line 18, in _on_exception_occurrence [ original : <function Logger.exception at 0x00007FF4C55093B0>, self : <sims4.log.Logger object at 0x00007FF4E522C610>, args : ('Exception in {}.{}.', <class 'sims4.tuning.instances.SashaT1804_SashaT1804_injector_KPop'>, '_tuning_loaded_callback'), kwargs : {'owner': 'manus'}]
File 'C:\Users\[REDACTED]\Documents\Electronic Arts\The Sims 4\Mods\SashaT1804_CustomChannelInjector_v3.1.ts4script\', line 1407, in _tuning_loaded_callback [ cls : <class 'sims4.tuning.instances.SashaT1804_SashaT1804_injector_KPop'>, channel_ids : [12428327195336929131], inter_ids : [4464801723164527326], cid : 4655385647412982290, iid : 14324721220228099351, earbuds_channel_ids : [4655385647412982290], earbuds_inter_ids : [14324721220228099351]]
File 'C:\Users\[REDACTED]\Documents\Electronic Arts\The Sims 4\Mods\SashaT1804_CustomChannelInjector_v3.1.ts4script\', line 1134, in inject_radio_channels_to_earbuds [ channel_ids : [4655385647412982290], inter_ids : [14324721220228099351], channels : [SashaT1804_StereoChannel_KPop_Earbuds], manager : InstanceManager_interaction, key : '00000000!00000000'00028a90.e882d22f', channel_id : 4655385647412982290, channel : SashaT1804_StereoChannel_KPop_Earbuds, inter_id : 14324721220228099351, inter : <class 'sims4.tuning.instances.SashaT1804_stereo_listen_KPop_earbuds'>, def_manager : InstanceManager_object, off : '00000000!00000000'00028b5f.5b02819e', obj : <class 'sims4.tuning.instances.object_drink_VampireCure'>]
Page 2 of 2