Space Engineers

Space Engineers

547 vurderinger
Definition Extension API
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
Type: Mod
Mod category: Script, Other
Filstørrelse
Lagt ut
Oppdatert
186.766 KB
17. feb. 2022 kl. 23.04
28. jan. 2024 kl. 14.38
19 endringslogger ( vis )

Abonner for å laste ned
Definition Extension API

Beskrivelse
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]
23 kommentarer
¤FurtherV 20. aug. 2024 kl. 6.11 
The link to SEMREF sems dead, is there any alternative?
DraygoKorvan  [skaper] 16. apr. 2024 kl. 15.22 
No. Mod isn't compatible for crossplay anyway.
TheBlackside {GER} 15. apr. 2024 kl. 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 kl. 14.58 
ty
DraygoKorvan  [skaper] 26. feb. 2023 kl. 6.59 
Right click and copy page URL, it is after id=
Gluttony 26. feb. 2023 kl. 6.45 
Whats the WorkshopID?
DraygoKorvan  [skaper] 22. jan. 2023 kl. 12.24 
This is an API and is not outdated.
Mia_ghoster 22. jan. 2023 kl. 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 kl. 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  [skaper] 18. okt. 2022 kl. 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.