Jump to content

1 Screenshot

About This File

TS4CommunityLib.png.52d77626bd18ecb86125a0809532fa05.png

The Sims 4 Community Library

Overview:

An API, for The Sims 4, used to make creating/writing mods using Python much easier and more accessible. On its own it does only a few debug commands/interactions. Only install this API if you also have a mod installed that requires it! This mod is intended to always be backwards compatible, so it is recommended to always keep it up to date!


Game/Creator:  The Sims 4 [EA]
Modder: ColonolNutty - Documentation - Github Wiki - Discord (Pre Release Builds Available There)
Language: English
Game Version:  1.108.349.1020 (Lovestruck) and above

 

Features:

  Reveal hidden contents

 

Installation:

  Reveal hidden contents

 

FAQ:

  Reveal hidden contents

 

Translations:

 

Usage (For Mod Authors):

  Reveal hidden contents

 

Change-Log:

  Reveal hidden contents

Edited by ColonolNutty


What's New in Version 1.78   See changelog

Released


- Add a command to swap the gender of a Sim. `s4clib.swap_gender`
- Added a fix for the vanilla `Sim.can_see` function where `los_constraint` property was attempting to be used while it was None. (Thus throwing an error). This fix checks for the property to be None before continuing the rest of said function.
- Added a new SHIFT+CLICK interaction to all objects. This interaction will let you change the various states of those objects.
  - For example, you can change the image on a computer monitor to one of the many images the game uses.
- Added a debug dialog for changing the state of an object.
- Added a couple more values to `CommonObjectStateValueId`
- The `CommonOutfitUtils` commands now logs the things it prints to the log file in addition to the console window.
- Added new functions to `CommonObjectStateUtils` for loading object state values, setting object state, checking the current states of an object, and retrieve all state items of an object.
- Added a function to `CommonRelationshipUtils` to retrieve all relationships of a Sim.
- Added a function to `CommonRelationshipUtils` to remove a relationship bit of a Sim from all other Sims.
- Added a couple commands for adding and removing relationship bits to/from Sims.
- Added a command to delete all Sims except the Active Household Sims.
- Added a fix for the vanilla `AwayActionTracker.remove_on_away_action_ended_callback` where it would blow up if the callback being removed did not exist in the `_on_away_action_ended` property.
- Added a fix for the vanilla `AwayActionTracker.remove_on_away_action_started_callback` where it would blow up if the callback being removed did not exist in the `_on_away_action_started property`.
- Added functions to check if a Sim can be picked up.
- Added a function to retrieve all Skills available to a Sim.
- Added a function to retrieve all Skills.
- Added a function to check if a Sim can route to another Sim.
- Added a command to set all Sims as having met each other other.
- Cleaned up some doc strings in various enums
- Added `CommonObjectQuality` and `CommonObjectStateId` enums
- Added some functions for setting and getting object quality to `CommonObjectStateUtils`
- Added extra arguments to `CommonSimCraftingUtils.create_from_recipe`
- Removed the checks for `has_motive` from various `CommonSimMotiveUtils` functions.
- Fixed an issue within `CommonSimStatisticUtils.add_statistic_modifier` where it was essentially not working properly.
- Added support for werewolves, related classes are `CommonOccultType`, `CommonSimType`, `CommonOccultUtils`, `CommonSimOccultUtils`, `CommonSimOccultTypeUtils`, etc.
- Updated CommonTraitId and CommonBuffId with new traits and buffs.
- Fixed an issue with Animal Sims spawned in with the spawn commands, where they did not have a breed entered for them.
- CommonAlarmHandles now have an `is_active` property that can be checked to determine in the alarm handle is still active.
- Added a function to remove Game Tags from objects.

  • Like 9
  • Thanks 9
  • Haha 1
  • Agree 1
  • Merry Christmas! 1
  • Yes! 1

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

CrowleyAstray

   11 of 11 members found this review helpful 11 / 11 members

I had no problems with this at all - honestly, the only reason I write this review is to counteract the 1-star, as I feel like that is a troll account!

  • Like 1
SickBastard81

   4 of 4 members found this review helpful 4 / 4 members

This mod is essential, I really like how easy it is to use. ColNutty made a rock-solid mod.

  • Like 1
Krys1379

   2 of 2 members found this review helpful 2 / 2 members

I was bummed when I couldn't find this. I enjoy playing with this mod. Game isn't the same without it. Thanks for all your hard work keeping this mod going!

  • Like 1
Flaxz

   3 of 4 members found this review helpful 3 / 4 members

Just to balance out the 1 star from the troll

  • Like 1
mariak1010

   0 of 18 members found this review helpful 0 / 18 members

downloading this mod broke my downloads folder. it won't open anymore.

Response from the author:

Define "broke my downloads folder", because this API does not make any modifications to the game and thus would not "break your downloads folder". Did you mean your mods folder?

  • Confused 3


×
×
  • Create New...
X