Ludeon Forums

Ludeon Forums

  • September 25, 2021, 02:50:05 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Debugging; which log file?  (Read 1872 times)

CannibarRechter

  • Colonist
  • ***
  • Posts: 784
  • Dericious
    • View Profile
Debugging; which log file?
« 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.
« Last Edit: September 04, 2016, 02:51:34 PM by CannibarRechter »
Logged
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

  • Colonist
  • ***
  • Posts: 405
  • Three slaves? Best I can do is 50 potatoes.
    • View Profile
Re: Debugging; which log file?
« Reply #1 on: September 04, 2016, 02:25:11 PM »

Doesn't that just write it to console?
Logged

CannibarRechter

  • Colonist
  • ***
  • Posts: 784
  • Dericious
    • View Profile
Re: Debugging; which log file?
« Reply #2 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?
Logged
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

  • Colonist
  • ***
  • Posts: 405
  • Three slaves? Best I can do is 50 potatoes.
    • View Profile
Re: Debugging; which log file?
« Reply #3 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.
Logged

CannibarRechter

  • Colonist
  • ***
  • Posts: 784
  • Dericious
    • View Profile
Re: Debugging; which log file?
« Reply #4 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
Logged
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

  • Colonist
  • ***
  • Posts: 405
  • Three slaves? Best I can do is 50 potatoes.
    • View Profile
Re: Debugging; which log file?
« Reply #5 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.
Logged

CannibarRechter

  • Colonist
  • ***
  • Posts: 784
  • Dericious
    • View Profile
Re: Debugging; which log file?
« Reply #6 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.
Logged
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

  • Colonist
  • ***
  • Posts: 405
  • Three slaves? Best I can do is 50 potatoes.
    • View Profile
Re: Debugging; which log file?
« Reply #7 on: September 06, 2016, 04:39:41 AM »

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