Editor
Currently, when I am Programming I use the ingame editor. But it's limited, unless it has a few features I've overlooked. A few things that I am missing are for example: - PageUp/PageDown doing...
View ArticleNorth and South, and all that.
Hi I want to script a compass. Apparently I can get the gravity vector using some method of a RC block called GetNaturalGravity() unless its been borked. But I don't know how to get the axial...
View ArticleMyDefinitionBase and Projector RemainingBlockPerType
I know that MyDefinitionBase is restricted and was wondering if there was some magical way to access say the DisplayNameString or something that gives me an idea of the block type when getting the...
View Article[Solved] Rotate rotor to specified angle
As the title says, I want to rotate a rotor to a specified angle, taking the shortest route. This seems it shouldn't be too difficult, the only problem is due to the fact that 359 is a lot closer to 1...
View ArticleGreat C# tutorial on YouTube.
I was surfing looking for explanations about dictionaries and found this series containing 102 tutorials on C# for beginners. The first video has choppy audio. I'm not sure if that's just a problem in...
View ArticleGet nearby Antennas
Is there a way to get the position of nearby antennas. I know it's doable with the new SendMessage function, but is there a build-in way?
View ArticleSo...I'm trying to learn how to program
i did read all of the guides that I can find, the issue is that I have no idea on the IMycubes thing and what do they do. I'm currently trying to do a solar alignment script(yes I know there are others...
View ArticleIs 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 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 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 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 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 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 Article