Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] (PR#7329) Bug in orders patch?
Home

[Freeciv-Dev] (PR#7329) Bug in orders patch?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7329) Bug in orders patch?
From: "mateusz stefek" <matusik_s@xxxxx>
Date: Mon, 26 Jan 2004 23:36:42 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7329 >

I ai-toggled myself and pressed [Turn done]

Mieszko I jest teraz kontrolowany przez AI.
Gra: Gracz 'Mieszko I' ma teraz poziom trudności AI 'hard'.
> civserver: gotohand.c:1282: do_unit_goto: Assertion `!unit_has_orders(punit)'
failed.
Aborted (core dumped)

...
back
#0  0x400ea481 in kill () from /lib/i686/libc.so.6
(gdb) back
#0  0x400ea481 in kill () from /lib/i686/libc.so.6
#1  0x400ea215 in raise () from /lib/i686/libc.so.6
#2  0x400eb76b in abort () from /lib/i686/libc.so.6
#3  0x400e3745 in __assert_fail () from /lib/i686/libc.so.6
#4  0x08074134 in do_unit_goto (punit=0x859b248, restriction=GOTO_MOVE_ANY,
    trigger_special_ability=false) at gotohand.c:1282
#5  0x08117dd7 in ai_unit_goto (punit=0x859b248, x=40, y=6) at aitools.c:409
#6  0x081179f2 in ai_gothere (pplayer=0x824eee8, punit=0x86066c0, dest_x=39,
    dest_y=7) at aitools.c:344
#7  0x0811e2ab in ai_military_attack (pplayer=0x824eee8, punit=0x86066c0)
    at aiunit.c:2091
#8  0x0811f4c7 in ai_manage_military (pplayer=0x824eee8, punit=0x86066c0)
    at aiunit.c:2515
#9  0x0811fa68 in ai_manage_unit (pplayer=0x824eee8, punit=0x86066c0)
    at aiunit.c:2644
#10 0x0811fb62 in ai_manage_units (pplayer=0x824eee8) at aiunit.c:2659
#11 0x08115cd5 in ai_do_first_activities (pplayer=0x824eee8) at aihand.c:303
#12 0x0804ed6c in ai_start_turn () at srv_main.c:433
#13 0x08050a57 in main_loop () at srv_main.c:1334
#14 0x08051526 in srv_loop () at srv_main.c:1701
#15 0x08050e99 in srv_main () at srv_main.c:1478
#16 0x0804a579 in main (argc=3, argv=0xbffff7a4) at civserver.c:157
(gdb) select 4
(gdb) print punit
$1 = (struct unit *) 0x859b248

(gdb) print *punit
$2 = {type = 43, id = 699, owner = 0, x = 62, y = 23, homecity = 157,
  moves_left = 0, hp = 30, veteran = 0, unhappiness = 0, upkeep = 0,
  upkeep_food = 0, upkeep_gold = 0, fuel = 0, bribe_cost = -1, ai = {
    control = false, ai_role = AIUNIT_NONE, ferryboat = 0, passenger = 567,
    bodyguard = 0, charge = 0}, activity = ACTIVITY_GOTO, goto_dest = {x = 40,
    y = 6}, activity_count = 0, activity_target = S_NO_SPECIAL,
  focus_status = FOCUS_AVAIL, ord_map = 0, ord_city = 0, foul = false,
  debug = false, moved = true, paradropped = false, connecting = false,
  done_moving = true, transported_by = -1, occupy = 0, has_orders = true,
  orders = {length = 35, index = 15, repeat = false, vigilant = false,
    list = 0x85a2850}}
(gdb) print unit_types[43]
$3 = {name = "Transportowiec", '\0' <repeats 17 times>,
  name_orig = "Transport", '\0' <repeats 22 times>,


Looks like bug in orders patch

--
mateusz





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