Search found 7 matches

by -Pikachu-
Fri Jan 19, 2024 6:27 pm
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

Re: [SOLVED] Mono Features: How to create an instance of a Mono Class?

Super!!!! I completely understand it now. Thank you a lot again, Eric :D
by -Pikachu-
Sun Jan 14, 2024 2:49 pm
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

Re: [SOLVED] Mono Features: How to create an instance of a Mono Class?

Hello Eric, I managed to solve my problem by replacing MonoDataCollector64.dll and monoscript.lua in CE 7.5 latest release with the same files from CE 7.5.1 on GitHub . So I think there is a problem with MonoDataCollector64.dll in C.E 7.5 latest release when I attempt to create an instance of a clas...
by -Pikachu-
Fri Jan 05, 2024 9:04 am
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

Re: Mono Features: How to create an instance of a Mono Class?

I tried the code that you posted and it did not ever timeout. As I emphasized before, after activating Mono Features, I always wait until MonoSymbolEnum is fully loaded before actually executing my code in Lua Engine. The error occurs immediately after mono_object_new is executed. The video below de...
by -Pikachu-
Thu Jan 04, 2024 8:34 am
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

Re: Mono Features: How to create an instance of a Mono Class?

Yes, this is an IL2CPP game, not a normal Mono. I think this is not a problem due to Symbol Enum still being done, because after I activate Mono features, I always wait until Mono Symbol Enum is fully loaded (i.e.: waiting for the progress bar at the bottom of CE main form to be completed) before ac...
by -Pikachu-
Tue Jan 02, 2024 8:49 pm
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

Re: Mono Features: How to create an instance of a Mono Class?

Yes, I am sure. I followed what you guided me: a=xxx.CurrentlyDisplayedClass.Handle printf("classhandle=%x",a) b=mono_object_new(a) return printf("new object is: %x", b) The result is exactly what I experienced before. Executing the above code results in the following error in Lua engine: terminatin...
by -Pikachu-
Mon Jan 01, 2024 5:42 pm
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

Re: Mono Features: How to create an instance of a Mono Class?

Eric, thank you for your answer. I read that Documentation before asking this question, and I stated what I am confused even after reading that documentation, and failures that I encountered for different approqches. I wonder if anyone has encountered this problem before and has a solution that work...
by -Pikachu-
Sun Dec 31, 2023 8:58 am
Forum: Cheat Engine Lua Scripting
Topic: [SOLVED] Mono Features: How to create an instance of a Mono Class?
Replies: 11
Views: 5946

[SOLVED] Mono Features: How to create an instance of a Mono Class?

Solution To create an instance of a Mono Class, use mono_object_new(klass) where klass is the token of the class that you want to create its instance. For example, if you want to create an instance of class PlayerStats from namespace GameBattle : local classId = mono_findClass("GameBattle", "Player...