Hi all,
I've found the code that deals with turning on and off the fog of war. Fog of war allows you to see what the other opponent is doing (basically reveals an unexplored map).
Unlike other games such as Age of Mythology, the fog of war enable/disable is rather complicated.
I can't just write a simple .DLL injection, and call the fog of war function
I've attached the diagram to this post.
The most important part of the fog of war enable is at the bottom of the first box at the top:
Code:
"015A624C | 75 19 | 015A624C | 75 19 | jne aok hd.15A6267 |"
If the instruction
Code:
cmp word ptr ds:[eax+54A], cx
results in the ZF (Zero Flag) being set, then the JNE instruction above will get taken.
THE RIGHT branch disables the fog of war. THE LEFT branch enables the fog of war.
Where do I go from here in order to develop a usable map hack?