Page 1 of 1
where the logs in linux version?
Posted: Fri Feb 04, 2011 5:53 am
by Postman
Could never find stderr etc.
Re: where the logs in linux version?
Posted: Fri Feb 04, 2011 8:17 am
by darkgod
In the terminal that runs it, if no terminal, no log
Re: where the logs in linux version?
Posted: Fri Feb 04, 2011 1:24 pm
by greycat
Here's what I do, and what I suggest for other Linux users:
- Edit src/main.c and make sure this line is NOT commented out:
Code: Select all
// Change to line buffering
setvbuf(stdout, (char *) NULL, _IOLBF, 0);
(In beta 19, that's line 700, near the top of main().)
- premake4 gmake; make
- mkdir logs
- Whenever I start a game, I choose the name first, because then I do:
to run the game. This puts your log information in a file named for that character, where you can read it at any time. Like, for example, during the game when 74 messages scroll past the window all at once, and you don't have a Z-Axis Scroll Wheel Mouse(tm), so you can't read them in-game. The line-buffering in src/main.c ensures that the log will always be up to date (so long as the game emits a newline after each message), rather than potentially having the critical combat messages you wanted to read held in a buffer.
The line-buffering is also vitally important if the game crashes or hangs. You want to be able to see what the game was doing at that point, and if the last 3 kilobytes of logs are still held in a buffer, you wouldn't be able to see that.