Space Engineers

Space Engineers

评价数不足
AllOresScan - Ore Detector Reforged
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
376.790 KB
2023 年 10 月 2 日 下午 2:31
1 项改动说明 ( 查看 )

订阅以下载
AllOresScan - Ore Detector Reforged

描述
This script will scan all ores in a provided radius and return the first result it finds in the list from top to bottom.

How to adjust priority?
Simple put the more important ores at the top, or remove ores from the list.

string[] oreTypes = new string[]
{
"Nickel",
"Platinum",
"Iron",
"Silver",
"Gold",
"Tritanium",
"Aluminum",
"Uranium",
"Duranium",
"Magnesium",
"Silicon",
"Cobalt",
};

For example this would be used on the Star Trek server. If you want Duranium to be more important, just move it to the top of the list, or higher up in the list. Right now Nickel is the most important one to the script.

How do I run this?
Simply hit run, or have another programmable block hit run. You must however wait until it's completed it's scan and output a result. Trying to run this repeatedly before it's finished will just restart the script over and over again and isn't really useful.

Where do the results go?
Results go to the CustomData of the programming block the script is located on. in X:123 Y:123 Z:123 format.

Can be used with another script I wrote!
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3041881089

8 条留言
hugums247 2024 年 6 月 28 日 上午 10:47 
wont work laundry list or errors
Oblivion2012 2024 年 6 月 22 日 下午 7:01 
How would i add better stone ores or any other modded ores?
FC3827 2024 年 5 月 16 日 下午 5:14 
Aaaand that's exactly what I was about to try to learn a new language for. I have been saved
AnonaMoose  [作者] 2024 年 4 月 27 日 下午 2:22 
@RustySoldier if you can tell me what server you are playing on i can sorta narrow it down. its possible it might be a server side issue with it missing a mod.
AnonaMoose  [作者] 2024 年 4 月 3 日 下午 1:51 
ill look into bugg fixing once i get around to playing again sorta got burnt out on it
RustySoldier 2023 年 11 月 6 日 上午 4:23 
it's basically a bug happening since the anniversary update
RustySoldier 2023 年 11 月 6 日 上午 4:16 
Pulse: 1
Caught exception during execution of script:Invalid property
at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.Cast[TValue](ITerminalProperty property)
at Program.ReforgedDetectN(BoundingSphereD area, String minedOre, Int32 count, Action`1 callBack)
at Program.Main(String argument, UpdateType updateSource)
at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.<>c__DisplayClass42_0.<ExecuteCode>b__0(IMyGridProgram program)
at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.RunSandboxedProgramActionCore(Action`1 action, String& response)
MrFox 2023 年 10 月 12 日 下午 1:54 
does this need a mod or something?