Custom Channels Injector

by SashaT1804 Posted 14th Apr 2022 at 9:25 PM - Updated 13th Feb 2026 at 10:11 AM by SashaT1804
 
64 Comments / Replies (Who?) - 47 Feedback Posts, 16 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 2 of 3
Lab Assistant
Original Poster
#26 Old 23rd Sep 2022 at 7:35 AM
Quote: 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
Quote: 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.

Code:
    Last Module Called: channelinjector.py
    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


Code:
File 'T:\InGame\Gameplay\Scripts\Server\areaserver.py', line 154, in c_api_server_init_tick
File 'T:\InGame\Gameplay\Scripts\Core\sims4\core_services.py', line 164, in start_service_tick
File 'T:\InGame\Gameplay\Scripts\Core\sims4\service_manager.py', 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\instance_manager.py', 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\instance_manager.py', 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\instance_manager.py', 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\injector.py', 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\exceptions_feedback.py', 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\channelinjector.py', 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\channelinjector.py', 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'>]
Lab Assistant
Original Poster
#28 Old 21st Oct 2022 at 2:24 PM
Quote: Originally posted by KitsuInari
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.


Thanks a lot for sharing the exception! I have identified the issue, will update as soon as possible
Lab Assistant
Original Poster
#29 Old 21st Oct 2022 at 2:24 PM
And sorry for not checking the comments often enough, I'll try to do better
Test Subject
THANKS POST
#30 Old 30th Oct 2022 at 7:23 PM
Hey, I know there is way now to add own channels, but can you delete the default ones in any way?
Lab Assistant
Original Poster
#31 Old 1st Nov 2022 at 12:41 PM
Quote: Originally posted by sqpp
Hey, I know there is way now to add own channels, but can you delete the default ones in any way?


Hum, I guess if you override the corresponding tuning files and make them empty, that could work maybe? I haven't tried though, and that could generate exceptions, but I don't think it would pose any in-game issue
Test Subject
#32 Old 6th Nov 2022 at 6:43 PM Last edited by jaschema : 6th Nov 2022 at 11:07 PM.
hi! this is getting flagged as broken after the latest patch. Thanks!
Lab Assistant
Original Poster
#33 Old 12th Nov 2022 at 2:50 PM
Quote: Originally posted by jaschema
hi! this is getting flagged as broken after the latest patch. Thanks!


I am having absolutely no issue with it, and no one reported any issue either, so it does not seem to be broken
Test Subject
#34 Old 23rd Dec 2022 at 1:58 PM
How to add more that 1 movie to your tv channel? I try make VideoPlaylist sim data xml file but it's not working.
Lab Assistant
Original Poster
#35 Old 21st Jan 2023 at 9:01 AM
Quote: Originally posted by malysz9999
How to add more that 1 movie to your tv channel? I try make VideoPlaylist sim data xml file but it's not working.



Hi, apologies for the late reply, the holiday season has been very hectic for my pet sitting job and I didn't have a chance to come back to my mods until today. I have absolutely no idea how video channels work unfortunately, the injector provides a way to have them show up on TVs, but I have no idea how to make them at all. I just added this because some people where asking for it. Maybe there are some tutorials somewhere about how to make custom tv channels?
Test Subject
#36 Old 25th Jan 2023 at 3:57 PM
Quote: Originally posted by SashaT1804
Hi, apologies for the late reply, the holiday season has been very hectic for my pet sitting job and I didn't have a chance to come back to my mods until today. I have absolutely no idea how video channels work unfortunately, the injector provides a way to have them show up on TVs, but I have no idea how to make them at all. I just added this because some people where asking for it. Maybe there are some tutorials somewhere about how to make custom tv channels?


About tv channels I only know this https://modthesims.info/showthread.php?t=533897
Test Subject
THANKS POST
#37 Old 11th Apr 2023 at 11:14 AM
Wonderful creation! Thank you!
Forum Resident
THANKS POST
#38 Old 24th Apr 2023 at 1:56 AM Last edited by landerlady12 : 8th Sep 2024 at 12:04 AM.
Thank you so much for this mod! I think it may need an update however. I was told on discord that this is causing an error for me. Here is the
LE if that helps:

