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

Important information about scripting in the Modding channel!!!


Ingame API Issues

$
0
0
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 the function currently behaves, how it should behave, and attach a script which shows the problem. The easier you make it for me to reproduce the issue, the faster I can get it fixed .:)

Block scripts requests thread

$
0
0
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 programmers and I (Although I'm generally a busy person so maybe not often) will be more than happy to program it for you. Of course I still suggest you to learn programming, but you might not want to, and it's all fine. Other people like other things.
(Yes, I wanted to create website for that,...

Block scripts requests thread

Ingame API Feature Requests

$
0
0
I know you guys have a million feature requests for the PB, so give them to me!

Be aware that the PB is limited by design. You probably won't get access to System classes.

Programmable Block Inter-Grid Communication Guide

$
0
0
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, but we have to keep you on your toes now, don't we? ;-)

While you pick your collective jaws up from the floor, let's show some love for @Malware who helped design this system, and @Jimmacle for providing so much feedback that I ended up rewriting...

Programmable Block Inter-Grid Communication Guide

Looking for a enemy alert

$
0
0
I'm looking for a script to activate soundblocks "and, or" lights.
Do you know a good choice?

Programmable block API documentation

$
0
0
Topic Permalink




EDIT: Keen now generates the documentation and the file Documentation.chm can be found inside the Tools folder in your Space Engineers game folder!



This documentation is no longer updated!





Hey everyone!

I've started documenting the in-game (programmable block)...

Programmable block API documentation

IMyMotorAdvancedRotor IMyMotorRotor how to attach?

$
0
0
I don't see any function for attaching / detaching rotor heads in IMyMotorAdvancedRotor or IMyMotorRotor.

Is it not implemented?

Vanilla Animated GIF Player for LCDs

PB Scripting Guide: How To Use Self-Updating

$
0
0
Greetings engineers! As you all have (hopefully) read in last week's update post, the PB now has some fancy new self-updating features which means you no longer need timer blocks!

This self-update system is relatively straightforward, but does require a bit of explanation, so let's get into it!


Update Frequency:
The self-update system is controlled through the Runtime.UpdateFrequency property. Those of you who are familiar with GameLogic components should recognize...

PB Scripting Guide: How To Use Self-Updating

Programming right click mining

$
0
0
I like to build machines that dig big holes I really do not like to sit in the control station whilst they are doing so I would much rather be more productive.

Is it possible to make a drill 'right click' mine with the PB.

Thanks in advance

Custard

Complaining about Update60

$
0
0
1, 6, 10, 60 and 100, please !;)

code reuse - best ways to do it?

$
0
0
I have all these methods that help me out with stuff. For example, I have my own methods for getting blocks/groups for superior error handling.

But to re-use this code across multiple programmable blocks, I need to copy/paste this code. If I make a change to this code, I need to copy/paste that change in VS to all my PB scripts, then copy those scripts into their respective PBs. As far as I'm aware, there is no way to make an abstract class that I can extend.

Is there a better / simpler...

code reuse - best ways to do it?

Way to detect landing gears locked to a subgrid?

$
0
0
I would like to detect if a landing gear has been locked to my sub-grid or not. I don't need access to the block information just to know if a landing gear is locked or not. Is this possible?

Run another PB with argument in script

$
0
0
Hello. How can i run another PB from my script with a custom argument?

Access Block Constants without Instance

$
0
0
Hello fellow engineers!

I have been working on a new script recently and discovered that you can only access block constants if you have an instance of that block.

For example, I wanted to access the maximum gravitational acceleration a gravity generator block can output.
This can be done by
Code:
grav_block_list[0].GetMaximum<float>("Gravity")
But not by
Code:
IMyGravityGenerator.GetMaximum<float>("Gravity") 
Or some such.

I've looked throughout the API, but I can't find...

Access Block Constants without Instance

Collision avoidance functionality in program

$
0
0
Hello,

I would like to try program to act as autopilot. Is there any posibility how to achive this functionality of autopilot in remote control block? Or this use some kind of internal "magic" which is not accessible to ingame programable block?

JR.

Possible to set turret target distance higher than control panel max?

$
0
0
Been playing around with guided missiles, and I was wondering if it's possible to set a turret's targeting range to 1Km+. I know you can get the elevation and azimuth from a turret, so the thought is to place a turret on the tip of a missile then use the elevation and azimuth to get the correctly aimed vector and pass it off to the autopilot for a large cruise missile capable of leading its target, Obviously the size for such a weapon would be overkill to hit something within 800 meters,...

Possible to set turret target distance higher than control panel max?

I need a script updated... Again

$
0
0
I need this scripts updated as it no longer works and i do not know script.
http://steamcommunity.com/sharedfiles/filedetails/?id=367676577

The error is:

Code:
//Change this to the Antenna Name you want to modify
string origname = "Cargo...
I need a script updated... Again

Grab echoed output of programmable block as string

$
0
0
Greetings, all.

I've been writing a rather involved control script for a mining drill, and after working on it for a weekend I decided that it would be nice if I could simply mirror the echoed debug output of the programmable block onto an LCD panel. My thought was that immediately before triggering the timer block and ending the loop, I could simply execute:

Grab echoed output of programmable block as string
Viewing all 903 articles
Browse latest View live