Please log in or register
To enjoy the benefits of Nexus Mods, please log in or register a new account
The Sims 4 Community Library
File information
Last updated
Original upload
Created by
Uploaded by
Virus scan
Tags for this mod
About this mod
An open source library with a focus on providing utilities and services to the larger Sims 4 modding community. Let’s not reinvent the wheel!
This mod does not have any known dependencies other than the base game.
Mods requiring this file
Credits and distribution permission
Author notes
— YOU DO NOT HAVE MY PERMISSION TO BUNDLE S4CL INTO YOUR OWN MOD. So don’t do it. Redirect the users of your mod to the releases page or a specific release page instead: https://github.com/ColonolNutty/Sims4CommunityLibrary/releases
I accept Pull Requests in the Github Repository.
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
File credits
ColonolNutty for most if not all of the library.
EA for The Sims 4.
Donation Points system
This mod is opted-in to receive Donation Points
Translations available on the Nexus
| Language | Name |
|---|---|
| Mandarin Author: Zoophx | The Sims 4 Community Library Chinese Translation |
Version v1.0.0
Welcome to The Sims 4 Community Library!
Description:
This is more of an API than a mod itself. By itself, it does not modify any aspect of The Sims 4 it simply makes writing mods using Python much easier and more accessible for those looking to create their own mods. Only install the library if you have installed a mod that requires it!
A Short List Of Current Features (Not all features are listed here!):
For a complete list of features and utilities, check out the documentation
— A vast library of Vanilla Tuning identifiers for easy retrieval
— Logging
— Exception Handling
— Custom Dialogs
— Custom Notifications
— Custom Interactions
— Custom Icons
— Event Handling (Creating, Dispatching, and Listening)
— Miscellaneous Utilities
— Manipulate Sims, Objects,. the Weather, the Terrain, the UI, and many more!
— Test Framework
— Write and run tests (Can be run from within the game)
To see the documentation for S4CL check out the docs!
To start creating mods using S4CL check out the template project!
Looking to install S4CL?
Follow the installation instructions below for details.
Looking for the Source Files?
Find them over in the repository here.
Changelog:
For a changelog of the most recent updates and additions, take a look at the releases page.
Installation:
— Download the latest zip archive from the releases page (It is the one with the version number in it Example: sims4communitylib.v0.0.0.zip) (Ignore the ones that contain Source Code in their name)
— Unpack the archive using your favorite archiving tool.
— Drag the files/folders to your Mods directory.
— Keep in mind the ts4script file MUST be either top level (Directly in the Mods/ folder) or one folder deep (Mods/Blah/ ). Any deeper and it will not work.
Requirements:
— Sims 4 Patch Version 1.77.131.1030 (Cottage Living) or above
— DLCs are NOT required, you only need to have an up to date game (Check the bottom of the main menu for your current version).
Planned Features:
— For a list of planned features, take a look at the repository.
Note for Modders:
— If you have ideas for additions to add or want one of the planned features sooner rather than later, I’m all ears! Let’s work together to create a library that we all can use!
— To see the documentation for S4CL check out the docs!
Please log in or register
To enjoy the benefits of Nexus Mods, please log in or register a new account
The Sims 4 Community Library
File information
Last updated
Original upload
Created by
Uploaded by
Virus scan
Tags for this mod
About this mod
An open source library with a focus on providing utilities and services to the larger Sims 4 modding community. Let’s not reinvent the wheel!
This mod does not have any known dependencies other than the base game.
Mods requiring this file
Credits and distribution permission
Author notes
— YOU DO NOT HAVE MY PERMISSION TO BUNDLE S4CL INTO YOUR OWN MOD. So don’t do it. Redirect the users of your mod to the releases page or a specific release page instead: https://github.com/ColonolNutty/Sims4CommunityLibrary/releases
I accept Pull Requests in the Github Repository.
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
File credits
ColonolNutty for most if not all of the library.
EA for The Sims 4.
Donation Points system
This mod is opted-in to receive Donation Points
Translations available on the Nexus
| Language | Name |
|---|---|
| Mandarin Author: Zoophx | The Sims 4 Community Library Chinese Translation |
Version v1.0.0
Welcome to The Sims 4 Community Library!
Description:
This is more of an API than a mod itself. By itself, it does not modify any aspect of The Sims 4 it simply makes writing mods using Python much easier and more accessible for those looking to create their own mods. Only install the library if you have installed a mod that requires it!
A Short List Of Current Features (Not all features are listed here!):
For a complete list of features and utilities, check out the documentation
— A vast library of Vanilla Tuning identifiers for easy retrieval
— Logging
— Exception Handling
— Custom Dialogs
— Custom Notifications
— Custom Interactions
— Custom Icons
— Event Handling (Creating, Dispatching, and Listening)
— Miscellaneous Utilities
— Manipulate Sims, Objects,. the Weather, the Terrain, the UI, and many more!
— Test Framework
— Write and run tests (Can be run from within the game)
To see the documentation for S4CL check out the docs!
To start creating mods using S4CL check out the template project!
Looking to install S4CL?
Follow the installation instructions below for details.
Looking for the Source Files?
Find them over in the repository here.
Changelog:
For a changelog of the most recent updates and additions, take a look at the releases page.
Installation:
— Download the latest zip archive from the releases page (It is the one with the version number in it Example: sims4communitylib.v0.0.0.zip) (Ignore the ones that contain Source Code in their name)
— Unpack the archive using your favorite archiving tool.
— Drag the files/folders to your Mods directory.
— Keep in mind the ts4script file MUST be either top level (Directly in the Mods/ folder) or one folder deep (Mods/Blah/ ). Any deeper and it will not work.
Requirements:
— Sims 4 Patch Version 1.77.131.1030 (Cottage Living) or above
— DLCs are NOT required, you only need to have an up to date game (Check the bottom of the main menu for your current version).
Planned Features:
— For a list of planned features, take a look at the repository.
Note for Modders:
— If you have ideas for additions to add or want one of the planned features sooner rather than later, I’m all ears! Let’s work together to create a library that we all can use!
— To see the documentation for S4CL check out the docs!
Sims 4 Community Library 1.75 (S4CL) (28.09.2021)
Community Library for The Sims 4!
Description:
This is more of an API than the mod itself. It doesn’t do anything by itself and is intended as a framework for other Sims 4 developers to use in their own codebases. Install the library only if you have installed a mod that requires it!
Requirements:
— The Sims 4 Version at least 1.80.69.1030 (Cottage Living)
— Vanilla Tuning identifiers for:
— Buffs
— Interactions
— Relationship Bits
— Relationship Tracks
— Short-Term Relationship Bits
— Motives
— Many Others!
— Logging
— Log messages to a file
— Log custom exceptions
— Log the current stack trace, find out who or what is calling your functions!
— Useful when debugging code!
— Enable / Disable logs via a command in-game. `s4clib.enable_log `
— Exception Handling
— Log to a file exceptions that are thrown
— Catch exceptions within your functions via a decorator
— Custom Dialogs
— Ok / Cancel Dialog
— Choose Object Dialog
— Many more!
— Testing Framework
— Write tests to test your python code and run the tests via a command within the game.
— The results will be logged to the ‘Documents/The Sims 4/’ folder
— A single function can handle multiple tests utilizing the same code with different arguments.
— Run tests via the command: `s4clib.run_tests `
— Class Names are the names of the classes decorated with ‘test_class’
— If no class names are provided, all of the tests will run.
Installation:
— Download the latest zip archive above.
— Unpack the archive using your favorite archiving tool.
— Drag files / folders to Mods directory.
— Keep in mind that the ts4script file must be either a top level (directly in the Mods / folder) or one deep folder (Mods / Blah / ). Even deeper, and nothing will come of it.
To those using this mod, if you are told that my mods do any of the following:
— Will break or cause severe issues within your game
— Contain themes endangering or abusing Children
— Contain themes endangering or abusing Animals
— Contains illegal content
Please know that ALL of this is misinformation, and completely false.
The mod authors known as TURBODRIVER and Deaderpool have chosen to Stalk, Target, and Cyberbully me and anyone who chooses to use any of my mods. They have chosen to spread misinformation (slander) about my mods for years, and have gone so far as to put malicious code in Wicked Whims targeting my mods (and by extension those who make mods using S4CL which is a fairly large chunk of mod authors). I believe in creating mods that better the community as a whole, even if I have no personal interest in the criteria of the mod itself. Even the API called Sims 4 Community Library, which I have created for new and old mod authors to create simpler and more stable mods while also providing a vast store of functionality for said mods, has been targeted by these mod authors. They go on witch hunts, banning or threatening anyone who dares join my discord. They have threatened other mod authors, discords, websites, and various other forms of media into also banning and threatening people for using my mods.
Sadly, this has put me in a place where the very community I love and support, slanders me and continues to spread the same misinformation, without knowing that many of the negative things being said have zero evidence to back them and are nothing more than cyberbullying.
Though these Mod Authors are extremely successful, they have been using their popularity to ruin my reputation and railroad the community into believing these lies. This has caused many discords to ban people for using any of my mods and it has turned my name into something that frightens everyone when it is even mentioned. I try my best to support and create content for this community out of my own pocket and this is completely unacceptable.
Please do not believe everything you read on the internet. There’s always two sides
to a story but above all there is the absolute truth. Its up to us as people to find it out
and refrain from hopping onto bandwagons stirred up by popular mod authors.
I love this community, and despite what TURBODRIVER and Deaderpool say to ruin me, I will continue doing my best to support this community, noone deserves this treatment, especially not someone who makes mods for free.
Previous versions:
There is not really a reason to use an older version. S4CL is always and will always be backwards compatible.
Please log in or register
To enjoy the benefits of Nexus Mods, please log in or register a new account
The Sims 4 Community Library
File information
Last updated
Original upload
Created by
Uploaded by
Virus scan
Tags for this mod
43 comments
Hi ColonolNutty there is a problem with Cottage Living in the Henford on Bagley world, repetitive exceptions I think it is fox related.
Without sims4communitylib no exceptions.
I have seen this error before and looked into it previously as well as fixed it and I, at that time, added explicit code that prevents this bug. However, other mods that are poorly written override this and rebreak the icon. One such mod is the Wicked Whims mod. There is nothing that can be done further on my end in S4CL. However, I have added commands to silence and unsilence your phone as a workaround, since those other mod authors refuse to fix the bug on their end as well, for seemingly petty reasons. The commands are as follows: «s4clib.silence_phone», «s4clib.unsilence_phone»
You may want to verify that S4CL was the only mod in your Mods folder, because I’m looking in-game with only S4CL installed and the silence icon as well as the unsilence icon appears fine. It only disappears when you hold SHIFT when clicking on the phone. (But that is because it is not considered a «cheat» interaction and is working as intended.). All normal (non-shift) clicks, it appears as it should.
why do people in certain sims 4 communities hate your mods? they won’t even support any of your more harmless mods. like the custom gender mod. threatened to even ban me if I used it. (I was actually permanently banned from the MCCC discord server for having one of your mods in it, no questions even asked, even after I removed it)
Their reasons are unknown. At this point they simply hate me to hate me. Maybe they feel threatened?
Either way, I recommend standing against their toxicity, and spreading awareness about how toxic their behavior is, it is absolutely not welcome in this community.
Try reproducing the error for me, it is extremely EXTREMELY unlikely to be the S4CL api. (Very unlikely to be any of my mods, since I test them almost daily and have not seen this issue!)
Hi, got a few crashes, after a mini update a couple of days ago, I think 27th. Ever since then the Community Library wasn’t functioning and ‘LastExeptions’ kept popping up so I had to delete it. Would there be another update on it?
Greetings and thank you for this invaluable contribution to the community!
It would appear the latest S4 patch (1.77.131) has broken the S4CL, unfortunately. It crashes my game. I thought it best to bring it up in this thread and patiently await an update.
Hello ColonolNutty. First of all thanks for your work on all of your mods. I’ve been using CSF and got all the required files along with it, but, while everything seems to be working, Better Exceptions Full Report has been mentioning «sims4communitylib.ts4script» as a cause for the exception below.
I don’t know why it is trigging such message, but all my sliders seems to be present on CSF.
?The listed script mod failed to load and should be removed or updated. Failure: ‘sims4communitylib/debug/interactions/_register_interactions’ (sims4communitylib.debug.interactions._register_interactions) ‘utf-8’ codec can’t decode byte 0xc6 in position 25: invalid continuation byte (UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc6 in position 25: invalid continuation byte)
? Failure: ‘sims4communitylib/debug/interactions/_register_interactions’ (sims4communitylib.debug.interactions._register_interactions)
‘utf-8’ codec can’t decode byte 0xc6 in position 25: invalid continuation byte (UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc6 in position 25: invalid continuation byte)
Traceback (most recent call last):
File «T:\InGame\Gameplay\Scripts\Core\sims4\importer\utils.py», line 120, in import_modules_by_path
File » «, line 983, in _find_and_load
File » «, line 967, in _find_and_load_unlocked
File » «, line 668, in _load_unlocked
File » «, line 638, in _load_backward_compatible
File «T:\InGame\Gameplay\Scripts\Core\sims4\importer\custom_import.py», line 145, in load_module
File «sims4communitylib\debug\interactions\_register_interactions.py», line 18, in
File » «, line 983, in _find_and_load
File » «, line 967, in _find_and_load_unlocked
File » «, line 668, in _load_unlocked
File » «, line 638, in _load_backward_compatible
File «T:\InGame\Gameplay\Scripts\Core\sims4\importer\custom_import.py», line 145, in load_module
File «sims4communitylib\utils\common_keyboard_utils.py», line 10, in
File » «, line 983, in _find_and_load
File » «, line 967, in _find_and_load_unlocked
File » «, line 668, in _load_unlocked
File » «, line 638, in _load_backward_compatible
File «T:\InGame\Gameplay\Scripts\Core\sims4\importer\custom_import.py», line 145, in load_module
File «sims4communitylib\enums\common_key.py», line 13, in
File «sims4communitylib\enums\common_key.py», line 221, in CommonKey
File «T:\InGame\Gameplay\Scripts\Lib\platform.py», line 1037, in system
File «T:\InGame\Gameplay\Scripts\Lib\platform.py», line 951, in uname
File «T:\InGame\Gameplay\Scripts\Lib\platform.py», line 450, in _syscmd_ver
File «T:\InGame\Gameplay\Scripts\Lib\codecs.py», line 322, in decode
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc6 in position 25: invalid continuation bytertim=0
ClientInfo isn’t here
The strange thing is that it is trying to «decode» anything, since the game should not be doing that at all. See if the error occurs with only S4CL in your Mods folder.
Edit: So you are aware, this isn’t an error occurring on my end nor on the ends of most people using any of my mods. I am also on Windows 10. It is an error localized to your game and it is most likely due to another mod you have that is installed incorrectly, a mod that isn’t utilizing S4CL properly or you have S4CL incorrectly installed (Judging by the fact CSF is working for you, it probably isn’t a bad install of S4CL). It is also a possibility that maybe the people not having issues have something installed on their machine that you don’t have (I’m hoping it isn’t this one though)
Sorry for the delay. I tooked the time to reinstall/recheck the files on my game. Also did a 50/50 on my mods, and I found the one that was triggering those messages when I put it back on mods folder. (Edit: Still trying to find out. ).
Thanks for helping me pointing where to start looking at this issue, and sorry for bothering you with such silly report.
It seems like you aren’t the only one running into this, I’ll have a look at what could be causing it. (Because it may just be S4CL after all)
Edit: Turns out it was an error that could occur for anyone running the game in a Chinese language (and probably other languages besides english)
Hey ColonolNutty. I hope you are fine. Are you going to update this mod? It seems to have an issue with the library, got this error since the last update. Here is the log :
Game Version: 1.69.59.1020 | OS: Windows 10.0.18362 | Created at: 2021-01-07 19:08:46.371717
File «T:\InGame\Gameplay\Scripts\Core\sims4\utils.py», line 179, in wrapper
File «T:\InGame\Gameplay\Scripts\Server\areaserver.py», line 209, in c_api_server_tick
File «T:\InGame\Gameplay\Scripts\Server\sims\masked\v163.5\injector.py», line 26, in _wrapped_function
File «T:\InGame\Gameplay\Scripts\Server\sims\masked\v163.5\zone_tick.py», line 81, in _turbolib_zone_game_update
File «sims4communitylib\utils\common_injection_utils.py», line 93, in _wrapped_function
File «sims4communitylib\events\zone_update\common_zone_update_event_dispatcher.py», line 79, in _common_zone_update
File «T:\InGame\Gameplay\Scripts\Server\zone.py», line 474, in update
File «T:\InGame\Gameplay\Scripts\Server\time_service.py», line 112, in update
File «T:\InGame\Gameplay\Scripts\Server\scheduling.py», line 212, in simulate
File «T:\InGame\Gameplay\Scripts\Server\elements.py», line 376, in _run
File «T:\InGame\Gameplay\Scripts\Server\animation\animation_utils.py», line 434, in flush_all_animations
File «T:\InGame\Gameplay\Scripts\Server\animation\arb_accumulator.py», line 499, in flush
File «T:\InGame\Gameplay\Scripts\Server\animation\arb_accumulator.py», line 399, in _append_arb_to_element
File «T:\InGame\Gameplay\Scripts\Server\animation\arb_element.py», line 245, in execute_and_merge_arb
File «T:\InGame\Gameplay\Scripts\Server\animation\arb_element.py», line 272, in handle_events
File «T:\InGame\Gameplay\Scripts\Core\native\animation\arb.py», line 385, in handle_events
File «T:\InGame\Gameplay\Scripts\Server\animation\arb_element.py», line 572, in _event_handler_parent
Cause:
ANIMATION: A clip is trying to fire a parent event with bad
data. Either the animation actors are mistuned, or a slot
that doesn’t exist on the rig has been specified in Maya.
Clip: a2o_cardGame_placeDeck_seated_x (Parent Event ID: 2),
Parenting [Prop]prototype/51199:0x0ef00c79d5a92eac to object_tableGame:0x01bc0c304b35076d,
Slot 0x71af93dd on ‘00000000!6945542d’f5da310e.8eaf13de’,
Offset: Transform(Vector3(0.000000, 0.000000, 0.000000), Quaternion(0.000000, 0.000000, 0.000000, 1.000000))
It happens randomly during interactions/animations from the game between two or more sims. The ASMs is just an example because it happens periodically with others interactions than the cardgame table, with everything frozen during the bug (sims timer, sims, etc. ffx are fine but can’t pause the game during the issue)
I think the culprit are the mods in bold. I’m pretty sure v163.5 refers to the last WW version, so probably an incompatibility with S4library and WW?
I use your S4lib for your sliders mod and I remember to not have such issue with it before the snowy escape update. It’s possible that it’s an issue from WW tho, but when removing your mod, the issue is no more. So prolly an incompatibility or smthing like that.
Unfortunately, Devious Desires is outdated and the modos from a certain forum seems to be hypocrits with your mods. They clearly waited an opportunity to take you down without evidences.
I saw that you updated some scripts files sources on the github (common_interaction.py) but the last s4lib version is still 1.55.
Love your mods, keep up the good work and ignore the dramaqueens.
