Set Console Output File

Post » Thu Oct 14, 2010 10:08 pm

I don't know how many of you know this or not, but I just stumbled upon a very useful console command. Set Console Output File dumps all of the console output including all of your PrintC data to a file in your Fallout folder. This has been extremely useful to me when debugging code and the console output is too numerous to fit on the screen. The command works like this:

scof "Filename.txt"
User avatar
Rob
 
Posts: 3448
Joined: Fri Jul 13, 2007 12:26 am

Post » Fri Oct 15, 2010 6:29 am

http://geck.gamesas.com/index.php/SetConsoleOuputFile (note the missing "t" in the long name) also logs all manual console input as well as output, so if you want to keep a log of something you're testing manually via the console it works quite well too.

Cipscis
User avatar
Glu Glu
 
Posts: 3352
Joined: Sun Apr 01, 2007 5:39 am

Post » Fri Oct 15, 2010 6:28 am

Here's another tip if you're using scof, especially if logging a lot of output. To quickly remove all the extra blank lines that scof generates for whatever reason, you can do a single replace in Notepad++.

Ctrl+H to open the Replace dialog, then:
  • Find what: \r\n
  • Replace with: (blank)
  • Match whole word only: unchecked
  • Wrap around: checked
  • Search Mode: Extended

Click "Replace All", and then save. If you append more output to the file later, you can do the same replace again to compress the new lines of output.
User avatar
Lori Joe
 
Posts: 3539
Joined: Tue Jun 20, 2006 6:10 am

Post » Fri Oct 15, 2010 5:55 am

I've used Notepad++ for such a long time and I never noticed the "Search Mode" option in the find and replace window. I know I tend to be unobservant, but damn... Thanks so much for pointing that out!

Cipscis
User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Post » Fri Oct 15, 2010 4:16 am

This rocks! Someone sticky this! ah.. hm alright I guess they won't.

I use wordpad for replacement sorts of functions in my scripts.
User avatar
Emma Louise Adams
 
Posts: 3527
Joined: Wed Jun 28, 2006 4:15 pm

Post » Fri Oct 15, 2010 9:22 am

Then you are http://www.fallout3nexus.com/downloads/file.php?id=10322&navtag=file/images.php?id=10322&tab=3!

Now if they only added real regex find/replace power, instead of the cut-down version that's in there now...
User avatar
Nicole Elocin
 
Posts: 3390
Joined: Sun Apr 15, 2007 9:12 am


Return to Fallout 3