What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

GPS system and GPS editor

Can anyone post here the working script sample? Can't find anywhere :(
Thanks in advance
 
is there any way to move points on the editor by shift>move or something?
 
Можно. В ближайшую неделю добавлю.
Есть какие-нибудь продвижения в данном направлении? И подскажите, как узнать дистанцию пути от текущего местоположения (или ближайшей точки gps, ближайшего графа gps) до конечной точки gps?
 
И подскажите, как узнать дистанцию пути от текущего местоположения (или ближайшей точки gps, ближайшего графа gps) до конечной точки gps?
Получи все точки пути методом gps:
Code:
public List<GpsPoint> GpsGetPath(string endPointName)
в цикле рассчитай дистанцию между точками и просуммируй. что то вроде этого:
Code:
List<GpsPoint> myPath=GPS.GpsGetPath("myPoint");
double distance=0;
for(int i =0;i<=myPath.Count-1;i++)
{
   distance+=//дистанция между myPath[i] и myPath[i+1];
}

Если тебя интересует дистанция до графа, то тут нужно делать проекцию к графу от текущего местоположения.
 
Out, how I can do to move from point A to B? Look this:

Code:
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);
}

what's wrong?
 
what's wrong?
You call gps.GpsMove in gpsPreMove...
Code:
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);
}
 
Where do i fail?

Code:
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()
       {
       }
   }

When i compile i get the error message:

14:29:22: c:\Games\Archebuddy\Plugins\route\a.cs(41,15) : error CS1518: Expected class, delegate, enum, interface, or struct
 
i am trying to import a path from one .db3 to another .db3 but i keep getting errors with weird symbols

za9WGx6.png
 
Если клиент свернут и по gps едет трактор, то при проезде через мосты трактор проваливается в текстуры и оказывается либо под мостом, либо застрявшем в мосту. При активном клиенте таких проблем нету. С чем это связано и как можно избежать данной ситуации?
 
С чем это связано и как можно избежать данной ситуации?
С ядром ArcheAge и CryEngine. Избежать можно не сворачивая клиент
 
is there a better way to delete a whole path instead of deleting points one by one?
 
Paying 50g Calleil Server for an Halcyona>Solzreed Farm cart path
 
Code:
       //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);
       }
 
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. :mad: :mad: :mad:
 
palliative, delete the point and create another (linking)
 
I keep getting the following error at one specific time in my GPS, I've even remade the GPS several times and still get the following:
PHP:
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 )
It runs fine to all the other points in the GPS file.
 
Back
Top