单机游戏玩腻了,为何不变一个玩法呢?
本次就自己用CE搞出来个简单修改器
BUT在开篇之前先给大家说个对不起,因本人操作失误,将保存在文件夹的图片给 rm -rf掉了,so。。。本篇没过程图,只有后来补上的效果图。
图片会尽可能找回,找不回就不发图了。
作为补偿,我把找到的所有基址和指针偏移量贴上
小技巧
1、大部分物品数据为四字节,金币为单浮点
2、为方便游戏项目维护,偏移量十六进制可以+/-4或8来确定其他项的指针,方便快捷实用
3、用ce加载进程尽可能让游戏窗口化,便于暂停和调试(窗口化我用的D3DWindower)
4、部分需要查找二级指针和三级指针,所以要搜索多次
效果图如下:
附lua脚本:
要塞2V1.41-25项修改器.lua.zip
(1.8 KB, 下载次数: 3, 售价: 2 学币)
各物品基址及偏移量:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="27">
<CheatEntries>
<CheatEntry>
<ID>1</ID>
<Description>"木头"</Description>
<LastState Value="595" RealAddress="31F49584"/>
<VariableType>4 Bytes</VariableType>
<Address>015cc030</Address>
<Offsets>
<Offset>c04</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>4</ID>
<Description>"石头"</Description>
<LastState Value="135" RealAddress="31F49588"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C08</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>8</ID>
<Description>"铁"</Description>
<LastState Value="30" RealAddress="31F4958C"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C0C</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>9</ID>
<Description>"小麦"</Description>
<LastState Value="15" RealAddress="31F49590"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c10</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>10</ID>
<Description>"面袋"</Description>
<LastState Value="15" RealAddress="31F49594"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c14</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>11</ID>
<Description>"啤酒花"</Description>
<LastState Value="15" RealAddress="31F49598"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c18</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>12</ID>
<Description>"啤酒"</Description>
<LastState Value="15" RealAddress="31F4959C"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c1c</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>13</ID>
<Description>"葡萄"</Description>
<LastState Value="15" RealAddress="31F495A0"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c20</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>14</ID>
<Description>"沥青"</Description>
<LastState Value="30" RealAddress="31F495A4"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c24</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>15</ID>
<Description>"蜡烛"</Description>
<LastState Value="15" RealAddress="31F495A8"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c28</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16</ID>
<Description>"铜"</Description>
<LastState Value="15" RealAddress="31F495AC"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c2c</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>17</ID>
<Description>"丝绸"</Description>
<LastState Value="15" RealAddress="31F495B0"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c30</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>20</ID>
<Description>"金币"</Description>
<LastState Value="7024" RealAddress="31F49634"/>
<VariableType>Float</VariableType>
<Address>015cc030</Address>
<Offsets>
<Offset>cb4</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>22</ID>
<Description>"声望"</Description>
<LastState Value="222" RealAddress="31F48998"/>
<VariableType>4 Bytes</VariableType>
<Address>015cc030</Address>
<Offsets>
<Offset>18</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>24</ID>
<Description>"人口上限"</Description>
<LastState Value="8" RealAddress="31F49654"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>cd4</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>26</ID>
<Description>"受欢迎度"</Description>
<LastState Value="100" RealAddress="31F4964C"/>
<VariableType>Float</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>ccc</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>31</ID>
<Description>"弓箭"</Description>
<LastState Value="30" RealAddress="31F495F8"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C78</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>32</ID>
<Description>"十字弓(弩)"</Description>
<LastState Value="33" RealAddress="31F495FC"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C7C</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>33</ID>
<Description>"皮战衣"</Description>
<LastState Value="23" RealAddress="31F49614"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C94</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>34</ID>
<Description>"长矛"</Description>
<LastState Value="45" RealAddress="31F4960C"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C8C</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>35</ID>
<Description>"钉锤"</Description>
<LastState Value="34" RealAddress="31F49604"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>C84</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>36</ID>
<Description>"长枪"</Description>
<LastState Value="66" RealAddress="31F49608"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c88</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>37</ID>
<Description>"铁战衣"</Description>
<LastState Value="51" RealAddress="31F49610"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c90</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>38</ID>
<Description>"剑"</Description>
<LastState Value="23" RealAddress="31F49600"/>
<VariableType>4 Bytes</VariableType>
<Address>015CC030</Address>
<Offsets>
<Offset>c80</Offset>
</Offsets>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>
|