Complete.Org: Mailing Lists: Archives: freeciv-ai: January 2003:
[freeciv-ai] Re: AI diplomacy v5 (PR#2413)
Home

[freeciv-ai] Re: AI diplomacy v5 (PR#2413)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen via RT" <rt@xxxxxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: AI diplomacy v5 (PR#2413)
From: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Jan 2003 13:44:50 +0100

On Sat, Jan 04, 2003 at 01:08:42PM +0100, Thomas Strub wrote:
> On Fri, Jan 03, 2003 at 07:22:38PM -0800, Per I. Mathisen via RT wrote:
> >   - We talk like humans do. Well, almost. We're not entirely Turing
> > certified yet.
> 
> I only see things like:
> 2: (2 ai diplo) requesting support from 4 to crush 1
> in the serveroutput but nothing in the Chatline.

Ok, there are messages like that. I only didn't see them.

> >   - We have a lots less bugs now than we used to. Really. And we have lots
> > of new interesting bugs, too!
> 
> Ok:
> 2: (8 ai diplo) Against 7 we have war desire 0 and fear -70659
> 2: (8 ai diplo) demanding support from 4 to crush 5
> civserver: aiunit.c:1016: ai_military_rampage: Assertion `count >= 0'
> failed.
> Aborted (core dumped)
> freeciv@hhi214:~/freeciv-aidip$ gdb server/civserver core 
> 
> #0  0x40073911 in kill () from /lib/libc.so.6
> (gdb) bt
> #0  0x40073911 in kill () from /lib/libc.so.6
> #1  0x40073732 in raise () from /lib/libc.so.6
> #2  0x40074846 in abort () from /lib/libc.so.6
> #3  0x4006d9a9 in __assert_fail () from /lib/libc.so.6
> #4  0x080c5ed8 in ai_military_rampage (punit=0x83679b0, threshold=2) at
> aiunit.c:1016
> #5  0x080c879e in ai_military_attack (pplayer=0x815075c,
> punit=0x83679b0)
>     at aiunit.c:2095
> #6  0x080c93fe in ai_manage_military (pplayer=0x815075c,
> punit=0x83679b0)
>     at aiunit.c:2466
> #7  0x080c97e0 in ai_manage_unit (pplayer=0x815075c, punit=0x83679b0) at
> aiunit.c:2575
> #8  0x080c989f in ai_manage_units (pplayer=0x815075c) at aiunit.c:2590
> #9  0x080c1fc1 in ai_do_first_activities (pplayer=0x815075c) at
> aihand.c:430
> #10 0x0804d82f in ai_start_turn () at srv_main.c:431
> #11 0x0804fc75 in main_loop () at srv_main.c:1775

I added:

    if (!ai_unit_attack(punit, x, y)) {
      /* Died */
      return FALSE;
    } else {
      count = punit->moves_left + 1;
    }
  }

an else part.
But now:

2: (8 ai diplo) Against 5 we have war desire 459 and fear 2
2: (8 ai diplo) Against 7 we have war desire 297 and fear 1
> civserver: sanitycheck.c:243: check_units: Assertion
> `ground_unit_transporter_capacity(x, y, pplayer) >= 0' failed.
Aborted (core dumped)

#0  0x40073911 in kill () from /lib/libc.so.6
(gdb) bt 
#0  0x40073911 in kill () from /lib/libc.so.6
#1  0x40073732 in raise () from /lib/libc.so.6
#2  0x40074846 in abort () from /lib/libc.so.6
#3  0x4006d9a9 in __assert_fail () from /lib/libc.so.6
#4  0x08085df0 in check_units () at sanitycheck.c:243
#5  0x08085fd8 in sanity_check () at sanitycheck.c:289
#6  0x0804fd18 in main_loop () at srv_main.c:1809

Thomas
-- 
Thomas Strub  ***  eMail ue80@xxxxxxxxxxxxxxxxxxxxx
Nur weil das Aufzeichnen, Kopieren und Schnüffeln bei elektronischem 
Datenverkehr leichter als bei der klassischen Post ist, darf man es nicht
einfach tun.


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