Space Engineers

Space Engineers

86 ratings
EZGPS - A Better way to Navigate in Space
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
469.379 KB
15 Aug, 2018 @ 5:18pm
15 Mar @ 11:02am
132 Change Notes ( view )

Subscribe to download
EZGPS - A Better way to Navigate in Space

Description
This mod adds commands to the chat that will allow for galactic positioning system (gps) modification and adjustments.

All commands are invisible to other players and will not give GPS points to enemy factions.

If you run a server and want to use this mod, please use the server version found at https://sp.zhabite.com/sharedfiles/filedetails/?id=2376008977
It removes the range command, causes servers to lockup depending on range set and number of players.

If any bugs or issues, let me know


Original code made by Wrenn
See original at https://sp.zhabite.com/sharedfiles/filedetails/?id=671034081

Special Thanks to Meridius_IX / Lucas for help with the server communication for the faction sharing commands.
Meridius_IX / Lucas' input fully made this mod meet the intentions I set when I originally modified Wrenn's base code.

You can see more of Meridius_IX / Lucas' stuff here: https://sp.zhabite.com/id/meridius_ix/myworkshopfiles/?appid=244850

EZGPS - Enhanced GPS Utility for Space Engineers

EZGPS simplifies GPS management, allowing for easy filtering, organizing, and sharing of waypoints.
Use /ez or /gps2 (both work). Capitalization and spelling matter.

---

GPS Management
/ez add <name> [<colour>] - Adds a GPS point at your location.
Example: /ez add Ore <ff0000> adds a red ore marker.

/ez delete <name> - Deletes all GPS points containing <name>.
Example: /ez delete Fe removes all iron-related GPS points.

/ez deleteall - Deletes all GPS points (no confirmation!).

/ez copy <source>:<destination> - Copies the coordinates of <source> to <destination>.
Example: /ez copy Base 1:Jump Point updates "Jump Point" to match "Base 1".

/ez recolour <tag> <colour> - Changes the color of GPS points containing <tag>.
Example: /ez recolour Ore <ffff00> changes all ore markers to yellow.

/ez moveHere <name> - Moves a GPS point to your current position.
Example: /ez moveHere Wreck updates "Wreck" to your new position.

---

GPS Visibility & Filtering
/ez hide <tag> - Hides all GPS points containing <tag>.
Example: /ez hide Ore hides all ore-related GPS points.

/ez hideall (/ha) - Hides all visible GPS points (clean slate).

/ez showall (/sa) - Shows all GPS points (messy!).

/ez show <tag> - Shows only GPS points with <tag>.
Example: /ez show Fe reveals all iron deposits.

/ez showonly <tag> - Shows only the selected GPS points, hiding all others.
Useful for late-game when GPS lists get too large.

/ez shownearest <tag> - Shows the nearest GPS point matching <tag>.
Example: /ez shownearest Ore shows the closest ore deposit.

/ez range <distance>/off - Filters GPS points to only show those within <distance> km.
Example: /ez range 50 only shows waypoints within 50 km.

---

Distance & Navigation
/ez dist <name1>:<name2> - Calculates distance between two GPS points.
Example: /ez dist Base:Wreck shows how far "Base" is from "Wreck".

/ez extend <new_name>:<name1>:<name2>:<distance> - Adds a GPS point along a line between two points.
Example: /ez extend SPACE!:planet_core:surface:50 creates a point 50 km past "surface" on the way to "planet_core".

/ez cardinals (/c) - Adds Galactic North, South, East, West, Up, Down markers.
Ever tried to give directions in space? Now you can say "Go North!"

---

Faction GPS Sharing
/ez factionShareAll (/fsa) - Shares all GPS points with your faction.
Example: New faction member? /ez fsa instantly shares all your mining spots.

/ez factionShare <tag> (/fs) - Shares GPS points containing <tag> with your faction.
Example: /ez fs Ore shares only ore locations.

/ez factionShareVisible (/fsv) - Shares only visible GPS points.
Great for quickly marking spots during mining operations.

/ez addFactionShare <name> (/afs) - Creates and instantly shares a new GPS point with your faction.
Example: Need to mark an urgent location? /ez afs Crash Site.

