Is there no String.Split()?
I might have it wrong but isen't there a split function for strings in C#? Keep getting an error: "Cannot convert from string to char" when I try to split detailedinfo of a block. I've looked up...
View ArticleSetup 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 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 ArticleCustomData adds extra space to each line.
Whenever I copy and paste lines of text into the custom data field or manipulate the .CustomData string via code, there's always an extra empty space at the end of each line before the carriage...
View ArticleSet iMyThrust.MaxThrust?
I'm working the kinks out of a tilt-rotor FCS script and I'm running into a brick wall. I think what I need is to be able to write to iMyThrust.MaxThrust (or maybe ThrustMultiplier) from my script. I...
View ArticleAnyone willing to help me with programming?
Hi, is anyone willing to help me to get started with programming (someone who I can ask anytime if I have questions, maybe chat in Steam?)
View ArticleRemote Control Commands, please help!
Hi, please can someone give me an example of a scipt with: Set up remote control´s block Precision Mode_On, Set Flight Mode to One Way, and set up Forward Direction to e.g. Forward? I can´t find...
View ArticleNeed help with my Airlock Script
Hi I have tried to create my own airlock script and I thought I was very successful but then some random problems occured. Some times the inner doors just won't open even if the oxygenlevel is 100% and...
View ArticleHow to get the name of the block which is running the programmable block
Hi Is there a way to get the name of the block which is running the programmable block?
View ArticleGet the refinery output inventory?
Hello, I wrote a script to output my ores and ingots in my inventory to a LCD-panel but i seem to be missing the ingots inventory of the Refinery. I have been going through the inheritance structure...
View ArticleTesting containment of a detected ship in a sensor's detection zone
I've been trying to test whether a ship detected by a sensor is actually contained within the sensor's detection zone or just intersecting, but I can't seem to get it to work right for some reason....
View ArticleLog4PB - Logging/Debugging Lib
What is Log4PB? Log4PB is a versatile loggin framework for Programable Blocks Minified Version: Download Current Size: 6200 chars. Please like/subscribe here so I can keep trak of how many people are...
View ArticleIs there a way to get battery remaining charge
Hello guys, i was writing some code for battery charge tracking, and i couldn't found a way to get battery remaining charge. .HasRemainingCapacity can only return true or false. Is there a way to get...
View ArticleBlock.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 Article