Tutorial Exposing localization string from code on Unity games (DLL / Mono based only)

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,680
296,906
1,213
Modding World
Hard to find right function to hack? You can expose localization string to find function easier

This is for DLL based games only.

Not all games are same, the localization function to get string can be called Get, GetLocalizedValue, GetString, Localize, Load etc.

To find it, search for UI related and look around until you found something like this. In this example I found LocalizationManager.GetLocalizedValue that sets the string to text.

1543580030048.png


Modify it to return string from string parameter. In this case, "key"

1543580043930.png


Save and replace Assembly-Csharp.dll on APK file

You will see something like this in-game

1543580054498.png


Search the string in dnSpy and you find the right function :)

1543580048864.png


You can practice with the following old version of games which was DLL based

Draconius GO: Download Draconius GO: Catch a Dragon! 1.5.10044 Android APK

Poche Guardians: Poche Guardians latest version Apk Download
 
Last edited:

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,680
296,906
1,213
Modding World
AndnixSH
bro I must search for GetLocalizedValue in dnspy and then I do the same steps and that sends me to the right function?!
No, you must find similar yourself. each game have different names

You didn't read
"There are many ways to get localize. Open Assembly-Csharp.dll in dnSpy, Look around until you find something similar."