---

GPS Import/Export
/ez export <tag> (/e) - Saves GPS points with <tag> to your clipboard.
Example: /ez export Ore copies all ore locations for easy sharing.

/ez import {params} <GPS_LIST> (/i) - Imports GPS points from clipboard.
Example: /ez i pastes GPS data into your HUD.
Params:
- `"rename"` - Renames matching GPS points.
- `"update"` - Moves matching GPS points.
- `"rc"` - Updates colors of existing points.

---

Utility
/ez help - Displays this command list.




181 Comments
97cweb  [author] 28 Oct, 2024 @ 3:28pm 
@Dawns the range option is a remnant of the previous modder, I no longer maintain that section as it is known to become a laggy mess. It overrides visibility because there is no state to this mod, I cannot see which gps points are always visible, as it is not in the API as well.

Also, I cannot access descriptions, they do not exist within the gps point itself. (weird I know). For similar action to what you are requesting, if you name all your points consistently, you an use tags to filter them out. Popups are out of my ability to send data back. I can populate one, but it won't save.
Dawns 28 Oct, 2024 @ 5:01am 
Edit: Oh, I just found something bad: the range option deactivates the Always Visible attribute of points!... It shouldn't...! 😅
Dawns 28 Oct, 2024 @ 4:50am 
REQUEST: This is quite handy, it has a Range option, but I have a request, if I may... an option to overwrite the description of the points with their distance from the player to each of them, at the moment we run such option. The purpose is to be able to spot early game points, that are then far far away, that will never be visited again, and need to be deleted.
Well, it would be great to be presented with a popup list sorted by distance the moment you open such list, with options to edit or delete points. But distances on descriptions would already be a major help! Thank you mate, hugs. -- Dawns
andersenman 26 Oct, 2024 @ 3:24pm 
Eh, it wasn't really an issue, just something that could potentially save some headache reading code, should you ever need to touch it again years later and remember what in the world you wrote back then, hahaha. Still, happy to see you found use in the recommendation!
97cweb  [author] 26 Oct, 2024 @ 8:37am 
Thank you! I also fixed the issue you mentioned in Github, pushing change now
andersenman 26 Oct, 2024 @ 3:23am 
Champion, thank you kindly! The underscore now seems to be treated reliably as a separator in addition to properly ignoring a trailing _\d+ in regex speak, at least as far as I could tell with the test cases I managed to discern. I will keep an eye open, though, should I run into a case not covered and not treated as expected. Again, thanks for the improvement, and for the github link as well!
97cweb  [author] 25 Oct, 2024 @ 4:24pm 
@andersenman I just made changes based on what you suggested. It should work now. Code can be found on https://github.com/97Cweb/EZGPS
andersenman 25 Oct, 2024 @ 9:09am 
Thank you very much for your effort! I have done some testing. It seems the underscore filtering seems to work but still fails whenever it leads a tag. For example, "/ez h a" does not hide markers with _a in it. I have created a test world and uploaded it to the workshop, https://sp.zhabite.com/sharedfiles/filedetails/?id=3354517189 . I have also tried to come up with some filtering based on your mod's code, but I could not make it work because you are filtering the same way in several different functions which made it difficult for me to work out what is being filtered and when, so, I did not get far, and I also missed to take an earlier copy to compare and tell the difference. Perhaps you have a public github repo for the script I could look into, if for nothing else than learning a bit of coding?
97cweb  [author] 20 Oct, 2024 @ 10:54am 
@andersenman Fixed. Thank you for feedback. Please let me know if there are any issues. It was a regex change and those are sketchy for me
andersenman 19 Oct, 2024 @ 1:22am 
When mapping several similar places using "/gps here" for example, for any bookmark past the first one, Keen in their colossal wisdom make SE append "_n", where n is a running number, (instead of, you know, "[space]n" like normal people). This makes "/ez hide here" work only for the first bookmark because "here_1" is not "here". Is there any chance you could make the mod somehow recognize the underscore character as a tag separator? Or perhaps strictly the constellation of "[underscore][numbers][EndofString]" so that the underscore itself remains available for people who explicitly do want to use it?