Generic type construction
Hi guys, I was doing some polishing of my in-game scripting API and got to a point where I would really appreciate ability to instantiate generic types with argumented constructors (That argumented...
View ArticleVector Transform problem
I was revisiting my old gyro scripts and encountered a problem. Basically, you're supposed to transform the world vector to gyro block vector using a matrix, and I just found out the result is not...
View ArticleHow to save global variable of type IMyTerminalBlock?
there is my sample: Code: List<IMyTerminalBlock> TerminalBlocks; List<IMyOxygenTank> OxygenTanks; List<IMyOxygenTank> HydrogenTanks; public Program() { List<IMyTerminalBlock>...
View ArticleRemote control block get/set autopilot help
Hello fellow engineers. The official RC API (http://www.spaceengineerswiki.com/Programming#Remote_Control) is old. I would like to programatically check the Autopilot state, and turn it on or off. Does...
View ArticleRegarding MyTextPanel
Hello fellow programmers. As a somewhat newish person to programming (especially C#) I've hit a dead end trying to solve the following problem. I'd appreciate if any of you could give me feedback on...
View ArticleGet conveyors and upgrade modules (to manipulate / rename them)
Hello How to specifically retrieve conveyors and prod upgrade modules from GridTerminalSystem.GetBlocks() ? There are also probably other objects I don't find. I haven't check them all. I failed to...
View ArticleIMyTextPanel::ShowOnScreen is prohibited
In IMyTextPanel interface there is ShowOnScreen property indicating what's currently shown on screen. I used it without any problems whatsoever on stable branch compiler but since day one with new...
View ArticleGetting The Radius Around Around A GPS
Say I have a GPS location at 0,0,0 and I want to work out the radius around it so that say I find any grids within 2000m of that point, how would I go about doing this? I have the following code which...
View ArticleCan GFD Obtain Ship Type?
I know GFD can currently obtain the radius of a grid it has detected but can it also obtain the type of grid ie small, large or a static grid?
View ArticleHow do i setup ApplyAction in a class file to be used with InteriorLight?
How do i setup ApplyAction in a class file to be used with InteriorLight? I am trying to break down the code so i understand what is going on. I am trying to understand how the Apply action works. I...
View ArticleGetting faction of a detected ship?
I'm trying to make a script that allows you to have wingmen, or fighter escorts, but the limited API is hindering me. (I'm using Stable branch so idk if the dev api changes this) But basically my code...
View ArticleObtaining Block Base Names/Types In Code For Modded Blocks?
I am working on a rename script which reorders/names parts of your ship so they are nice and neat. For example: Thruster 1, Thruster 2, Thruster 3 vs Thruster, Thruster 10, Thruster 23 The problem is...
View ArticlePossible Bug With Global Variables?
I'm not sure if this is a bug or not but when I run the following code by running the program block multiple times it keeps incrementing the global value. Code: int a=0; public void Main(string...
View ArticleHangar Doors - Detecting When Fully Opened
I have been testing some simple code in relation to you do something when Hangar Door 'Open' property is set to true. This works fine but what I am finding is as soon as you tell the Hangar Doors to...
View ArticleIMySolarPanel Missing? [Solved]
Back again, just updating my scripts .... seems IMySolarPanel isn't there anymore? Am I mistaken or is there interface to use? EDIT: In Development branch. --- Automerge --- Seems to work in game, but...
View ArticleLooking for better text renderer
Currently these are the renderers I'm using for my OS script and keyboard script that I'm working on for a good while now: Spoiler: Code Toggle Spoiler Code: public override void Render(IMyTextPanel...
View ArticleRepair the cheat function allows you to scan the other players.
It is necessary to fix the function GetFreeDistance so that it works only on the view distance. the script used to search for other people's buildings and their destruction. You can not play...
View ArticleFloor Plan Script (Vanilla)
Generates Floor Plan of your ship to show damaged blocks, air vent and sensor alerts. Workshop Link: https://steamcommunity.com/sharedfiles/filedetails/?id=716048498 Floor Plan of Kirov Class...
View ArticleAn Attempt to achieve vector thrust
I noticed an api change for thruster block that the current thrust and max thrust are now available. That change gave me the last piece to achieve vector thrust which is something like this: It's...
View Article[SOLVED] Fixing my Group Renamer
Hey all. Trying to fix my renamer script, but the wiki doesn't seem updated with the changes to IMyBlockGroup, and I am getting an error saying "block" isn't defined. Can you help fix/update it? Code:...
View Article