where the logs in linux version?
Moderator: Moderator
where the logs in linux version?
Could never find stderr etc.
Re: where the logs in linux version?
In the terminal that runs it, if no terminal, no log
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: where the logs in linux version?
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:
(In beta 19, that's line 700, near the top of main().)
Code: Select all
// Change to line buffering setvbuf(stdout, (char *) NULL, _IOLBF, 0);
- 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.
Code: Select all
./t-engine >>logs/CHARNAME 2>&1
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.