New patch 2.0.3. [B]Unlimited Money[/B] does not allow to expand the territory and buy items.
new patch 2.0.4 + dlc. All functions cause errors in the game.
[/QUOTE]
I stopped updating the table since dev(s) included a sandbox mod in 1.0.6, if I'm not wrong. But the scripts still work well, I just rewrote 'Unlimited Money' script to limit the systems incompatibility.
[B]Unlimited Money[/B]
[CODE=nasm]{ Game : Megaquarium
Version: 1.0.3
Date : 2018-09-13
Author : Fantomas
}
[ENABLE]
//ResourceData:ChangeMoneyAt+84
aobscanregion(infMoney,ResourceData:ChangeMoneyAt,ResourceData:ChangeMoneyAt+150,4189)
infMoney+02:
db 4F
//41 89 4F 50
//mov [r15+50],ecx
registersymbol(infMoney)
[DISABLE]
infMoney+02:
db 47
//41 89 47 50
//mov [r15+50],eax
unregistersymbol(infMoney)
{
// ORIGINAL CODE - INJECTION POINT: ResourceData:ChangeMoneyAt+84
09C06318: 85 C0 - test eax,eax
09C0631A: 0F 84 A1 00 00 00 - je ResourceData:ChangeMoneyAt+101
09C06320: 49 63 57 50 - movsxd rdx,dword ptr [r15+50]
09C06324: 49 63 46 18 - movsxd rax,dword ptr [r14+18]
09C06328: 03 D0 - add edx,eax
09C0632A: B9 3F 42 0F 00 - mov ecx,000F423F [ 999999 ]
09C0632F: 48 83 EC 20 - sub rsp,20
09C06333: 49 BB 20 52 59 05 00 00 00 00 - mov r11,UnityEngine:Mathf:Min
09C0633D: 41 FF D3 - call r11
09C06340: 48 83 C4 20 - add rsp,20
// ---------- INJECTING HERE ----------
09C06344: 41 89 47 50 - mov [r15+50],eax
09C06348: 4D 85 F6 - test r14,r14
// ---------- DONE INJECTING ----------
09C0634B: 0F 84 7A 00 00 00 - je ResourceData:ChangeMoneyAt+10b
09C06351: B9 F8 96 55 0C - mov ecx,0C5596F8
09C06356: 48 83 EC 20 - sub rsp,20
09C0635A: 49 BB A0 05 4A 05 00 00 00 00 - mov r11,System:Object:__icall_wrapper_mono_object_new_fast
09C06364: 41 FF D3 - call r11
09C06367: 48 83 C4 20 - add rsp,20
09C0636B: 48 8B C8 - mov rcx,rax
09C0636E: 4C 89 71 20 - mov [rcx+20],r14
09C06372: B8 70 8B 3F 9D - mov eax,9D3F8B70
09C06377: 48 89 41 28 - mov [rcx+28],rax
}[/CODE]
Here, updated [URL='https://fearlessrevolution.com/threads/7874/#post-60176']Kalas' 'Unlock In-Game Cheats' script[/URL] as well
[CODE=nasm]{ Game : Megaquarium
Version: 2.0.4g
Date : 2020-06-05
Author : Fantomas
Credits: Kalas
}
//F1 - Add Money
//F2 - Add Ecology Research Points
//F3 - Add Total Points
//F4 - Add Prestige Rank Points
[ENABLE]
//Control:Update+a7
aobscanregion(cheats,Control:Update,Control:Update+16df,0FB680)
alloc(newmem,$1000,Control:Update+a7)
label(code)
label(return)
newmem:
mov byte ptr [rax+000000A9],1
code:
movzx eax,byte ptr [rax+000000A9]
jmp return
cheats:
jmp newmem
nop 2
return:
registersymbol(cheats)
[DISABLE]
cheats:
db 0F B6 80 A9 00 00 00
unregistersymbol(cheats)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: Control:Update+a7
19648E8C25D: 48 83 C4 20 - add rsp,20
19648E8C261: 0F B6 46 43 - movzx eax,byte ptr [rsi+43]
19648E8C265: 85 C0 - test eax,eax
19648E8C267: 74 09 - je 19648E8C272
19648E8C269: C6 46 43 00 - mov byte ptr [rsi+43],00
19648E8C26D: E9 19 16 00 00 - jmp 19648E8D88B
19648E8C272: 48 83 EC 20 - sub rsp,20
19648E8C276: 49 BB D0 B5 E1 48 96 01 00 00 - mov r11,0000019648E1B5D0
19648E8C280: 41 FF D3 - call r11
19648E8C283: 48 83 C4 20 - add rsp,20
// ---------- INJECTING HERE ----------
19648E8C287: 0F B6 80 A9 00 00 00 - movzx eax,byte ptr [rax+000000A9]
// ---------- DONE INJECTING ----------
19648E8C28E: 85 C0 - test eax,eax
19648E8C290: 0F 84 D8 02 00 00 - je 19648E8C56E
19648E8C296: 48 8B CE - mov rcx,rsi
19648E8C299: BA 24 00 00 00 - mov edx,00000024
19648E8C29E: 48 83 EC 20 - sub rsp,20
19648E8C2A2: 49 BB B0 E9 E8 48 96 01 00 00 - mov r11,0000019648E8E9B0
19648E8C2AC: 41 FF D3 - call r11
19648E8C2AF: 48 83 C4 20 - add rsp,20
19648E8C2B3: 85 C0 - test eax,eax
19648E8C2B5: 0F 84 91 00 00 00 - je 19648E8C34C
}[/CODE]
BR
fantomas
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1