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

Stopping Distance Calculator Script!

Are you tired of A) flying past your base because you don't know when to start braking and B) crashing into your base because of the same reason as A? Would you like to be able to stop right above your...

View Article


Checking if an entity actually exists?

This is a little cheaty, but I'm curious if there's a solution to it anyway. On my planetary base, I've built a searchlight on two rotors and scripted it to track me as I move around the base to...

View Article


Ingame Programming missing API and functions and known issues

So i've decided to sum up, what i'm mostly missing on blocks in ingame API Please add things you want to see, or that should be here Before i list missing APIs i add few known issue and possible...

View Article

one idea to new building system

hey guys, the new building system looks like real shit. i have a better idea for this. back to "alt" but to delete the glitches make a easy way. when you build a block with "alt" the last block you set...

View Article

Elevation from ground parameter data location

I was wanting to incorporate this number into a programmable block sequence. Its displayed on the HUD along with the balancing bar, how do I locate it in the API?

View Article


Hotkey to remotely access entity terminal

Is there a way to make a hotkey (on the toolbar?) to access certain menus? I am testing some things and I'd like to shave off some steps from "push K, click drop down menu, select remote entity, select...

View Article

Image may be NSFW.
Clik here to view.

Quistion about the sound block

Is there a method for IMySoundBlock to change the selected sound? Or have I to put 20-30 Sound blocks in my "little" ship? Please say there is a method to do this

View Article

In game script setup

I'm trying to get an LCD panel to work, and this is the script I found online to set up the object variables. It works, but it doesn't make sense to me in the C# sense... List<IMyTerminalBlock>...

View Article


Need Help with Public Variables and Block Groups

Hello, I am new to C programming of any type and I am running into trouble with a program I want to work with groups of blocks. I have two sets of code show. The first set only works on the first block...

View Article


Lambda and foreach works now

FYI http://forum.keenswh.com/threads/1-...t-foreach-and-lambda.7376426/#post-1286907092

View Article

Foreach: Common language runtime detected an invalid program

Hello. What's up with foreach? Simple loop such as throws: "Caught exception during execution of script: Common language runtime detected an invalid pgoram". foreach(var item in Ores) { } Ups I posted...

View Article

Help -- Battery charge status

Basically, I would like to create a battery recharge station that will take a depleted battery compartment and switch it out with a new, fully recharged one. I can figure out piston movements, merge...

View Article

Gravity aware rotation

So, I have my gyroscope controller working good, and my thruster controller also works great. I can command it to move to x location at n speed and it does as requested (even thrusting in the direction...

View Article


Some scripting help please

I have this code that I wrote: Code: bool LookForElevatorPistons() { bool FoundPistons = false; for(ListIndexCounter = 0; ListIndexCounter <= BlocksOnGrid.Count; ListIndexCounter++) { } return...

View Article

2D array with Objects help

Code: struct SpacialInfo { public double x; public double y; public SpacialInfo(double x, double y) { this.x=x; this.y=y; } public double getHori(){ return y;} public double getVeri(){ return x;} }...

View Article


Setting ThrustOverride

I've scoured the forums and nothing seems to work. I've got all my thrusters successfully in a group and when I try -thrust.Blocks.SetValueFloat("ThrustOverride", 100f); I get "Caught exception during...

View Article

Stopping Distance Calculator Script!

Are you tired of A) flying past your base because you don't know when to start braking and B) crashing into your base because of the same reason as A? Would you like to be able to stop right above your...

View Article


Problem with While loop

Code: void StopLightBlink(string LightName) { IMyInteriorLight LiftLight = (IMyInteriorLight)GridTerminalSystem.GetBlockWithName(LightName); float BlinkValue = 0.0f; BlinkValue =...

View Article

Gravity aware rotation [Solved]

So, I have my gyroscope controller working good, and my thruster controller also works great. I can command it to move to x location at n speed and it does as requested (even thrusting in the direction...

View Article

Calculating vector in between two vectors

Given two vectors, lets say one is the direction I am facing, the other is a direction I want to face, I want to work out a vector in between based on a percent. 100% would be facing the direction I...

View Article
Browsing all 903 articles
Browse latest View live