AudunVN / Navmap

Browser-based system map viewer for the Freelancer mod Discovery.
http://space.discoverygc.com/navmap
7 stars 8 forks source link

Investigate usability of in-game /pos command #4

Closed AudunVN closed 8 years ago

AudunVN commented 8 years ago

Could this be used for anything interesting, like for example ship position sharing or somesuch?

AudunVN commented 8 years ago

This could be done by requiring the user to specify the current system along with the /pos command, e.g. "/pos New York".

AudunVN commented 8 years ago

Or even "/pos in New York" to make it a bit more intuitive.

AudunVN commented 8 years ago

image This should be usable!

AudunVN commented 8 years ago

Some WIP regex for matching the required format: [\n\r]\[[^\]]*\] \/pos in .*[\n\r]+\[[^\]]*\] Position.* \/pos in ([^\r\n\[\]]*) - just split the second line at 0x20 to extract the position and orientation of the player ship.

AudunVN commented 8 years ago

Implemented and shipped in db55519c114f1b869afb947f71baf05d97c225af.