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

Image may be NSFW.
Clik here to view.

HUD message

Hello. It must be a simple question. I need to show a message or notification from In-game script on Hud. Something like Debug or Console text. Like quest message maybe. Or some status. This like will...

View Article


Convert string to dictionary

I'm trying to convert a string like this: Iron:999.9,Nickel:888.8,Cobalt:777.7,Magnesium:666.6,Silicon:555.5,Silver:444.4,Gold:333.3,Platinum:222.2,Uranium:111.1 into a dictionary<string, float>...

View Article


Is there a way to disable Stop Countdown I a script

I am wanting to write a script where a self destruct can be averted untill x amount of tine has passed then you can't disable the self destruct anymore.. but I can't figure out how to stop someone from...

View Article

Howto for using VS Code

Hello Everyone, Spent a day working out how to set up Visual Studio Code (aka 'VS Code' or 'VSC') as a development environment for Space Engineers. I finally got it working with code completion...

View Article

Retrieve Name of BP Loaded Into A Projector?

Is there a way to retrieve the name of the blueprint that is currently active in the projector?

View Article


How do I divide with MyFixedPoint

I'm trying to divide one MyFixedPoint number by another (I want the ratio of current cargo volume to total cargo volume) and I just realized the struct is missing DivideSafe. Is there any way to divide...

View Article

Block Count

I am wondering is there a way to retrieve some of the numbers stored in the "Info" tab of a grid such as totals for functional blocks/armor blocks and the like? I was having a look in Me.CubeGrid but...

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


Image may be NSFW.
Clik here to view.

IsSurvival ?

It's possible to get game mode? May be indirectly from some values. I found MyObjectBuilder_SessionSettings, prohibited.

View Article


iMyCockpit isUnderControl. Who is it??

New sad question. I always get "this is impossible."

View Article

What did I do wrong?

I've got a pair of timers loaded with other stuff that I'm triggering when doors are opened or closed. Code: bool closed = false; bool open = false; void Main() { Runtime.UpdateFrequency =...

View Article

Get current angle of rotor

Hello Coders! Getting the current angle of a rotors is something that has been somewhat of a problem for me. Because of this i set out to create a simple piece of code that could get said angle. Below...

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


Get the inventory item type restriction

Hey, I couldn't find the info on the forum or online. I am trying to find a way (non hardcoded) to find the inventory item / item type restriction of the block. So I don't have to hard code all...

View Article

C# Container subtypename is prohibited

Hello, I would like to ask a error: subtypename is prohibited My code is: if (argument == "kontener1") { szoveges2.WritePublicText("", false); szoveges2.WritePublicText("\nKonténer1:", true);...

View Article


IMyShipController RotationIndicator any ideas?

Hello. I wonder how ship controller RotationIndicator forms. The main problem is how to get the 0.0-1.0 (min-max) rotation signal the most perfomance friendly way. For my mouse RotationIndicator.X (or...

View Article

Error thrown when querying door statuses

I'm trying to read the state of a door (open, closed, opening, closing). When I run the following code.... Code: public void Main() { var door = GridTerminalSystem.GetBlockGroupWithName("Airtight...

View Article


String CenterAlign

I wonder how this code affects perfomance on servers used to build up to 50 string lines per tick every 10-th tick Code: #region String Extensions static string CenterAlign(string source, int...

View Article

Getting GasLevel from IMyInventoryItem.

I would like to get GasLevel value from hydrogen bottle. I already found my bottle in a container, so I have a reference to IMyInventoryItem. IMyInventoryItem have a Content property which in this case...

View Article

IMyProjector and Programming? Is it possible?

I have a small problem trying to alter the offset and rotation of a projection from a projector. Here's my code. Any help to get it working would be greatly apprecieted. Code: public void Main(string...

View Article
Browsing all 903 articles
Browse latest View live