Debugging; which log file?

Started by CannibarRechter, September 04, 2016, 02:10:24 PM

Previous topic - Next topic

CannibarRechter

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.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Master Bucketsmith

Doesn't that just write it to console?

CannibarRechter

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?
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Master Bucketsmith

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.

CannibarRechter

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
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Master Bucketsmith

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.

CannibarRechter

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.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Master Bucketsmith

Haha, yeah, I can see that happening. :)