Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Trying to fix the long patrol bug  (Read 1160 times)

Minwaabi

  • Bay Watcher
    • View Profile
Trying to fix the long patrol bug
« on: October 15, 2012, 12:49:21 pm »

Hi,

I noticed that there is a binary patch for the "long patrol" bug.  (The bug where dwarves think they've been on patrol for years even if they have been off for months).  But, how do you apply a binary patch?

Also, does anyone know of a patch or fix for xx.34.07?  I haven't upgraded to 34.11 yet and I find starting a new fortress to always be the most daunting part of playing the game.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Trying to fix the long patrol bug
« Reply #1 on: October 15, 2012, 07:07:29 pm »

You apply a binary patch by running a hex editor, opening Dwarf Fortress.exe in it, navigating to offset specified in the patch, verifying that the bytes at that offset match the "before" vales specified in the patch, and then typing in the "after" values specified in the patch.

A given binary patch only works with one version of Dwarf Fortress - the patch for 0.34.11 will not work in any other version.

I haven't upgraded to 34.11 yet and I find starting a new fortress to always be the most daunting part of playing the game.
What does upgrading from 0.34.07 to 0.34.11 have to do with starting a new fortress?
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Minwaabi

  • Bay Watcher
    • View Profile
Re: Trying to fix the long patrol bug
« Reply #2 on: October 15, 2012, 09:33:51 pm »

Thanks for the information. 

I forgot that save games were compatible with new versions.  To be honest though, I've never been terribly successful with that.  (But I've only tried a couple of times). 

However, upon closer examination it looks like all the patches are all for linux or win32 (which I presume won't work with my 64bit windows os).

Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Trying to fix the long patrol bug
« Reply #3 on: October 15, 2012, 10:26:15 pm »

win32 (which I presume won't work with my 64bit windows os).
There is no 64-bit version of Dwarf Fortress - whether you're running 32-bit or 64-bit Windows, you are running the 32-bit Windows version of Dwarf Fortress.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Minwaabi

  • Bay Watcher
    • View Profile
Re: Trying to fix the long patrol bug
« Reply #4 on: October 15, 2012, 10:49:08 pm »

Thanks a bunch.  I've updated to 34.11 applied the patch and everything seems to be working great. 

Thanks for the patch too. 

Logged

Akjosch

  • Bay Watcher
    • View Profile
Re: Trying to fix the long patrol bug
« Reply #5 on: October 16, 2012, 12:15:45 am »

I noticed that there is a binary patch for the "long patrol" bug.

There is one? I saw that the Modest Mod has some patched EXE, but didn't see a thread here about the patches, nor could I find one. Out of curiosity, can you link to it?
Logged

Minwaabi

  • Bay Watcher
    • View Profile
Re: Trying to fix the long patrol bug
« Reply #6 on: October 16, 2012, 08:04:08 am »

There sure is!  Its in the comments for this bug on bug tracker:  0003190: "Long patrol duty".   I'll do one better than a link - I'll include them below.   They are listed as untested so use at your own risk and Quietust made them so all credit for them goes to him.  (Thanks again by the way).

for Win32 v0.34.11 SDL:

Spoiler (click to show/hide)

for v0.34.11 Linux:

Spoiler (click to show/hide)
Logged

Akjosch

  • Bay Watcher
    • View Profile
Re: Trying to fix the long patrol bug
« Reply #7 on: October 16, 2012, 10:50:00 am »

There sure is!  Its in the comments for this bug on bug tracker:  0003190: "Long patrol duty".   I'll do one better than a link - I'll include them below.   They are listed as untested so use at your own risk and Quietust made them so all credit for them goes to him.  (Thanks again by the way).

I thought there would be a thread on the forums, not a comment on one of the many bugs on the bug tracker. :)

for Win32 v0.34.11 SDL:

Spoiler (click to show/hide)

Ah, I see.

Spoiler: Technical crap (click to show/hide)
Logged