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

-

-

View Article


Image may be NSFW.
Clik here to view.

Ingame API Issues

Hi everyone! I'm here to fix the PB API as well as ModAPI! So, give me your problems! Please do not post feature requests in this thread, as they will be handled in another thread! Please describe how...

View Article


Help creating a basic status checker script

I'm trying to create a script that is simply this: if connector is unconnected > play soundblock once. The problem is that it keeps starting to play the sound over and over again if I do it by...

View Article

Request for access to wheel propulsion override (Steering angle as a bonus)

To whom it may concern, Request: I am hoping that we can get access to wheel propulsion through in-game scripting, like we have access to the "Override" property on a Thruster. Considerations: I am...

View Article

Yield Malware

Not an anti-virus advert. Just wanted to say that I have revisited some of my scripts and are now using IEnumerator<GridProcessorState> to yield at update10. Have a sensor that checks if any...

View Article


Merge Block issues (IsConnected)

I'm making a thing that moves along a rail and extends it as it goes, for various applications. Basically, the thing moves along the rail with 2 merge blocks, but i'm having some issues. The...

View Article

GetCubeBlock() for armor?

I haven't seen anything recent on this topic... was wondering if there was anything new, or a workaround, for accessing the slimblock for a non-terminal block? I'm looking for damage/integrity values.

View Article

API or example script for the new LCD?

With the new update, 6 different possible LCD's in cockpits, 2 on the programmable blocks... heck knows how many more are out there. So the question is how to access each of them? For example, I want...

View Article


Enemy player's Name in MyDetectedEntityInfo

Hi! I wrote simple script, that show detected players on LCD: PHP: string lcd_name = "BASE-DetectionLCD";string sensor_name = "BASE-Sensor"string detect_str = "";IMyTextPanel lcd_panel =...

View Article


Programmable Block Inter-Grid Communication Guide

Oh yes, that's right. The single most requested feature for PB is now happening. Programmable blocks can now utilize the antenna system to send data to other grids. We said it was never gonna happen,...

View Article

Image may be NSFW.
Clik here to view.

Set VS for script writing

Its been a while since I last played around with scripting in-game. Seems that a lot has changed and trying to set a project in Visual Studio so I can write while not playing the game had few...

View Article

Autogenerated API index

This index contains all types and members available to ingame scripting - with exception to the .NET types, because including those would have made the listing far too big. There will be links to...

View Article

Reflection

I am curious is reflection permitted in the Program Block? I am guessing its probably not allowed but was wondering.

View Article


Looking a for script that toggles light colours

I'm looking for a script that can change the colour of an interior light based on another block's power state (block is off - light turns red, block is on - light turns blue). Can anyone help with...

View Article

Detecting key presses / mouse movement.

I'm looking for tutorials or examples of code for the programmable block that can detect user interactions. If they can be filtered to just manual movement (pressing a thruster key, or manipulating...

View Article


Noob question about scripting for text panel

How do I skip lines on the text output? I wrote mainscreen.WriteText("> option 1", false); mainscreen.WriteText("- option 2", true); mainscreen.WriteText("- option 3", true);...

View Article

New Camera Raycast and Sensor API (Update 01.162 DEV)

by Rexxar: -------------------------------------------------------------------- This week brings several big changes to the programmable block API. The major features are:...

View Article


Help with thrusters on rotors

Hello all! I'm trying to control a ship which has 4 wings - 2 on each side with 4 hydrogen thrusters on each wing. I want to set a command from cockpit so the thrusters face forward, downward or...

View Article

IMyShipController::CalculateShipMass() Broken?

I have a little test ship. The Mass of this ship is 230,374.4kg. This is the base mass without myself and any items stored in a container. The method returns the struct below. Code: public struct...

View Article

Image may be NSFW.
Clik here to view.

Inserting code into Programmable Block via (another) Programmable Block

Hey all, I'm new to programming - please bear with me As stated in the title my question is, whether it is possible to insert code into a programmable block via another programmable block. My use case...

View Article
Browsing all 645 articles
Browse latest View live