Поиск по STEAMB

Игры и программы по онлайну, скины по объёму продаж

Ничего не найдено

Попробуйте другое название или переключите категорию.

Меню

Моды

Definition Extension API

Положительные голоса98%709 голосов игроков
Подписчики105,9 тыс.105 855 в Steam Workshop
Размер файла182,39 КБЗагрузка через Steam
Обновление автора28 янв. 2024 г.Дата обновления материала
Изображение 1 из 1
Установить через Steam

О материале

«Definition Extension API» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. На странице приведены данные Steam и описание автора. Для установки откройте оригинал в Steam Workshop и подпишитесь. Совместимость редакцией не проверена.

Описание автора

API mod to add a custom Tag to any SBC file. Definitions can then be loaded by any mod using DefinitionExtensionsAPI.cs (included in this mod) and adding this mod as a dependency.

Block mods do not need to add this mod as a dependency, just have a text file named DefinitionExtensions.txt in the root of the Data directory listing every sbc or xml file that contains definition extensions.

Supported definitions: CubeBlock Components PhysicalItems PlanetGeneratorDefinitions EnvironmentDefinition

Example tag and tag types below: Multiple tags of the same type are supported, tags with the same "Name" and type will override each other, mods can mod other mod's tags, mod load order determines what is precedent.


      <ModExtensions>
        <Group Name="TestGroup">
          <Text Name="sTest" Value="Test String" /> <!-- strings -->
          <Integer Name="Test" Value="10" /> <!-- integer values (whole numbers) Max value 9223372036854775807-->
          <Boolean Name="bTest" Value="false" /> <!-- true or false -->
          <Decimal Name="dTest" Value="1" /> <!-- any decimal number ex. 0.14333333 -->
          <Vector2I Name="v2iTest" X="1" Y="1" /> <!-- Integer valued 2 axis vector -->
          <Vector2D Name="v2dTest" X="1" Y="1" /> <!-- Decimal valued 2 axis vector -->
          <Vector3I Name="v3iTest" X="1" Y="1" Z="1" /><!-- Integer valued 3 axis vector -->
          <Vector3D Name="v3dTest" X="1" Y="1" Z="1" /> <!-- Decimal valued 3 axis vector -->
          <Color Name="cTest" R="255" G="0" B="0" A="255" /><!-- Color in R G B A, values can be between 0 and 255-->
        </Group>
      </ModExtensions>

Mod now also supports custom gamelogic loading. This still is in the experimental stage, so please report any issues on my discord. Format is below. Mods can register a gamelogic component to the name and it will be loaded for any block that includes the SBC tag with the same name.


      <ModExtensions>
        <ModComponents>
          <GameLogicComponent Name="TestComponent" Enabled="true" /> <!-- Enabled is by default true, but can be set to false to disable a custom gamelogic component-->
        </ModComponents>
        <Group Name="TestGroup">
          <Text Name="sTest" Value="Test String" /> <!-- strings -->
          <!-- etc -->
        </Group>
      </ModExtensions>

API also provides an easy method for deploying terminal controls with your MyTSSCommon script! See the API files for details or ask on my discord or in the Keen discord in #modding-programming.

Mods looking to implement this mod and read the assigned values via script can copy Steam\steamapps\workshop\content\244850\2756894170\Data\Scripts\DefinitionExtensions\DefinitionExtensionsAPI.cs into their mod.

Wiki page with examples: SE Wiki (Thanks Digi!)

Questions? Help? Discord link is below.

Discord

Discord

Оригинал в Steam Workshop

Как установить и запустить

Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.

Настройки cookies

Вы можете изменить выбор в любой момент. Отказ от аналитики не ограничивает доступ к сайту.

Технологии, провайдеры и сроки хранения