sillyyang 发表于 2022-5-1 11:47

科技研究每次多加70那个CT。新版本该如何改才能有用啊????

本版里有个每次研究都多加70个点的CT表,挺好用的。      但是新的一些版本就失效了,我自己不懂编程,用CE照猫画虎瞎搞了一番,但是游戏时间只要一动起来马上报错退出。
下面我先贴上那个大神的脚本原代码

//code from here to '' 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 ,eax

exit:
jmp returnhere

"CapMain.exe"+17791F:
jmp newmem
nop
nop
returnhere:



//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"CapMain.exe"+17791F:
mov ,eax
//Alt: db 89 84 8A B5 01 00 00

然后我再贴上我自己通过CE对照搜索然后替换了关键的几个位置之后的代码

//code from here to '' 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 ,eax

exit:
jmp returnhere

"CapMain.exe"+1B7D6C:
jmp newmem
nop
nop
returnhere:



//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"CapMain.exe"+1B7D6C:
mov ,eax
//Alt: db 89 84 B7 88 02 00 00

下面是科技研发增加的时候导致科技数据变化的代码部分
003F7919 - 8B 45 F8- mov eax,
003F791C - 8B 40 50- mov eax,
003F791F - 89 84 8A B5010000- mov ,eax <<
003F7926 - 0FB6 4D FF- movzx ecx,byte ptr
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 ,eax

搞了半天。。。纯粹靠CE 对照不同产品研发,找代码变化相同点不同点。。。。但是最终还是失败了啊。。。有没有大神帮我改改,能实现这个脚本功能。。

炎黄一夫 发表于 2022-5-2 15:14

CE的没研究,估计是内存地址发生了变化,需要重新修正。

sillyyang 发表于 2022-5-4 15:16

炎黄一夫 发表于 2022-5-2 15:14
CE的没研究,估计是内存地址发生了变化,需要重新修正。

emm   大神没兴趣看看他怎么实现每次科研额外加点数的吗?    我觉得那个功能还挺有意思的

owennoelzhou 发表于 2022-5-8 07:31

6666666666666
页: [1]
查看完整版本: 科技研究每次多加70那个CT。新版本该如何改才能有用啊????