[CF-Devel] BUG, probably concerning friendly_objects

Mark Wedel mwedel at scruz.net
Tue Jan 16 22:26:28 CST 2001


Andreas Vogl wrote:
>
     
     
     >
     
      When I enter a map for the first time, sometimes the
     
     >
     
      monsters don't notice me. They don't attack, they're
     
     >
     
      not even moving.
     
     >
     
      When I log out and re-enter again they usually
     
     >
     
      start attacking. Weird...
     
     
 What portion of the time is 'sometimes'?  10%?  90%?

>
     
     
     >
     
      The reason might be that the friendly object "player"
     
     >
     
      is not treated right, maybe it's even missing in the
     
     >
     
      list of friendly objects when this happens.
     
     >
     
      I tried as DM "dumpfriendlyobjects" on such a map,
     
     >
     
      and I couldn't find anything in the logs.
     
     
 Does that mean you couldn't find any output from that command, or does it mean
you saw nothing unusual?

>
     
     
     >
     
      Looks like this bug appeared after checkin of Mark's
     
     >
     
      patch concerning friendly_objects. But it could well
     
     >
     
      be that the bug existed before and has only been
     
     >
     
      "triggered" by one of the changes.
     
     >
     
      I can remember similar things happening before, but it
     
     >
     
      used to be much more rare. - Any ideas?
     
     
 To track this down, you may want to look at the enemy value in move_monster
(server/monster.c - enemy is initialized at the top of the function).

 So what its value is if anything.  Its possible its finding some other friendly
on the map to kill.

    
    


More information about the crossfire mailing list