Help! How to translate IGC data through custom method?
Hello. I'm new here, and not so familiar with C#, SE scripting and even english language. I can't understand how to solve my problem and asking for some help. I need some method which will contain...
View ArticleSystem.Text.RegularExpressions performance in scripts
I profiled my freezing script and found that ~400 Regex.IsMatch executions on compiled regexp last 0.2 seconds! On my local machine in pure C# the exact same regexps(even heavier) executing 200(!)...
View ArticleScript freezes game
Are ingame scripts running in main thread? I made a sorter for my storage. Every time it works, game freezes on ~0.5 second =( It freezes even i transfer one stack.
View ArticleSome warning before script too complex
May I know in script about how i close to "Script is too complex" error? My script may vary count of iterations it does. So, maybe there is a way to know about reaching limit without stopping PB?
View ArticleHelp with controlling groups
So I'm wanting to write up a script that sums up all thrust directions. compares the available newton force with current ship weight. Then uses the delta-v formula and determines if the ship had enough...
View ArticleQuestion about continuous looping in PB
so I've just gotten into playing with the PB in game and was wondering how to make a script continuously loop basically I'm trying to make it so refineries cant be turned off and if they are, to then...
View ArticleObject reference not set to an instance of an object
using System; using System.Text; using System.Collections; using System.Collections.Generic; using VRageMath; using VRage.Game; using Sandbox.ModAPI.Interfaces; using Sandbox.ModAPI.Ingame; using...
View ArticleDetecting where a program run was called from.
Is it possible to know where a programmable block was called from in the script? So in this case I have a sensor named "assignment A" and it calls the pb with the argument "OpenDoor" a generic call for...
View ArticleProgrammable Block Inter-Grid Communication Guide
This API is now obsolete. Use new interface documented here: https://github.com/InflexCZE/IGC_ShowCase/tree/master/IGC_ShowCase...
View ArticleWhat this interface of the Hinge blocks for programming (In game)?
What this interface/type of the Hinge blocks in the sparks of the future dlc for programming (In game)? Example: IMyBlockGroup group = GridTerminalSystem.GetBlockGroupWithName("A Group");...
View ArticleAnalysing conveyer system for hydrogen/oxygen
Hi, I need help finding the right way to analyse the conveyer system of a grid with a script. For the most block types this is not problem. You can select the inventory of the block an check with...
View ArticleIgnore max script length
Is there a way to remove or ignore the max size of scripts? It would be very helpful, for debugging and testing.
View ArticleHelp my script :)
Hi, I’m just learning to program in the game, and I have not encountered such a level. The creak shows the fullness of the container on the screen. Containers should be named BOX_0, BOX_1, etc. The...
View ArticleCheck If Welder Is Welding?
I am wondering is there a way to check if a welder is currently welding? I have tried IsWorking but that always come back true even if it is idle.
View ArticleChange A Block's Paint Color Via Code?
I'm fairly sure you can but is it possible to change the color/paint scheme of a block via the programming block? It would be a nice feature in any case.
View ArticleCode review for first script
Hi all. I am relatively new to SE, and just getting started with the PG and C#, but not new to programming at all. I spent a bit of time this evening reading the docs and some of the posts in this...
View ArticleSci-Fi Four Button Panel LCD
Hi. I've searched for nearly an hour trying to find how to write text to the LCD panel on a button on the Sci-Fi Four Button Panel. I can't find how to do it in a script. The LCD panels are great for...
View ArticleShare Inertia Tensor property on IMyMotorStator?
Good Day Engineers Just would like to find out if there is a way to set the "Share inertia tensor" property on an IMyRotorStator object in scripting? Thank you
View ArticleItem Transfer Script throwing exception
Hey guys, I've been trying to write a simple item transfer script so I can get the idea down before I write a larger script with this one incorporated into it. This one, I thought was going to be...
View Article