This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Xconq issues that I've seen


On Wed, 2004-05-19 at 17:50, Elijah Meeks wrote:

> Ah, okay.  A quick poll of a game shows that the three
> unit types, with AI logging on, say roughly the same
> thing:
> 
> Carrier
> Plan: Defensive. 1 task.
> Hit American Air Wing at 74,75

[snipped]

> Actually, I noticed that the units seem to cycle back
> and forth between two targets, finally settling on one
> after a long period.  I get the feeling what's
> happening is that the decision to fire is timing out
> and the AI moves to a new unit.  This is just a guess,
> though.

I believe I found the problem a few minutes ago. It appears to be in the
'fire_can_damage' function in 'task.c' (not my code!). Not only does the
function completely neglect 'fire-hit-chance' and 'fire-damage', it also
has some *SERIOUS* puke (no offense to whoever wrote it):

        /* Skip occs that we can't hit or damage. */
        if (uu_hit(unit->type, occ->type <= 0)
            || uu_damage(unit->type, occ->type <= 0))
                continue;

Unbelievable..., WTF?

Anyway, I'll be checking in a fix soon.

Elijah, I noticed that a lot of the Air Wings I was monitoring didn't
have enough ACP to follow through with the fire action (which requires
17 ACP). I haven't investigated why this might be; perhaps their ACP is
getting drained during defense..., but, if so, I would still expect the
first side to be able to use them.

Eric



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]