Ludeon Forums

RimWorld => Mods => Help => Topic started by: CannibarRechter on September 04, 2016, 02:10:24 PM

Title: Debugging; which log file?
Post by: CannibarRechter on September 04, 2016, 02:10:24 PM
Hi, I have this statement in a mod:

         Log.Error( string.Concat(new object[] { "CR. DayOfYear = ", dayOfYear, " Temp = ", temp }) );


I'm pretty sure the mod is executing. Regardless, is that statement correct, and when it executes, will the printout be expected to appear in the standard output_log.txt file in RimWorldWin_Data?

EDIT: The above is the correct thing to do.

I had a configuration error, where I started compiling to the debug dll again, and therefore the mod wasn't reflecting its changes into Rimworld properly.
Title: Re: Debugging; which log file?
Post by: Master Bucketsmith on September 04, 2016, 02:25:11 PM
Doesn't that just write it to console?
Title: Re: Debugging; which log file?
Post by: CannibarRechter on September 04, 2016, 02:35:25 PM
Heh. I don't know. I'm just starting with some .cs modding, and I'm trying to review the data to see what's wrong with my assumption.... what puts it in the log?
Title: Re: Debugging; which log file?
Post by: Master Bucketsmith on September 05, 2016, 08:51:18 AM
I've got no idea, I'm new to DLL modding myself.
I only know that Log.Message/Warning/Error writes to console, haven't checked any actual log files in ages.
Title: Re: Debugging; which log file?
Post by: CannibarRechter on September 05, 2016, 09:04:44 AM
It was working. The problem was that I had accidentally started building the debug version of the .dll. This also explains why my dll fixes weren't working. They were going to the wrong place. ;-P
Title: Re: Debugging; which log file?
Post by: Master Bucketsmith on September 05, 2016, 09:08:23 AM
Instead of? Release version?
I don't even mess with that setting, to be honest. Such small projects, I only deal with the build result and keep moving forward.
Title: Re: Debugging; which log file?
Post by: CannibarRechter on September 05, 2016, 09:13:44 AM
Exactly. So what happened is I had set SharpDevelop to Release, but it defaults to Debug. That's fine, but I had two windows open, and didn't know it, and things were mixed up until I cleared that up.
Title: Re: Debugging; which log file?
Post by: Master Bucketsmith on September 06, 2016, 04:39:41 AM
Haha, yeah, I can see that happening. :)