Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

System.NotSupportedException: Cannot get IntPtr for set_lockState as there is no corresponding IL2CPP method #12

Closed
pushldr opened this issue Sep 11, 2020 · 6 comments

Comments

@pushldr
Copy link

pushldr commented Sep 11, 2020

Not sure if this is a problem with cppexplorer or unhollower but I thought I'd ask anyway
image

Game: Risk Global Domination / BloonsTD6 (two different games)
Unity Version: Unity 2019.3.4 / 2019.4.1
Melonloader: v0.2.7.1 Open-Beta
CppExplorer: v1.6.8

@sinai-dev
Copy link
Owner

Thanks for the report.

This is a bit of a strange one, looking into it, it seems that the class DOES exist in Il2Cpp, so I think it might be a bug with Unhollower somehow.

Anyway, a bit of exception handling (and manually patching the methods myself) and the problem is more or less fixed. The patches still fail, but the rest of CppExplorer continues to work fine.

https://github.com/sinai-dev/CppExplorer/releases/tag/1.6.9

Going to close the issue, but if I find out anything more I'll let you know here.

@pushldr
Copy link
Author

pushldr commented Sep 11, 2020

Thats works just fine now for Risk. BloonsTD6 now however is now coming up with an error now saying that Method Unstripping failed. I assume that's to do with Unhollower but yeah same thing as before thought I'd ask :)
image
image

@sinai-dev
Copy link
Owner

Alright thanks, I would have tested that game too but didnt feel like buying it haha. Hopefully thats the only other thing failing, shouldnt be hard to manually unstrip that one.

Am out for another hour or so but I'll fix that when I get back.

@sinai-dev sinai-dev reopened this Sep 11, 2020
@sinai-dev
Copy link
Owner

sinai-dev commented Sep 11, 2020

@Doc731 alright, give this one a go. Should fix the GUILayout.Space issue but there might be other things that fail unstripping further into the methods.

edit: nevermind just going to publish it.

@pushldr
Copy link
Author

pushldr commented Sep 12, 2020

Yeah, I don't know if you want to pursue this any further. I was just testing it with random il2cpp games to see if it worked. It fixes that error spam in the console and now logs "[CppExplorer] Exception getting root scene objects, falling back to backup method..."
GUI is still brokenish as well.
image

@sinai-dev
Copy link
Owner

Haha yeah maybe just broken a little bit... I think I'll have to pin this one for now and wait for an Il2CppAssemblyUnhollower update or two. I know they're working on porting over to Cpp2Il at the moment so maybe that will bring us better results. Will update you again once I know more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants