For anyone who reads this and might be able to help please do as below I will should where this script is editing the memory and comparing this from the base to the addon.
The reason for this is byte for byte in the memory array the games are the same, however changing where the script injects the cheats code should work as it'll replace and be removed fine, it doesn't work and will crash to desktop and I'm stumped.
If anyone has any ideas on what I could try please, let me know, I'll also put the script code up as, saving people downloading it.
The spoilers below will show the addresses above and below the injection point just to save space and then script for cheat itself at the end.
Base games memory, cheat disabled:
S2DNG.exe+2FAAB5 - 74 7F - je S2DNG.exe+2FAB36
S2DNG.exe+2FAAB7 - 8B 46 10 - mov eax,[esi+10]
S2DNG.exe+2FAABA - 8B 56 0C - mov edx,[esi+0C]
S2DNG.exe+2FAABD - 50 - push eax
Base games memory, cheat enabled:
S2DNG.exe+2FAAB5 - 74 7F - je S2DNG.exe+2FAB36
Res2 - E9 44558602 - jmp 02F60000
S2DNG.exe+2FAABC - 90 - nop
S2DNG.exe+2FAABD - 50 - push eax
Addon games memory, cheat disabled:
S2DNGWikinger.exe+309742 - 74 7F - je S2DNGWikinger.exe+3097C3
S2DNGWikinger.exe+309744 - 8B 46 10 - mov eax,[esi+10]
S2DNGWikinger.exe+309747 - 8B 56 0C - mov edx,[esi+0C]
S2DNGWikinger.exe+30974A - 50 - push eax
Addon games memory, cheat enabled:
S2DNGWikinger.exe+309742 - 74 7F - je S2DNGWikinger.exe+3097C3
Res2 - E9 B7682B08 - jmp 089C0000
S2DNGWikinger.exe+309749 - 90 - nop
S2DNGWikinger.exe+30974A - 50 - push eax
Cheat script:
[ENABLE]
aobscanmodule(Res2,S2DNG.exe,8B 46 10 8B 56 0C 50) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
mov eax, [esp]
cmp [eax+4], #0
jne code
mov [esi+10], #500
code:
mov eax,[esi+10]
mov edx,[esi+0C]
jmp return
Res2:
jmp newmem
nop
return:
registersymbol(Res2)
[DISABLE]
Res2:
db 8B 46 10 8B 56 0C
unregistersymbol(Res2)
dealloc(newmem)
Now yes I did edit where it says
aobscanmodule(Res2,S2DNG.exe,8B 46 10 8B 56 0C 50)
and changed it to
aobscanmodule(Res2,S2DNGWikinger.exe,8B 46 10 8B 56 0C 50)
and when done you can activate the script as shown but the moment you play the game and code takes effect it'll crash.