Space Engineers

Space Engineers

468 beoordelingen
Definition Extension API
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Type: Mod
Mod category: Script, Other
Bestandsgrootte
Geplaatst op
Bijgewerkt op
186.766 KB
17 feb 2022 om 23:04
28 jan om 14:38
19 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Definition Extension API

Omschrijving
API mod to add a custom <ModExtensions> 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.

Guide and Examples:
SEMREF: https://semref.atlassian.net/wiki/spaces/tools/pages/28999735/ModExtensions

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.

Questions? Help? Discord link is below.
Discord
Discord[discord.gg]
22 opmerkingen
DraygoKorvan  [auteur] 16 apr om 15:22 
No. Mod isn't compatible for crossplay anyway.
TheBlackside {GER} 15 apr om 12:30 
Hi, I wanted to ask if it would be okay to upload your mod to mod.io?
Since we want to start a private crossplay server and would like to continue using your mod.
Gluttony 26 feb 2023 om 14:58 
ty
DraygoKorvan  [auteur] 26 feb 2023 om 6:59 
Right click and copy page URL, it is after id=
Gluttony 26 feb 2023 om 6:45 
Whats the WorkshopID?
DraygoKorvan  [auteur] 22 jan 2023 om 12:24 
This is an API and is not outdated.
Mia_ghoster 22 jan 2023 om 12:20 
hi i am using the water mod. and this API is outdated. could we get an update please? thank you!!
FallenShadow 18 okt 2022 om 16:44 
Strange, ill do a bit more testing. I said it was this mod because when i removed it, the turrets started working again. However, someone else recommend i check download order, and it is most likely that that's causing it. I apologize for reporting something thats not your fault, please have a nice day.
DraygoKorvan  [auteur] 18 okt 2022 om 16:27 
Hi, this mod does not do anything on its own. It needs other mods to implement its function.

It is unlikely this mod will be causing this effect.
FallenShadow 16 okt 2022 om 10:35 
In multiplayer, when a player is in the turret, none of the other players can build blocks. This breaks multiplayer games, please fix it.