有没有准备写CT脚本的同学?
写在开篇之前那么多年下来我玩游戏几乎没花过钱
如今……修改器都要钱吗??
玩不起玩不起
代码遵循GPL-V3发布,作者只保证代码按原样提供,并不保证代码一定不会损害游戏存档和游戏趣味
请大家酌情使用~
subprocess.Popen(,env=g_session.env)我先写一句好了,这句是linux下让proton呼叫出CE的代码
我正在研究如何在linux上使用CE
如果成功,我多半会附一个CE表
只是笔记,有爱自取,有需求自己实现
这个可能是(合成时候)扣减物品的代码,没测试过
{ Game : SWD7-Win64-Shipping.exe
Version:
Date : 2020-11-01
Author : neutron
This script does blah blah blah
}
aobscanmodule(INJECT,SWD7-Win64-Shipping.exe,44 89 61 0C 8B 5C 24 30) // should be unique
//alloc(newmem,$1000,"SWD7-Win64-Shipping.exe"+967930)
//no need to alloc since I want to delete it.
INJECT:
nop nop nop nop
registersymbol(INJECT)
INJECT:
db 44 89 61 0C
unregistersymbol(INJECT)
{
// ORIGINAL CODE - INJECTION POINT: "SWD7-Win64-Shipping.exe"+967930
"SWD7-Win64-Shipping.exe"+96790C: 48 8D 54 24 38 -lea rdx,
"SWD7-Win64-Shipping.exe"+967911: E8 2A 03 01 00 -call SWD7-Win64-Shipping.exe+977C40
"SWD7-Win64-Shipping.exe"+967916: 48 63 44 24 38 -movsxdrax,dword ptr
"SWD7-Win64-Shipping.exe"+96791B: 83 F8 FF -cmp eax,-01
"SWD7-Win64-Shipping.exe"+96791E: 74 0D -je SWD7-Win64-Shipping.exe+96792D
"SWD7-Win64-Shipping.exe"+967920: 48 8D 14 80 -lea rdx,
"SWD7-Win64-Shipping.exe"+967924: 48 8B 06 -mov rax,
"SWD7-Win64-Shipping.exe"+967927: 48 8D 0C D0 -lea rcx,
"SWD7-Win64-Shipping.exe"+96792B: EB 03 -jmp SWD7-Win64-Shipping.exe+967930
"SWD7-Win64-Shipping.exe"+96792D: 48 8B CF -mov rcx,rdi
// ---------- INJECTING HERE ----------
"SWD7-Win64-Shipping.exe"+967930: 44 89 61 0C -mov ,r12d
// ---------- DONE INJECTING----------
"SWD7-Win64-Shipping.exe"+967934: 8B 5C 24 30 -mov ebx,
"SWD7-Win64-Shipping.exe"+967938: 45 0F B6 37 -movzx r14d,byte ptr
"SWD7-Win64-Shipping.exe"+96793C: 48 8D 54 24 38 -lea rdx,
"SWD7-Win64-Shipping.exe"+967941: 45 0F B6 C6 -movzx r8d,r14l
"SWD7-Win64-Shipping.exe"+967945: 49 8D 8D A8 01 00 00-lea rcx,
"SWD7-Win64-Shipping.exe"+96794C: E8 4F 0B 01 00 -call SWD7-Win64-Shipping.exe+9784A0
"SWD7-Win64-Shipping.exe"+967951: 83 38 FF -cmp dword ptr ,-01
"SWD7-Win64-Shipping.exe"+967954: 0F 84 3B 01 00 00 -je SWD7-Win64-Shipping.exe+967A95
"SWD7-Win64-Shipping.exe"+96795A: 45 85 E4 -test r12d,r12d
"SWD7-Win64-Shipping.exe"+96795D: 0F 8F 32 01 00 00 -jg SWD7-Win64-Shipping.exe+967A95
"SWD7-Win64-Shipping.exe"+967963: 45 0F B6 C6 -movzx r8d,r14l
}
当然这个的效果差不多(合成列表中出现的素材变为99个)
{ Game : SWD7-Win64-Shipping.exe
Version:
Date : 2020-11-01
Author : steamuser
This script does blah blah blah
}
aobscanmodule(INJECT,SWD7-Win64-Shipping.exe,44 8B 10 45 32 DB) // should be unique
alloc(newmem,$1000,"SWD7-Win64-Shipping.exe"+A9F43E)
label(code)
label(return)
newmem:
mov ,99
code:
mov r10d,
xor r11l,r11l
jmp return
INJECT:
jmp newmem
nop
return:
registersymbol(INJECT)
INJECT:
db 44 8B 10 45 32 DB
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "SWD7-Win64-Shipping.exe"+A9F43E
"SWD7-Win64-Shipping.exe"+A9F414: 4D 8B 8A 08 01 00 00-mov r9,
"SWD7-Win64-Shipping.exe"+A9F41B: 0F 1F 44 00 00 -nop
"SWD7-Win64-Shipping.exe"+A9F420: 48 63 D0 -movsxdrdx,eax
"SWD7-Win64-Shipping.exe"+A9F423: 4C 8D 04 92 -lea r8,
"SWD7-Win64-Shipping.exe"+A9F427: 43 39 1C C1 -cmp ,ebx
"SWD7-Win64-Shipping.exe"+A9F42B: 74 7E -je SWD7-Win64-Shipping.exe+A9F4AB
"SWD7-Win64-Shipping.exe"+A9F42D: 43 8B 44 C1 20 -mov eax,
"SWD7-Win64-Shipping.exe"+A9F432: 83 F8 FF -cmp eax,-01
"SWD7-Win64-Shipping.exe"+A9F435: 75 E9 -jne SWD7-Win64-Shipping.exe+A9F420
"SWD7-Win64-Shipping.exe"+A9F437: 48 8D 05 46 A4 EF 02-lea rax,
// ---------- INJECTING HERE ----------
"SWD7-Win64-Shipping.exe"+A9F43E: 44 8B 10 -mov r10d,
"SWD7-Win64-Shipping.exe"+A9F441: 45 32 DB -xor r11l,r11l
// ---------- DONE INJECTING----------
"SWD7-Win64-Shipping.exe"+A9F444: 41 8B 85 00 05 00 00-mov eax,
"SWD7-Win64-Shipping.exe"+A9F44B: 41 3B 85 2C 05 00 00-cmp eax,
"SWD7-Win64-Shipping.exe"+A9F452: 0F 84 EB 00 00 00 -je SWD7-Win64-Shipping.exe+A9F543
"SWD7-Win64-Shipping.exe"+A9F458: 49 63 95 40 05 00 00-movsxdrdx,dword ptr
"SWD7-Win64-Shipping.exe"+A9F45F: 4D 8D 85 30 05 00 00-lea r8,
"SWD7-Win64-Shipping.exe"+A9F466: 49 8B 48 08 -mov rcx,
"SWD7-Win64-Shipping.exe"+A9F46A: 48 FF CA -dec rdx
"SWD7-Win64-Shipping.exe"+A9F46D: 48 23 D3 -and rdx,rbx
"SWD7-Win64-Shipping.exe"+A9F470: 48 85 C9 -test rcx,rcx
"SWD7-Win64-Shipping.exe"+A9F473: 4C 0F 45 C1 -cmovne r8,rcx
}
页:
[1]