IMyProjector RemainingBlocksPerType missing Armor Blocks from Dictionary
I do not know if this is the correct thread so please move it if not. Hey guys hoping someone that drives PB updates can help. It seems from testing tonight that IMyProjector.RemainingBlocksPerType...
View ArticleScript to get armour block positions
I am writing a script to plot the position of all blocks on a grid onto a monospaced display panel. I have a very basic setup which gets the positions of all blocks that appear on the terminal, but...
View ArticleGet/Set ship name from PB
Is there a way to do this? Changing the name of the antenna would be the next best thing, but I'm looking to access values in the terminal "info" tab.
View ArticleProblems with IMyTextPanel
Hello there. I think there is something wrong, Visual Studio dont know about the CustomData proberty of a IMyTextPanel. Ingame the code compiles with no errors
View ArticleGetting a warning in script
Hi there, can someone tell me why am I getting a Warning after compiling this script? And does anyone know if it breaks something within the code? Warning: 'IMyShipConnector.IsConnected' is obsolete:...
View ArticleBlock scripts requests thread
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...
View ArticleHelp 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 ArticleIs 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 ArticleEasy 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 ArticleBest 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 ArticleOxygen 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 ArticleWhere 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 ArticleBehaviour 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 ArticleHow 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 ArticleCross 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 ArticleLeveling 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 Articleinitialization 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 ArticleSetting 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 ArticleNeed 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 ArticleModify 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