I want to play with the pathfinding..

I want to play with the pathfinding..

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Pithikos
Posts: 146
Joined: 26 Dec 2008, 14:26

I want to play with the pathfinding..

Post by Pithikos »

I lately got very annoyed with the pathfinding. It was pretty much the sole reason of losing in some battles.

As I have a good background in ANSI C and programming in general I was thinking to play a bit with it in case I am able to fix some issues I found. I haven't ever touched the engine before so I could make use of some brief guidelines.

I also have a few questions:
  1. Do I need to know C++ to mingle with the pathfinding?
  2. Where excactly is the source for the pathfinding?
  3. How would I go about testing changes in a fast manner? Gcc commands for just recompiling the pathfinding?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: I want to play with the pathfinding..

Post by Beherith »

1. There isnt an excessive amount of C++ in that, C should be fine provided you are familiar with OO concepts.
2. You can start from spring\rts\Sim\Path\Default\PathManager.cpp
3. CMake supports this, if you only change a few files, then you can recompile in 1-3 minutes.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: I want to play with the pathfinding..

Post by Silentwings »

Post Reply

Return to “Engine”