Red Alert 2 Modifier principle Encyclopedia (iii)

Source: Internet
Author: User

Continue the last time, the last given the full map, is not able to see through the Allied Rift generator, and some of the modification of the full map can be seen through. Its principle is to modify a critical jump in judging the fog. Not much to say here, I feel not elegant enough- can change the code less code. Of course, he also has his own advantages-see through the crack generator. Perhaps in the final supplement, plus it.

Of course, if you look up some key strings in advance, you can quickly navigate to the key location without the need to use the upgrade box as I did.

(vii) Additional bombs--probably the world's premiere

The author in Baidu after the upgrade box can bring what, found that the box may get an additional nuclear launch opportunity, I was wondering if I could find this call, in fact, the position determined by the above string has been determined, the key is to get the parameters called.

The last jmp jumps to the end of the function, which is relatively short to pick up the bomb. Initially the direct conjecture called the last call< add build option >. This CALL3 a parameter, 1 registers, 2 stacks. Analysis Parameters:

Move Ecx,14call 0069f7e0...mov Ebx,eax...mov eax,[ebx+98]mov ecx,008324e0push eaxpush 1F

I thought that just using one of the above functions is enough, the front is initialized, and the result is--just add a nuke option, not ready, or countdown ...

So the above a call 0069ccf0 is also necessary (altogether there are 4, one is the output debugging information, one is the above call 0069F7E0 get a parameter value, an increase option, not it is who? ), since the effect of the last call is to increase the nuke option, this call is probably the tuning CD. What is the parameter of this call? Follow-up analysis, 3 fixed push, one ecx. Analysis parameter Source:

mov     EDX,[ECX+1B4]    //derived from the parameter calling this function ... mov     edx,[edx+1a0]mov     [Esp+3c],edx...mov     eax,[ebx+98]      //ebx and above source same mov     Ecx,[esp+3c]mov     ecx,[ecx+eax*4]

The most important is the above ecx parameters , the program is constantly here, how may know ... Under normal circumstances, can pick up a bomb box of the probability is how big, I do not want to try, not to mention the single-player game, the box appears so little. Think of the lame Elephant (modified master, has no longer modified the game, from his tutorial benefits a lot) of the Warcraft revision tutorial, are used in the special map, quite convenient. Fortunately, the great God has written the Red Police map editor, a great effort to build a map. Originally designed to see a designated path point to a nuclear box, dead or alive do not give. Changed to destroy a building before it appeared ... I am also drunk, do not know where is wrong, this is not the subject, do not delve

Broken down after a lot of layers of ecx and from where, it seems to follow the game of the message loop?! After an afternoon, and then think the value of edx well familiar, suddenly found edx=[ecx+1b4]= Player data address , wtf! To write the script decisively, I was using a great God's work: code injector--codeinex.exe. the call on the previous post is also, a slightly modified, with the CE is also possible.

Pushadmov ecx,14call 0069f7e0mov ebx,eax//adjustment nuke Cdmov Eax,[ebx+98]mov edx,[00a35db4]mov ecx,[edx+1A0]push 0push 0mov ecx, [Ecx+eax*4]push 1call 0069ccf0//increase nuke attack option mov Eax,[ebx+98]mov ecx,008324e0push eaxpush 1Fcall 0067c530popadret

Get! Note that if you've built the bomb before and have already entered the CD, it's not working.

(eight) build a variety of super weapons--additional bombs bring surprises 1

Enter 0067c530 This function: First a switch, and then see a string

New Build Options! Can this also add other buildings, classes or something? If so, the 1F constant of the push should be a type (such as a basic building, defensive building, infantry class, etc.), and the eax should be a specific number.

Changed the EAX, and sure enough to add other super weapons. Change the eax of the above two call to other values, such as three-in-one, to get a chance to use other super weapons, but the post-use option will not disappear ... The reason for the failure, conjecture is that in the game design only the bomb has a one-time use opportunity, other super weapons do not have to disappear.

But trying to modify 1F to 1D or 20, the game crashes. After an afterthought, the switch in front of this string is the key.

When you change to the above values, you are sure to add some additional construction options, which you can step through:

03= aircraft, 07 = building, 10 = infantry, 1f= defense skills (Super weapon, paratrooper), 28 = Chariot

But at first, I'm not so sure. I guess this is a public function that is not exclusive here, at the breakpoint under the function head. When you start a base car, you get the option to build a power station, build a power station, and get the options for mine and barracks. Sure enough, and then look at the stack that comes in worth 03, 07 and what it means.

As for the basic buildings and defensive buildings, I have also used the stupidest method to determine one after the other:

00= Power Plant
01= Allied Ore Refining plant
02= Allied Construction Plant
03= Allied Barracks
04= Sandbags
05= Allied Workshops
06= Allied Warfare Laboratory
07= Allied Chariot Factory
09= Magnetic Energy Reaction Furnace
0a= Soviet Combat Laboratory
... Limited to the length of the omission, see Data packaging

Allied construction plants and Soviet construction plants, that is, the base, can be directly ground up , do not need a base car! I was stunned. Of course, you can only build an Allied construction plant if you have an Allied construction facility, and the Soviet Union is in the same vein. And the general building, as long as there is any base can be, except for the giant cannon.

For infantry, there is a corresponding specific number, with the information package. Chariot warships, no information, menial work ... Because after the science and technology open, not necessary

The purpose of this call is to give yourself the option to build a super weapon without having to open a super weapon. once any unit is built, the option disappears because the program refreshes the currently available build. There is a modifier on the web that needs to select the Super weapon type in the added options bar above the modifier, and then build the fence to build the super weapon. Is this way more elegant in this article? (non-derogatory) the way to modify the construction fence is to find the construction call, modify the parameters passed in, specifically not studied this way.

To be Continued ...

Reprint please indicate source, http://www.cnblogs.com/viewll/p/4769473.html

Red Alert 2 Modifier principle Encyclopedia (iii)

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.