Html injector sims 4

Мод XML Injector v4 для Sims 4

XML INJECTOR 4 версии для The Sims 4 — бесплатная утилита в виде скрипта, без которой некоторые моды не будут работать. XML Injector упрощает работу разработчикам различных модов, исключая необходимость самому писать некоторые сценарии игры.

Мод не добавляет в Симс каких-либо новых функций и не нагружает компьютер. Инжектор стоит установить только в случае, если вам необходим мод, который написан на его основе.

В версию 4 было добавлено:

  • Проверка дублей при введении в категории picker_dialog, чтобы учесть некоторые случаи, когда добавление в одну категорию добавляет к другой.
  • Добавлен инжектор для типа PurchasePickerInteraction с возможностью введения в категории picker_dialog и Purchase_list_options.

Как пользоваться XML INJECTOR?

Если вы не являетесь создателем модов, а просто играете в The Sims 4 и хотите добиться работоспособности мода требующего данный инжектор, то вы можете просто скачать и установить XML INJECTOR в папку Mods.

Как установить XML INJECTOR в Симс 4?

Вы нашли интересный мод, но в описании указано, что моду для работы необходим XML Injector? Всё что вам нужно — это скачать инжектор и установить его в Sims 4, а затем поставить найденный мод.

Установка мода не займет много времени и ограничится двумя этапами.

Скачанный архив будет содержать всего 2 файла: XmlInjector_Script_v2.ts4script и XmlInjector_Test_v2.package.

Переместите файлы из архива в папку Mods игры.

Не забудьте убедиться, что у вас в настройках игры включены моды сценариев.

Как убедиться, что скрипт работает правильно?

Чтобы убедиться, что мод работает нужно выбрать действие «Тест XML INJECTOR» в игре — на почтовом ящике, компьютере или симе. При выборе действия «Тест XML INJECTOR», отобразится уведомление о том, что инжектор работает правильно.

Если тестовые взаимодействия у вас не отображаются, значит, мод установлен неправильно. Значит, моды для работы которых он нужен, тоже работать не будут или будет работать неправильно.

Убедившись, что хмл инжектор работает, Вы можете удалить файл XmlInjector_Test_v2.package, чтобы тестовые взаимодействия больше не показывались на предметах или симах. При этом, файл сценария XmlInjector_Script_v2.ts4script должен по-прежнему находиться в папке Mods. Если сценарий будет удален, другие моды, зависящие от него, не будут функционировать.

Источник

SCUMBUMBO

MTS_scumbumbo-1821481-XmlInjector.jpg

Added duplicates checking when injecting to picker_dialog categories, to account for some strange edge cases where adding to one category adds to another (ex: adding to gifts categories for computer adds to gifts categories for phone). This does not directly address that behavior, which is not something I was able to find the cause for, but instead checks for duplicates to ensure you won’t get duplicates if, for example, you inject to both phone and computer for gifts.

Version number is still 4, but you’ll want the version with “categories duplicates check” in the name for most up-to-date behavior for that injection.

Читайте также:  What is responsive html template

Added injector for PurchasePickerInteraction type, with the ability to inject to picker_dialog categories and purchase_list_options. See the «Examples» folder for a demonstration of how to use them.

With the university patch came a change to how computers function, such that access to computers can be locked to specific sims and most of their interactions are what I call «lock aware,» meaning they are only usable by sims who have access to the computer. The alternative being interactions that appear on the computer, regardless of locks.

This update to Xml Injector does the following:

  • If you are a modder and want interactions you add to the computer to be «lock aware,» use the «add_lock_aware_interactions_to_lockable_objects» tuning, along with a list of «super_affordances» (as opposed to «_super_affordances» — the underscore is different for «lock aware» interactions). Apart from that the structure of the tuning is identical to what you would use in the past when adding an interaction to the computer by using «add_interactions_to_objects». The «Examples» folder contains a sample XML file with this tuning used for reference.
  • The ‘test’ interaction that appears on the computer should show up again. It was previously tied to an interaction that was moved to the «lock aware» interactions and thus wasn’t triggering from the expected place.
  • Reward Traits can be injected using the new add_satisfaction_store_rewards tuning. See the «Examples» folder for a demonstration of how to use it. — Triplis

INFO

The XML Injector for The Sims 4 is a mod library to allow mods that would normally require a script for simple changes to instead use a custom snippet. The library provides the scripting, and the modder can release their mod without having to concern themselves with writing, compiling and maintaining a script. Currently the XML Injector snippet handles adding interactions to game objects in a variety
of ways with a simple XML definition.

PLAYER

If you just play the game then you only need to download and install this library mod if another mod you download tells you that you must have this installed. On it’s own this mod does nothing, it works in the background to make other modders able to code their mods more easily.

If another mod does inform you that this mod is required for it to work, then you should proceed to download and install this. You do not need to download the Modder’s Documentation file, this contains the technical information for modders to reference.

Installation is simple. The file you download will contain two files, a script named XmlInjector_Script_v2.ts4script and XmlInjector_Test_v2.package.

Extract both of these files from the download file into your game Mods folder. You should install it directly into your Mods folder, and not a subfolder, in order to ensure that it can be easily located if you need to upgrade the script to a newer version.

Читайте также:  Java intellij idea spring boot

The current version of the XML Injector is version 2, and denoted by the _v2 in the filenames. It has been written to work with the most recent game patch, 1.50.67 (February 21, 2019).

