quote:
Originally posted by Deon:
<STRONG>LOL?
0 and 1? In exe file? Man, you must be joking. It's not artmoney.
There're a few billions of "1", and I can tell the same about zeros.</STRONG>
It's more than just looking for instances of the numbers. Say you set your embark rectangle to the middle of an ocean. You do a scan for 0s in DF's memory. You find 212351 instances. Now you move the embark rectangle around a bit while keeping it in the ocean, and check each of those 212351 instances to see which ones are still 0. Now there's only 65692 0s. Now you move the embark rectangle to the middle of a mountain range, and check those 65692 instances, and find that there's only 3294 0s left.
Probably one of those is the boolean controlling whether or not you can embark to your currently selected rectangle (assuming of course that that's encoded as a boolean, as opposed to just being evaluated every time from other variables or methods). Set it to 1, and you should be able to embark...no guarantees that nothing else'd break, of course.
This kind of memory search and elimination is a classic way to cheat in games. A common version would be to pause the game, search for your score, unpause and score some points, search for your new score, etc. until you've found the variable that contains your score; then you set it to something different. You can do the same thing with lives, money, and pretty much anything else that's stored as a number.