Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Store Owned Item?  (Read 728 times)

Sergius

  • Bay Watcher
    • View Profile
Store Owned Item?
« on: January 18, 2007, 09:30:00 pm »

For some reasons, my dwarfs feel the need to go to the upper left corner of the whole map (the part with the trees and the big bad elephants), when they reach it (if they survive the trip), they take off a piece of their clothes that is in tatters, and go back to my fortress.

Very odd behaviour.

By the way, been playing since last October, only just now registered to the forums. This game rocks so much  :D, Congrats to Toady for a wonderful job, I hope it only gets better and better.

Logged

OldMiner

  • Bay Watcher
    • View Profile
Re: Store Owned Item?
« Reply #1 on: January 19, 2007, 01:52:00 am »

Imma gonna say this is one of those known bug things.  Afraid this has been a running problem for a few versions.  Some people report that they have had issues with dwarves also walking to the top left corner and picking up non-existent weapons and such.

I've seen bugs like this before when the head of a linked list gets removed improperly, and the pointers get all messed up.  Valgrind and C++ standard library containers have saved me from having similar issues for a couple years, though, thank heavens.  It's a pain fixing simple list and off by one errors that aren't easily reproducible.  Too bad Dwarf Fort doesn't compile under Linux so valgrind could be used.  Then again, imagine how slowly it'd run!  Valgrind slows everything down by 40x in exchange for its x86 on x86 emulation.  Perhaps not wise unless combined with some kind of unit testing...  Veering back on topic...

Possibly related: I was looking at the error log today, and I noticed I had several "Munchy in top left corner" messages in there.  Is that error message there to cathc problems such as these?

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Store Owned Item?
« Reply #2 on: January 19, 2007, 08:57:00 pm »

Yeah, the message is there to notify that it is happening, but it just notices it after the damage has been done.  I have a memory leak detector that works fairly well -- the remaining mem leaks people have commented on aren't crucial, so far as I can tell, so I haven't tackled them yet.

In this case, the item being at the top left comes from the goal location being zeroed during equipment pickup after a path-find failure.  It might be something related for food.  I haven't gotten a chance to fix it yet.

Logged
The Toad, a Natural Resource:  Preserve yours today!