[Plugin] PathFinder
#1

Inspired by the GPS-Plugin by Gamer_Z, I decided to write my own plugin because he doesn't continue development and some Features I needed are missing. I'm writing this to calculate Routes for NPCs by the way.

My Goal is to Create a plugin that can read Ped and Car Nodes from a dnf-File created with "Aschratts Path Editor" so the original GTA SA Nodes can be used. You will be able to choose which type of Node (Car or Ped) to use on calculation.
I'm going to concentrate on Linux first because most Servers, including mine, run on Linux. When all the Features are ready I'm going to make a Windows Version. You are (of course) free to do it yourself. The source will be available on GitHub.

I hope someone besides me is going to have a use for this and I'm looking forward to release the first Version.

UPDATE: I created a repository on Github: https://github.com/jeanluc162/PathFinder
Reply
#2

When you will free it?, it is great idea.
Reply
#3

Quote:
Originally Posted by Jastak
View Post
When you will free it?, it is great idea.
I want the following functions ready and tested before my first release:
-Import of Connections and Nodes from a File
-Threaded Calculation
-Callback on finished Calculation

I hope to be ready with this by the end of this month, but I can't promise since this is my first plugin and I don't know over what Kind of Problems I may stumble.
Reply
#4

Why just not fork Gamer_Z's GPS plugin and implement features you need?
Reply
#5

Quote:
Originally Posted by jeanluc162
View Post
Inspired by the GPS-Plugin by Gamer_Z, I decided to write my own plugin because he doesn't continue development and some Features I needed are missing. I'm writing this to calculate Routes for NPCs by the way.

My Goal is to Create a plugin that can read Ped and Car Nodes from a dnf-File created with "Aschratts Path Editor" so the original GTA SA Nodes can be used. You will be able to choose which type of Node (Car or Ped) to use on calculation.
I'm going to concentrate on Linux first because most Servers, including mine, run on Linux. When all the Features are ready I'm going to make a Windows Version. You are (of course) free to do it yourself. The source will be available on GitHub.

I hope someone besides me is going to have a use for this and I'm looking forward to release the first Version.

UPDATE: I created a repository on Github: https://github.com/jeanluc162/PathFinder
That idea is working perfectly fine with the nodes from Gamer_Z plugin already.
https://sampforum.blast.hk/showthread.php?tid=587634
We dont need any update from the plugin.
Reply
#6

Quote:
Originally Posted by jeanluc162
View Post
I'm going to concentrate on Linux first because most Servers, including mine, run on Linux. When all the Features are ready I'm going to make a Windows Version. You are (of course) free to do it yourself. The source will be available on GitHub.
Assuming C++, the code should be cross compatible, so I fail to see the problem here. I've never written a plugin before, so perhaps I'm missing something?
Reply
#7

I think you should expand upon the current GPS plugin created by Gamer_Z and address the bugs which are in the plugin. The code is quite bad and poorly programmed, maybe you can look into that. I've also noticed some crashes within the plugin too.

I think the basic fundamentals of the plugin are there, but they it just needs fixing.
Reply
#8

Quote:
Originally Posted by KyleSmith
View Post
I think you should expand upon the current GPS plugin created by Gamer_Z and address the bugs which are in the plugin. The code is quite bad and poorly programmed, maybe you can look into that. I've also noticed some crashes within the plugin too.

I think the basic fundamentals of the plugin are there, but they it just needs fixing.
I don't see any problems with it. Using it since 2 years without any crashes or problems with route finding, which is absolutely quick enough for this.
Reply
#9

Quote:
Originally Posted by NaS
View Post
I don't see any problems with it. Using it since 2 years without any crashes or problems with route finding, which is absolutely quick enough for this.
I used the plugin for 3 days, and whenever 2+ paths are calculated at the same moment, the server crashes.
Already reported the bug on his thread - no fixes.
Reply
#10

Quote:
Originally Posted by Ralfie
View Post
I used the plugin for 3 days, and whenever 2+ paths are calculated at the same moment, the server crashes.
Already reported the bug on his thread - no fixes.
Changed around the order of plugins that load?
Also do you use it with a new streamer plugin version?
Reply
#11

Well, I (of Course) already looked through the Code of the Plugin, because expanding it was my first Idea. But while reading the Code I decided that with Introducing two Node types and a much higher amount of nodes it would be neccessary to restructure a huge part of the plugin. So I came to the conclusion that i will reach my Goal faster by programming from scratch. I think I should add that I'm only 17 and no professional programmer so understanding Code written by someone else is quite hard for me, especially with as few comments as in Gamer_Zs plugin.
And please, don't turn this into a Support thread for Gamer_Zs plugin.
Reply
#12

Quote:
Originally Posted by Vince
Посмотреть сообщение
Assuming C++, the code should be cross compatible, so I fail to see the problem here. I've never written a plugin before, so perhaps I'm missing something?
Yeah it should be, and I'm trying to only use functions that are available on all platforms. What I meant to say is that I wont build for Windows until the final Version, so Problems may occur.
Reply
#13

Quote:
Originally Posted by jeanluc162
Посмотреть сообщение
Well, I (of Course) already looked through the Code of the Plugin, because expanding it was my first Idea. But while reading the Code I decided that with Introducing two Node types and a much higher amount of nodes it would be neccessary to restructure a huge part of the plugin. So I came to the conclusion that i will reach my Goal faster by programming from scratch. I think I should add that I'm only 17 and no professional programmer so understanding Code written by someone else is quite hard for me, especially with as few comments as in Gamer_Zs plugin.
And please, don't turn this into a Support thread for Gamer_Zs plugin.
Alright, I was just wondering

I wish you good luck, if you need some ideas or help with the ped nodes you can message me.
Reply
#14

Quote:
Originally Posted by NaS
Посмотреть сообщение
Alright, I was just wondering

I wish you good luck, if you need some ideas or help with the ped nodes you can message me.
Yups! good luck dont get us all wrong ofcourse we love to see people doing crazy (But good) things like these to expand the things that can be done in sa-mp.
Reply
#15

I would really like to see someone develop some algorithms using ColAndreas for path finding.
Reply
#16

Quote:
Originally Posted by NaS
Посмотреть сообщение
Alright, I was just wondering

I wish you good luck, if you need some ideas or help with the ped nodes you can message me.
Thanks man.
I always wanted to ask for help in this forum because the Wiki-Article about Nodes is very unclear when it comes to how they are linked. But because my account needed very much time to be activated, I figured it out by myself after recognizing that the link ID doesn't ALWAYS goes up by two. But if i face Problems, i will ask. Thank you very much.
Reply
#17

Good evening everyone,
I just wanted to let you know that I just finished the file-reading part. I still have to link the Nodes, though. After that I'm going to do the first tests to ensure everything is working fine. I'm looking forward to finish the first version with basic calculation function soon.

If anyone wants to have an early look on the Code and maybe give me some feedback: You can find the Github-Link on my first post.
Reply
#18

Edit: Fail..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)