Forum Discussion
7 years ago
"TURBODRIVER;c-17248490" wrote:
Hey. You're injecting into the wrong element, you need to inject into the "HouseholdUtilitiesManager" class.
Sending the LE file would make it easy to point that out, if you could send it next time.
So I think I am doing it right now, but I am still getting an exception
@injector.inject_to(sims.household_utilities.utilities_manager.HouseholdUtilitiesManager, 'shut_off_utility')
def InterceptOffSwitch(original, self, utility, reason, **kwargs):
original(self, utility, reason, **kwargs)
I am getting an "TypeError: InterceptOffSwitch() takes 4 positional arguments but 5 were given" last exception
Here's the full exception
About The Sims 4 Mods & Custom Content
Find tips, tutorials and troubleshooting for mods and custom content, and The Sims 4 patch files here.16,182 PostsLatest Activity: 12 minutes ago
Recent Discussions
- 35 minutes ago
- 36 minutes ago
- 39 minutes ago
- 43 minutes ago