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

GPS system and GPS editor

Out

Active Member
Joined
Jun 2, 2012
Messages
2,972
Reaction score
13
GPS editor and dll plugin included into ArcheBuddy release.

GPS - build into ArcheBuddy system, which calculates the shortest path to the end point and move to this point.
GpsMove command finds the nearest point (if any), and tries to calculate the route from that point to the end. If the path is built - GPS will run through the points of this path to the end point.
Every time before and after MoveTo, GPS generates two event: onGpsPreMove and onGpsPostMove.
Links between points can be two-way and one-way.

Editor gives you the ability to create and edit gps databases.

How to create or modify gps databases:
1) Start gps editor.
2) Сreate new or load existing database.
3) Start gps.dll plugin in the archebuddy. There you can see:
- Send position checkbox - this option allow you to display your character position in the gps editor.
- Auto send path checkbox - this option allow you automatically create path while your character moving.
- Add point button - adds a new point with the current coordinates of your character.
- Add path button - adds a new link.

Also in editor you can click on point and change coordinates, or select one point, and click on another and make one or two way link between.

Example of using gps database in plugins:
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)
{
	//We can do some checks here, for example check if any mobs want to kill us.
}
 
Last edited:
Is this some kind of auto-goto?

Set destination and go?
 
Please cud any one chreate function koncept of complete plugin for gps...

go from A to B and bact from B to A and loop

Many thanks, iam not coder but iam able to edit :-)))
 
go from A to B and bact from B to A and loop
Create gps base and
Code:
[while (true)
{
  while (!gps.GpsMove("A")
    Thread.Sleep(100);
  while (!gps.GpsMove("B")
    Thread.Sleep(100);
}/CODE]
 
Any chance GPS will work with Tractor on Ru servers ?
 
Есть ли возможность двигаться к точке не по её названию, а по её координатам x, y, z?
 
Если необходимо, можно добавить прямые методы для работы с координатами (будут использоваться ближайшие к координатам точки с учетом maxDist), вроде GpsMove(11,11,11) - побежит к ближайшей точке по коориданам (10,10,10)
 
Если необходимо, можно добавить прямые методы для работы с координатами (будут использоваться ближайшие к координатам точки с учетом maxDist), вроде GpsMove(11,11,11) - побежит к ближайшей точке по коориданам (10,10,10)
Было бы хорошо видеть данный функционал. А можно сделать таким образом: в GPS пути есть точка с координатами (10,10,10), мне необходимо в точку (11,11,11). Я пишу GpsMove (11,11,11), персонаж бежит по GPS пути до точки (10,10,10), а затем от неё по прямой до нужной мне точки (11,11,11)?
 
А можно сделать таким образом
Можно. В ближайшую неделю добавлю.
 
Можно. В ближайшую неделю добавлю.
Огромное спасибо. Еще хотелось бы, чтобы учли в данном функционале, если от точки старта, до конечной точки расстояние меньше, чем от точки старта до графа GPS, то не использовать GPS маршрут вообще, а бежать напрямую к конечной точке, либо добавить дополнительный параметр в GpsMove или еще одно свойство в GPS класс, где явно можно задать расстояние, при котором принудительно нужно искать GPS граф и при успешном нахождении сразу идти на него, а от него к конечной точке. Ну и если возможно, сделать движение не только к Point3D, но и к объектам SpawnObject, например GpsMove(obj) вместо GpsMove(obj.X, obj.Y, obj.Z), где obj - объект SpawnObject
 
Last edited:
А можно готовую шкурку скрипта залить ?) ну для совсем нубов в c# плз
 
Подмогите кто в курсе где здесь ошибка
Help plz where is fail ?
-
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 void PluginRun()
{
gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\ххх.db3");
gps.GpsMove("A");
}
}
}
 
Подмогите кто в курсе где здесь ошибка
Help plz where is fail ?
-
перед public void PluginRun()
напиши
Code:
private Gps gps;
 
Its work.
Вопрос при движении на тракторе можно каким либо способом минимализировать количество повопротов в лево и право когда движешся по прямой....
Я так понимаю это прописанно в самом Бадди.... хотелось бы что бы недергало так ((
 
Last edited:
Back
Top