Этот сайт использует файлы cookies и сервисы сбора технических данных посетителей (данные об IP-адресе, местоположении и др.) для обеспечения работоспособности и улучшения качества обслуживания. Продолжая использовать наш сайт, вы автоматически соглашаетесь с использованием данных технологий.
Описание: Это скорее API, а не сам мод. Он предназначен для использования другими разработчиками Sims 4 в качестве основы для своих кодовых баз. Если у вас уже установлен мод, который требует использования этой библиотеки, то вы можете установить ее. В противном случае, установка не является обязательной.
Русский перевод от Helvetica: Скачать (3.17) Русский перевод от Origamika: Скачать (10/28/2020)
- 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 < log_name >` - 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
- Choose Sim Dialog - Custom Icons: - Right Arrow - Navigate Into Arrow - Question Mark - Six Sided Dice - Checked Box - Unchecked Box - Notifications - Sim Icons - Warnings - Errors - Info - Story Dialogs (Add custom buttons, add sim icons) - Sim Picker - Prompt the player to choose a sim or a number of sims from a dialog. - Custom Notifications - Basic Notification - Display a notification with a title and description of varying urgency. - Interactions - Registration - Register Interactions to: - Terrain - Ocean - Objects (Sims, Furniture, etc.) - Custom Interactions - Create interactions the run Python code in their backends - Interaction Types: - CommonInteraction - Inherit from this to hook into an interaction and add python functionality to its functions - Immediate Super Interaction - An interaction that doesn't require a target to perform. It is started immediately and without an animation. - Super Interaction - Like the Immediate Super interaction but these require a target to perform. (sim_chat is one example of a Super Interaction) - Mixer Interaction - Use this for custom Mixer interactions. - Social Mixer Interaction - Use this for custom Social Mixer interactions. - Terrain Interaction - Use for interactions that appear when clicking on the ground. - Perform logical checks to determine whether or not to show an interaction - Or display an interaction as disabled, with a displayed tooltip that shows when the player hovers the interaction. - Run Python code when an interaction is started, cancelled, or has finished. - Custom Interaction Tooltips - Display tooltips on interactions that display on hover. - Locate CommonInteraction for an example of how to utilize custom tooltips in your own interactions. - Event Handling - Create, Dispatch, and Handle Dynamic Events - Handle events without needing a reference to the code that sends the event. - Decouple that code! - Interval Events - Run functions on millisecond intervals. - Run functions once, after an amount of time has passed. - Interaction events (Queued, Started, Ended, Interaction Outcomes) - Sim - Spawn - Occurs when a Sim spawns or is born into the world. - Initialization - Occurs when a Sim is initialized (before being spawned). - Occult Swapping - Occurs when a Sim changes to a different Occult (i.e. Human to Mermaid or Human to Vampire or vice verse) - Zone Events - Zone Update - Occurs every time the zone updates. (Basically every time the game ticks) - Zone Teardown - Occurs every time the zone is torn down. Occurs before a loading screen, but only after a Zone had been previously loaded. (See Zone Early/Late Load) - Zone Save - Occurs every time a zone is saved. This occurs before the game saves for the player. Be careful with this one! - Zone Early Load - Occurs when a zone is loaded, but before the players household has loaded. - Zone Late Load - Occurs when a zone is loaded, but after the players household has loaded. - Utilities - Sim utilities - Get the Active Sim - Get Sim Info, Sim Instance, and Sim Ids - Get All Sims nearby and filter which types of sims to get (Age, Species, Occult, Traits, Buffs, etc.) - Occults - Check Occult Types of sims. - Ages - Get/Set/Check Ages of sims. - Genders - Get/Set/Check Genders of sims. - Species - Get/Set/Check Species of sims. - Buffs - Add/Remove/Check Buffs of sims. - Traits - Add/Remove/Check Traits of sims. - Sim State - Check various states of sims. (Wearing towel, Dying, etc.)
- Sim Spawn/Despawn - Spawn, Despawn, and Delete Sims. - CAS - Outfit - Set/Get/Update/Check the current outfit of sims. - CAS Utils - Attach/Detach/Check cas parts of a sims outfit. You can put any cas part in any BodyType via these. - Components - Get various components of objects (Statistics, Traits, Buffs, etc.) - Resources - Load Resources or Tuning files by their identifiers. (Buffs, Traits, Statistics, Snippets, etc.) - Icons - Load Icons provided by S4CL or your own Icons. - Types - Determine the type of objects without needing to use isinstance or having a reference to the type itself in your own code. - Time - Manage time. Pause the game, get/change the current game speed, get/set the time of day, etc. - Collections - Determine if an object is a collection, combine collections, flatten collections, etc. - Injection - Inject custom functionality into functions - IO (Input/Output) - Write string data to a file or load string data from a file. - Stack Trace - Retrieve the complete and full stack trace. - Localization utilities - Retrieve LocalizedStrings from StringTables of .package files. - Format tokens into LocalizedStrings - Display text in specific colors (Colors can be added by request) - Blue - Green - Red - Create Localized Tooltips - Use to display tooltips on interactions (while also displaying the interaction) - These can be useful to give more information to the player about why something cannot be performed, instead of simply hiding that something. - Weather - Statistics - Motives
- 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/mod_logs' 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_separated_by_a_space>` - 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 the files and folders to your The Sims 4/Mods directory. So `mod_data` will be at `The Sims 4/Mods/mod_data` and the other files will be at `The Sims 4/Mods`. Overwrite All if asked! - Keep in mind that the ts4script file must be either a top level (directly in the Mods / < ts4script file > folder) or one deep folder (Mods / Blah / < ts4script file>). Even deeper, and nothing will come of it.
Не рабочая ссылка? Или знаете о выходе новой версии? Сообщите нам в комментариях ниже. Спасибо! Если вы хотите стать автором публикации или опубликовать свой перевод, пожалуйста, воспользуйтесь формой обратной связи.
Не получается скачать файл?
Если у вас возникают проблемы со скачиванием с Modsfire, пожалуйста, оставьте комментарий под модом. Я проверю ссылку и по возможности перезалью файл на другое зеркало. Спасибо за понимание!
Может кто-нибудь сталкивался с таким или поможет разобраться в чем причина. При сохранении игры МС выдает ошибку и тупо ничего не сохраняет. В ошибке пишет следующее:
<?xml version="1.0" ?><root> <report><version>2</version><sessionid>b54aefdf31c60d3c 69bae566</sessionid><type>desync</type><sku>ea.maxis.si ms4_64.15.pc</sku><createtime>2026-03-18 17:50:27</createtime><buildsignature>Local.Unknown.Unknown.1.121.36 1.1020-1.300.000.233.Release</buildsignature><categoryid>(AS)widget s.GameTray.controls::HUDCheatSheet</categoryid><desyncid>b54aefdf31 c60d3c69bae566</desyncid><systemconfig/><screenshot/><desy ncdata>TypeError: Error #1010: A term is undefined and has no properties. at widgets.GameTray.controls::HUDCheatSheet/InitializeCheatSheetItemList()
 ; at olympus.controls::GUIComponent/ConfigUI() at olympus.controls::GUIComponent/OnAddedToStage() at olympus.core::LayoutManager/LoadWidgetCompleteHandler() rtim=7 41 Client Session Time: 121.90 Num Save Errors: 0 Num Load Errors: 0 Current Game State: 0x96d01090 LoadingScreenActiveFlag: 1 Origin Version: 10,5,96,47512 Modded: True SystemInfo: Windows 10 10.0.19045 GPU: NVIDIA GeForce RTX 3060 32.0.15.9579, GUID: 07384AAF-CC8F-11EC-A299-806E6F6E6963 </desyncdata></report> </root>
