Block.GetValue("IsShooting") nullreference error
Hi, Does anyone have an idea, why this is always throwing an exception ? Code: int firingguns = 0; List<IMyTerminalBlock> Guns = new List<IMyTerminalBlock>();...
View ArticleHelp: IsConnected & IsLocked obsolete?
Hello, I am writing a script that is reliant on knowing when a connector can connect and when it is connected, but when I run it it says IsConnected & IsLocked are obsolete and the if's that are...
View ArticleGet Blocks with name Tag
Hello, is there a common solution to get Blocks by a Nametag. for Example all Blocks with "Test - " in thier name. I know there a multiple ways, but wich one is the most performant?
View Article[solved] Thrust Override doesn't work in 2nd code iteration
hi, the following code is Part of a bigger script. for better understanding i inserted the whole foreach loop, which gives me trouble. This code snipped is actually responsible for dedocking a small...
View ArticleSetTarget() and TrackTarget() broken ?
Hello, Im trying to direct my turrets to shoot at a Position, but instead of turning around and aiming at the given position they just start to shoot and nothing else. Are these methods broken ?...
View ArticleProgrammable Block Help; Changing Light Color Based on Inventory
Hey folks, I am looking for a bit of help with a basic Programmable Block script I am trying to cobble together. The general idea is for a Spotlight to change color based on how full the cargo...
View Article[solved] Block.GetValue("IsShooting") nullreference error
Hi, Does anyone have an idea, why this is always throwing an exception ? Code: int firingguns = 0; List<IMyTerminalBlock> Guns = new List<IMyTerminalBlock>();...
View ArticleIngame 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 ArticleAny RADAR possibility with a drone swarm?
I'm designing/developing a drone "swarm" that could serve as a "border" around my base. They will be spread on a surface of a sphere, center of the sphere will be the base. While I'm online, on my HUD,...
View ArticleWorking on an Elevator Programme
Hello. I have been working on a script to work with a 1x1 elevator I designed. As it stands, I am not knowledgeable enough to fix the errors I've been getting on my own. Could someone help me out with...
View ArticleTutorial scenarios utilize old API functions no longer available - need help!
This is my first time giving programming a go, and first time using C#. I spent the better part of the last couple of days watching YouTube tutorials to get some basic understanding. That said, I...
View Article[resolved]projector.LoadBlueprint() not working?(it does work afterall)
hi im trying to make a script to automatically configure all of the projectors on a structure so i can build a space elevator, each section is welded by a climber and has a projector on it which...
View ArticleScript Cycle-day/night detection without Timer: Help
Hi! I'm Brazilian, they wanted to apologize for my English because I'm using Google Translate to post. I am a recent SE player and a recent programming student and would like to start exercising...
View ArticleGet Terminal Actions/Properties/ItemIds etc. script
Hello guys, i have been using this script for a while now and its been giving me alot of easy to get documentation for use in my own scripts so i decided to release it as an easy way to get terminal...
View ArticleUse of many Split() commands causes complexity issues
Hi all I am in the process of writing a script that displays different things based on which line of custom data in a text panel is read. e.g. you read the first line it may show on the text panel:Menu...
View ArticleForeach??
Can a dev or someone confirm whether or not foreach loops work consistently?? I remember seeing something on steam from late 2015 or early 2016 saying that they were bugged.
View ArticleHelp With Whips Drop Pod Script
Is there a version or a way to make whips script work with connectors instead of merge blocks? Im not to great with scripting so im not sure how to change this....
View Article[PSA] the newest update (1.182.2) has broken lcd updates [Fixed in 1.182.203]
Basically lcds only update once every 100 ticks (0.6fps) now. doesnt matter if its SP or MP. Edit: Workaround has been found, you can force an update by making the lcd switch to texture and back to...
View ArticleHelp solving "Script is too complex" without loosing any functionality
I get "Script is too complex" when i undock from a station with many blocks, is there any good way to change the code to make it work without loosing any functionality? Spoiler: Code Toggle Spoiler...
View ArticleDrones
Hey all, I've recently started modding space engineers, but I haven't really gotten into the in-game scripting yet. I've read this tutorial and have gotten everything right until it comes to the drone...
View Article