Complete.Org: Mailing Lists: Archives: freeciv-ai: November 2004:
[freeciv-ai] Re: [Freeciv-Dev] Re: (PR#10555) Barbarians building wonder
Home

[freeciv-ai] Re: [Freeciv-Dev] Re: (PR#10555) Barbarians building wonder

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: dj67@xxxxxxxxxxxxxxxx
Subject: [freeciv-ai] Re: [Freeciv-Dev] Re: (PR#10555) Barbarians building wonders
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Sun, 21 Nov 2004 07:13:46 -0800
Reply-to: rt@xxxxxxxxxxx

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

Per I. Mathisen wrote:
> 
> On Sat, 16 Oct 2004, dj67@xxxxxxxxxxxxxxxx wrote:
> 
>>I don't know if this bug was related by someone else, but while playing with
>>freeciv V2.0.0 (the beta dowloadable version) I saw barbarian capture a AI
>>city, then as an other IA started to do the king richard wonder, the
>>barbarian city started the wonder too...
> 
> 
> This should be impossible. Barbarians should never produce wonders. Can
> you post a savegame that reproduces the AI doing this?

  I got "The Barbarians have started building Great Library in At Taif" 
message, reproducible from savegame.
  I do have lots of experimental patches in my freeciv binary and 
rulesets are... not default. This should not affect this bug as such, 
but that savegame is useless without those patches & rulesets.


Breakpoint 1, change_build_target (pplayer=0x5e7da8, pcity=0x106f5070,
     target=47, is_unit=false, event=E_IMP_AUTO)
     at ../../freeciv-patch/server/citytools.c:1876
1876        notify_player_ex(NULL, pcity->tile, E_WONDER_STARTED,
(gdb) bt full
#0  change_build_target (pplayer=0x5e7da8, pcity=0x106f5070, target=47,
     is_unit=false, event=E_IMP_AUTO)
     at ../../freeciv-patch/server/citytools.c:1876
         is_unit = false
         name = 0x637254 "Great Library"
         source = 0x524738 ""
#1  0x004b5307 in advisor_choose_build (pplayer=0x5e7da8, pcity=0x106f5070)
     at ../../freeciv-patch/server/cityturn.c:582
         i = 47
         choice = {choice = 200, want = 0, type = 0, need_boat = true}
#2  0x004b9136 in transfer_city (ptaker=0x5e7da8, pcity=0x106f5070,
     kill_outside=0, transfer_unit_verbose=true, resolve_stack=true, 
raze=true)
     at ../../freeciv-patch/server/citytools.c:899
         transfer_unit_verbose = true
         resolve_stack = true
         raze = true
         i = 4
         old_city_units = {list = {nelements = 0, head_link = 0x0,
     tail_link = 0x0}}
         pgiver = (struct player *) 0x5e4ba8
         old_trade_routes = {0, 0, 0, 0}
         had_palace = false
         old_city_name = "At 
Taif\000\000\000\000\000\r\eA\000¨}^\000\002\000\000
\000(ë\"\000ù\036H"
#3  0x004ba534 in handle_unit_enter_city (punit=0x106fdf50, 
pcity=0x106f5070)
     at ../../freeciv-patch/server/citytools.c:1292
         do_civil_war = false
         coins = 2
         pplayer = (struct player *) 0x5e7da8
         cplayer = (struct player *) 0x5e4ba8
#4  0x004af3a8 in handle_unit_move_consequences (punit=0x106fdf50,
     src_tile=0x1074bfe0, dst_tile=0x1074a5a0)
     at ../../freeciv-patch/server/unittools.c:2502
         fromcity = (struct city *) 0x0
         tocity = (struct city *) 0x106f5070
         homecity = (struct city *) 0x0
         pplayer = (struct player *) 0x5e7da8
         senthome = false
