Space Engineers

Space Engineers

Not enough ratings
Nanobot Offset From GPS
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
400.521 KB
14 Dec, 2020 @ 8:06pm
1 Change Note ( view )

Subscribe to download
Nanobot Offset From GPS

Description
This script positions the work area of either of the Nanobot systems ("Nanobot Build and Repair System" or "Nanobot Drill and Fill System") at a GPS point.

I like using the Nanobot systems in certain circumstances, but the SE interface makes it difficult to position the work area where I wanted it. This script makes it quick and easy.

This script works for both of the Nanobot systems.

Instructions:
1. Add one of the Nanobot systems to a grid.
2. Go into the block setting and click on "Show Area". (optional)
3. Set the work area width, height and depth to the values you want. (also optional)
4. Add a programmable block and load this script.
5. Name the Nanobot system you want to contol to "NanobotSystem". (without the quotes)
6. Optionally, you can edit the nanobotSystemBlockName variable below and use whatever name you want.
7. Create a GPS point where you want to locate the work area.
8. Copy the GPS data to the clipboard.
9. Go to the programmable block and paste the GPS data from the clipboard into the Argument field.
10. Click Run.

The work area should now be centered at the GPS point. (+/- half a meter.)

Credits:
Dummy08 created the Nanobot systems and deserves the credit for such
great mods. They remove some of the tedious work in Space Engineers and
allow players to adapt the game to their own individual play style.
The mods are well designed and well written. They have worked for
me from the first time I loaded them and every time since.

All the important parts of this script were created by Whiplash41.
I just adapted the code for use with the Nanobot Systems.

---------------------------------------------------------------
Sources:
"Whip's GPS Waypoint Distance Script v1 - revision: 3/30/16"
https://pastebin.com/ZV2sUEBj

[Tutorial] How to do Vector Transformations with World Matricies
https://forum.keenswh.com/threads/tutorial-how-to-do-vector-transformations-with-world-matricies.7399827/
---------------------------------------------------------------

The code for setting the Nanobot properties was distilled
from the "Nanobot Build and Repair System" sample script
and the Nanobot systems mod code.

Finally, a big tip of the hat and thanks to Malware for the MDK-SE,
the ModAPI wiki, the in-game scripting instruction and more.
If SE in-game scripting is pencil and paper, the MDK is a smart phone.
18 Comments
AnonaMoose 26 Sep, 2023 @ 9:43pm 
me and a buddy modified the script to work with a automatic offset https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3041881089
Depressed Koala 11 May, 2023 @ 4:11pm 
I've modified the code to allow for multiple nano systems

https://gist.github.com/mossyblog/5b0f7edd56f93bc60eeedbd8e1fe3be7
LucLucarioGaming 28 Jul, 2022 @ 7:59am 
Okay thx :)
potoole  [author] 27 Jul, 2022 @ 4:05pm 
@LucLucarioGaming I tried, it can't be done. The ore detector point are only displayed on the HUD, they're not accessible via code.
LucLucarioGaming 27 Jul, 2022 @ 12:27pm 
@Potoole couldnt you make a script that uses the ore detector points given im not big with coding so i dont know how to.
MrFox 16 May, 2022 @ 7:28am 
@potoole THis is amazing! One question. Wee tring to mine out an entire moon (MUHAHAAA)
Anyhow. Is there a way to have this move on its own, like nothing to drill move to next block?(Drill and fill) or take the GPS of an ore finder and auto move to that location?
potoole  [author] 16 Feb, 2022 @ 6:18am 
@RuneDemomn - ore detector indicators aren't actually way points. They visual indicators that only exist in the HUD and can't be read from a script.

@Palpatine - that might be possible, I can't remember if the character position is available or not. Can't promise anything, but I may spend some time updating the script.

@Blueduckrader50 - Interesting idea, that should be doable. Can't promise anything, but I may spend some time updating the script.
Blueduckraider50 15 Feb, 2022 @ 4:47pm 
This script is awesome, but I have a question, would it be possible to make a new version/update that lets you control a group of drills / welders at the same time.
And wondering if this version updates the offset while a vehicle is moving, or if I have to keep pressing Run to keep it up to date.
Would be great for flying to location, start mining as soon as the drills are in range, and when full just turn around & fly home, rinse repeat.
Cool if you're not around anymore to work on the script.
Palpatine 20 Dec, 2021 @ 3:17am 
Can I get a version of this that just follows me?
RuneDemomn 22 Nov, 2021 @ 5:32am 
Is it possible to do this off of the ore detector waypoints?