Tutorial on creating maphack for Warcraft 3 (2) removing the fog of war

Source: Internet
Author: User
Tags home screen

 

The tutorial for creating maphack in Warcraft 3 is transferred from the fruit Forest

 

Http://alzzl.spaces.live.com/blog/cns! C1ff77e000059705d! 281. Entry

 

Sorry, I will try again to turn out the goolin article... Please forgive me for being passionate...

The content of this article is completely original, if you need to reprint please use the following reference notice, thank you http://alzzl.spaces.live.com/blog/cns! C1ff77e000059705d! 281. Trak or insert site URL: http://alzzl.spaces.live.com/
  If the document goes smoothly, the following outlines will be updated:
Creating a maphack tutorial for Warcraft 3 (1) Displaying hostile units
Tutorial on creating maphack for Warcraft 3 (2) removing the fog of war
Tutorial on creating maphack for Warcraft 3 (3) removing the fog of war on small maps
Tutorial on creating a maphack for Warcraft 3 (4) Gaining the view of a competitor
Tutorial on creating maphack in Warcraft 3 (v )..... Sample Code: http://user.iriverchina.com/3470/WC3MaphackDEMO.rar last learned the basic method of finding memory addresses by learning the chaotic tutorial, and successfully showed the hostile unit, unfortunately, his MH tutorial has not been updated since it was released. It is rumored that shadowfrench decided not to create a new maphack for warcraft3 for various reasons, and will publish the MH source code he made later. In fact, the MH source code is nothing more than a memory patch, it doesn't matter if you don't publish it. What's important is how the memory addresses that need to be modified are found. After repeated experiments, I found a way to remove the fog of war, unfortunately, by tracking the MH of shadowfrench, I found that he and I did not seem to use the same idea (the modified memory address is different). I still cannot infer his idea. The following describes how to remove the fog of war.
Speculation principle:The fog of war should be a block. It should be a two-dimensional array in the memory, covering the entire map. Its value may be the alpha value of the fog. When we have the control of a unit's field of view, this unit is the center of the circle, and calculates a circle Based on the radius of the unit's field of view, the values of array elements within the circle range will be changed to not-displayed. If the value of this element is really Alpha and is 1 byte length, so this is the value of 0, or 255. Implementation Method:
1. Select a region as the search target. You can find a memorable place, such as a grass
2. Open your unit and make that area covered by the fog of war
3. Search For unknow initial value.
4. Move your unit to make that area visible
5. Search for 0 (0 indicates that the alpha value of this fog is transparent)
6. Open your unit and make the area covered by the fog of war
7. Search 128 again (128 for this translucent block, that is, it has been explored. Now it is covered by the fog because there is no field of vision, and 255 for those that have not been explored, all black)
8. Repeated 4 ~ Step 7: narrow down the search scope. Of course, it is best to search several unchanged values at the same time to narrow down the search scope.
9. Finally, you will find a group of addresses, many of which are continuous. This is a small part of the array mentioned above.
10. If any address is locked to 0, you will find the effect. The lock in the center is visible and the surrounding area is black.
11. find the statement to write to it and find this sentence 6f406b68-880c17-mov [EDI + ECx]. cl seems that wc3 writes the fog value to the array through the CL register and looks up several lines, I found this sentence 6f406b56-8a89bc2c836f-mov Cl, [ECx + 6f832cbc]. It's easy. As long as the CL value is 0, it's invisible. Change it to mov Cl, 0, switch back to the game to see if the war fog on the home screen is all gone!
After the modification is completed, although the fog of war is gone, the hostile units out of the field of view will not be displayed,

Isn't this the last article changed? Change it to the final result.

So far, the basic functions of MH on the home screen have been completed. Please wait for the next article and hope to pay more attention to the nest of the fruit forest. Thank you. It may be because the predecessors of goolin don't want to play MH, and the subsequent articles won't be available...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.