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

Strange behaviour when cycling through a list to apply action

Hello, I made a small, barbaric script that's meant to put my ship in "minimum power" mode. I make a list of the names of the blocks I want to skip, exclude them from the list and then apply "OnOff" to...

View Article


Irritating problem compiling script for inverse rotor velocities.

Hello and thanks for all the nice guides around, I've read through a ton of them as well as googling - which unfortunately did not really help me solve my issue! I've dabbled a bit in C++ before and am...

View Article


Methods: GetNearBlock and IsAttachable for Rotors

Conditions for IsAttachable: Rotor and Rotorpart have to be part of grids, that are connected. Would be neat if anybody knows how to incorporate GetFreeDestination to be able to check foreign grids....

View Article

Two ticks per secon

Hi guys, is there a way of incrementing a variable every .5s or every 0.25s? Thnx

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


Script breaks upon exiting flight seat

So, after stumbling over BurninSuns very interesting 3-axis gravity drive script, I figured I wanted to try something like that myself. I got it working, it feels smooth, etc etc. However, as soon as I...

View Article

[Help] First Scripting Project - Autonomous Mining

As the title says, I'm building an autonomous miner. The ship has 49 drills, 4 refineries, and weighs 2 million kilograms empty. This thing is designed to be an asteroid-eater. Rather than try to build...

View Article

Solar DetailedInfo always output 0W ?

Hi guys, I was messing arround trying to do a solar alignement script and i'm stuck in one of the basic task : get the solar panel output. I'm accessing the detail info in the most basic way i know :...

View Article


[Request] Racing Script

Hello programmers of SE. I wish I can count on one of you guys to write some sort of script to detect ships going through gates, saving OR displaying lap times and a way to know when someone doesn't...

View Article


Call A PB From Another PB With Arguments?

Is it possible currently to call another programmable block from another one and supply it with arguments. I know its possible to run it without any arguments but how about with?

View Article

Load Distribution Script?

I'm wondering before I make one myself if anyone has made a load distribution script already. For instance say you have 10 cargo containers on a ship it would distribute the inventories weight evenly...

View Article

Ship/Grid-health to LCD?

Hello guys, at the moment I'm studying. But When I have Holidays (in 2 weeks) I want to start learn some C# for the InGameProgramming. I'm only familiar with Java yet. My wish is to display the...

View Article

Thruster Control Via Environmental Detection

Hey I'd like to author a script that will enable thrusters based on the environmental conditions. For example, a drone lifting off earth under atmospheric thrusters will get to about 8km or so, at...

View Article


Script/Timerblock continuous loop vs sensor efficiency

I'm looking at using a timer block and script to have a set of interior lights blink as warning lights when a particular door is left open as part of a survival scenario. program runs, calls timer...

View Article

Image may be NSFW.
Clik here to view.

Script controlled turret help

So after making my lovely rotor turrets, I found this amazing script: http://steamcommunity.com/sharedfiles/filedetails/?id=516410570 And I've managed to retrofit my MKII Rotor Turret to the Sogeki...

View Article


Using Block Position To Find Another Block

Hi is it possible to do the following in Space Engineers using Block Position? Say I have a Merge Block and then I go 2 block positions along the X axis and turn whatever block that is on without...

View Article

2 Part Automatic Hangar Sequence Script

Would anybody be interested in one? Because I have made one that is fairly simple to set up and without the use of more than 1 timer block, 2 prog blocks and a sensor? I need to know before releasing...

View Article


Can any one help me with my script? It's related to Gravity Drive

Ok, here is my script. I only know there are bugs in line 93 and 103. But don't know how to solve it. I have already make these two line apparent. It's not completed yet, only in alpha version. Thanks...

View Article

Searching for oxygen level of cockpits property variable

I was googling, and wiki'ing, and searching the forums for the property relating to the oxygen levels inside of a cockpit (small grid, fighter, to be precise)... and could not find it! So, I resort to...

View Article

Projector reported Type as "MySpaceProjector". Where it came from?

Hi. The projector block (and some others) is twisting my head. Specifically, it's its runtime type reported by GetType(). When I access the projector block from ingame script and call GetType().Name on...

View Article
Browsing all 903 articles
Browse latest View live