|
|
这修改器功能爆炸,就是超级建筑人口+的太多了,一个+9999,哪怕只建一个,也会搞得满世界失业,而且粮食需求爆炸,有没有大佬可以给改改啊
就是第一大类的第一个修改项
USER_UI Base Address Scan (To Activate: Play Level, To Update: Play Level)
脚本具体内容大概这样。。。。
不知道什么是人口修改项,有没有大佬帮帮忙
[ENABLE]
label(USER_UI_savedAOB)
label(USER_UI_returnhere)
label(USER_UI_originalcode)
label(USER_UI_exit)
label(USER_UI_update_exit)
label(USER_UI_currencyset_exit)
label(USER_UI_resourcesset_exit)
label(USER_UI_buildingstatsset_exit)
label(USER_UI_tenantsset_exit)
label(USER_UI_hpset_exit)
registersymbol(USER_UI_originalcode)
registersymbol(USER_UI_savedAOB)
//05466452 - E8 E1A5F5FF - call 053C0A38
//05466457 - 83 C4 10 - add esp,10
// USER_UI:LateUpdate+3a
//0546645A - C7 85 94F3FFFF 00000000 - mov [ebp-00000C6C],00000000
//05466464 - C7 85 98F3FFFF 00000000 - mov [ebp-00000C68],00000000
//0546646E - C7 85 9CF3FFFF 00000000 - mov [ebp-00000C64],00000000
//05466478 - D9EE - fldz
//0546647A - D9 9D 4CFFFFFF - fstp dword ptr [ebp-000000B4]
//05466480 - C7 85 A0F3FFFF 00000000 - mov [ebp-00000C60],00000000
aobscan(USER_UI_searchedAOB, C7 85 94 F3 FF FF 00 00 00 00 C7 85 98 F3 FF FF 00 00 00 00 C7 85 9C F3 FF FF 00 00 00 00 D9 EE)
alloc(USER_UI_newmem, 2048, USER_UI_searchedAOB)
alloc(USER_UI_temp1, 4, USER_UI_searchedAOB)
alloc(USER_UI_temp2, 4, USER_UI_searchedAOB)
alloc(USER_UI_temp3, 4, USER_UI_searchedAOB)
alloc(USER_UI_temp4, 4, USER_UI_searchedAOB)
alloc(USER_UI_temp5, 4, USER_UI_searchedAOB)
alloc(USER_UI_loop1_index, 4, USER_UI_searchedAOB)
alloc(USER_UI_loop1_base1, 4, USER_UI_searchedAOB)
alloc(USER_UI_loop1_base2, 4, USER_UI_searchedAOB)
alloc(USER_UI_loop1_max, 4, USER_UI_searchedAOB)
USER_UI_newmem:
mov [USER_UI_temp1], eax
mov [USER_UI_temp2], ebx
mov [USER_UI_temp3], ecx
mov [USER_UI_temp4], edx
cmp dword ptr [USER_UI_update_enable], #0
je USER_UI_update_exit
mov [USER_UI_basepointer], edi
USER_UI_update_exit:
cmp dword ptr [USER_UI_currencyset_enable], #0
je USER_UI_currencyset_exit
mov ebx, [edi+744]
test ebx, ebx
je USER_UI_currencyset_exit
mov [ebx+158], #999999999
USER_UI_currencyset_exit:
cmp dword ptr [USER_UI_resourcesset_enable], #0
je USER_UI_resourcesset_exit
mov ebx, [edi+744]
test ebx, ebx
je USER_UI_resourcesset_exit
mov [ebx+17c], (float)99
mov [ebx+180], (float)99
mov [ebx+184], (float)99
mov [ebx+188], (float)9999
mov [ebx+18c], (float)9999
mov [ebx+190], (float)99
mov [ebx+194], (float)9999
mov [ebx+198], (float)9999
mov [ebx+19c], (float)99
mov [ebx+1a0], (float)9999
mov [ebx+1a4], (float)99
mov [ebx+1a8], (float)9999
USER_UI_resourcesset_exit:
cmp dword ptr [USER_UI_buildingstatsset_enable], #0
je USER_UI_buildingstatsset_exit
mov ebx, [edi+6e4]
test ebx, ebx
je USER_UI_buildingstatsset_exit
mov [ebx+228], #9999
mov [ebx+22c], #9999
mov [ebx+230], #9999
mov [ebx+234], #9999
mov [ebx+238], #9999
mov [ebx+23c], #9999
mov [ebx+240], #9999
mov [ebx+244], #9999
mov [ebx+248], #9999
mov [ebx+24c], #9999
mov [ebx+250], #9999
mov [ebx+254], #9999
mov [ebx+258], #9999
mov [ebx+25c], #9999
//mov [ebx+264], (float)9999
mov [ebx+278], #9999
mov [ebx+280], (float)9999
USER_UI_buildingstatsset_exit:
cmp dword ptr [USER_UI_tenantsset_enable], #0
je USER_UI_tenantsset_exit
mov ebx, [edi+6e4]
test ebx, ebx
je USER_UI_tenantsset_exit
mov [ebx+268], #9999
USER_UI_tenantsset_exit:
cmp dword ptr [USER_UI_hpset_enable], #0
je USER_UI_hpset_exit
mov ebx, [edi+6e4]
test ebx, ebx
je USER_UI_hpset_exit
mov ecx, [ebx+1bc]
mov [ebx+1b8], ecx
USER_UI_hpset_exit:
mov eax, [USER_UI_temp1]
mov ebx, [USER_UI_temp2]
mov ecx, [USER_UI_temp3]
mov edx, [USER_UI_temp4]
USER_UI_originalcode:
readmem(USER_UI_searchedAOB, 10)
USER_UI_exit:
jmp USER_UI_returnhere
USER_UI_searchedAOB:
USER_UI_savedAOB:
jmp USER_UI_newmem
nop
nop
nop
nop
nop
USER_UI_returnhere:
[DISABLE]
USER_UI_savedAOB:
readmem(USER_UI_originalcode, 10)
unregistersymbol(USER_UI_originalcode)
unregistersymbol(USER_UI_savedAOB)
dealloc(USER_UI_newmem)
dealloc(USER_UI_temp1)
dealloc(USER_UI_temp2)
dealloc(USER_UI_temp3)
dealloc(USER_UI_temp4)
dealloc(USER_UI_temp5)
dealloc(USER_UI_loop1_index)
dealloc(USER_UI_loop1_base1)
dealloc(USER_UI_loop1_base2)
dealloc(USER_UI_loop1_max)
|
|