Cpp2IL icon indicating copy to clipboard operation
Cpp2IL copied to clipboard

Failed to dump Unity 2018.4.5 System.ArgumentNullException (Parameter 'keyFunctionAddresses')

Open florcorgi opened this issue 1 year ago • 2 comments

The game I'm trying to decompile is The Escapists on Android, using Unity 2018.4.5. During decompilation (I REALLY want to generate pseudocode and read through the game's code) Cpp2Il proceeds to bombard me with yellow errors for every single method:

Failed to dump method System.Void AIVisit::OnVisit(System.Int32) System.ArgumentNullException: Value cannot be null. (Parameter 'keyFunctionAddresses')
   at Cpp2IL.Core.Analysis.AsmAnalyzerBase`1..ctor(UInt64 methodPointer, IEnumerable`1 instructions, BaseKeyFunctionAddresses keyFunctionAddresses)
   at Cpp2IL.Core.Analysis.AsmAnalyzerBase`1..ctor(MethodDefinition definition, UInt64 methodPointer, IList`1 instructions, BaseKeyFunctionAddresses baseKeyFunctionAddresses)
   at Cpp2IL.Core.Cpp2IlApi.CreateAnalyzerForMethod(MethodDefinition methodDefinition, BaseKeyFunctionAddresses keyFunctionAddresses)

What could be the issue? I really want that source code. It refuses to dump it.

Here's the APK incase you wanna try it yourself: https://pixeldrain.com/u/9NsrAu5t Arguments: cpp2il.exe --just-give-me-dlls-asap-dammit --game-path=escapists.apk Cpp2IL Version: 2022.0.7

florcorgi avatar Dec 10 '23 00:12 florcorgi

Does the game ship with only ArmV7 binaries (as opposed to, say, arm64/aarch64/etc)? That would be my first guess without being able to run or look at the code right now

SamboyCoding avatar Dec 10 '23 00:12 SamboyCoding