Wow, why do we not have this! - Page 2

Wow, why do we not have this!

Requests for features in the spring code.

Moderator: Moderators

Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Wow, why do we not have this!

Post by Super Mario »

hoijui wrote:in spring 0.83, pathfinder will be connected to spring through a lightweight interface only. this means, it will be easy to write different implementations, and plug them in. of course that is not sync save. it is meant for making the code-base cleaner and more importantly, making it easy to write and test different implementations.
short: you can write all your ideas in C/C++ then and test them easily.
Is it possible for a mod to support a certain implementation and not the others?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Wow, why do we not have this!

Post by aegis »

pathfinder is still engine-side, nothing to do with specific mods
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Re: Wow, why do we not have this!

Post by Hobo Joe »

The problem is straight lines. You can give a move order diagonal from a units position, and they'll go in a straight line until their move location is about 45 degrees from their current position. The amount varies but the point is that they don't just go from point a to point b, they take a big detour. This is extremely annoying when you give a move order that doesn't clip across the attack range of a tower, but the units will move in a straight line(north/south/east/west) for a distance before going towards the move location, which results in them traveling into the attack range of said tower.

Another very annoying result of this is units traveling single-file, annoying enough by itself, but made much worse and much more noticeable when you get a small fast unit(i.e. flash) stuck behind a big slow unit(i.e. goliath) and it won't pass because it's staying in the grid line provided by the pathfinder.


But like everyone else I'm not a programmer and I don't have the know-how to even begin to understand WHY it works like this, much less how to fix it.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Wow, why do we not have this!

Post by hoijui »

Super Mario wrote:Is it possible for a mod to support a certain implementation and not the others?
IF we will have multiple implementations one day, it might be possible to include multiple implementations in the engine, and let the mod specify which one to use. usually though, one of them will be superior then the other for .. most likely all mods, and most likely, that will be the (only) one included in the engine.
a very unlikely scenario is, that the mod supplies the implementation its self (except maybe, some part of it, in Lua), as this is technically very ugly and troublesome, in many ways.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Wow, why do we not have this!

Post by Neddie »

I believe Aegis and I have talked about multiple pathfinder selection in the past, and I'm sure zwzsg or KDR and I did at some point. Just felt it relevant to mention.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Wow, why do we not have this!

Post by PicassoCT »

How about every unit having a circular piece of path surrounding it, at small distance, and once those two splines intersect, the faster unit is guided around the slower unit by adding the pathpiece onto the road of the pathfinder..its basically avoiding collisions by supersizing the particles, keeping a manouverable distance at all times and it suspiciously looks like flowfield- guess its performancesucker the purest, but if you can kick collissiondetection for it, hey,
nobody notices the trouble you were in, nobody knows but cheat_us

http://www.youtube.com/watch?v=6t6wxfalQvY


http://www.youtube.com/watch?v=596nau-m3Fs
Post Reply

Return to “Feature Requests”