Space Engineers

Space Engineers

Not enough ratings
Ore Detector Oraycast
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Other
File Size
Posted
Updated
404.908 KB
17 Apr, 2021 @ 2:08pm
13 Sep, 2021 @ 6:40am
3 Change Notes ( view )

Subscribe to download
Ore Detector Oraycast

Description
Hello everyone!

Short description
This mod adds function to the Ore Detector to write ore GPS in front of it in the blocks CustomData. Also it is an example of working with ModAPI for PB and storing data between sessions.

Current functions:
-Ore Detector has switch to start write ore GPS into blocks CustomData.
-Ore Detector remembers switch state between sessions.
-Scanning distance depends on Range parameter from Ore Detector.
-This switch could be accessable from PB syntax via GetValue and SetValue methods.
-GPS coordinates could be copied and pasted into the personal GPS data or processed by PB.
-Ore Detector could cast rays to detect ores with support of PB.
-All related to ore raycast parameters are also availabe from PB syntax via GetValue and SetValue methods.

Ingame Script parameters:
Oraycast_On (bool) - name of the switch, accessable from PB
Oraycast_Direction (Vector3D) - vector, that shows, in what diection we should send ore raycast.
Oraycast_Distance (double) - distance that we will check with te ore raycast
Oraycast_Precision (double) - how long steps should be between checks on ore raycast ray (by default, it will be 1 meter long)
Oraycast (out List<MyDetectedEntityInfo>) - command to send ore raycast using paramters above

Updates:
Link to changelog

Links for blueprints and example worlds:
Simple script to show how PB functional is woking in this mod. Shows scan data from ore raycat on Pb main screen.

Credits:
Racher OreDetector Raycast - Big thank you for the convinient ComputedProperty and StoredProperty classes, very simple and handy!
15 Comments
Skleroz  [author] 5 Aug, 2024 @ 2:25am 
@CERBERUS Не верен, насколько у меня актуальная версия игры сейчас, но в чистом мире, к кторому только один мод подключен, скрипт до сих пор работает. Моды можно проверить через меню загрузки, в настройках мира, разделе модов, подключен ли он.
CERBERUS 4 Aug, 2024 @ 7:34am 
Установил, но галочка для активации в детекторе не появилась. Как узнать установился ли вообще мод?
Captain Rex 17 Feb, 2024 @ 9:16am 
Thank you for adding what should have been in the game.
Skleroz  [author] 13 Sep, 2021 @ 12:38pm 
@annubis33 It should update itself, when game is restarted? or mod list is updated within game. Glad, that it is working!
annubis33 13 Sep, 2021 @ 11:05am 
Oh I see
annubis33 13 Sep, 2021 @ 10:55am 
It's working thx. What was the range?
annubis33 13 Sep, 2021 @ 10:31am 
yes on planet. I haven't tried resubing for a fresh down load..
Skleroz  [author] 13 Sep, 2021 @ 6:41am 
I'll try to avoid some issues with differences between planet and asteroid volxel maps, it could help.
Skleroz  [author] 13 Sep, 2021 @ 6:39am 
Did the crash happened on planet? It could be root cause for the issue.
Skleroz  [author] 13 Sep, 2021 @ 6:02am 
@annubis33 This is strange. Just checked it in new world - it works fine, detects voxels material and don't hang the game, when no voxels found. Unfortunately, I don't have last DLC to be sure, that this issue not depends on changes during 1.199. According to the change list, it shouldn't be the case.