I dug this up from an older forum post:
One of the biggest things I need done before alpha is sorting out my diff patch to enable water building. If anyone has experience creating dif files from IDA, I'd really love some help. Details in spoiler -
[spoiler]Two things need to be changed - F7 C1 00 00 20 00 75 1C F6 C1
A9 00 00 20 00 75 19 A8 01
Changed to:
F7 C1 00 00 20 00 74 1C F6 C1
A9 00 00 20 00 74 19 A8 01
Basically just escaping the loop for checking water height, and instead of returning if not zero, return if zero. I have tested, and this has no ill effects that I have seen, other than voiding all the water in any tile of a building when its built, which can be a problem with water flowing over the building as soon as its built.
Still, I created this in IDA:
Dwarf Fortress.exe
00E4454E: 75 74
00E73033: 75 74
which was the offset that IDA gave those two AoBs, but the patcher won't accept that dif file, so I don't know what I did wrong.
Eko, who is inactive, was working on a water-based civ and managed to allow them to build workshops in water. But he never uploaded anything... I was wondering if someone can decipher the stuff above. Seems to be a patch for the DF.exe in hex format; as far as I know dfhack could add those, but require a plugin in C to be written first (?)
On the same topic: Does anyone know if it's possible to make a binpatch that allows amphibious/aquatic civ-members to path through water? Currently they only accept 3/7, everything else is "dangerous terrain", even if the creature can breathe underwater.