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

Easy copying of relevant code from Visual studio

Hi, when making in-game scripts in VS you have to select and copy a portion of your file every time you want to test it in game. I found this tedious so I wrote a simple script that copies a predefined...

View Article


Best way to investigate low sim speed?

Is there a sort of task manager tool in the game world that would help me isolate the source of low sim speed? I know the "Echo" function is usually to blame for memory leaks, and I still have a few...

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

Image may be NSFW.
Clik here to view.

Where can I find up to date reference for PB scripting ?

Hello Because it is a real pain to try to find correct information lost in tons of outdated data Thank you for your help. And if someone can add accurate link in sticky that would be helpfull. I found...

View Article

Oxygen Generator Detailed Info (Missing Required Input)

I'm working on a script where I grab every block's power needs. I've noticed that things like Assemblers and Refineries have a "Required Input" property in their Detailed Info. This apparently shows...

View Article


How are you guys viewing documentation.chw?

Can't open it. All the tools I've tried can't open it. Is there any up to date documentation (preferably in the MDSN format) that I can view? I'm running Windows 10 which I believe Microsoft removed...

View Article

Behaviour of saved blocks (error handling)

Already tried a bit, but there was no null reference exception or what I would expect. Maybe someone else knows more what happens with saved blocks (global / member variable), when they change (e.g....

View Article

Cross grid guided torpedo/missile script?

Has anyone created any cross grid torpedo/missile scripts yet? I've seen in one of the updates wherein PB's can now access remote grids. It makes me wonder if people have started making guided torpedo...

View Article


Image may be NSFW.
Clik here to view.

Leveling Script

My English is not that good Because I have never written a script I would be happy if you write me one I need a script where the block x from the g-menu is and sobalt the player say we pay 100 credits...

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

Setting Destination of Remote Block

Alright so based on the missing API thread I think this is a no-go, but it mentions some of the issues may have work arounds so I thought it worth asking anyways. I've got a way to get a GPS coordinate...

View Article

Need Help. HangarScript doesn't work

Hey guys, i found a good script in the www for the airlock hangardoor. But it is a bit older and the api changed. May someone look for it please? Code: bool g_initialize = true; IMyTimerBlock g_timer =...

View Article

Modify performance monitor data display

In the SHIFT+F11 menu, pushing F11 multiple times will show different pages of data. Can I customize one of these pages to include select information? I'm looking to keep only sim speed and FPS data in...

View Article


Help needed to update simple script

Hello fellow Space Engineers, I had a very rudimentary but working script that allowed me to change the color of a group of lights for a airlock from green to red or red to green depending on the...

View Article

Image may be NSFW.
Clik here to view.

Request: Aiming thrusters

So. I have this project in SE. Ok this is like the VTOL control problem, but in space. I have a movable thruster on each corner of this ship: It's a freighter for the feb UESC contest. So as of now...

View Article


Actual limits of script complexity

What are the current actual limits to script complexity? I've read that it's 10,000 method calls and 50,000 "operations" (I don't know if that means bytecode level ops or statements), but that source...

View Article

Microsoft Visual Studio - Intellisense stopped working with today's update.

Has this happened to anyone else? We got a stealth update I think today. Has anyone tried to write code with the new dlls? I don't know enough about VS to pinpoint what changed or if I accidentally set...

View Article


Image may be NSFW.
Clik here to view.

Var + Group

Hello, I have a question. I Script a Program and I need the "var light1" my script part: var light1 = List<IMyBlockGroup> BlockGroups {light}; I want my Group of the interior Lights... i dont...

View Article

Script Solar Day Night Detector Tutorial (German, English)

German: (English under German) Hier ein Extrem hilfreiches Script!!! Was kann das Script? Es erkennt wenn Sonne auf die Solar Panel trift und Deaktiviert automatisch Lichter (und andere objekte) Was...

View Article

script UI sugestions

I am designing a script to network together many ship and station grids and i already have a framework and basic menu system in place. I am interested to know if anyone has found a good way to do...

View Article
Browsing all 645 articles
Browse latest View live