Tremulous Forum
Mods => Modding Center => Topic started by: commander scrooge on August 10, 2010, 09:48:36 pm
-
To start off, I'm using tremulous 1.1 TJW's HUD. Basically I would like something that functioned like the servers game.log. Talking to some friends, they said someone had accomplished this with condump at the end of each game it would run /condump, sadly they lost the code. Any one here know how?
-
I used to just have the script that started trem add | tee "~/.tremulous/logs/$(date +something)"
-
I used to just have the script that started trem add | tee "~/.tremulous/logs/$(date +something)"
Uhhm... How would I go about editing the script that starts my trem?
-
If you are on linux open up a terminal and type "which tremulous" which will then tell you what is running when you try to start trem. Open that with a text editor. If all you see in the text editor is several hundred lines of garbage, its probably you're tremulous executable. In that case you'll have to rename the executable and make a shell script in its place.
If you're on windows, dave's tee statment won't help you. If it exists you might try setting the cvar cl_autorecorddemo which will provide you with a demo, which you should be able to convert to a condump in-game.
-
I'm on a mac OS, and demos create lag. Also, I don't see how demos would help, it would just mean I would have to go through twice the trouble to make a condump.
-
How about opening up console and typing
/logfile 2
Then find the file called "qconsole.log" it should be in your base directory
-
How about opening up console (in trem) and typing
/logfile 2
Then find the file called "qconsole.log" it should be in your base directory
-
Awesome, does but does this have to be run at the beginning of each game? Or does it keep going untill you shut trem off? when you start trem do you need to run the command again? Does this have a cap to how much it can hold?
-
Awesome, does but does this have to be run at the beginning of each game? Or does it keep going untill you shut trem off? when you start trem do you need to run the command again? Does this have a cap to how much it can hold?
You can run this at any stage during the game. If you switch it off then back on again the qconsole get's overwritten by my experience. If you use "/logfile 1" the log file is written during the game, but get's deleted (from my memory) when u leave the game. If you re-start trem you will need to run it again. I don't know about cap, I think it will keep filling up the log file till your hdd is full (don't quote me on this) I've had times where I've played 6 or more games and it all fit in one log file.
-
Awesome, thanks fisher ;D
-
IIRC you can just "./[place where trem is installed]/tremulous > [place where you want the logfile to be saved]" and save it in a tremulous.sh. That was a really bad explanation, but I can explain better when I get home (and can test it) :)
-
tee essentially does the same thing, but also leaves output in stdout.