Page 1 of 1

Cities skylines - mono error

Posted: Wed Dec 15, 2021 12:18 pm
by RogueFremen
Im using cheat engine 7.3
Cities.exe version 5.6.7.3267

This works:
Cheat Engine -> Mono -> Activate mono features

-- First in game you have to take a loan --

Memory Viewer -> go to address:

Code: Select all

EconomyManager:GetLoan+7c
Tools -> Auto Assemble -> Template -> Code injection -> OK

Code: Select all

alloc(newmem,2048,EconomyManager:GetLoan+7c)
Open Lua Engine window:

Code: Select all

local cId = mono_findClass('', 'EconomyManager')
return mono_object_getClass(cId)

1:325880680
2:EconomyManager


And this is what doesnt work:
-- First in game you have to take a loan --

go to address:

Code: Select all

EconomyManager+<TakeNewLoan>c__Iterator0:MoveNext+11a
Tools -> Auto Assemble -> Template -> Code injection -> OK

Code: Select all

Error: Failure determining what EconomyManager+<TakeNewLoan>c__Iterator0:MoveNext+11a means
Open Lua Engine window:

Code: Select all

local cId = mono_findClass('', 'EconomyManager+<TakeNewLoan>c__Iterator0')
return mono_object_getClass(cId)

1:nil

Error in Cheat Engine:
Cheat Engine -> Mono -> Dissect mono
Mono dissector -> Search -> Find...
Check Search entire file
EconomyManager+<TakeNewLoan>c__Iterator0 -> Find

Lua Engine window shows a lot of errors:

Code: Select all

Error:C:\Program Files\Cheat Engine 7.3\autorun\monoscript.lua:2188: 'for' limit must be a number
Error:C:\Program Files\Cheat Engine 7.3\autorun\monoscript.lua:1206: attempt to index a nil value (global 'monopipe')
Error:C:\Program Files\Cheat Engine 7.3\autorun\monoscript.lua:1740: attempt to index a nil value (global 'monopipe')


crash the game:
-- First in game you have to take a loan --

Cheat Engine -> Mono -> Dissect mono
Mono Dissector -> Assembly-Csharp -> EconomyManager+<TakeNewLoan>c__Iterator0 -> Mouse Right Click -> Find instances of class

Check if it is your loan
in the address of your loan -> Mouse Right Click -> Dissect struct

Lua Engine window shows this error and crash the game:

Code: Select all

Error:C:\Program Files\Cheat Engine 7.3\autorun\monoscript.lua:1253: attempt to index a nil value (global 'monopipe')

Any ideas how to use

Code: Select all

EconomyManager+<TakeNewLoan>c__Iterator0:MoveNext+11a
in Code injection ??

Thanks