Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger does not know filename #93

Open
Zemogiter opened this issue Apr 4, 2022 · 4 comments
Open

Logger does not know filename #93

Zemogiter opened this issue Apr 4, 2022 · 4 comments

Comments

@Zemogiter
Copy link

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
Copy link
Owner

newman55 commented Apr 5, 2022

Try adding a pdb

@Zemogiter
Copy link
Author

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
Copy link
Owner

newman55 commented Apr 6, 2022

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
Copy link
Author

Zemogiter commented Apr 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants