So the current newest version of table, the Alloy hook in /Some Resources Info, isnt actually calling alloys, I believe its calling consumer goods. I have located the updated location for alloys, but am not knowledgeable enough to write in a pointer to add to table. Hope this helps
[/spoiler
Code: Select all
{ Game : stellaris.exe
Version:
Date : 2022-03-30
Author : thebl
This script does blah blah blah
}
define(address,"stellaris.exe"+245157)
define(bytes,48 89 08 48 8D 40 08)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,"stellaris.exe"+245157)
label(code)
label(return)
newmem:
code:
mov [rax],rcx
lea rax,[rax+08]
jmp return
address:
jmp newmem
nop 2
return:
[DISABLE]
address:
db bytes
// mov [rax],rcx
// lea rax,[rax+08]
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: stellaris.exe+245157
stellaris.exe+245136: 48 8B 52 08 - mov rdx,[rdx+08]
stellaris.exe+24513A: 48 8B 41 08 - mov rax,[rcx+08]
stellaris.exe+24513E: 45 3B CA - cmp r9d,r10d
stellaris.exe+245141: 7F 2D - jg stellaris.exe+245170
stellaris.exe+245143: 4E 8D 04 CA - lea r8,[rdx+r9*8]
stellaris.exe+245147: 49 3B D0 - cmp rdx,r8
stellaris.exe+24514A: 74 17 - je stellaris.exe+245163
stellaris.exe+24514C: 0F 1F 40 00 - nop dword ptr [rax+00]
stellaris.exe+245150: 48 8B 0A - mov rcx,[rdx]
stellaris.exe+245153: 48 83 C2 08 - add rdx,08
// ---------- INJECTING HERE ----------
stellaris.exe+245157: 48 89 08 - mov [rax],rcx
// ---------- DONE INJECTING ----------
stellaris.exe+24515A: 48 8D 40 08 - lea rax,[rax+08]
stellaris.exe+24515E: 49 3B D0 - cmp rdx,r8
stellaris.exe+245161: 75 ED - jne stellaris.exe+245150
stellaris.exe+245163: 44 89 4B 14 - mov [rbx+14],r9d
stellaris.exe+245167: 48 8B C3 - mov rax,rbx
stellaris.exe+24516A: 48 83 C4 20 - add rsp,20
stellaris.exe+24516E: 5B - pop rbx
stellaris.exe+24516F: C3 - ret
stellaris.exe+245170: 4E 8D 1C D2 - lea r11,[rdx+r10*8]
stellaris.exe+245174: 4C 8B C2 - mov r8,rdx
[/spoiler]