Il2CppInspectorPlugins icon indicating copy to clipboard operation
Il2CppInspectorPlugins copied to clipboard

Updated Plugin for version v1.4 and v2.1

Open Daedie-git opened this issue 3 years ago • 10 comments

Updated the plugin to work for v1.4 and v2.1 of the game.

Daedie-git avatar Sep 16 '21 13:09 Daedie-git

Hi DaedieGit, I just update the latest offset of Genshin2.2 but when decrypting string, something went wrong. Here if my change of the code:

UnityPlayer.dll + 123F80 GetStringFromIndex

UnityPlayer.dll + 1658C0 DecryptMetadata

UnityPlayer.dll + 124120 GetStringLiteralFromIndex
Choices = new Dictionary<string, string> {
                ["genshin-Impact-2.2"]         = "Genshin Impact 2.2"
            }
private Dictionary<string, UnityOffsets> Offsets = new Dictionary<string, UnityOffsets> {
            ["genshin-Impact-2.2"]         = new UnityOffsets { DecryptMetadata = 0x1658C0, GetStringFromIndex = 0x123F80, GetStringLiteralFromIndex = 0x124120 }
        };

And when I manually fix the crash of decryptString, something wrong happened again when loading UserAssembly.dll.

foreach (var index in stringIndexes)
            {
                if (index < 0 || index > 800643940) continue;
                //PluginServices.For(this).StatusUpdate("Get " + index);
                string res = Marshal.PtrToStringAnsi(pGetStringFromIndex(metadataBlob, (uint)index));
                data.Strings.Add(index, res);
            }

QQ截图20211015143607

I wonder why this happened... Do you have any idea, or could you provide me your contact information?

BobH233 avatar Oct 15 '21 06:10 BobH233

Can you find the latest offset of honkai impact?

ScatteredSnow avatar Oct 18 '21 23:10 ScatteredSnow

Sorry for my stupid problem. Solved.

BobH233 avatar Oct 19 '21 14:10 BobH233

Sorry for my stupid problem. Solved.

Hi, I only saw your problem today but it looks like you already figured it out. What was the mistake?

Daedie-git avatar Oct 19 '21 15:10 Daedie-git

Can you find the latest offset of honkai impact?

Sorry, I'm not doing anything with Honkai Impact atm and don't have the time to do so.

Daedie-git avatar Oct 19 '21 15:10 Daedie-git

你能找到本海冲击的最新表面吗?

抱歉,我没有使用Honkai Impact atm 做任何事情,也没有时间破坏。

["honkai-impact-5.2"] = new UnityOffsets { DecryptMetadata = 0x0C9C00, GetStringFromIndex = 0x0515A0, GetStringLiteralFromIndex = 0x0517A0 }

I found three offsets,but I cannot dump. %% 7I~A51 J{7IYD~(S4E)J

ScatteredSnow avatar Oct 19 '21 15:10 ScatteredSnow

Sorry for my stupid problem. Solved.

Hi, I only saw your problem today but it looks like you already figured it out. What was the mistake?

I modify the plugin code, but when I add a new offset item to the list, I mistook a lowercase letter for a capital letter so the second 10 bytes decryption didn't work correctly, causing the problem.

BobH233 avatar Oct 19 '21 23:10 BobH233

update genshin 2.3

["genshin-impact-2.3"] = new UnityOffsets { DecryptMetadata = 0x1673A0, GetStringFromIndex = 0x125220, GetStringLiteralFromIndex = 0x125530 }

BobH233 avatar Nov 24 '21 06:11 BobH233

update genshin 2.3

["genshin-impact-2.3"] = new UnityOffsets { DecryptMetadata = 0x1673A0, GetStringFromIndex = 0x125220, GetStringLiteralFromIndex = 0x125530 }

Ty kindly. I integrated it into my forked repo

Daedie-git avatar Nov 24 '21 13:11 Daedie-git

CNREL2.6

["genshin-impact-2.6"] = new UnityOffsets { DecryptMetadata = 0x175060, GetStringFromIndex = 0x132B10, GetStringLiteralFromIndex = 0x132E00 }

HolographicHat avatar Apr 27 '22 06:04 HolographicHat