工具
精华
|
战斗力 鹅
|
回帖 0
注册时间 2016-3-19
|
研究大佬做出来修改项目的原理一直都很有趣,不亚于做模型能带给人的快乐。
前段时间因为新DLC回坑CK3,因为手里的table早就都过期了,打算研究一下数据结构,随手打开失效的部分瞎逛的时候,看到铁人成就代码的原作者贴心的加了这么一句话:
=========================================
Update instructions
=========================================
If you want to try and update things yourself, here is the necessary information.
I'm going to help you find the achievements static pointer in Crusader Kings III:
It changes every hotfix/patch, but to find the values follow the steps below.
I'm going to assume you know what to do when you have this pointer.
Otherwise this guide would be way too long.
Ask around in the Discord server if you are interested in learning this stuff.
https:discord.gg/ZSpzjSH
= Finding the achievement pointer =
In the main menu, go to 'New Game' and turn Iron Man on in the game rules.
Now search for a Byte value type, Exact Value = 1
Turn off ironman, and look for value 0
Rinse and repeat until you have only a few values left.
You can use trial and error to see which value flips the switch on the GUI, that's the correct one.
Now find out what accesses this value. Open the disassembler at one of the found opcodes.
You should see the static pointer standing out in the code right above the code you found.
很详细的告诉你成就开关的逻辑是这么找到的:
1、用1/0找到开启铁人模式的赋值地址
2、用查找访问该地址的功能找出判断该数值的汇编语句
3、最后定位注入语句反向查到校验的部分的地址
和寻宝一样,自己找到时候非常有乐趣和成就感
小黄油我个人建议还是直接去搜现成Unpacked解包CG和动画,对自己好一点不要再浪费时间和脑力在那些粗制滥造的垃圾游戏里了好吗 |
|