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

Hangar Doors - Detecting When Fully Opened

I have been testing some simple code in relation to you do something when Hangar Door 'Open' property is set to true. This works fine but what I am finding is as soon as you tell the Hangar Doors to...

View Article


Getting faction of a detected ship?

I'm trying to make a script that allows you to have wingmen, or fighter escorts, but the limited API is hindering me. (I'm using Stable branch so idk if the dev api changes this) But basically my code...

View Article


IMySolarPanel Missing? [Solved]

Back again, just updating my scripts .... seems IMySolarPanel isn't there anymore? Am I mistaken or is there interface to use? EDIT: In Development branch. --- Automerge --- Seems to work in game, but...

View Article

Looking for better text renderer

Currently these are the renderers I'm using for my OS script and keyboard script that I'm working on for a good while now: Spoiler: Code Toggle Spoiler Code: public override void Render(IMyTextPanel...

View Article

Repair the cheat function allows you to scan the other players.

It is necessary to fix the function GetFreeDistance so that it works only on the view distance. the script used to search for other people's buildings and their destruction. You can not play...

View Article


Image may be NSFW.
Clik here to view.

Floor Plan Script (Vanilla)

Generates Floor Plan of your ship to show damaged blocks, air vent and sensor alerts. Workshop Link: https://steamcommunity.com/sharedfiles/filedetails/?id=716048498 Floor Plan of Kirov Class...

View Article

Image may be NSFW.
Clik here to view.

An Attempt to achieve vector thrust

I noticed an api change for thruster block that the current thrust and max thrust are now available. That change gave me the last piece to achieve vector thrust which is something like this: It's...

View Article

[SOLVED] Fixing my Group Renamer

Hey all. Trying to fix my renamer script, but the wiki doesn't seem updated with the changes to IMyBlockGroup, and I am getting an error saying "block" isn't defined. Can you help fix/update it? Code:...

View Article


Cannot set rotor limit and read angle/detailedinfo in same tick

The rotor will not output its current angle or the detailed info in the same tick as one of its limits are changed programmatically. Setting any of the other fields does not have the same effect. It...

View Article


Ingame Programming missing API and functions and known issues

So i've decided to sum up, what i'm mostly missing on blocks in ingame API Please add things you want to see, or that should be here Before i list missing APIs i add few known issue and possible...

View Article

"IMyEntity is prohibited" fix?

Is there a workaround to this? Still new to the programming thing but when I tried to compile the script for the 3d Graphical Radar I got that. Here's the line that was giving me errors. IMySensorBlock...

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

Intergrid communication

TL;DR version: Check out this world and then come back https://steamcommunity.com/sharedfiles/filedetails/?id=749892645 It's been a quite a while since community expressed interest in ability to...

View Article


Problem with returning vector array [SOLVED]

Spoiler: Code Toggle Spoiler Code: private Vector2I[] CalculateScreenWidthAndRows(IMyTextPanel LCD) { CheckUsedMod(ModScreenName); Vector2I[] vector = new Vector2I[InternalScreenNumber]; if...

View Article

1.149? DEV Lambda changes?

I'm getting errors on the (previously fine) lambda for local-blocks only. Code: GridTerminalSystem.GetBlocksOfType<IMyVirtualMass>(massList, (x => x.CubeGrid == Me.CubeGrid)); Results in two...

View Article


Sensor Feild Usage: IMyEntity LastDetectedEntity

** Before you get bored on the details of this particular inquiry, please read my later reply. There's a good reason for wanting to figure this out either way ** As per the documentation Sensors have a...

View Article

Obtaining Filled % from a tank

I have been unable to utilize GetOxygenLevel() to obtain the fill % from a Hydrogen (or oxygen) tank. Here is what I have been trying: Code: void Main(string argument) { var tankArray = new...

View Article


Setup visual studio for SE programming

Latest update finally broke SE Workbench which I used for writing scripts, King, the user who made SE Workbench was last seen online few months ago and so I'm not sure if when when he will fix it. I'm...

View Article

1.149? DEV Lambda changes? [SOLVED in 1.150 DEV]

I'm getting errors on the (previously fine) lambda for local-blocks only. Code: GridTerminalSystem.GetBlocksOfType<IMyVirtualMass>(massList, (x => x.CubeGrid == Me.CubeGrid)); Results in two...

View Article

Set Rotor Angle

Hello, I'm sort of new to the whole in game coding thing, but I am no stranger to C#. I have been playing around with various way to try and do this based on examples I have see, it is basically a...

View Article
Browsing all 903 articles
Browse latest View live