Space Engineers - How to setup Visual Studio and create a simple mod

Опубликовано: 12 Октябрь 2024
на канале: Space Engineers
62,916
732

This is a short tutorial that shows how to create a simple mod by using the API tools released in the last update 01.048. With the API tools, players can bring function to their creations and share the mods with others through Steam Workshop. The mod that is programmed in this tutorial can be found at http://steamcommunity.com/sharedfiles... .
We hope this tutorial will help you learn and understand the possibilities of API features.

Official API Guide: http://steamcommunity.com/sharedfiles...

More example mods on Steam Workshop:
Mission 1 map http://steamcommunity.com/sharedfiles...
Mission 1 script http://steamcommunity.com/sharedfiles...
Ore dispensor http://steamcommunity.com/sharedfiles...
Hello beacon http://steamcommunity.com/sharedfiles...

Details about a code:
IMySensorBlock.StateChange
event which is raised when first entity enters the sensor or last on leaves it
'bool' argument is true when first entity entered, false when last entity left

Object builders are data definitions, it's 1:1 to XML files (both definitions and saves)
Most entities are created from object builders

Sensor.Position (X,Y,Z)
position of cube in grid (ship or station)
relative to grid
integer coordinates

Sensor.WorldMatrix.Translation (X,Y,Z)
absolute position of object in world
floating point number coordinates

See more:
link to ModAPI guide

http://www.SpaceEngineersGame.com/

Like us on   / spaceengineers  
Follow us on   / spaceengineersg