Cities skylines - mono error

Add topics here with methods, analysis, code snippets, mods etc. for a certain game that normally won't make it in the Tables or Requests sections.
Post Reply
User avatar
RogueFremen
What is cheating?
What is cheating?
Posts: 1
Joined: Wed Dec 15, 2021 9:09 am
Reputation: 0

Cities skylines - mono error

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users