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.
Doesn't that just write it to console?
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?
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.
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
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.
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.
Haha, yeah, I can see that happening. :)