Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Crystal Glass Fix (0.31.25 SDL/legacy vers. only)  (Read 1694 times)

kenpoaj

  • Bay Watcher
    • View Profile
Crystal Glass Fix (0.31.25 SDL/legacy vers. only)
« on: August 20, 2011, 02:29:17 pm »

I edited Dwarf Fortress.exe with a hex editor and saved the modified version on DFFD.
I just followed the advice of Quietust on this bugtracker:
http://www.bay12games.com/dwarves/mantisbt/view.php?id=1498#c17892

For those that are interested, the updated Dwarf Fortress.exe can be downloaded here:

WINDOWS SDL: http://dffd.wimbli.com/file.php?id=4865
WINDOWS LEGACY: http://dffd.wimbli.com/file.php?id=4886

Simply Replace and enjoy!
« Last Edit: August 24, 2011, 09:52:32 pm by kenpoaj »
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

narhiril

  • Bay Watcher
  • [DUTY_BOUND]
    • View Profile
Re: Crystal Glass Fix
« Reply #1 on: August 21, 2011, 12:54:24 am »

Mind if I use this for the pre-packaged version of my mod?  Credit of course will be given to both you and Quietust.

kenpoaj

  • Bay Watcher
    • View Profile
Re: Crystal Glass Fix
« Reply #2 on: August 21, 2011, 07:22:41 pm »

I don't mind at all. Give more credit to Quietust though, he did all the hard work.  :P
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

arclance

  • Bay Watcher
    • View Profile
Re: Crystal Glass Fix
« Reply #3 on: August 21, 2011, 07:49:35 pm »

You should specify that this is only for the Windows 0.31.25 SDL version.
Quote from: Quietust
For the Win32 SDL 0.31.25 build, the following binary patch fixes crystal glass production:
0036AE87: 7C B8 32 00 00 00 -> 78 0F BF 47 7C 90
0036AE9B: 0F BF 4F 78 85 C9 78 2D -> B9 32 00 00 00 90 90 90
Unfortunately this does not help those of us using the linux version.
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Crystal Glass Fix
« Reply #4 on: August 21, 2011, 08:13:19 pm »

Linux users like me can use wine, but I'm not sure how practical it would be.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

arclance

  • Bay Watcher
    • View Profile
Re: Crystal Glass Fix
« Reply #5 on: August 21, 2011, 11:23:26 pm »

I have not had much luck with wine.  Most things I use only seem to half work or don't work at all.  I have to keep a windows install for when I use those programs.
I never tried running Dwarf Fortress in wine because I got all the utilities I use (other than Dfusion which I rarely use) to work on Ubuntu.  I also get slightly higher FPS on Ubuntu.
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

kenpoaj

  • Bay Watcher
    • View Profile
Re: Crystal Glass Fix (0.31.25 SDL vers. only)
« Reply #6 on: August 22, 2011, 05:37:45 pm »

I forgot about Linux. I feel so ashamed  :-[
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

Loyal

  • Bay Watcher
  • [PREFSTRING:rogueish looks]
    • View Profile
Re: Crystal Glass Fix (0.31.25 SDL vers. only)
« Reply #7 on: August 22, 2011, 07:10:39 pm »

Pretty awesome. I've got a fort with a ton of rock crystal and it's so disappointing that I can't do anything with it. ...I don't have to regen any worlds for this, do I?
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Crystal Glass Fix (0.31.25 SDL vers. only)
« Reply #8 on: August 22, 2011, 07:19:46 pm »

No regen is required.

Also, I've posted a patch for the Win32 Legacy version in the bug report - the code was exactly the same, just at a different address.

In order to make a patch for the Linux and MacOS versions, I'd need a reasonably detailed disassembly.
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.

kenpoaj

  • Bay Watcher
    • View Profile
Re: Crystal Glass Fix (0.31.25 SDL vers. only)
« Reply #9 on: August 23, 2011, 10:51:42 pm »

I'll download, patch and upload the legacy version tomorrow then.

Quietust, you're pretty awesome! Thanks again.
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: Crystal Glass Fix (0.31.25 SDL vers. only)
« Reply #10 on: August 24, 2011, 02:29:01 am »

Nice work guys.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

kenpoaj

  • Bay Watcher
    • View Profile
Re: Crystal Glass Fix (0.31.25 SDL/legacy vers. only)
« Reply #11 on: August 24, 2011, 09:53:26 pm »

Added legacy version. Didn't test it though.
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.