#5  0x004afe4f in move_unit (punit=0x106fdf50, pdesttile=0x1074a5a0,
     move_cost=3) at ../../freeciv-patch/server/unittools.c:2766
         pplayer = (struct player *) 0x5e7da8
         psrctile = (struct tile *) 0x1074bfe0
         pcity = (struct city *) 0x106f5070
         ptransporter = (struct unit *) 0x0
#6  0x004c1927 in handle_unit_move_request (punit=0x106fdf50,
     pdesttile=0x1074a5a0, igzoc=false, move_diplomat_city=false)
     at ../../freeciv-patch/server/unithand.c:1133
         move_cost = 3
         igzoc = false
         move_diplomat_city = false
         pplayer = (struct player *) 0x5e7da8
         pcity = (struct city *) 0x106f5070
#7  0x004e21cd in ai_unit_attack (punit=0x106fdf50, ptile=0x1074a5a0)
     at ../../freeciv-patch/ai/aitools.c:481
         sanity = 1350
         alive = false
#8  0x004e1243 in ai_unit_execute_path (punit=0x106fdf50, path=0x106fda60)
     at ../../freeciv-patch/ai/aitools.c:124
         ptile = (struct tile *) 0x1074a5a0
         id = 1350
         i = 1
#9  0x004e51b6 in ai_military_rampage (punit=0x106fdf50, thresh_adj=1,
     thresh_move=1) at ../../freeciv-patch/ai/aiunit.c:754
         count = 3
         path = (struct pf_path *) 0x106fda60
#10 0x004e8165 in ai_military_attack (pplayer=0x5e7da8, punit=0x106fdf50)
     at ../../freeciv-patch/ai/aiunit.c:1769
         dest_tile = (struct tile *) 0x61118080
         id = 1350
         ct = 10
         pcity = (struct city *) 0x0
#11 0x004e8ccf in ai_manage_military (pplayer=0x5e7da8, punit=0x106fdf50)
     at ../../freeciv-patch/ai/aiunit.c:2043
         id = 1350
#12 0x004e92a0 in ai_manage_unit (pplayer=0x5e7da8, punit=0x106fdf50)
     at ../../freeciv-patch/ai/aiunit.c:2182
         bodyguard = (struct unit *) 0x0
#13 0x004e93ed in ai_manage_units (pplayer=0x5e7da8)
     at ../../freeciv-patch/ai/aiunit.c:2203
         punit = (struct unit *) 0x106fdf50
         _ids = (int (*)[0]) 0x22edc8
         _i = 13
         _size = 16
         _size = 275767120
#14 0x004d56ae in ai_do_first_activities (pplayer=0x5e7da8)
     at ../../freeciv-patch/ai/aihand.c:368
No locals.
#15 0x004673fe in ai_start_turn () at 
../../freeciv-patch/server/srv_main.c:466
         pplayer = (struct player *) 0x5e7da8
         i = 4
#16 0x00467684 in begin_phase (is_new_phase=true)
     at ../../freeciv-patch/server/srv_main.c:539
         is_new_phase = true
         pplayer = (struct player *) 0x5ee1a8
         PI_p_itr = 11
         pplayer = (struct player *) 0x5ee1a8
         PI_p_itr = 11
         pplayer = (struct player *) 0x5ee1a8
         i = 11
         pplayer = (struct player *) 0x5ee1a8
         PI_p_itr = 11
#17 0x004694e2 in main_loop () at ../../freeciv-patch/server/srv_main.c:1530
         eot_timer = (struct timer *) 0x1015d548
         save_counter = 1
         is_new_turn = true
#18 0x00469e2b in srv_loop () at ../../freeciv-patch/server/srv_main.c:1883
         i = 78
         start_nations = false
#19 0x00469787 in srv_main () at ../../freeciv-patch/server/srv_main.c:1649
No locals.
#20 0x004018cc in main (argc=3, argv=0x10102150)
     at ../../freeciv-patch/server/civserver.c:196
         inx = 3
         showhelp = false
         showvers = false
         option = 0x22efc0 "jjv-Nov04+1782.sav.gz"


  - Caz





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