Once both files are installed, you must also ensure that script mods are enabled in your game options. This is very important as, though the XML Injector allows other mods to eliminate their scripts, the XML Injector does the scripting for them and so script mods must be allowed in your game.

After installing the XML Injector, you should test to make sure it is working properly. The included test package adds several test interactions to several game objects. Choosing one of these «XML Injector Test» interactions from the pie menu should display a notification that the XML Injector is working properly. If you do not see these test interactions then the XML Injector is not installed properly and will not work for mods that depend on it.

The «XML Injector Test» test interactions can be selected from any of the following six locations in the game.

  • On a household’s mailbox
  • Any of the game’s computer objects
  • Clicking on any Sim
  • In the «Friendly» chat choices when clicking on another Sim
  • From a Sim on the relationship panel
  • From the «Household» phone category

There is not really any need to test more than one of these choices, any single one should suffice. The test is primarily in so many places in order to serve as a useful reference for modders to see how to code their own mods.

Once you have verified that the XML Injector is working, you may remove the XmlInjector_Test_v2.package file and test interactions will no longer appear on your pie menus.

The script file should remain in your Mods folder. If the script is removed, other mods which depend on it will no longer operate properly.

You should check back here occasionally, particularly a day or two after game updates if it stops working, to see if the mod has been updated with any important additions or fixes for new game patches. In the future, a mod you download may specify that it requires features from a version newer than the one you have installed, and again this is an important reason to keep the mod installed in the main Mods folder so it can always be located easily and the version number verified.

Источник

XML Injector version 4 (27.07.2022)

XML-инжектор для The Sims 4 — это библиотека модов, которая позволяет модам, которые обычно требуют сценария для простых изменений, использовать вместо этого пользовательский фрагмент.
Без этого мода некоторые моды НЕ будут работать.

С университетским патчем произошло изменение в том, как функционируют компьютеры, так что доступ к компьютерам может быть заблокирован для конкретных симов, и большинство их взаимодействий являются тем, что я называю «блокировкой», то есть они могут использоваться только симами, которые имеют доступ к компьютеру. Альтернативой являются взаимодействия, которые появляются на компьютере, независимо от блокировки.

  • Если вы являетесь моддером и хотите, чтобы взаимодействия, добавляемые к компьютеру, были «с учетом блокировки», используйте настройку» add_lock_aware_interactions_to_lockable_objects «вместе со списком» super_affordances «(в отличие от» _super_affordances «- подчеркивание отличается для взаимодействий» с учетом блокировки»). Кроме того, структура настройки идентична тому, что вы использовали бы в прошлом при добавлении взаимодействия на компьютер с помощью «add_interactions_to_objects». Папка «примеры» содержит пример XML-файла с этой настройкой, используемый для справки.
  • «Тестовое» взаимодействие, которое появляется на компьютере, должно появиться снова. Он был ранее привязан к взаимодействию, которое было перемещено в» блокировку осведомленных » взаимодействий и, таким образом, не запускалось из ожидаемого места.
  • Наградные черты могут быть введены с помощью новой настройки add_satisfaction_store_rewards. Смотрите папку» примеры » для демонстрации того, как его использовать.
Читайте также:  Java get all setters

Источник

The Sims 4 «Xml Injector v4»

Xml Injector v 4XML Injector — это библиотека, позволяющая модам, которые обычно требуют наличие скрипта (ts4script), работать без него. С помощью этой библиотеки мододел может создать свой мод, не заботясь о написании, компиляции и поддерживании скрипта. В настоящее время XML Injector позволяет добавлять взаимодействия к игровым объектам посредством XML.то библиотека, позволяющая модам, которые обычно требуют наличие скрипта (ts4script), работать без него. С помощью этой библиотеки мододел может создать свой мод, не заботясь о написании, компиляции и поддерживании скрипта. В настоящее время XML Injector позволяет добавлять взаимодействия к игровым объектам посредством XML.

Вам нужно устанавливать эту библиотеку только в том случае, если другой мод ее требует. Сам по себе XML Injector ничего не делает, он работает в фоновом режиме.

Устанавливать XML Injector крайне просто.

Распаковываете архив и файлы «XmlInjector_Script_v4.ts4script» и «XmlInjector_Test_v4.package» помещаете в папку Mods.
Не забудьте убедиться, что в вашей игре включены скриптовые моды. Для этого перейдите в настройки игры, в раздел «Другое» и поставьте галочку (если не стоит) возле «Моды сценариев разрешены».
После установки стоит проверить правильно ли работает мод в игре. В этом вам поможет файл «XmlInjector_Test_v4.package», он добавляет в игру несколько тестовых взаимодействий. Найти тестовое взаимодействие вы можете, нажав на:

Почтовый ящик
Любой компьютер
Любого персонажа
Меню «Дружелюбные действия» при общении с другим персонажем
Иконку персонажа во вкладке «Отношения»
Телефон, вкладка «Семья»
Для проверки работоспособности библиотеки достаточно воспользоваться одним любым, из перечисленных выше, способом. У вас должно появиться уведомление «The XML Injector is installed properly and working normally» (XML Injector установлен правильно и работает нормально).

Когда вы убедитесь, что XML Injector работает, можете удалить файл «XmlInjector_Test_v4.package», и тестовые взаимодействия больше не будут отображаться в игре.

! Если вы удалите файл «XmlInjector_Script_v4.ts4script», то моды, зависящие от него, перестанут работать

Источник

Оцените статью