Quantcast
Channel: Programming (In-game)
Browsing all 903 articles
Browse latest View live
↧

Gravity aligning thrusters

Hello, I wanted to try and create a script that uses thrusters on rotors to rotate them to match gravity for a modular miner I was going to try and build. I was wondering if anyone here had tried a...

View Article


[API Request] An Interface for block state for IMyTerminalBlock

I have also submitted this to the API Requests Thread and I am posting it separately here so that it can have it's own discussion. I would like an Interface that is connected to IMyTerminalBlock that...

View Article


Block scripts requests thread

As programmable blocks came to SE, and not all players are programmers, I guess a thread with block requests is reasonable. Basically, if you want a script on your block, post explanation here. Other...

View Article

Save and load variable?

So I'm trying to automate mining on my ship, I have pistons that need to go after each other in order to not break the drills. So I created a simple program. Code: public void Main(){ IMyPistonBase...

View Article

Using Echo in separate class

Hello, I have the Main method and I want to call another class. Inside the separate class (being a full script with it's own methods and class variables), I want to use Echo to display an output to the...

View Article


UpperLimitDeg = UpperLimitRad

IMyMotorAdvancedStator UpperLimitDeg behaves like UpperLimitRad. UpperLimitRad behaves normally. LowerLimitDeg behaves normally. LowerLimitRad behaves normally.

View Article

Image may be NSFW.
Clik here to view.

Suspension Strength per Tonne

Does anyone have a more accurate formula to adjust suspension strength? I've dabbled with the following formula: 0.0036x² - 0.1x + 6 Be careful with it, because it becomes increasingly inaccurate over...

View Article

Accessing GridTerminalSystem from Sub-class without statics?

Sorry if this is a really obvious question but I couldn't find an answer elsewhere. Since I started in-game scripting, I've always created a static reference to the master Program - something I almost...

View Article


Autogenerated API index

This index contains all types and members available to ingame scripting - with exception to the .NET types, because including those would have made the listing far too big. There will be links to...

View Article


Interface extension

Instead of doing this. PHP: class InventoryTable{    public IMyInventory Inventory { get; set; }    public VRage.MyFixedPoint PreviousMass { get; set; }} I was thinking of doing this. PHP: interface...

View Article

PB Scripting Guide: How To Use Self-Updating

Greetings engineers! As you all have (hopefully) read in last week's update post, the PB now has some fancy new self-updating features which means you no longer need timer blocks! This self-update...

View Article

New way to read inventory?

I got this error on test, in the EasyAPI code (which I had updated to handle currently live changes but that hasn't been pushed to github or the store). There is no argument that corresponds to the...

View Article

Image may be NSFW.
Clik here to view.

New to coding, need a little help :-)

Hi there! So I've *just* yesterday started coding, so complete newbie here. Read up on the basics for C# and started to try it out ingame with a few trial program blocks, started with just turning on...

View Article


IMyMechanicalConnectionBlock throw exception only when loading session

Hi o/ I face a strange behavior with IMyMechanicalConnectionBlock object. Here's a code who works on function main() script; but not on program() only when call 1st time after loading a game, if I...

View Article

Quick Introduction to Space Engineers Ingame Scripts

I have created a quick introduction tutorial on how to create Space Engineers scripts. https://github.com/malware-dev/MDK-SE/wiki/Quick-Introduction-to-Space-Engineers-Ingame-Scripts Got any questions?...

View Article


My first ingame script [help]

Error In line 72 which is: "GridTerminalSystem.SearchBlocksOfName("[Mining stop]", Alerts);" Error CS1503 Argument 2: cannot convert from...

View Article

Getting a warning in script

Hi there, can someone tell me why am I getting a Warning after compiling this script? And does anyone know if it breaks something within the code? Warning: 'IMyShipConnector.IsConnected' is obsolete:...

View Article


MDK: Malware's DevKit for Space Engineers

https://github.com/malware-dev/MDK-SE MDK-SE (Malware's Development Kit for SE) A toolkit to help with ingame script (programmable block) development for Keen Software House's space sandbox Space...

View Article

Using depency injection (DI) and several files

So, after coming back to SE after like 4 years, I have some reqeusts for the C# scritping system (not sure if they are implemented alaready). Allow for people to define a class in a separate file, then...

View Article

IMyInventory GetItems working?

Hmm The behavior of this has changed from how it was before and how it was during the release tests and it seems to be broken. from the ingamte script interface for "IMyInventory" the method "GetItems"...

View Article
Browsing all 903 articles
Browse latest View live