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

Caught Exception during Execution WITHOUT executing!

Hi, it's me again ... I'm currently trying to create a ship Management Script, which worked fine with just the AirLock and Oxygen Management. But after adding an "Door Auto Close" function to close...

View Article


store list on a text panel and access the list with a programming block?

TLDR; create and store a list of strings on a text panel and recreate the list by reading the LCD panel through another programming block What I'd like to do: Generate some random 4 digit numbers...

View Article


few menu problems :P

--- Automerge --- Side note: a timer run this script once a second..

View Article

[SOLVED] where Statement not working?

EDIT: SOLUTION DO NOT USE SUB-GENERICS! These may work one minute and in the next stop working But if you need a sub-geneirc for the as Statement use this Code: public void <T> foo() where T :...

View Article

[SOLVED] Caught Exception during Execution WITHOUT executing!

EDIT: SOLUTION The Solution was to rewrite the getAllBlocksOfTypeFunction without sub-generic in the return Value Code: public List<IMyTerminalBlock> getAllBlocksOfType<T>() {...

View Article


GetNearestPlayer to detect if players are on logged on?

Will GetNearestPlayer give a null value if there are no players on the server? I'm looking to poll the server to see if any players are on the server before the pirate faction partakes in some...

View Article

Thruster Controll via Buttonpannel - Program problem

Hello. I want to fly my ship via the button Pannel. I did it ones with timerblocks but that is annoying as hell and you lose thrusters for the inertia dampeners. (Maouvering ...) So I desidet to write...

View Article

help please: building a Sol-counter/clock

I have been nursing this idea for a few months now, and scouring the Steam workshop... but there's still nothing that comes close enough to what I really want to do. I've seen several scripts that have...

View Article


Help, How to get block information when using Visual Studio

How do you get block information on Visual Studio. I want to use Visual studio to program and test the program block code. For example I want to get how far a piston is out. Is there a way to simulate...

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

Scripting updates

Just tested new updates. Fixing block groups was easy enough, the change was well documented on the Steam page. However, numerous other issues arise as well. First of all, the damn API reference is...

View Article

Out-game programming

there's anyway to check the code in a IDE?

View Article

Setup visual studio for SE programming

Latest update finally broke SE Workbench which I used for writing scripts, King, the user who made SE Workbench was last seen online few months ago and so I'm not sure if when when he will fix it. I'm...

View Article


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

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


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

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

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

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