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

Getting a Vector3D in front of a Raycast Target

I am trying to finish up an autopilot script that flys to the currently detected target using a camera raycast. The difficult part I'm finding is how to get a position that is on the same vector as the...

View Article


initialization vs. destroyed blocks

How does your script handle one or more of the blocks of script interest getting destroyed? Do you get the blocks only at initialization, to save memory? Are you ok with the script likely erroring out...

View Article


Maximum acceleration limit?

Is it possible to mod a 8000% thrust modifier? I know the speed limit is 999,999 m/s. Is there a way to use the atmospheric drag mod to act as a braking system?Tried with destructable blocks disabled,...

View Article

Need help with assembler item move script

My goal with this program is to scan all the assemblers in the grid and then send all the items from output inventory to the main storage which is called - "Main Storage - BASE". My code seems to be...

View Article

Display the amount of uranium in reactor on LCD

Could someone help write so code for displaying the amount of uranium in reactor on LCD? So I have a reactor called ReactorEB and as LCD called LCDReactor. I want to display on the LCD the reactor...

View Article


[In-game Script]How can I get the current suspension height?

Really want to get CURRENT suspensions height. Yes, IMyMotorSuspension.Height can return the height offset. I don't need the offset. You know, current height is not equal to height offset when...

View Article

Help understanding "ref"

I'm having issues understanding the ref keyword. According do the documentation, you can check to see if a BoundingBox.D is intersecting with a LineD. However, the Intersects method calls for a "ref...

View Article

PB API Critical issues

Please see here: http://forum.keenswh.com/threads/modapi-critical-issues.7390963/ I'll be fixing critical issues in PB API as well, so just post everything in the one thread.

View Article


Image may be NSFW.
Clik here to view.

Check if a Hydrogen Tank stockpile

I'm wondering if it's possible to get a status from a Hydrogen/Oxygen tank if it stockpile or not? There should be a Stockpile filed according to SpaceEngineers Wiki, but I'm not sure if that is...

View Article


Parsing XML from a string

Hi! For hours now I've been trying to figure out how to take XML from the CustomData string and parse it. There's a lot of XML related stuff in the namespace whitelist...

View Article

Drone behaviors. Tutorial?

I noticed that drones now can have certain behaviors, such as strafing a target with a weapon. I saw an .sbc file pertaining to this. Is there some documentation of how this actually works? Is it...

View Article

Is there any way using only 2 programable blocks to make a timer like block?

I am trying to work around the bug where a projected/built timer block does not remember its actions (like a call to a programmable block, and then to itself to create a loop). In the past I would use...

View Article

Programming console commands with a button or sensor?

Forgive my ignorance as I don't know much of anything about in game programs or scripts but is there a simple script that can be made to execute a console command? Example: let's say I want to use...

View Article


Log4PB - Logging/Debugging Lib

What is Log4PB? Log4PB is a versatile loggin framework for Programable Blocks Minified Version: Download Current Size: 5253 chars. Please like/subscribe here so I can keep trak of how many people are...

View Article

Can I get currect max forse thruster?

Ingame IMyThrust has a property "MaxThrust", but in STABLE branch (maybe also in DEV branch, i do not chack it yet) it returns the maximum possible force without considering correct enviroment. For...

View Article


Scrollimg text

Good day. ladies and gentlemen. Tell me, please, is it possible to display some text on the LCD a) with scrolling, even uncontrolled, and b) from an external file?

View Article

Getting display names of IMyInventoryItem cleanly?

Is there an easy way of getting item names of IMyInventoryItem? Preferably using the item's DisplayName_Item found in the MyTexts .xml file in SpaceEngineers\Content\Data\Localization? IMyInventoryItem...

View Article


-

Old title: A little suggestion to community about Custom Data field: do not use it in exclusive way All in title. At least, if it possible. Why: There is situations, there one block can be affected by...

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

Using Method on Blocks List

Hi, Maybe a basic question, but i didn't found any proper example who explain how to apply action on blocks extracted from a list. No problem to deal with properties but anyway I a try to apply a...

View Article
Browsing all 903 articles
Browse latest View live