Jump to content

How to debug stuff ?


Recommended Posts

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

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

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.

×
  • Create New...