Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Code compilation error! (Is there a solution?)[SOLVED]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1532

PostPosted: Wed Dec 25, 2019 12:47 pm    Post subject: Code compilation error! (Is there a solution?)[SOLVED] Reply with quote

hi ..
I'm new to Unity game hacking.
When I change the following code, it causes an error.
Here are a few code and change examples:
NOTE: The same exchange method works without error in another game of the game developer.

C# :
Code:
// Token: 0x0600979C RID: 38812 RVA: 0x002B82F7 File Offset: 0x002B64F7
      public int getMovesLimit()
      {
         return this._data.getInt("movesLimit", 0, null);
      }


IL :
Code:
{
         // Header Size: 1 byte
         // Code Size: 19 (0x13) bytes
         .maxstack 8

         /* 0x002B64F8 02           */ IL_0000: ldarg.0
         /* 0x002B64F9 7B43470004   */ IL_0001: ldfld     class DataStore Match3/LevelData::_data
         /* 0x002B64FE 726DEA0970   */ IL_0006: ldstr     "movesLimit"
         /* 0x002B6503 16           */ IL_000B: ldc.i4.0
         /* 0x002B6504 14           */ IL_000C: ldnull
         /* 0x002B6505 6FEE020006   */ IL_000D: callvirt  instance int32 DataStore::getInt(string, int32, string)
         /* 0x002B650A 2A           */ IL_0012: ret
      } // end of method LevelData::getMovesLimit


----------------------
Change 1:
Code:
{
         // Header Size: 1 byte
         // Code Size: 19 (0x13) bytes
         .maxstack 8

         /* 0x002B64F8 02           */ IL_0000: ldarg.0
         /* 0x002B64F9 7B43470004   */ IL_0001: ldfld     class DataStore Match3/LevelData::_data
         /* 0x002B64FE 72????????   */ IL_0006: ldstr     "movesLimit" --ERROR
         /* 0x002B6503 1F64          */ IL_000B: ldc.i4.s 100 --Change
         /* 0x002B6504 14           */ IL_000C: ldnull
         /* 0x002B6505 6FEE020006   */ IL_000D: callvirt  instance int32 DataStore::getInt(string, int32, string)
         /* 0x002B650A 2A           */ IL_0012: ret
      } // end of method LevelData::getMovesLimit


Result: Code Error! Game Error!

Change 2:
Code:
{
         // Header Size: 1 byte
         // Code Size: 6 (0x6) bytes
         .maxstack 8

         /* 0x002B64F8 2064000000   */ IL_0000: ldc.i4    100  ---or 1F64 - ldc.i4.s 100
         /* 0x002B64FD 2A           */ IL_0005: ret
      } // end of method LevelData::getMovesLimit


Result: Game Error! ...NOTE: The same exchange method works without error in another game of the game developer.

--------------------------------------

It may be triggering the current error in "AntiCheats ()".
..and
Maybe you have need "Assembly-CSharp.dll" for the solution.
But thanks in advance for your solutions and ideas.

EDIT : [SOLVED]

I solved the problem by leaving "Nop" (00) in the spaces opened by the changing code. Wink

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites