游戏狂人
![Rank: 6](static/image/common/star_level3.gif) ![Rank: 6](static/image/common/star_level2.gif)
- 贡献度
- 82
- 金元
- 6926
- 积分
- 1031
- 精华
- 1
- 注册时间
- 2009-1-7
|
本版里有个每次研究都多加70个点的CT表,挺好用的。 但是新的一些版本就失效了,我自己不懂编程,用CE照猫画虎瞎搞了一番,但是游戏时间只要一动起来马上报错退出。
下面我先贴上那个大神的脚本原代码
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
add eax, 46
mov [edx+ecx*4+000001B5],eax
exit:
jmp returnhere
"CapMain.exe"+17791F:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"CapMain.exe"+17791F:
mov [edx+ecx*4+000001B5],eax
//Alt: db 89 84 8A B5 01 00 00
然后我再贴上我自己通过CE对照搜索然后替换了关键的几个位置之后的代码
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
add eax, 46
mov [edi+esi*4+00000288],eax
exit:
jmp returnhere
"CapMain.exe"+1B7D6C:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"CapMain.exe"+1B7D6C:
mov [edi+esi*4+00000288],eax
//Alt: db 89 84 B7 88 02 00 00
下面是科技研发增加的时候导致科技数据变化的代码部分
003F7919 - 8B 45 F8 - mov eax,[ebp-08]
003F791C - 8B 40 50 - mov eax,[eax+50]
003F791F - 89 84 8A B5010000 - mov [edx+ecx*4+000001B5],eax <<
003F7926 - 0FB6 4D FF - movzx ecx,byte ptr [ebp-01]
003F792A - 85 C9 - test ecx,ecx
EAX=000001F6
EBX=00000000
ECX=00000002
EDX=09189E80
ESI=00000230
EDI=00546E00
ESP=010FCD24
EBP=010FCD3C
EIP=003F7926
下面是将上面部分反汇编给出的一个结果
CapMain.exe"+1B7D6C 89 84 B7 88020000 mov [edi+esi*4+00000288],eax
搞了半天。。。纯粹靠CE 对照不同产品研发,找代码变化相同点不同点。。。。但是最终还是失败了啊。。。有没有大神帮我改改,能实现这个脚本功能。。
|
|