Solved I need help with il2cpp modding values!

Status
Not open for further replies.

PixelYT

Platinian
Original poster
Jan 25, 2019
38
55
18
19
Underground
Hello, first I wanna say how is everyone doing, I hope everyone is doing well! So I need help with il2cpp modding because in KingTrauma's tutorial he said that the values aren't the same for every game and I got kind of confused If he means the methods (ex, get_ammo, get_health etc.) or editing the values when you find the methods. I need help with that, how to correctly edit the value, or whatever he meant.

Is there a Discord server for Modding Help/This Community (Platinmods) because in KingTrauma's video I saw a Discord link but when I went to the link, Discord said "Invalid Invite"?
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,759
15,611
2,120
27
Skyrim
ARM:

Value of 0 for as example Instant Win or False:

00 00 A0 E3 1E FF 2F E1

Value of 1 for as example Weak Enemy or True:

01 00 A0 E3 1E FF 2F E1

Value for High Count, like Ammo, Damage, Health:

12 07 A0 E3 1E FF 2F E1

Return:

1E FF 2F E1

x86:


Value of 0 for as example Instant Win or False:

B8 00 00 00 00 C3

Value of 1 for as example Weak Enemy or True:

B8 01 00 00 00 C3

Value for High Count, like Ammo, Damage, Health:

B8 00 00 48 00 C3

Return:

C3

The Keywords like get_Ammo etc are in all Games different and when you mod a il2cpp Game, the Offsets etc can change every Update too.
That means you can't be sure when a Update come, that you simple load the new il2cpp into HxD and mod the same Offsets and it will work.
You must dump every new Update the il2cpp again and search for the Keywords and see if the Offsets changed and mod the new Offsets.

You can see basic Hex Values above, which you can use for many things.
 

PixelYT

Platinian
Original poster
Jan 25, 2019
38
55
18
19
Underground
Okay thank you so much for the hex values, really appreciate it.

At the end I think you are saying that the methods change every update?
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,759
15,611
2,120
27
Skyrim
Not the Methods. The Offsets CAN Change, but musn't. As example You have this

Game Version : 1.0
Keyword: Damage
Offset: 0x42194

then

Game Version: 1.1
Keyword: Damage
Offset: 0x134912

When you mod now the new Version with the Old Offset in HxD, the Game will crash or it doesn't change anything, because the old Offset is now for another Method.
 
  • Like
Reactions: PixelYT

Blaxxxx

Solid & Active Platinian
Sep 5, 2019
93
27
28
Bossman's Basement
Not the Methods. The Offsets CAN Change, but musn't. As example You have this

Game Version : 1.0
Keyword: Damage
Offset: 0x42194

then

Game Version: 1.1
Keyword: Damage
Offset: 0x134912

When you mod now the new Version with the Old Offset in HxD, the Game will crash or it doesn't change anything, because the old Offset is now for another Method.
What does the "Return" mean?
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,759
15,611
2,120
27
Skyrim
@DaRealPanDa
Sorry to revive the post, but how much money should I add?


Example:
999
9999
99999999
666
6666
66666666
Thats up to you and up to the Game lol

When it's a "Short" Data Type then you need to add another value than when its an int.

Usually i use 12 07 A0 E3 1E FF 2F E1
 
  • Love
Reactions: Braz-Mods

EpicCode

1/3 Games Approved
Oct 30, 2018
39
7
83
39
Usa
Thats up to you and up to the Game lol

When it's a "Short" Data Type then you need to add another value than when its an int.

Usually i use 12 07 A0 E3 1E FF 2F E1

This is actually the same instruction just a bigger number
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,759
15,611
2,120
27
Skyrim
This is actually the same instruction just a bigger number
Yeah...thats what he asked.. lol he asked " how much should i add " and 12 07 A0 E3 1E FF 2F E1 is the default value which i use in nearly every ARMv7 Game when the Data Type is an int ( when it's a short it will logicly not work. )

When it's a short u just use a Hex with maximum 32,767 ( for a short ) or 65,535 (ushort).
 

losteri

Platinian
Feb 23, 2019
14
3
3
Brazil
ARM:

Value of 0 for as example Instant Win or False:

00 00 A0 E3 1E FF 2F E1

Value of 1 for as example Weak Enemy or True:

01 00 A0 E3 1E FF 2F E1

Value for High Count, like Ammo, Damage, Health:

12 07 A0 E3 1E FF 2F E1

Return:

1E FF 2F E1

x86:


Value of 0 for as example Instant Win or False:

B8 00 00 00 00 C3

Value of 1 for as example Weak Enemy or True:

B8 01 00 00 00 C3

Value for High Count, like Ammo, Damage, Health:

B8 00 00 48 00 C3

Return:

C3

The Keywords like get_Ammo etc are in all Games different and when you mod a il2cpp Game, the Offsets etc can change every Update too.
That means you can't be sure when a Update come, that you simple load the new il2cpp into HxD and mod the same Offsets and it will work.
You must dump every new Update the il2cpp again and search for the Keywords and see if the Offsets changed and mod the new Offsets.

You can see basic Hex Values above, which you can use for many things.
how to freeze value in il2cpp?
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,759
15,611
2,120
27
Skyrim
how to freeze value in il2cpp?
When you search for any Method and you return a value, it's automaticlly "freezed".
When you have get_Coins as example and you would use: 12 07 A0 E3 1E FF 2F E1 as example, the value would be 999999999... and never goes down.
Another way maybe would be to search for a "add" or "sub" instruction and change it to "NOP". So your current value would stay.
 
  • Like
Reactions: losteri

losteri

Platinian
Feb 23, 2019
14
3
3
Brazil
well the game I want to modify has a protection in the lib, not when it is dumped in it, in itself the protection of the game in the lib causes that when you modify and replace it, when entering the game it gives an error message, the game what I say is the block strike, do you know this type of protection?
 
Status
Not open for further replies.