TrekMUSH Navcomp plugin

Posted by Kovarid on Mon 23 Jun 2014 01:03 AM — 3 posts, 15,037 views.

#0
This is my first beta release of my navcomp for ATS TrekMUSH.
http://trekmush.org/ or ats.trekmush.org:1701


The primary purpose is to replace an external program currently used by the playerbase called mapview.
While it doesn't have an actual 3d view like Mapview does, it replicates most of it's functionality.

It requires an external CSV file that has all the space object locations and information, it's included with the plugin and should be put into the plugin directory with it.

Currently it has the following abilities:
  • Calculating possible destinations based on heading from any source.
  • Plotting an intercept based on your location, target location/destination and speeds.
  • Best route from A to B, including Stargates and Cochrane values; Also gives you border crossings and ETA/distances for each.
  • Convert any <XYZ> coordinates to/from any frame and GRC.
  • Automatically matches basebot output to find destination of lost contacts.

You can type 'atshelp' once loaded for the list of commands.


I am still working out the kinks, I'd call this version 0.8.


Known Issues:
  • PlotIntercept will not work if your velocity is same as target. Need to work on the math for that.
  • 'Here' only works with plotintercept's <ploc> currently.



Future plans:

  • Integration with EconomyMarket to generate trade routes based on your inputs (best money, shortest route, etc.)
  • Border avoidance / waypoint generation, to get from A to B while avoiding border C


Currently hosting on my home network on my RaspberryPI. (Be gentle)

http://marqon.pi-raspberry.com/atsnavcomp.zip

Thanks!
USA Global Moderator #1
Try time0 = time1 = -c/b if a == 0 and b != 0.
#2
Ah, will give that a shot.

To be honest I was going to hold off on releasing it until I did some cleaning up, the code is very messy and you can see where I was trying different methods as I learned Lua, or found a better way to do something. (At one point, I had 4 different versions of traceheading()) ;)

As I learn regexp it'l definitely get better, I plan on replacing a lot of the parsing I do with regexp on the commands.

So if you notice something I did weird or there's a better way to do it, please share.. I won't be offended.