[SOLVED] Projector reported Type as "MySpaceProjector". Where it came from?
Hi. The projector block (and some others) is twisting my head. Specifically, it's its runtime type reported by GetType(). When I access the projector block from ingame script and call GetType().Name on...
View ArticleHow to use GetBlocksOfType with condition?
I'm trying to get block using GetBlocksOfType<T> Code: T GetBlockOfTypeNamed<T>(string Name) where T : IMyTerminalBlock { List<IMyTerminalBlock> blocks = new...
View ArticleIs there a method to get the orientation of a block?
Right now I'm working on a script and need a method to define the forward direction of a ship. Does anyone who to do that by using ingame programming? My initial guess is to find a "mid" block and a...
View Articleprogram works when i run but wont when timer block or other program block...
Hi I am having trouble setting up one of my scripts to a timer loop so it runs all the time. I have my program set up and when i run it from the control panel or off the toolbar from a cockpit it works...
View ArticleSend Message Terminal Action for Programmable Block
I just noticed a new terminal option for the programmable block, "Send Message". How long has that been there, and does anyone have any more information about it? I can't seem to find anything. (I'm...
View ArticleMyFixedPoint
I am trying to shift about /some/ of the material in inventory a to stack with the items in inventory b. Sadly, both TransferItemTo and TransferItemFrom require a MyFixedPoint to do this, and I can't...
View ArticleGetOxygenLevel?
I see that GetOxygenLevel float was added to Air Vents and Oxygen Tanks. A quick look through the workshop and here and I can't find anyone putting it to use. I am a VERY novice coder and have no idea...
View Article01.123 Patch Programming Changes?
Hi I am wondering what features they changed/added to the programming block in today's patch. The update video didn't seem to give any details.
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 Article1.123 compile error: (MyCubeSize) missing from namespace
The following code is getting a compile error. It used to work before 1.123. Line 12: The type or namespace name 'MyCubeSize' does not exist in the namespace 'Sandbox.Common.ObjectBuilders', are you...
View ArticleIssue With Setting Gravity On Gravity Generators
I have been trying to set a precise number for the gravity on a gravity generator but it always seems to be a little off at the end. For instance if I do gravityGen.SetValueFloat(30f) the actual value...
View ArticleNeed a "lead foot" script for easy efficient ascent from planet.
I've been doing some searching this morning and can't seem to find this, despite how simple of a thing it seems. I'll keep trying, I feel that perhaps I'm just not hitting the right key words. Goal is...
View Article[Help] Creating an extension for a class created in script
Hi All, So i'm read about the exploit about closing the parent class with an extra "}" and creating extensions for built-in classes like IMyWhatever, but how do I do it if the class I want to extend is...
View Article[request] check & repair script
Hello programmers, since my Whiplash141 awesome scripter is too busy lately I would like to ask for a script with the following prerequisites. Given a group A of welders and a group B of things that...
View ArticleFiltering Blocks based on grid. Better way?
I need to filter out blocks on the end of pistons, rotors or connectors. Basically, I want blocks on the same grid as the programmable block currently running. I have a way that works, using this:...
View ArticleMyTuple broken?
Declaring 'MyTuple': The type or namespace name 'MyTuple' could not be found, are you missing a using directive or an assembly reference? Explicitly using VRage.MyTuple Type...
View Articleany way to set battery to recharge by PB?
is there any way to reliably make: any_state => recharge_on? i only see "recharge" action on it, which toggles battery on<=>off.
View ArticleWorking with multiple groups
I just started to learn this language, been doing trial and error for the pass 2 days, but i have 2 groups one i wanna grab data from and another one i want to trigger actions with when it grabs the...
View ArticleStrange behaviour when cycling through a list to apply action
Hello, I made a small, barbaric script that's meant to put my ship in "minimum power" mode. I make a list of the names of the blocks I want to skip, exclude them from the list and then apply "OnOff" to...
View Articleis TerminalBlockExtentions present in sources? was it moved?
i tried to find lists of available Actions for blocks in sources. had no lock by now. as https://cubrr.github.io/space-engin...box_ModAPI_Ingame_TerminalBlockExtentions.htm suggests, i tried to start...
View Article