Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: 31.22 game breaking issue  (Read 2231 times)

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: 31.22 game breaking issue
« Reply #15 on: March 25, 2011, 12:44:37 pm »

Somehow, running the game in compatability mode fixed the problem.

AHA!!!

Windows Vista, I presume.
Logged
I like fortresses because they are still underground.

BigD145

  • Bay Watcher
    • View Profile
Re: 31.22 game breaking issue
« Reply #16 on: March 25, 2011, 01:33:48 pm »

If you have a multi core CPU, try putting DF on just one core. ctrl+alt+del, processes, right click, set affinity...
Logged

Mazonas

  • Bay Watcher
  • Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
    • View Profile
Re: 31.22 game breaking issue
« Reply #17 on: March 25, 2011, 03:32:16 pm »

Quote
Windows Vista, I presume.

Ye gods, no.  Win 7.
Logged
All is gems and pregnancy
All is gems and pregnancy
All is gems and pregnancy and apes!

ral

  • Bay Watcher
  • Praying to arm_ok
    • View Profile
    • Steam Profile
Re: 31.22 game breaking issue
« Reply #18 on: March 25, 2011, 03:46:51 pm »

Did you try rebooting just in case system memory got corrupted or something?

kaenneth

  • Bay Watcher
  • Catching fish
    • View Profile
    • Terrible Web Site
Re: 31.22 game breaking issue
« Reply #19 on: March 25, 2011, 08:00:30 pm »

I would guess it's because DF doesn't always initialize it's memory. Like Glass having Undefined values ( http://www.bay12games.com/dwarves/mantisbt/view.php?id=3071 ) and military orders persisting between games ( http://www.bay12games.com/dwarves/mantisbt/view.php?id=1056 )  there is probably memory being used during worldgen, filled with effectivly random numbers that is being used for uninitialized variables in the new embark, causing crashes.

Windows (generally*) only gives processes zero'd out memory, so the crash won't occur if you exit DF after worldgen, then re-embark. Using that memory as a pointer will cause an access violation (crash), as a string will give an empty string "", while using it as an number gives zero, which is why glass weapon traps (usually) dealt zero damage. I presume Linux/Mac's do the same.

* There are test/debug tools that fill memory with values like '0xDEADBEEF' which makes diagnosing such crashes easier. When I get home I may try running DF under some verification tools, and file bugs as needed (UI framework software API testing is my day job.)
Logged
Quote from: Karnewarrior
Jeeze. Any time I want to be sigged I may as well just post in this thread.
Quote from: Darvi
That is an application of trigonometry that never occurred to me.
Quote from: PTTG??
I'm getting cake.
Don't tell anyone that you can see their shadows. If they hear you telling anyone, if you let them know that you know of them, they will get you.
Pages: 1 [2]