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

given key was not present exception

Spoiler: Code Toggle Spoiler Code: using System; using System.Collections.Generic; using System.Text; using VRageMath; using VRage.Utils; using Sandbox.ModAPI.Interfaces; using Sandbox.ModAPI.Ingame;...

View Article


Image may be NSFW.
Clik here to view.

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


can programmable blocks be used to update other blocks?

So I have that bug where your thrusters wont fire and just shut off until you restart the game. I was wondering if there was a way to fix it until keen does by just using command blocks to force update...

View Article

Simple way to avoid null pointer when showing terminal blocks on hud?

Not all terminal blocks have the "ShowOnHUD" value to set, and thus if you do foreach(IMyTerminalBlock block in blocklist) { if (damaged) block.SetValue("ShowOnHUD", true); } it will invariably throw a...

View Article

IMyThrust MaxThrust Error?

As far as i understand the code and the PR ("max thrust of a thruster (includes atmosphere multiplier)") the property should return the maximum amount of thrust that is available under the current...

View Article


Image may be NSFW.
Clik here to view.

Planet To Space Launch Script (Now with graphical LCD display) - Vanilla

This is a very simple script that tries to optimize fuel consumption while launching from a planet. Last update added a graphical LCD display to keep track of the launch progress, showing current...

View Article

Image may be NSFW.
Clik here to view.

How to get a list of ore types

I am am trying to make a refinery manager (because the world needs another one right ? ) and would like to get a list of ores available in the game, so I can build some sort of list of quantities. I...

View Article

Enable/Disable thrusters based on ship mass possible?

I'm not much of a code monkey and more a copy cat and tweaking things... That said, before I jump in to learning SE code, what quite honestly i'm not looking forward to, I might as well ask if it would...

View Article


Image may be NSFW.
Clik here to view.

Aligning ship to planet gravity

Does anybody have any clue on how to approach this?

View Article


Taleden's Inventory Manager

Latest version: 1.5.0 (2016-05-24) Steam Workshop Page User's Guide Taleden's Inventory Manager (TIM) is an in-game script which automates the management of your inventory, refineries and assemblers....

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

Turn Off/On Rotor Safety Lock Override

I can't find anything in the programming api about how to do this, is there a way to do it?

View Article

Someone explain this

Can someone explain why this code doesn't function: Code: public Program() { AirlockState = true; GridTerminalSystem.GetBlockGroupWithName("Airlock Vents").GetBlocks(Vents);...

View Article


Getting Relative Blocks On Another Grid?

I am making a missile launch system but I have run into an issue when trying to get blocks a certain distance from another block without knowing their name. I have been using vectors combined with...

View Article

Hidden Radio/Remote Control Methods for missile tracking script?

Hey guys, I was wondering if there was a way to store waypoints of ships outside a local grid. Take this scenario for instance. A missile is running a script that needs 4 waypoints: the current...

View Article


What are settings for Visual Studio 2015 project for unstable branch?

I'm trying to compile my old project, but not able todo: Error CS0246 The type or namespace name 'Sandbox' could not be found (are you missing a using directive or an assembly reference?) Reference...

View Article

cargo managment

One of the things my OS script has to do is to manage cargo via LCD screen. What I'm trying to achive now is the following points: 1) Get a list of all onboard cargo containers (and only them, no cargo...

View Article


Please help with programing IMyRemoteControl 'Forward Direction'

I've been struggling with this for some time now and just can't seem to get it right. I want to change the forward direction of a remote control via a script. According to me, my code should work and I...

View Article

Accessing Modded Blocks?

The server I currently play on uses modded thruster blocks in addition to the regular blocks. I want to set manual overide for a few modded thrusters on my ship. Would I be right in guessing that...

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