3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 2194|回复: 0
打印 上一主题 下一主题

[求助] Cliff Empire CE修改(2019-08-12)这个帖子里的修改器太强大了,有没有大佬可以帮忙把超级建筑+9999人口改小点啊

[复制链接]

3376

主题

3万

帖子

13万

积分

游戏终结者

Rank: 14Rank: 14Rank: 14Rank: 14

贡献度
4654
金元
1201897
积分
138806
精华
0
注册时间
2014-4-28

龙年勋章小埋废土游民骨灰玩家~游戏天王~足球3DMer(永久)

跳转到指定楼层
主题
发表于 2019-8-14 15:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这修改器功能爆炸,就是超级建筑人口+的太多了,一个+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)


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-27 05:47 , Processed in 0.025410 second(s), 15 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表