Space Engineers

Space Engineers

Projection Resource Calculator Script
42 条留言
The-Architect 2022 年 1 月 1 日 上午 10:21 
does it do raw resources?
Celludriel 2021 年 10 月 8 日 下午 5:28 
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 2021 年 7 月 29 日 上午 4:11 
Thx .!.Kingfish, works great.
Mosstache 2021 年 4 月 27 日 下午 12:03 
Same for me. It doesn't seem to work any more... So sad :'(
Âmøur 2021 年 3 月 9 日 下午 12:29 
Not working any more. Requires updateing.
BetterBooty 2021 年 3 月 7 日 下午 5:44 
Can this output the raw Ingots?
dskpnk 2020 年 5 月 14 日 下午 6:43 
Hello is this still partially working even if not counting new blocks or it totally broken ?
.!.Kingfish 2020 年 3 月 9 日 上午 11:29 
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 2020 年 2 月 27 日 下午 5:18 
@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 2019 年 8 月 6 日 上午 8:08 
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 ♥♥♥♥♥♥♥ pain when you make complex vehicles, but we don't wanna spawn our ♥♥♥♥ 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 2019 年 8 月 6 日 上午 8:03 
@Peach did this happen?
peach 2019 年 5 月 10 日 下午 1:09 
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  [作者] 2019 年 4 月 9 日 下午 7:49 
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 2019 年 4 月 7 日 上午 7:27 
It's not working but they was a game update could this be why?
Rocha 2019 年 2 月 7 日 下午 10:58 
Script execution terminated..
Inigma 2019 年 1 月 20 日 下午 5:24 
HiddenMosquito's Projection Resource Calculator Script INSTRUCTIONS: https://psteamcommunity.yuanyoumao.com/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 2018 年 11 月 12 日 上午 5:46 
The armor blocks have not the same component quantity, projectors details not give info about it.
Unfortunately the script get wrong values.
SwedenOps aka Rastacourage 2018 年 9 月 27 日 上午 10:55 
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 2018 年 8 月 8 日 上午 6:31 
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 2018 年 7 月 25 日 上午 11:10 
Can you add output in ingots?
Full Metal Jacket 2018 年 7 月 22 日 上午 4:03 
Thanks for the script!
Rombone 2018 年 7 月 15 日 上午 6:58 
Can't load this into the Programable Block. I guess the script is dead for now?
Kane 2018 年 2 月 26 日 下午 4:32 
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 2017 年 10 月 27 日 上午 7:27 
"Script execution terminated, script is too complex. Plesde edit and rebuild script" It says.
Einherjar  [作者] 2017 年 8 月 30 日 下午 5:57 
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 2017 年 8 月 29 日 下午 10:06 
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 2017 年 7 月 24 日 下午 3:08 
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  [作者] 2017 年 7 月 24 日 下午 1:38 
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 2017 年 7 月 24 日 上午 7:13 
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 2017 年 7 月 2 日 上午 7:21 
not sure what im doing wrong but all i see is one long line of text
Xanthyn 2017 年 4 月 26 日 下午 11:50 
Oh right, Custom Data not Private text. This looks awesome! Can't wait to test it.
Einherjar  [作者] 2017 年 4 月 26 日 下午 9:37 
Alright. Got it functional again. Enjoy! Still working on cross grid stuff. See change notes.
Einherjar  [作者] 2017 年 4 月 26 日 下午 5:30 
Hmm I might migrate this over to functionality with his LCDs 2 script and output to custom data then.
Xanthyn 2017 年 4 月 26 日 上午 12:55 
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.
Pink Hamster 2017 年 2 月 7 日 上午 7:55 
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 2017 年 1 月 20 日 上午 7:06 
thx!
Einherjar  [作者] 2017 年 1 月 20 日 上午 5:43 
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 2017 年 1 月 3 日 上午 11:53 
Please update the scrip
Foxjkee 2016 年 12 月 6 日 上午 7:46 
Can you help me, why script shows only 5 components on lcd screen? Only construction, metal grid, steel plate, large tube and motor.
Einherjar  [作者] 2016 年 10 月 8 日 上午 9:55 
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 2016 年 8 月 9 日 下午 1:35 
Is it just me or it doesn`t display Thruster Components?

Other than that I like it.
Lydon Rayleonard 2016 年 6 月 11 日 下午 12:13 
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.