(15) Science and technology open 2--problem end
The question left in the last article is why it has no effect after making changes. Tried to get the game to add all possible construction items, but the game tried to refresh the construction items (build new units) but didn't appear what we expected. It was a very simple question, but it baffled me for some time. At first I thought the instructions were wrong, and I finally made sure that there were no mistakes, several times. To explain this problem, the game will refresh your build options at the right time (usually after building a new unit), including additions and deletions. Unfortunately, the process for the game to refresh the build item is to add the currently-available-to-build delete that is not currently available for construction, which I found "evidence" that was first sent out:
So, when we try to refresh the construction item to verify the results of our modifications, what we just added is immediately removed and the effect is not visible. How to find the place to delete the construction items, we found the place to add construction items is inadvertently brought to the surprise. Now there is no surprise, left to the author is the problem!
Fortunately, I have a new discovery--constructionoption.ncount, find who modified it to get instructions:0068071B mov [Ebp+50],edx, however when I try to find a Delete build option for call, But I couldn't find ... After a half-day study, I realized that our location is to remove all the non-built options of the call interior, like holding a cell phone and suddenly found that the phone is missing —————— in fact, you can also navigate to add construction options through this ncount place, then there is a clue: Find cd-> Fast build + Build Item Structure--Add/Remove Construction Item----technology to strengthen-> .
Since this call is to delete a construction item that does not meet the criteria, there must be a decision to skip satisfying the condition. Looking up, we were pleasantly surprised to find the label comments we made before ( the comment is always right ):
It goes without saying that the problems that have plagued the years have finally been solved. And the red Police modification of the master is also modified this before I did not find the place. I was trying to find this place first, and then I tried to locate the neighborhood, and I confessed that I had cheated, and I was standing on someone else's shoulder ... Forgive me also just modify the game novice)
I tried to nop the call from the previous layer of instructions, the results found that the base is not, construction options are still, not elegant, so still chose to change the jump.
With the analysis, you can fill in a digging hole, consturctionoption and constructiondescriptor in the absence of pointers to how to link up, the answer is call< 00482c00= get the construction of the Description object >.
(16) Technology strengthening--poor president only worth $
You already have almost enough information to make the technology stronger, really. Now you have the following information from the previous article:
1. (building) construct an array of descriptive objects (pointers) that you can find in the nearby code for Infantry, chariots, and aircraft;
Type Number type name contruction object Base Address
0X03 Aircraft 00a3d288
0X07 Building 00A35CDC
0x10 Infantry 00a40354
0x28 Chariot 00a35d4c
2. Construct the offset of the member variable that describes the object constructiondescriptor;
What you lack is:
3. The number of the classes you want to enable, that is, the index in the Array (decimal):
0=e1, American soldier
1=e2, Soviet Mobilizer
2=shk; a magnetic-explosive infantry.
3=engineer; Allied Engineers
4=jumpjet; Rocket Ranger
5=ghost; Seal Corps
6=yuri; Yuri.
7=ivan: Crazy Ivan
8=deso, Biochemical Infantry
9=dog; Soviet Military dogs
...
More details can be Baidu, or go to the end of this series to download all relevant information.
For example: 22 = cow, then turn on the cow, and the address [[00a40354]+22*4]+55c ] is set to 1.
In addition to enabling hidden classes, you should also expect to be able to modify the unit cost and price.
This is embarrassing, and adding a bar is too long, not too short. But it's time to go to bed, so choose not to add!
Let's have a little egg , the third one mentions some modifiers that build super weapons through the fence, build a copy center through the power plant, and now you can, try to modify constructionoption.nid~
Tip: Don't try to change the power plant to a super weapon, use the fence to copy the center, change the V3 rocket with the engineer ... Because the type is not the same, do not modify the ntype, because even if you change the type, the construction option is still in the original tab, the program or it as the original type of processing, the result is not created, also can not be removed.
To be Continued ...
Reprint please indicate source, http://www.cnblogs.com/viewll/p/4777068.html
Red Alert 2 modifier principle Encyclopedia (eight)