107
"Activate"
Auto Assembler Script
{ Game : D4X.exe
Version:
Date : 2022-05-01
Author : Daffy
This script does blah blah blah
}
{$c}
extern long long pBase;
{$asm}
{$lua}
if syntaxcheck then return end
{$asm}
[ENABLE]
{$lua}
if(getCEVersion() < 7.3) then
ShowMessage('Cheat Engine v7.3 or above is required to run table')
end
{$asm}
LuaCall(function cycleFullCompact(sender,force) local state = not(compactmenuitem.Caption == 'Compact View Mode'); if force~=nil then state = not force end; compactmenuitem.Caption = state and 'Compact View Mode' or 'Full View Mode'; getMainForm().Splitter1.Visible = state; getMainForm().Panel4.Visible = state; getMainForm().Panel5.Visible = state; end; function addCompactMenu() if compactmenualreadyexists then return end; local parent = getMainForm().Menu.Items; compactmenuitem = createMenuItem(parent); parent.add(compactmenuitem); compactmenuitem.Caption = 'Compact View Mode'; compactmenuitem.OnClick = cycleFullCompact; compactmenualreadyexists = 'yes'; end; addCompactMenu(); cycleFullCompact(nil,true))
aobscan(res,48 8B 91 B8 02 00 00 48 89 55 F0 48 85 D2 75 1E) // should be unique
alloc(newmem,$100,res)
label(code)
label(return)
alloc(pBase,8)
newmem:
{$ccode plBase=rcx}
unsigned long long p=*(unsigned long long *)(*(unsigned long long *)(*(unsigned long long *)(*(unsigned long long *)(*(unsigned long long *)(*(unsigned long long *)(plBase+0x70)+0x40)+0x28)+0x8)+0x8));
pBase=p
{$asm}
code:
mov rdx,[rcx+000002B8]
jmp return
res:
jmp newmem
nop 2
return:
registersymbol(res pBase)
[DISABLE]
LuaCall(cycleFullCompact(nil,false))
res:
db 48 8B 91 B8 02 00 00
unregistersymbol(*)
dealloc(*)
20
"Unlimited Health for External Unit"
Auto Assembler Script
{ Game : D4X.exe
Version:
Date : 2022-04-27
Author : Daffy
This script does blah blah blah
}
[ENABLE]
aobscan(unithealth,F2 49 0F 10 A3 E0 01 00 00 F2 48 0F 11 65 A8) // should be unique
alloc(newmem,$100,unithealth)
label(code)
label(return)
newmem:
{$luacode uBase=r11}
writeDouble(uBase+0x1e0,readDouble(uBase+0x210))
{$asm}
code:
movsd xmm4,[r11+000001E0]
jmp return
unithealth:
jmp newmem
nop 4
return:
registersymbol(unithealth)
[DISABLE]
unithealth:
db F2 49 0F 10 A3 E0 01 00 00
unregistersymbol(unithealth)
dealloc(newmem)
39
"Selected Unit Pointers"
Auto Assembler Script
{ Game : D4X.exe
Version:
Date : 2022-04-27
Author : Daffy
This script does blah blah blah
}
[ENABLE]
aobscan(selectedunit,F2 48 0F 10 90 E0 01 00 00 F2 48 0F 11 55 C8) // should be unique
alloc(newmem,$100,selectedunit)
label(code)
label(return)
newmem:
{$luacode suBase=rax}
registerSymbol('sUnit',suBase)
{$asm}
code:
movsd xmm2,[rax+000001E0]
jmp return
selectedunit:
jmp newmem
nop 4
return:
registersymbol(selectedunit)
[DISABLE]
selectedunit:
db F2 48 0F 10 90 E0 01 00 00
unregistersymbol(selectedunit)
dealloc(newmem)
40
"Health"
0
Double
sUnit+1e0
41
"Max Health"
0
Double
sUnit+210
112
"Resources Pointers"
Auto Assembler Script
{ Game : D4X.exe
Version:
Date : 2022-05-01
Author : Daffy
This script does blah blah blah
}
[ENABLE]
aobscanmodule(rescmp,libhl.dll,49 8B 03 4C 2B C0) // should be unique
alloc(newmem,$100,rescmp)
label(code)
label(return)
newmem:
mov rcx,pBase
cmp [rcx],rax
jne code
{$luacode xBase=r11}
local str = readString(readPointer(xBase),18,true)
local strt = {'Influence','Armor','Solari','Intel','Plascrete','Authority','Standing','Manpower','Spice','Agent'}
for k,v in ipairs(strt) do
if str == v then
registerSymbol(v,readPointer(xBase+0x8)+0x8)
end
end
{$asm}
code:
mov rax,[r11]
sub r8,rax
jmp return
rescmp:
jmp newmem
nop
return:
registersymbol(rescmp)
[DISABLE]
rescmp:
db 49 8B 03 4C 2B C0
unregistersymbol(rescmp)
dealloc(newmem)
118
"Spice"
0
Double
Spice
84
"Solari"
0
Double
Solari
85
"Plascrete"
0
Double
Plascrete
117
"Manpower"
0
Double
Manpower
115
"Authority"
0
Double
Authority
83
"Influence"
0
Double
Influence
119
"Agent Progress"
0
Double
Agent
114
"Intel"
0
Double
Intel
113
"Armor"
0
Double
Armor
116
"Standing"
0
Double
Standing