Re: Despots Game
Posted: Mon Nov 15, 2021 8:46 pm
Using aSwedishMagyar method made script for no mutation cost.
Remember to enable mono.
Remember to enable mono.
Code: Select all
{ Game : Despot's Game.exe
Version:
Date : 2021-11-15
Author : Shiroi Okami
No mutation cost using aSwedishMagyar method
}
define(noMutationCost,M_Mutation.get_cost)
define(noMutationCostBytes,40 53 48 83 EC 40)
[ENABLE]
assert(noMutationCost,noMutationCostBytes)
noMutationCost:
xorps xmm0,xmm0
ret
[DISABLE]
noMutationCost:
db noMutationCostBytes
{
// ORIGINAL CODE - INJECTION POINT: M_Mutation.get_cost
GameAssembly.dll+EBC026: CC - int 3
GameAssembly.dll+EBC027: CC - int 3
GameAssembly.dll+EBC028: CC - int 3
GameAssembly.dll+EBC029: CC - int 3
GameAssembly.dll+EBC02A: CC - int 3
GameAssembly.dll+EBC02B: CC - int 3
GameAssembly.dll+EBC02C: CC - int 3
GameAssembly.dll+EBC02D: CC - int 3
GameAssembly.dll+EBC02E: CC - int 3
GameAssembly.dll+EBC02F: CC - int 3
// ---------- INJECTING HERE ----------
M_Mutation.get_cost: 40 53 - push rbx
// ---------- DONE INJECTING ----------
GameAssembly.dll+EBC032: 48 83 EC 40 - sub rsp,40
GameAssembly.dll+EBC036: 48 C7 44 24 20 FE FF FF FF - mov qword ptr [rsp+20],FFFFFFFFFFFFFFFE
GameAssembly.dll+EBC03F: 48 8B D9 - mov rbx,rcx
GameAssembly.dll+EBC042: 80 3D DF C2 4A 02 00 - cmp byte ptr [GameAssembly.dll+3368328],00
GameAssembly.dll+EBC049: 75 50 - jne GameAssembly.dll+EBC09B
GameAssembly.dll+EBC04B: 48 8B 05 46 5B 4A 02 - mov rax,[GameAssembly.dll+3361B98]
GameAssembly.dll+EBC052: 48 63 90 B8 00 00 00 - movsxd rdx,dword ptr [rax+000000B8]
GameAssembly.dll+EBC059: 48 8B 05 10 5B 4A 02 - mov rax,[GameAssembly.dll+3361B70]
GameAssembly.dll+EBC060: 8B 8C 02 10 E9 03 00 - mov ecx,[rdx+rax+0003E910]
GameAssembly.dll+EBC067: 45 33 C0 - xor r8d,r8d
}