gcrtnst / sw-vmark

Add vehicle marker features to Stormworks
https://steamcommunity.com/sharedfiles/filedetails/?id=2279684060
The Unlicense
0 stars 0 forks source link

Local Markers #13

Closed gcrtnst closed 3 years ago

gcrtnst commented 3 years ago

The add command allows you to add a global marker. Global markers are visible to everyone. You can remove global markers only by the clear command.

You can add a local marker with the addlocal command. Local markers are visible only to the player who added them. Local markers can be erased only by the clearlocal command.

Global markers cannot be erased by clearlocal. You cannot clear local markers by using the clear command.

~You should make the add and clear commands available only to authorized persons.~

gcrtnst commented 3 years ago

Local markers are not likely to be saved in the save data

gcrtnst commented 3 years ago

~It may be even better to make it configurable whether or not add_auth is needed~

gcrtnst commented 3 years ago

Permissions may be unnecessary, because it's complicated.

gcrtnst commented 3 years ago

~I might set set and clear for local markers and setglobal and clearglobal commands for global markers.~ No, should I still have setlocal and clearlocal and an additional recover command?

gcrtnst commented 3 years ago
gcrtnst commented 3 years ago

?vmark recover is a recovery tool for when you accidentally execute ?vmark clear -1 instead of ?vmark clearlocal -1. I don't think there is any other factor that could cause you to accidentally run ?vmark clear -1. (As soon as -1 is entered, that player should understand that all the markers will disappear.)

gcrtnst commented 3 years ago

Only a single ?vmark clear -1 can be restored with the recover command. A player who performs ?vmark clear -1 more than twice would be a sure thing.

gcrtnst commented 3 years ago

If none of the markers erased by ?vmark clear, the backup will not be updated.