AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1532
|
Posted: Wed Dec 25, 2019 12:47 pm Post subject: Code compilation error! (Is there a solution?)[SOLVED] |
|
|
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.
_________________
|
|