?xml version="1.0" ?><root>
<report><version>2</version><sessionid>8ba0dbe5369f90eb6445cd93</sessionid><type>desync</type><sku>ea.maxis.sims4.15.macx86</sku><createtime>2023-04-24 02:36:02</createtime><buildsignature>Local.Unknown.Unknown.1.97.42.1230-1.200.000.589.Release</buildsignature><categoryid>injector.py:26</categoryid><desyncid>8ba0dbe5369f90eb6445cd93</desyncid><systemconfig/><screenshot/><desyncdata>[manus] Exception in &lt;class 'sims4.tuning.instances.ScipioCarneius_SashaT1804_injector_Funk'&gt;._tuning_loaded_callback. (UnboundLocalError: local variable 'temp_states' referenced before assignment)
Traceback (most recent call last):

File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 179, in wrapper
File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 155, in c_api_server_init_tick
File "T:\InGame\Gameplay\Scripts\Core\sims4\core_services.py", line 164, in start_service_tick
File "T:\InGame\Gameplay\Scripts\Core\sims4\service_manager.py", line 340, in start_single_service
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 157, in update_incremental_start
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 216, in _execute_gen
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 615, in invoke_registered_callbacks_gen
File "/Users/xxx/Documents/Electronic Arts/The Sims 4/Mods/SashaT1804_CustomChannelInjector_v4.0.ts4script/channelinjector.py", line 1590, in _tuning_loaded_callback
inject_radio_channels_to_djs(dj_channel_ids, dj_inter_ids)
File "/Users/xxxx/Documents/Electronic Arts/The Sims 4/Mods/SashaT1804_CustomChannelInjector_v4.0.ts4script/channelinjector.py", line 629, in inject_radio_channels_to_djs
return temp_states
UnboundLocalError: local variable 'temp_states' referenced before assignmentrtim=0
Client Session Time: 33.99

Num Save Errors: 0

Num Load Errors: 0

Current Game State: 0x96d01090

LoadingScreenActiveFlag: 1

Origin Version: 10,5,116,52122

Modded: True

SystemInfo: Mac OS X Version 13.2.1 (Build 22D68) GPU: Intel Iris Plus Graphics macOS Metal driver 0.0.0.0

Architecture: x86_64

</desyncdata></report>
<report><version>2</version><sessionid>8ba0dbe5369f90eb6445cd93</sessionid><type>desync</type><sku>ea.maxis.sims4.15.macx86</sku><createtime>2023-04-24 02:36:04</createtime><buildsignature>Local.Unknown.Unknown.1.97.42.1230-1.200.000.589.Release</buildsignature><categoryid>injector.py:26</categoryid><desyncid>8ba0dbe5369f90eb6445cd93</desyncid><systemconfig/><screenshot/><desyncdata>[manus] Exception in &lt;class 'sims4.tuning.instances.SashaT1804_CustomRadioChannels_Test_v3'&gt;._tuning_loaded_callback. (UnboundLocalError: local variable 'temp_states' referenced before assignment)
Traceback (most recent call last):

File "T:\InGame\Gameplay\Scripts\Core\sims4\utils.py", line 179, in wrapper
File "T:\InGame\Gameplay\Scripts\Server\areaserver.py", line 155, in c_api_server_init_tick
File "T:\InGame\Gameplay\Scripts\Core\sims4\core_services.py", line 164, in start_service_tick
File "T:\InGame\Gameplay\Scripts\Core\sims4\service_manager.py", line 340, in start_single_service
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 157, in update_incremental_start
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 216, in _execute_gen
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 615, in invoke_registered_callbacks_gen
File "/Users/xxxx/Documents/Electronic Arts/The Sims 4/Mods/SashaT1804_CustomChannelInjector_v4.0.ts4script/channelinjector.py", line 1590, in _tuning_loaded_callback
inject_radio_channels_to_djs(dj_channel_ids, dj_inter_ids)
File "/Users/xxxx/Documents/Electronic Arts/The Sims 4/Mods/SashaT1804_CustomChannelInjector_v4.0.ts4script/channelinjector.py", line 629, in inject_radio_channels_to_djs
return temp_states
UnboundLocalError: local variable 'temp_states' referenced before assignmentrtim=0
Client Session Time: 33.99

Num Save Errors: 0

Num Load Errors: 0

