Ill.Skillz Posted November 26, 2022 Share Posted November 26, 2022 Im trying to prefix a method BipedTransitionLayer.BeginTransition and clearly I did something wrong because as soon as dupes begin to move game just craches. And it seems that it didnt leave any logs behind of what had happened. I dont really know how to debug it. p.s. im new to harmony and c# patch.txt Link to comment Share on other sites More sharing options...
Rubacava Posted November 27, 2022 Share Posted November 27, 2022 You are patching BipedTransitionLayer.BeginTransition twice. The second one doesn't match the original methods signature. You can use finalizer patches to log your exceptions. See https://harmony.pardeike.net/articles/execution.html Link to comment Share on other sites More sharing options...
Ill.Skillz Posted November 28, 2022 Author Share Posted November 28, 2022 the second one is commented. yes ill take a look in to finalizers Link to comment Share on other sites More sharing options...
Ill.Skillz Posted November 30, 2022 Author Share Posted November 30, 2022 So as it turned out the line __instance.BeginTransition(navigator, transition); was calling Prefix method in an infinite loop. And idk why because its an instance of a different class. Any way I decided to just remove that line and everything worked. why do Klei have this line in there code anyway? method TransitionDriver.OverrideLayer.BeginTransition(Navigator navigator, Navigator.ActiveTransition transition) is literally empty! Is this some sort of Klei spaghetti code or i'm missing something? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.