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:
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: