Tremulous Forum

Mods => Modding Center => Topic started by: commander scrooge on August 10, 2010, 09:48:36 pm

Title: Bind help
Post 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?
Title: Re: Bind help
Post by: David on August 11, 2010, 12:21:38 am
I used to just have the script that started trem add | tee "~/.tremulous/logs/$(date +something)"
Title: Re: Bind help
Post by: commander scrooge on August 11, 2010, 02:39:31 am
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?
Title: Re: Bind help
Post by: F50 on August 11, 2010, 03:07:21 am
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.
Title: Re: Bind help
Post by: commander scrooge on August 11, 2010, 07:32:18 pm
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.
Title: Re: Bind help
Post by: FisherP on August 11, 2010, 09:33:23 pm
How about opening up console and typing
Code: [Select]
/logfile 2Then find the file called "qconsole.log" it should be in your base directory
Title: Re: Bind help
Post by: FisherP on August 11, 2010, 09:35:18 pm
How about opening up console (in trem) and typing
Code: [Select]
/logfile 2Then find the file called "qconsole.log" it should be in your base directory
Title: Re: Bind help
Post by: commander scrooge on August 11, 2010, 09:50:39 pm
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?
Title: Re: Bind help
Post by: FisherP on August 13, 2010, 05:04:30 am
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.
Title: Re: Bind help
Post by: commander scrooge on August 13, 2010, 01:01:28 pm
Awesome, thanks fisher  ;D
Title: Re: Bind help
Post by: Kiwi on August 13, 2010, 09:04:35 pm
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) :)
Title: Re: Bind help
Post by: F50 on August 13, 2010, 10:19:05 pm
tee essentially does the same thing, but also leaves output in stdout.