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

Block Naming Conventions?

After experimenting and realizing a script I've written fails to account for having more than one copy of the mechanism it handles on the same grid, I am starting to look into useful naming conventions...

View Article


Get name of the Entity which the turret is actively targeting?

Does the turret have a list of targets or at least access to the name of the currently targeted ship/station or part of that ship it's attacking? --- Automerge --- or is there a bool to know when the...

View Article


Timer and / or programmable block connector auto connect problem

Hi, i don't know if its me or if it is a known problem, but here is what im facing of: i have a programmable block in a station with a timer, this timer serves as usually, meaning just let the...

View Article

Sound Block Set Sound?

Is there anyway to set and play a sound on 1 Sound Block on demand? So you can play all the difrent sound the block has using only 1 block? Thanks for any answers. Cheers!

View Article

Check If Gun Has Reloaded?

Hi how can I using the program block check if a weapon has reloaded through code? Furthermore is there a way to see if it has no ammo?

View Article


INI data processing style

As part of my OS script I already have the needed classes to emulate files in the Storage variable of a PB. I've reached to the conclusion that some parts of the data I want to store should be in a...

View Article

Image may be NSFW.
Clik here to view.

Problem with script, need help :/

Hello people, I have a small problem that I cannot solve, if you have the time to help me I would greatly appreciate it! Right, first off, I'm not an experienced scripter. I mostly edit scripts made by...

View Article

Script Problem : Input string was not in the correct format

Hello all ! First, I'm sorry for my english, i'm not really good with Shakespeare language, but i try to do my best. I Have a Script problem in my code, and i don't understand how i can resolve it. I...

View Article


How do you display multiple lines on LCD from Groupslist?

i have made a simple script to display Blockgroups. only now i see the last name at the firstline --- Automerge --- public Program(){ } //Define area Variants and Statics //int ALSGROUPcount = 0; const...

View Article


Image may be NSFW.
Clik here to view.

[Solved!] Problem with script, need help :/

Hello people, I have a small problem that I cannot solve, if you have the time to help me I would greatly appreciate it! Right, first off, I'm not an experienced scripter. I mostly edit scripts made by...

View Article

Get ship velocity

I do know this has been asked so many times but I've been away from this game for a long time, so what I would like to know is. Do you still need to use block.GetPosition() then store as double and a...

View Article

Help me understand PhysicalMass

I'm trying to figure out PhysicalMass. I have a ship and realistic inventory size. This is the data I get. Code: Empty cargo 2Mkg in cargo Increase Ship 2.52Mkg 4.52Mkg 79% TotalMass 2.52Mkg 4.52Mkg...

View Article

How to find the block an TextPanel/LCD is attached to?

I've made a script to display the the capacity of inventories. It looks around an lcd panel to find a block with an inventory (cargos, refinreies etc.). What I want to do is to look at the block the...

View Article


[Solved] How to find the block an TextPanel/LCD is attached to?

I've made a script to display the the capacity of inventories. It looks around an lcd panel to find a block with an inventory (cargos, refinreies etc.). What I want to do is to look at the block the...

View Article

Is there any sort of documentation on IMyShipConnector.Status?

I can't find any and the source code on github is horribly outdated. There is some script that uses IMyShipConnector.IsConnected and IsLocked and I wanted to get rid of the obsolete stuff but can't...

View Article


Finding a block relative to another block.

I'm a little stumped at where to begin. This will be part of a larger script but I'm trying to gain the basic understanding of how it's done. When constructing a ship via projection, it's projected as...

View Article

Turning a ship to face a gun target.

my god, someone please tell me it's easier than this: https://forum.keenswh.com/threads/coordinate-triangulation-from-2-turrets.7360496/

View Article


How to check if wheel is touching a surface while under gravity?

How to check if wheel is touching a surface while under gravity? so i can figure out if its useful to use the handbreak.

View Article

Getting a v3 from an angle.

Ok, a better explanation. I'm vector stupid. Below is a picture of what I have. the v3.Position is in world coordinates. All other vectors are normalized. a= Azimuth, e=Elevation. When the angle is at...

View Article

Standard Protocol for Manipulating block.CustomData

It seems that scripts are starting to use the block.CustomData field to store vital program info. Myself, I've been using it extensively for the scrolling display component of my Quick Cargo Display...

View Article
Browsing all 903 articles
Browse latest View live