Synae
Synae
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
Also no, I have not tried replicating it, will do.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
It throws the exception way before that. I tried debugging lines before the one that uses dynamic and those debugs don't even get executed, as if it's throwing as soon as it enters the method that's gonna do all that. According to https://learn.microsoft.com/en-us/dotnet/api/system.typeloadexception
The exact timing of when statically referenced types are loaded is unspecified. This exception may be thrown before the method that references the missing type starts executing.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
Bumping this up as I'd like to understand why dynamic isn't working, and in case someone else has an idea on how to do what I want.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
I'm just surprised that dynamic doesn't work. I thought the whole point of it was that it's supposed to infer type at runtime, but it's failing for something I thought would be trivial.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
Not all of their assembly is obfuscated. I'd say it's 75/25. So I try to work as much as I can with the 25.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
And I don't understand your last sentence.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
No description
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
No description
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
Thanks. But shouldn't dynamic work for my case? Is there a reason it doesn't?
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
What do you mean by that?
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
Yes
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
There are actually a few methods I'm calling with that enum as a parameter (which I'm currently retrieving each week, and updating the mod with the new name). I'd rather not have to use reflection for all of them. Thank you anyway for that idea though, I really didn't think about it for some reason.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
I don't, but I can get it with reflection, I'm already doing it. I just absolutely didn't think of using Invoke to call it.
28 replies
CC#
Created by Synae on 3/18/2024 in #help
Issue with dynamic
My issue is that the type of the enum changes with every update and I'm just trying to make it so that I don't have to update my mod every week just because of that. So I'm trying to find a way to retrieve and use it programmatically. Also, that method is in the other assembly as well.
28 replies