Не знаю в чем проблема, но при выполнении жц Трофейная жена, после лишения девственности в браке появляется мудлет, что симка лишилась девственности слишком рано. С чем может быть связано? Симка в молодом возрасте, замужем, мод работает, помимо него стоит викед и реалистичная беременность.
Да я видел. Думаю сейчас оптимизированная версия в аккурат как один из лодов. Уж не помню, как называлась утилита для макса, неплохо справлялась с лодированием, ух... давно это было
Margo0203 столкнулась с ошибкой на похоронах, вызывавшая AttributeError из-за обращения к lot.id вместо lot.lot_id. Теперь функция _find_possible_deceased корректно определяет ID текущего лота.
Подскажите в чём дело пожалуйста! Ошибка происходит на похоронах. Игру 17.03 не обновляла.
[emotional_memory] 2026-03-18 16:23:59.340813 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 222, in c_api_server_tick File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v187.16\injector.py", line 26, in _wrapped_function File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v187.16\zone_tick.py", line 83, in _turbolib_zone_game_update File "sims4communitylib\utils\common_injection_utils.py", line 242, in _wrapped_self_function File "sims4communitylib\events\zone_update\common_zone_update_event_dispatcher.p y", line 79, in _common_zone_update File "T:\InGame\Gameplay\Scripts\Server\zone.py", line 520, in update File "T:\InGame\Gameplay\Scripts\Server\time_service.py", line 117, in update File "T:\InGame\Gameplay\Scripts\Server\scheduling.py", line 231, in simulate File "T:\InGame\Gameplay\Scripts\Server\elements.py", line 376, in _run File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\outcome.py", line 346, in _do File "T:\InGame\Gameplay\Scripts\Server\interactions\utils\outcome.py", line 1094, in decide File "T:\InGame\Gameplay\Scripts\Server\sims\masked\v187.16\injector.py", line 26, in _wrapped_function File ".\WickedWhims_v187.16\turbolib2\events\interactions.py", line 193, in _turbolib_interaction_outcome_result File "sims4communitylib\utils\common_injection_utils.py", line 152, in _wrapped_self_function File "sims4communitylib\events\interaction\common_interaction_event_dispatcher.p y", line 367, in _common_on_interaction_outcome File "sims4communitylib\events\interaction\common_interaction_event_dispatcher.p y", line 172, in _on_interaction_outcome File "sims4communitylib\events\event_handling\common_event_registry.py", line 59, in dispatch File "sims4communitylib\events\event_handling\common_event_registry.py", line 69, in _dispatch File "sims4communitylib\events\event_handling\common_event_handler.py", line 94, in handle_event File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\event_handlers.py", line 141, in on_interaction_outcome File "sims4communitylib\utils\common_log_registry.py", line 238, in error File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\event_handlers.py", line 138, in on_interaction_outcome File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\logic_interaction.py", line 73, in process_outcome File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\logic_core.py", line 280, in apply_emotional_buff File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\funeral_reactions.py", line 15, in apply_funeral_reaction File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\funeral_reactions.py", line 37, in _find_possible_deceased File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 202, in __getattr__ AttributeError: 'Lot' object has no attribute 'id' Error in outcome delegation: 'Lot' object has no attribute 'id' Traceback (most recent call last): File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\event_handlers.py", line 138, in on_interaction_outcome File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\logic_interaction.py", line 73, in process_outcome File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\logic_core.py", line 280, in apply_emotional_buff File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\funeral_reactions.py", line 15, in apply_funeral_reaction File "D:\Sims 4 Python Script Workspace\My Script Mods\EmotionalMemory\Scripts\emotional_memory\funeral_reactions.py", line 37, in _find_possible_deceased File "T:\InGame\Gameplay\Scripts\Server\objects\components\__init__.py", line 202, in __getattr__ AttributeError: 'Lot' object has no attribute 'id'
Ну уже считай в два раза. Производительность должна вырасти. Вопрос только к лодам. Заметил что в паке есть лоды, но что-то не особо в плане "сокращения". Лоды автоматом при экспорте создаются?
Кажется для ArmA II гемора с ними было. При том что хочется чтобы и выглядело более нормально, и чтобы, условно, грузовик на максимальном отдалении еще напоминал грузовик.
ну вообщем в самом высокополиганальном предмете сократил с 3900 до 1900 вершин, но проверить в игре не могу, не грузит мой CC пак игра, жду обновы от EA
После использования последовательно всех версий мода до 1.3.7b файл .json достиг 8 435 891 байт. С версией 1.3.7с поиграл примерно один игровой день, файл стал 6 260 802 байт. Ненамного, но уменьшился.
там модификатор нужен, не замарачивайтесь. Я ж их первыми делал еще год назад, и по привычке из 3dmax делал фазку, всеравно из лимита вершин я не вышел, получился слегка детализированый maxismix
да, сижу удаляю лишние грани, но всеравно оставлю выступ, выпекать не хочу) У арки 1X убрал их и полигоны с 1200 до 600 сократились, это конечно муторно, но сделать придется
Вдавленная часть на арках, как и грани, имеют физическое сглаживание - что как бы не гуд. Карты нормалей хорошо отработают, т.е сама модель для запекания нормальной пойдёт имеет углы на гранях, в лоу поли "сглаживание" там ни к чему, а лучше вообще эту часть сделать гладенькой без , нормаль отработает и выглядеть будет точно так же. Такие елементы, как и мелочь всякую лучше запекать, если оно прям сильно в глаза не лезет. Т.е если это оружие, что игрок видит постоянно, его нормалями не обмануть, то тут да, лоу поли и нормали, если это стена с вогнутыми элементами, впадинами и мелочью, лучше использовать что-то попроще. Игра конечно пытается лодировать, но слабовато.
Не подумай чего, просто уж привык к "оптимизациям" под игры. Я чисто по дизайну, в максе, для меня нормально в хай работать, а для игр это вопрос оптимизации, он крайне важен. Но тоже не особо его люблю.
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.