Space Engineers

Space Engineers

Projection Resource Calculator Script
42 Comments
The-Architect 1 Jan, 2022 @ 10:21am 
does it do raw resources?
Celludriel 8 Oct, 2021 @ 5:28pm 
The github updates are easy to implement, however it pushes the script over 100k lines ingame which doesn't seem to be working for me at least then. It compiles perfectly but it won't run.
Mågus 29 Jul, 2021 @ 4:11am 
Thx .!.Kingfish, works great.
Fat7i Bonané 27 Apr, 2021 @ 12:03pm 
Same for me. It doesn't seem to work any more... So sad :'(
Âmøur 9 Mar, 2021 @ 12:29pm 
Not working any more. Requires updateing.
BetterBooty 7 Mar, 2021 @ 5:44pm 
Can this output the raw Ingots?
dskpnk 14 May, 2020 @ 6:43pm 
Hello is this still partially working even if not counting new blocks or it totally broken ?
.!.Kingfish 9 Mar, 2020 @ 11:29am 
Here's a github I made of the updated component list. I haven't really tested it. I removed the SafeZone block as it has zonechips. If you don't know what to do with the 2 files, don't bother asking right now. It's pretty obvious for anyone with little coding skill.

Github link [github.com]
Syngather 27 Feb, 2020 @ 5:18pm 
@Peach, anyway you can share the changes you made (assuming it still works with all the new changes), would really like to use this script as well!
Kenny 6 Aug, 2019 @ 8:08am 
I would love to be able to use this script, me and my friends used to play Empyrion Galactic Survival and got way to used to the fact that you can just make blueprints in creative, go into a survival save, pick the blueprint you wanna make in the "factory" (just a tab you open) and then you have to put resources in the factory and wait for it to be build. after its built you can just spawn it in, which is amazing. welding the entire ship is such a fucking pain when you make complex vehicles, but we don't wanna spawn our shit in because we wanna feel like we earned it. being able to calculate the resource cost would be amazing so we can just make the components we need and then drop them on the floor, delete them and spawn in the ship so we did work for it :P
Kenny 6 Aug, 2019 @ 8:03am 
@Peach did this happen?
peach 10 May, 2019 @ 1:09pm 
HiddenMosquito,

I've updated the code and corrected some minor bugs, so it works in the current version.
Now it includes all the new DLC blocks (big and small versions) as well as the small thrusters.

I wish to send you the updated code so more people could use this tool (it's the greatest calculator for survival players such as I).

feel free to contact me on steam about it.
Einherjar  [author] 9 Apr, 2019 @ 7:49pm 
Due to the new component requirements of blocks during the exit of beta, this script no longer provides an accurate calculation. Now that keen has put lcds inside of cockpits, etc., I YEARN to update and polish this script. I want to add more compatibility like antenna comms, assembler queuing, and independence from timer blocks. However, as long as scripts are still in experimental mode, I’m halting all scripting efforts until keen finds a way to put PB scripts into the base game without having to turn on experimental.
ELiTE RiDER 7 Apr, 2019 @ 7:27am 
It's not working but they was a game update could this be why?
Rocha 7 Feb, 2019 @ 10:58pm 
Script execution terminated..
Inigma 20 Jan, 2019 @ 5:24pm 
HiddenMosquito's Projection Resource Calculator Script INSTRUCTIONS: https://gtm.steamproxy.vip/workshop/filedetails/discussion/608041718/1742231705668956603/

I posted exact step by step instructions on how to use this script in the link above. It works great. I think a crucial step many people are forgetting is to actually hit Run when you load the script. Please let me know if that helps! @HiddenMosquito feel free to post these instructions to your OP. I spent several hours racking my brain to figure this all out (I'm new to SE and scripting in this game). I hope this helps someone.
Cruel Sun 12 Nov, 2018 @ 5:46am 
The armor blocks have not the same component quantity, projectors details not give info about it.
Unfortunately the script get wrong values.
LIVE SwedenOps 27 Sep, 2018 @ 10:55am 
How do u make it so it refresh after adding a new Blueprint? do I have to Recompile manually or is there a way to make it do it automaticly?
John 8 Aug, 2018 @ 6:31am 
cant manage to get it to work
i try everything described and couldnt get the lcd to show anything says" unkown command:Projector ... after i might forget something or where to put stuff or whatever i try to do thing everywhere nothing show up
Pax 25 Jul, 2018 @ 11:10am 
Can you add output in ingots?
Full Metal Jacket 22 Jul, 2018 @ 4:03am 
Thanks for the script!
Rombone 15 Jul, 2018 @ 6:58am 
Can't load this into the Programable Block. I guess the script is dead for now?
Kane 26 Feb, 2018 @ 4:32pm 
the script show me only iron,cobalt,nickel and silicon but ne platinum or silver what di i wrong ?
is it right that i need 2 progblocks ? one for the LCD 2 and one for this script ?

sorry for my bad english
atllan 27 Oct, 2017 @ 7:27am 
"Script execution terminated, script is too complex. Plesde edit and rebuild script" It says.
Einherjar  [author] 30 Aug, 2017 @ 5:57pm 
Yes, I believe you can.

I made a switch statement inside of both the convertLargeGridBlockToComponent and convertSmallGridBlockToComponent methods. Each case accounts for each type of vanilla block the Projector is aware that it's projecting.

You can look at the Projector's detailedInfo without using a programming function to see what your non-vanilla block is named in the projector details by pressing K on your grid and accessing the projector that's projecting in the control panel on the bottom right. The area usually starts with "Projector: x/x blocks complete, WARNING PROJECTION OUT OF BOUNDS" and all that.
Dig 29 Aug, 2017 @ 10:06pm 
The program does not seem to recognize non-vanilla components or blocks. Is there a way to alter the script so it can read them?
XY78 24 Jul, 2017 @ 3:08pm 
I literally just replaced lcd.CustomData = outputToLCD;
with
lcd.WritePublicText(outputToLCD);
And added a few line breaks to not make the formatting a mess.
Einherjar  [author] 24 Jul, 2017 @ 1:38pm 
That's awesome! Yea I use the mmaster's auto LCD's to access grid inventory. But maybe I can link yours on this page's description for people who don't want to mess with auto LCDs.
XY78 24 Jul, 2017 @ 7:13am 
Is it the Automatic LCDs part that adds functionality to access grid inventory? I rewrote the script for private use to work without the lib.
Cmd Dorion Grey 2 Jul, 2017 @ 7:21am 
not sure what im doing wrong but all i see is one long line of text
Xanthyn 26 Apr, 2017 @ 11:50pm 
Oh right, Custom Data not Private text. This looks awesome! Can't wait to test it.
Einherjar  [author] 26 Apr, 2017 @ 9:37pm 
Alright. Got it functional again. Enjoy! Still working on cross grid stuff. See change notes.
Einherjar  [author] 26 Apr, 2017 @ 5:30pm 
Hmm I might migrate this over to functionality with his LCDs 2 script and output to custom data then.
Xanthyn 26 Apr, 2017 @ 12:55am 
Dang, this thing is so close to working. Sadly the "UseTextCommands" Option has been removed from MMaster's LCD's, but if you were to output to private text instead of the title, we would be cooking with gas.
The Pink Hamster 7 Feb, 2017 @ 7:55am 
By cross grid you mean that connected projectors will be listed ? Basically, I connected a small ship with a projector to my base, but since they-re not on the same grid, the display doesn-t tell me what I need. The programmable block says there-s no projector with that name... However, the LCD has the elements needed in its tittle, but not on the screen.
Dr.Ghost 20 Jan, 2017 @ 7:06am 
thx!
Einherjar  [author] 20 Jan, 2017 @ 5:43am 
Sorry about the late response. I've been moving into a new house IRL. Once I update it I'll also add support for cross grid communication ;)
Dr.Ghost 3 Jan, 2017 @ 11:53am 
Please update the scrip
Foxjkee 6 Dec, 2016 @ 7:46am 
Can you help me, why script shows only 5 components on lcd screen? Only construction, metal grid, steel plate, large tube and motor.
Einherjar  [author] 8 Oct, 2016 @ 9:55am 
I just updated it to capture the "Ion Thrusters" and "Large Ion Thruster" output in the projector details. Somewhere along the way, keen updated it from jsut "Small Thruster" and "Large Thruster". Thanks for giving me a heads up!
Greyguild 9 Aug, 2016 @ 1:35pm 
Is it just me or it doesn`t display Thruster Components?

Other than that I like it.
Lydon Rayleonard 11 Jun, 2016 @ 12:13pm 
A friend and I keep trying to use this, and all we get is "Caught exception during execution of script: Object reference not set to an instance of an object" And even when we did get it to actually put something on the LCD, it was all wrong.