Current Game State: 0x96d01090

LoadingScreenActiveFlag: 1

Origin Version: 10,5,116,52122

Modded: True

SystemInfo: Mac OS X Version 13.2.1 (Build 22D68) GPU: Intel Iris Plus Graphics macOS Metal driver 0.0.0.0

Architecture: x86_64

</desyncdata></report>
</root>
Test Subject
THANKS POST
#39 Old 22nd Jun 2023 at 3:34 PM
I think this is broken because of the Sims Delivery Express that added the R&B station to radios
Test Subject
THANKS POST
#40 Old 1st Aug 2023 at 9:04 PM
Love the mod, might actually end up dipping my toes into modding finally because of this. I have a question though; do you have any plans to add functions for users to create their own channels without needing modding experience, or a version of the mod for that? I'm willing to get into the techy details, but not everyone is, and besides, if I'm using copyrighted music for myself, it seems like a lot of work to make that if I can't share it with others due to copyright.
Lab Assistant
#41 Old 16th Jan 2024 at 6:17 PM
I'm sorry, but how do I add the CustomChannelsInjector snippet to the XML settings? Show me an example, please.
And how to add video and audio to a channel? I spotted similar tutorials here and here.
Lab Assistant
#42 Old 18th Jan 2024 at 9:47 AM
Quote: Originally posted by genderneutralnoun
Love the mod, might actually end up dipping my toes into modding finally because of this. I have a question though; do you have any plans to add functions for users to create their own channels without needing modding experience, or a version of the mod for that? I'm willing to get into the techy details, but not everyone is, and besides, if I'm using copyrighted music for myself, it seems like a lot of work to make that if I can't share it with others due to copyright.

the same question
Lab Assistant
#43 Old 18th Jan 2024 at 2:06 PM
Why is my test channel name empty? Game in Russian, version 1.104.58.1030.
Screenshots
Field Researcher
#44 Old 2nd Mar 2024 at 10:02 PM
This mod is broken as of patch 1.105.

- Luth.

= luthienrising (on the EA Forums)
Field Researcher
THANKS POST
#45 Old 5th Mar 2024 at 5:27 PM
I think this mod is dead? The creator hadn't been on for over a year and their Pateron site hadn't shown activity since 2022?
Field Researcher
THANKS POST
#46 Old 6th Mar 2024 at 5:07 PM
The injector no longer works for me with the latest patch.
Test Subject
THANKS POST
#47 Old 13th Mar 2024 at 10:31 AM
Is this ever going to be fixed? It no longer works... Or could someone maybe adopt the mod pleassee
Test Subject
THANKS POST
#48 Old 7th Apr 2024 at 8:52 PM
As a music nerd, this is one of, if not my all-time favorite mod. I would love to see this mod updated/adopted. It'd be a shame to see this mod abandoned. Most importantly, I hope Sasha is okay and many thanks for such an amazing mod in general <3
Lab Assistant
#49 Old 20th Apr 2024 at 6:03 PM
Script still works as of Patch 1.106
Hey there everyone,

I tested this mod along with m0therx0fxcha0s' custom channels. It works as intended with no lastExceptions as long as you remove the ChannelsInjectorTest.package (which is not needed). It works perfectly fine with just the script (which is the actual injector). Sasha's More Radio Channels that requires the injector is in fact broken though and causes LEs even without the package.

I just wanted to clear that up for creators like m0therx0fxcha0s who's custom channels require this injector and are working properly.

Origin ID: ScarletQueenKat
Scarlet's Realm - Tracking the status of all mods in the community so you don't have to!
Test Subject
#50 Old 30th Apr 2024 at 5:37 PM
Quote: Originally posted by scarletqueenkat
Hey there everyone,

I tested this mod along with m0therx0fxcha0s' custom channels. It works as intended with no lastExceptions as long as you remove the ChannelsInjectorTest.package (which is not needed). It works perfectly fine with just the script (which is the actual injector). Sasha's More Radio Channels that requires the injector is in fact broken though and causes LEs even without the package.

I just wanted to clear that up for creators like m0therx0fxcha0s who's custom channels require this injector and are working properly.


Thanks for clearing that up!
Though I can't find this creators custom radio channels anywhere, did they take it down?
Page 2 of 3