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

Wondering if this is possible.

We know from Pennywise's Compass script we can essentially plot coordinates of a planet, and we know that we can use Digi's Projector Preview Mod to create small previews of ships/planets etc etc. What...

View Article


[wip] kScript; a flowchart based graphical programming interface for space...

kScript (the K stands for Keen) is a little project I have been working on for the past few weeks, which will hopefully make ingame programming much more accessible. Most of you already know that a...

View Article


[Beta] Space Engineers Workbench - A feature rich IDE for Space Engineers...

Hello all. My name is Tim and I'm a professional and hobbyist software developer. I had posted my original thread in the modding forum, but I think this forum may be more appropriate. For the last few...

View Article

Need help with LCD panel method

This block of code does exactly what I want it to. Code: var screen = (IMyTextPanel)GridTerminalSystem.GetBlockWithName("LCD Panel"); screen.ShowTextureOnScreen(); This code throws an error. Code:...

View Article

Need Help Understanding SE syntax

So I was having difficulty understanding the syntax of SE scripting since I had no knowledge of C#, but I do know .net, html, css, and some php. So i decided I would teach myself C# as well. So I went...

View Article


Get power consumption of a single block

Is there any way to do this? I know that it was not possible a few months back, but since then the way you access the power from a programme has been reworked and this might have changed things. The...

View Article

DetailedInfo dosen't work on IMyReactor

When i use DetailedInfo on reactor block, I get an error. Should it work without errors?

View Article

EasyAPI not functioning - Assembly Not Found

With the recent update a script called "EasyAPI" have ceased to function due to "assembly not found". I cannot get the script to work and I need it working ASAP. I've contacted the author of the codes...

View Article


how to catch advaced rotor "Angle" value ?

hi, I can get all other values but not "Angle" for rotor block. var rotor = GridTerminalSystem.GetBlockWithName("Rotor_drill") as IMyMotorAdvancedStator; float angle = rotor.GetValueFloat("Angle");...

View Article


What's wrong whith my scripts with detailed info?

Firstly I was thinking that detailed info didn't work only for IMyReactor. Now it didn't work with rotors. What I'm doing wrong? Code: Code: void Main(string argument) { //variables string...

View Article

Index was out of range

Hi, I am having issues with some code, it compiles but when I run it I get an error message saying: "Caught exception during execution of script: Index was out of range. Must be non-negative and less...

View Article

IMySolarPanel interface is empty?

I tried to fix my old solar tracking script and found out that IMySolarPanel currently is empty. How can I get current output, max output and defined output now?

View Article

localOrientation

Consider the code: Code: Matrix localOrientation; gyroscope.Orientation.GetMatrix(out localOrientation); currentVector = localOrientation.Forward; Is localOrientation.Forward in relation to the ships...

View Article


Additional information for the programmable block

After my frustration trying to get certain basic physics information about the current grid, I managed to create a workaround by making a workshop mod to expose some otherwise inaccessible values. This...

View Article

Rotation scripts

I want to know what the best way is to rotate a ship to face a certain direction by script. I have been using the script below and it works fine. Most of it I've written myself (except for Joe's...

View Article


Tuning Thruster Control with PID

I have a script that works, well at higher speeds - it responds in a decent time and adjusts thrust accordingly with maybe a little yo-yo effect. But at low speeds its really not very good, if I set my...

View Article

Long range Lock-On concept, no turrets.

Hello, space engineers! I want to share with you a concept of long-range lock-on. It's described in this short video. I will add script later and transfer this thread to "ingame scripting" tree. But,...

View Article


Comparing Block Orientations

Although I sometimes think I'm getting a good understanding of vectors and vector math, I have become confused once again. My goal is to cycle through the all thrusters on a ship and compare the...

View Article

Nobody owns script

I'm looking for a script that when I press a button on a button panel a programming block sets all blocks to nobody, any ideas?

View Article

Image may be NSFW.
Clik here to view.

Damage Reporter

Hello, I have small problem with my code posted bellow. I wanted to have simple dmg report, which would display only damaged blocks and how much they are damaged. Problem is that, when one blocks is...

View Article
Browsing all 903 articles
Browse latest View live