DoubleDeez / MDFramework

A multiplayer C# game framework for Godot 3.4 Mono.
https://discord.gg/UH49eHK
MIT License
77 stars 13 forks source link

Method number could not be found for class method #96

Closed Meister1593 closed 3 years ago

Meister1593 commented 3 years ago

This is another issue related to finding methods needed for reflection to work.

Basically, problem is that we can get method info, but NumberedMethodInfoCache does not have required method, so method is basically missing in cache. image image image

DoubleDeez commented 3 years ago

So it looks like "UpdatedGameStateFromServer" is cached without the "int" param, but you're calling it with the int. Is it an overloaded method? Trying to figure out how it could get registered without the int.

Meister1593 commented 3 years ago

So it looks like "UpdatedGameStateFromServer" is cached without the "int" param, but you're calling it with the int. Is it an overloaded method? Trying to figure out how it could get registered without the int.

I cant remember exactly what happened there, but it's not overloaded method for sure. As you can see, it's private method, and i didn't do multiple methods with same name too.

DoubleDeez commented 3 years ago

Closing this for now, if someone runs into this again we'll reopen. Without a test case we can't figure out what went wrong.