glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Some feature requests & discussion


From: Martin Nyffenegger
Subject: Re: [glob2-devel] Some feature requests & discussion
Date: Thu, 20 Jan 2005 06:55:51 +0100


Le 20 janv. 05, à 01:35, Gabriel Walt a écrit :


Well, please try to understand how the system work before saying things can be solved by easy hacks. Actually there is one gradient for all guard areas
of one team and the unit just do a gradient descent. If you want to do
per-guard areas, that's much more memory, but also a clustering algorithm, not very difficult but takes human times to do and computer time to run, then you need to find some sort of score otherwise warriors will always walk between areas. So you can see, that's not so easy as a "quick hack".

And you please try to understand what i explained, i know very well that there is only one area and that you don't consider zones that are not connected as
different zones! I didnt speak about multiple areas but probably wasnt
clear... What i suggested was to move a warrior to a more or less randomly
chosen part of the guard area - not just move it to the nearest one.

Something like if warrior didnt find a war flag or upgrade where to go and thus wants to go to a guard area, then not simply go to the nearest "sprite" of the guard area, but consider all the "sprites" of guard areas within a
certain range

Diz ? Take a look at what a gradient is ! The you will see that what you propose is not possible. For a unit to go to a guard area, it doesn't look for the nearest sprite; it doesn't care about that. It only walks down a gradient what will irremediably bring it to the nearest gradient. If you want it to find another guard area, you will have to have an algorithm scanning the gradient for another place (or force the globule in the opposite direction to where a guard area is) which is time consuming. So except pushing the globule in a random direction by hoping that after a certain amount of time it will reach another guard area than the nearest one, there's nothing of a quick hack you can do. Sorry




reply via email to

[Prev in Thread] Current Thread [Next in Thread]