Quantcast
Channel: Programming (In-game)
Browsing all 903 articles
Browse latest View live
↧

How to use methods within void Main?

Good day, I am bad at programming. Recently I've been reverse engineering a power display script. It's a fairly long code, so I'll just post the problematic part of it. Code: Void Main() { ......

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 Article


Get ores position

Hello, is it posible to get ores position (X,Y,Z coord.) from a source detected with a ore detector? I would like somebody (even I), develop a in-game script similar to Rav's Fleet Command. I would...

View Article

Debugging thrown Exceptions

So I've got a ~2700 line script that is very shiny, but which has apparently broken in the last few weeks. It's throwing a couple different exceptions in a couple different situations, and I noticed...

View Article

[Released] Racing Script

Hello programmers of SE. I wish I can count on one of you guys to write some sort of script to detect ships going through gates, saving OR displaying lap times and a way to know when someone doesn't...

View Article


Transfering cargo to other containers

After some reverse engineering of Taleden's Inventory Manager I've figured out how to read the item list from each container and update a dictionary with the item name and amount. This is the code I...

View Article

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 Article

Is the "Illegal one-byte branch" thing fixed ?

I only ask because I am getting it in my code. Worse, it seems to be appearing due to code that previously worked, when I added code to step through a dictionary. What is the current wisdom on this...

View Article


Vector 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 Article


How 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 Article

Remote 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 Article

Regarding 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 Article

Block scripts requests thread

As programmable blocks came to SE, and not all players are programmers, I guess a thread with block requests is reasonable. Basically, if you want a script on your block, post explanation here. Other...

View Article


Get 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 Article

IMyTextPanel::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 Article


Getting 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 Article

Can 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 Article


How 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 Article

Obtaining 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 Article

Possible 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 Article
Browsing all 903 articles
Browse latest View live