Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make !grids list create temporary gps instead of permanent #196

Open
sisko91 opened this issue Sep 7, 2021 · 1 comment
Open

Make !grids list create temporary gps instead of permanent #196

sisko91 opened this issue Sep 7, 2021 · 1 comment

Comments

@sisko91
Copy link

sisko91 commented Sep 7, 2021

Usually players use this command when trying to find a grid, and have to delete everything else they dont care about.

This is a one line change by adding an extra "true" at the end of this call

var gridGPS = MyAPIGateway.Session?.GPS.Create(grid.DisplayName, ($"{grid.DisplayName} - {grid.GridSizeEnum} - {grid.BlocksCount} blocks"), grid.PositionComp.GetPosition(), true);

This call has an optional param that defaults to false, which creates a permanent gps: https://github.com/KeenSoftwareHouse/SpaceEngineers/blob/a109106fc0ded66bdd5da70e099646203c56550f/Sources/VRage.Game/ModAPI/IMyGpsCollection.cs#L31

@dorimanx
Copy link

dorimanx commented Sep 9, 2021

image
Great find thank you, i will add this to my essentials fork for our servers.

dorimanx added a commit to dorimanx/Essentials that referenced this issue Sep 9, 2021
Add temp GPS coordinates on request.
TorchAPI#196
dorimanx added a commit to dorimanx/Essentials that referenced this issue Oct 18, 2021
Add more checks to convert to static command.

now it's will convert only the mian grid and not the subgrids!
* it's will skip NPC ships.

* Add temp GPS coordinates on request.
TorchAPI#196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants