newman55 / unity-mod-manager

UnityModManager
MIT License
430 stars 100 forks source link

Logger does not know filename #93

Open Zemogiter opened 2 years ago

Zemogiter commented 2 years ago

I'm updating FastAirlock to UMM. I'm getting this error upon starting the game:

System.NullReferenceException: Object reference not set to an instance of an object

  at FastAirlock.CustomAirlock.update (Single timeStep2) [0x00000] in <filename unknown>:0 

The important part is the <filename unknown>:0 - without that bit of information I have no idea where the issue is. How can I add something like public StackTrace (bool fNeedFileInfo) to Logger.LogException?

Source code of updated mod: https://github.com/Zemogiter/FastAirlock-Remake

newman55 commented 2 years ago

Try adding a pdb

Zemogiter commented 2 years ago

I alredy have a .pdb file in the same directory as the .dll file (Planetbase/Mods). Tried debuging it in visual studio via attaching to Planetbase.exe process but nothing shows up. And Debug > Windows > Modules menu is empty. What am I missing?

newman55 commented 2 years ago

It just doesn't work that way, you need to do magic there. rimworld tutorial dnspy guide I've also never debugged a mod myself, so I can't share my experience.

Zemogiter commented 2 years ago

Planetbase does not contain UnityPlayer.dll in it's install directory. Tried to do other steps and now I'm getting a "failed to load mono" error.