Есть какие-нибудь продвижения в данном направлении? И подскажите, как узнать дистанцию пути от текущего местоположения (или ближайшей точки gps, ближайшего графа gps) до конечной точки gps?Можно. В ближайшую неделю добавлю.
Получи все точки пути методом gps:И подскажите, как узнать дистанцию пути от текущего местоположения (или ближайшей точки gps, ближайшего графа gps) до конечной точки gps?
public List<GpsPoint> GpsGetPath(string endPointName)
List<GpsPoint> myPath=GPS.GpsGetPath("myPoint");
double distance=0;
for(int i =0;i<=myPath.Count-1;i++)
{
distance+=//дистанция между myPath[i] и myPath[i+1];
}
public void PluginRun()
{
gps = new Gps(this); //this - your main class, Core inheritor
gps.LoadDataBase(Application.StartupPath + "\\plugins\\someplugin\\path.db3");
gps.onGpsPreMove += gpsPreMove;
}
public void gpsPreMove(GpsPoint point)
{
while (true)
{
while (!gps.GpsMove("A")
Thread.Sleep(100);
while (!gps.GpsMove("B")
Thread.Sleep(100);
}
You call gps.GpsMove in gpsPreMove...what's wrong?
public void PluginRun()
{
gps = new Gps(this); //this - your main class, Core inheritor
gps.LoadDataBase(Application.StartupPath + "\\plugins\\someplugin\\path.db3");
while (!gps.GpsMove("A")
Thread.Sleep(100);
while (!gps.GpsMove("B")
Thread.Sleep(100);
}
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace DefaultNameSpace{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "Plugin Author";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "AtoB";
}
//Call on plugin start
public void PluginRun()
{
gps = new Gps(this); //this - your main class, Core inheritor
gps.LoadDataBase(Application.StartupPath + "\\plugins\\route\\a.db3");
while (!gps.GpsMove("A")
Thread.Sleep(100);
while (!gps.GpsMove("B")
Thread.Sleep(100);
}
}
//Call on plugin stop
public void PluginStop()
{
}
}
С ядром ArcheAge и CryEngine. Избежать можно не сворачивая клиентС чем это связано и как можно избежать данной ситуации?
//Call on plugin start
public void PluginRun()
{
Gps gps = new Gps(this); //this - your main class, Core inheritor
gps.LoadDataBase(Application.StartupPath + "\\plugins\\TradeRuns\\TRY2F.db3");
gps.GpsMove("YourPointNameSavedInTRY2F.db3UsingTheEditor", 10);
}
This is a bug. Fixed soon. I am sorry.How to remove a name point ?
Double-click on the point.
Erase the name.
Press the OK button.
Save the file.
check out:
Download the file.....
the old name again.![]()
![]()
![]()
Error in gps minpath System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at (Object , GpsPoint )
at A.c19f34fb2d4d64127a883e788be7fa314.c30767ddca1f9c207888833aea5b5fc61(Object , GpsPoint )
at A.c284733691b3d2cd74400c62784ae6d62.c016b45b05fad36ad7cdb9f8529693609(GpsPoint , Core )